1 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
6 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8 * doc/invoke.texi (early-inlining-insns-O2): Document.
9 (early-inlining-insns): Update.
10 * params.def (early-inlining-insns-O2): New bound.
11 (early-inlining-insns): Update docs.
12 * ipa-inline.c (want_early_inline_function_p): Use new bound.
14 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
17 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
18 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
21 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
23 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
26 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
29 * config/s390/s390.c (s390_expand_vec_compare): Use
30 gen_vec_cmpordered and gen_vec_cmpunordered.
31 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
32 vec_unordered): Delete.
33 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
34 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
35 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
36 (vec_cmp<code>): Generic dispatcher.
38 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
41 * config/s390/vector.md (V_HW): Add V1TI in order to make
42 vcond$a$b generate vcondv1tiv1tf.
44 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
46 PR rtl-optimization/91948
47 * ira-build.c (ira_create_allocno): Initialize
48 ALLOCNO_CROSSED_CALLS_ABIS.
49 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
50 than regno to ira_need_caller_save_p.
52 2019-10-01 Alexandre Oliva <oliva@adacore.com>
54 * config/i386/i386-options.c
55 (ix86_recompute_optlev_based_flags): New, moved out of...
56 (ix86_option_override_internal): ... this. Call it.
57 (ix86_override_options_after_change): Call it here too.
60 * dwarf2out.c (override_type_for_decl_p): New.
61 (gen_variable_die): Use it.
63 2019-10-01 Richard Biener <rguenther@suse.de>
65 * tree-vect-loop.c (vectorizable_reduction): Move variables
66 to where they are used.
68 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
70 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
71 (build_def_use): Use PC instead of CC0 in a comment.
73 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
75 * rtl.def (CLOBBER_HIGH): Delete.
76 * doc/rtl.texi (clobber_high): Remove documentation.
77 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
78 (reg_is_clobbered_by_clobber_high): Delete.
79 (gen_hard_reg_clobber_high): Likewise.
80 * alias.c (record_set): Remove CLOBBER_HIGH handling.
81 * cfgexpand.c (expand_gimple_stmt): Likewise.
82 * combine-stack-adj.c (single_set_for_csa): Likewise.
83 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
84 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
85 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
86 * cse.c (invalidate_reg): Remove clobber_high parameter.
87 (invalidate): Update call accordingly.
88 (canonicalize_insn): Remove CLOBBER_HIGH handling.
89 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
90 (count_reg_usage, insn_live_p): Likewise.
91 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
92 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
93 (cselib_invalidate_rtx_note_stores): Update call accordingly.
94 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
95 (cselib_invalidate_regno, cselib_process_insn): Likewise.
96 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
97 (mark_nonreg_stores_2): Likewise.
98 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
99 (df_get_call_refs): Likewise.
100 * dwarf2out.c (mem_loc_descriptor): Likewise.
101 * emit-rtl.c (verify_rtx_sharing): Likewise.
102 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
103 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
104 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
105 * genemit.c (gen_exp, gen_insn): Likewise.
106 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
107 * haifa-sched.c (haifa_classify_rtx): Likewise.
108 * ira-build.c (create_insn_allocnos): Likewise.
109 * ira-costs.c (scan_one_insn): Likewise.
110 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
111 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
112 * jump.c (mark_jump_label_1): Likewise.
113 * lra-int.h (lra_insn_reg::clobber_high): Delete.
114 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
116 (mark_not_eliminable): Likewise.
117 * lra-lives.c (process_bb_lives): Likewise.
118 * lra.c (new_insn_reg): Remove clobber_high parameter.
119 (collect_non_operand_hard_regs): Likewise. Update call to new
120 insn_reg. Remove CLOBBER_HIGH handling.
121 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
122 to collect_non_operand_hard_regs.
123 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
124 Update call to new_insn_reg.
125 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
126 * postreload.c (reload_cse_simplify, reload_combine_note_use)
127 (move2add_note_store): Likewise.
128 * print-rtl.c (print_pattern): Likewise.
129 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
130 (if_test_bypass_p): Likewise.
131 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
132 * reginfo.c (reg_scan_mark_refs): Likewise.
133 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
134 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
135 (forget_old_reloads_1): Likewise.
136 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
137 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
138 (dbr_schedule): Likewise.
139 * resource.c (update_live_status, mark_referenced_resources)
140 (mark_set_resources): Likewise.
141 * rtl.c (copy_rtx): Likewise.
142 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
143 (note_pattern_stores): Likewise.
144 (reg_is_clobbered_by_clobber_high): Delete.
145 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
146 CLOBBER_HIGH handling.
148 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
151 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
152 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
153 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
154 Handle ARM_PCS_TLSDESC.
155 (aarch64_tlsdesc_abi_id): New function.
156 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
157 rtx instead of a list of clobbers and clobber_highs.
158 (tlsdesc_small_<mode>): Update accordingly.
160 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
162 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
163 extra callee_abi argument.
164 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
165 Insert a CALLEE_ABI unspec into the call pattern as the second
166 element in the PARALLEL.
167 (aarch64_simd_call_p): Delete.
168 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
169 the new CALLEE_ABI element of the PARALLEL.
170 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
171 from the function type, if given.
172 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
173 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
174 when passed the function_arg_info end marker.
175 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
176 final argument of gen_sibcall.
177 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
178 (call): Make operand 2 a const_int_operand and pass it to expand_call.
179 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
181 (call_value): Likewise operand 3.
182 (sibcall): Likewise operand 2. Place the unspec before rather than
184 (sibcall_value): Likewise operand 3.
185 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
186 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
187 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
189 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
191 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
193 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
194 choose_hard_reg_mode.
195 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
197 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
199 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
200 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
201 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
203 2019-09-30 David Malcolm <dmalcolm@redhat.com>
205 * diagnostic-show-locus.c (line_label::line_label): Initialize
207 (line_label::comparator): Reverse the sort order by m_state_idx,
208 so that when the list is walked backwards the labels appear in
209 order of insertion into the rich_location.
210 (line_label::m_has_vbar): New field.
211 (layout::print_any_labels): When dealing with multiple labels at
212 the same line and column, only print vertical bars for the one
213 with the highest label_line.
214 (selftest::test_one_liner_labels): Update test for multiple labels
215 to expect the labels to be in the order of insertion into the
216 rich_location. Add a test for many such labels, where the column
217 numbers are out-of-order relative to the insertion order.
219 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
221 * config/i386/i386.h (ix86_frame::expensive_p): New field.
222 (ix86_frame::expensive_count): Likewise.
223 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
224 of use_fast_prologue_epilogue robust against incidental changes
227 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
230 * config/s390/vector.md (vec_unordered<mode>): Call
231 gen_vec_ordered<mode>.
233 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
235 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
236 New pattern for ASRD.
237 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
238 * internal-fn.def (IFN_DIV_POW2): New internal function.
239 * optabs.def (sdiv_pow2_optab): New optab.
240 * tree-vect-patterns.c (vect_recog_divmod_pattern):
241 Modify pattern to support new operation.
242 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
243 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
244 Document new target selector.
246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
248 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
249 to test whether we're compiling a vector PCS function and to test
250 whether the function needs to save a particular register.
251 Remove the vector PCS handling of df_set_regs_ever_live.
252 (aarch64_components_for_bb): Use crtl->abi to test whether
253 the function needs to save a particular register.
254 (aarch64_process_components): Use crtl->abi to test whether
255 we're compiling a vector PCS function.
256 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
257 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
259 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
261 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
263 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
264 whether the block calls a function that clobbers more registers
265 than the current function is allowed to.
266 (aarch64_use_simple_return_insn_p): Delete.
267 * config/aarch64/aarch64.md (simple_return): Remove condition.
269 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
271 * function-abi.h (function_abi_aggregator): New class.
272 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
274 * ira.c (update_equiv_regs_prescan): New function. Call
275 set_paradoxical_subreg here rather than...
276 (update_equiv_regs): ...here.
277 (ira): Call update_equiv_regs_prescan.
279 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
281 * hard-reg-set.h (regs_invalidated_by_call): Only define if
283 (call_used_or_fixed_regs): Likewise.
284 (call_used_or_fixed_reg_p): Likewise.
285 * reginfo.c (regs_invalidated_by_call): New macro.
287 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
289 * shrink-wrap.c: Include function-abi.h.
290 (requires_stack_frame_p): Use crtl->abi to test whether the
291 current function can use a register without saving it first.
293 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
295 * sel-sched-ir.h (_def::crosses_call): Replace with...
296 (_def::crossed_call_abis): ..this new field.
297 (def_list_add): Take a mask of ABIs instead of a crosses_call
299 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
301 * sel-sched.c: Include function-abi.h.
302 (hard_regs_data::regs_for_call_clobbered): Delete.
303 (reg_rename::crosses_call): Replace with...
304 (reg_rename::crossed_call_abis): ...this new field.
305 (fur_static_params::crosses_call): Replace with...
306 (fur_static_params::crossed_call_abis): ...this new field.
307 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
308 (init_hard_regs_data): Use crtl->abi to test which registers the
309 current function would need to save before it uses them.
310 (mark_unavailable_hard_regs): Update handling of call-clobbered
311 registers, using call_clobbers_in_region to find out which registers
312 might be call-clobbered (but without taking -fipa-ra into account
313 for now). Remove separate handling of partially call-clobbered
315 (verify_target_availability): Use crossed_call_abis instead of
317 (get_spec_check_type_for_insn, find_used_regs): Likewise.
318 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
320 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
322 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
323 function to test whether a register is fully or partly clobbered.
325 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
327 * rtlanal.c: Include function-abi.h.
328 (reg_set_p): Use insn_callee_abi to get the ABI of the called
329 function and clobbers_reg_p to test whether the register
331 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
332 to get the ABI of the called function and full_reg_clobbers to
333 get the set of fully call-clobbered registers. Warn about the
334 pitfalls of using this mode.
336 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
338 * reload.c: Include function-abi.h.
339 (find_equiv_reg): Use clobbers_reg_p to test whether either
340 of the equivalent registers is clobbered by a call.
341 * reload1.c: Include function-abi.h.
342 (reg_reloaded_call_part_clobbered): Delete.
343 (reload): Use crtl->abi to test which registers would need
344 saving in the prologue before use.
345 (find_reg): Likewise.
346 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
347 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
348 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
350 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
352 * regrename.h (du_head::call_clobber_mask): New field.
353 (du_head::need_caller_save_reg): Replace with...
354 (du_head::call_abis): ...this new field.
355 * regrename.c: Include function-abi.h.
356 (call_clobbered_in_chain_p): New function.
357 (check_new_reg_p): Use crtl->abi when deciding whether a register
358 is free for use after RA. Use call_clobbered_in_chain_p to test
359 whether a candidate register would be clobbered by a call.
360 (find_rename_reg): Don't add call-clobber conflicts here.
361 (rename_chains): Check call_abis instead of need_caller_save_reg.
362 (merge_chains): Update for changes to du_head.
363 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
364 target. Record the ABI identifier in call_abis and the set of
365 fully or partially clobbered registers in call_clobber_mask.
366 Add fully-clobbered registers to hard_conflicts here rather
367 than in find_rename_reg.
368 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
369 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
370 * config/aarch64/falkor-tag-collision-avoidance.c: Include
372 * config/c6x/c6x.c: Likewise.
374 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
376 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
377 mode of the register when deciding whether it is no longer
378 available after a call.
380 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
382 * recog.c: Include function-abi.h.
383 (peep2_find_free_register): Use crtl->abi when deciding whether
384 a register is free for use after RA.
386 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
388 * postreload-gcse.c: Include regs.h and function-abi.h.
389 (record_opr_changes): Use insn_callee_abi to get the ABI of the
390 call insn target. Conservatively assume that partially-clobbered
391 registers are altered.
393 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
395 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
396 when deciding whether a register is free for use after RA.
397 (reload_combine): Remove unnecessary use of fixed_reg_set.
398 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
399 call insn target. Use reg_mode when testing whether a register
400 is no longer available.
402 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
404 * target.def (return_call_with_max_clobbers): Delete.
405 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
406 * doc/tm.texi: Regenerate.
407 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
408 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
409 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
410 (lra_reg::call_insn): Delete.
411 * lra.c: Include function-abi.h.
412 (initialize_lra_reg_info_element): Don't initialize the fields above.
413 (lra): Use crtl->abi to test whether the current function needs to
414 save a register in the prologue. Remove special pre-inheritance
415 lra_create_live_ranges pass for flag_ipa_ra.
416 * lra-assigns.c: Include function-abi.h
417 (find_hard_regno_for_1): Use crtl->abi to test whether the current
418 function needs to save a register in the prologue.
419 (lra_assign): Assert that registers aren't allocated to a
420 conflicting register, rather than checking only for overlaps
421 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
422 and for registers that are not live across a call.
423 * lra-constraints.c (last_call_for_abi): New variable.
424 (full_and_partial_call_clobbers): Likewise.
425 (setup_next_usage_insn): Remove the register from
426 full_and_partial_call_clobbers.
427 (need_for_call_save_p): Use call_clobbered_in_region_p to test
428 whether the register needs a caller save.
429 (need_for_split_p): Use full_and_partial_reg_clobbers instead
430 of call_used_or_fixed_regs.
431 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
432 full_and_partial_call_clobbers.
433 * lra-lives.c (check_pseudos_live_through_calls): Replace
434 last_call_used_reg_set and call_insn arguments with an abi argument.
435 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
436 as the set of conflicting registers.
437 (calls_have_same_clobbers_p): Delete.
438 (process_bb_lives): Track the ABI of the last call instead of an
439 insn/HARD_REG_SET pair. Update calls to
440 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
441 the set of registers that could be clobbered by an EH edge.
442 Include partially-clobbered as well as fully-clobbered registers.
443 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
444 * lra-remat.c: Include function-abi.h.
445 (call_used_regs_arr_len, call_used_regs_arr): Delete.
446 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
447 registers and bitmap_view to combine them into dead_regs.
448 (call_used_input_regno_present_p): Take a function_abi argument
449 and use it to test whether a register is call-clobbered.
450 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
451 call insn target. Update tje call to call_used_input_regno_present_p.
452 (do_remat): Likewise.
453 (lra_remat): Remove the initialization of call_used_regs_arr_len
454 and call_used_regs_arr.
456 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
458 * loop-iv.c: Include regs.h and function-abi.h.
459 (simplify_using_initial_values): Use insn_callee_abi to get the
460 ABI of the call insn target. Conservatively assume that
461 partially-clobbered registers are altered.
463 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
465 * function-abi.h (call_clobbers_in_region): Declare.
466 (call_clobbered_in_region_p): New function.
467 * function-abi.cc (call_clobbers_in_region): Likewise.
468 * ira-int.h: Include function-abi.h.
469 (ira_allocno::crossed_calls_abis): New field.
470 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
471 (ira_need_caller_save_regs): New function.
472 (ira_need_caller_save_p): Likewise.
473 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
474 of call_used_or_fixed_regs.
475 (do_reload): Use crtl->abi to test whether the current function
476 needs to save a register in the prologue. Count registers that
477 need to be saved rather than registers that don't.
478 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
479 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
480 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
481 (propagate_some_info_from_allocno): Likewise.
482 (copy_info_to_removed_store_destinations): Likewise.
483 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
484 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
485 (ira_build): Use ira_need_caller_save_regs instead of
486 call_used_or_fixed_regs.
487 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
488 whether the current function would need to save a register
490 (calculate_spill_cost): Likewise.
491 (allocno_reload_assign): Use ira_need_caller_save_regs and
492 ira_need_caller_save_p instead of call_used_or_fixed_regs.
493 * ira-conflicts.c (ira_build_conflicts): Use
494 ira_need_caller_save_regs rather than call_used_or_fixed_regs
495 as the set of call-clobbered registers. Remove the
496 call_used_or_fixed_regs mask from the calculation of
497 temp_hard_reg_set and mask its use instead. Remove special
498 handling of partially-clobbered registers.
499 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
500 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
501 calculate the set of conflicting registers for calls that
502 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
503 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
504 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
505 Use eh_edge_abi to calculate the set of registers that could
506 be clobbered by an EH edge. Include partially-clobbered as
507 well as fully-clobbered registers.
509 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
511 * haifa-sched.c: Include function-abi.h.
512 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
513 the function would need to save a register before using it.
515 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
517 * gcse.c: Include function-abi.h.
518 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
519 the call insn target. Invalidate partially call-clobbered
520 registers as well as fully call-clobbered ones.
522 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
524 * function.c (aggregate_value_p): Work out which ABI the
525 function is using before testing which registers are at least
526 partly preserved by a call.
528 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
530 * early-remat.c: Include regs.h and function-abi.h.
531 (early_remat::maybe_add_candidate): Don't check for call-clobbered
533 (early_remat::restrict_remat_for_unavail_regs): New function.
534 (early_remat::restrict_remat_for_call): Likewise.
535 (early_remat::process_block): Before calling emit_remat_insns
536 for a previous call in the block, invalidate any candidates
537 that would clobber call-preserved registers.
538 (early_remat::emit_remat_insns_for_block): Likewise for the
539 final call in a block. Do the same thing for live-in registers
540 when calling emit_remat_insns at the head of a block.
542 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
544 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
545 whether the current function needs to save at least part of a
546 register before using it.
547 (df_get_exit_block_use_set): Likewise for epilogue restores.
549 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
551 * df-problems.c: Include regs.h and function-abi.h.
552 (df_rd_problem_data): Rename sparse_invalidated_by_call to
553 sparse_invalidated_by_eh and dense_invalidated_by_call to
554 dense_invalidated_by_eh.
555 (df_print_bb_index): Update accordingly.
556 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
557 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
558 that are clobbered by an EH edge. Clobber partially-clobbered
559 registers as well as fully-clobbered ones.
560 (df_md_confluence_n): Likewise.
561 (df_rd_local_compute): Likewise. Update for changes to
563 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
564 of registers that are clobbered by an EH edge. Includde partially-
565 clobbered registers as well as fully-clobbered ones.
567 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
569 * cselib.c (cselib_process_insn): If we know what mode a
570 register was set in, check whether it is clobbered in that
571 mode by a call. Only fall back to reg_raw_mode if that fails.
573 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
575 * cse.c: Include regs.h and function-abi.h.
576 (invalidate_for_call): Take the call insn as an argument.
577 Use insn_callee_abi to get the ABI of the call and invalidate
578 partially clobbered registers as well as fully clobbered ones.
579 (cse_insn): Update call accordingly.
581 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
583 * combine.c: Include function-abi.h.
584 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
585 of the target of call insns. Invalidate partially-clobbered
586 registers as well as fully-clobbered ones.
588 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
590 * cfgloopanal.c: Include regs.h and function-abi.h.
591 (init_set_costs): Use default_function_abi to test whether
592 a general register is call-clobbered.
594 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
596 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
597 instead of the call-clobbered sets.
599 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
601 * caller-save.c (setup_save_areas): Remove redundant |s of
603 (save_call_clobbered_regs): Likewise. Use the call ABI rather
604 than call_used_or_fixed_regs to decide whether a REG_RETURNED
607 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
609 * rtl.h (predefined_function_abi): Declare.
610 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
611 instead of a boolean call_save flag.
612 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
614 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
615 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
616 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
617 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
618 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
619 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
620 * reginfo.c (init_reg_modes_target): Likewise.
621 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
622 instead of a boolean call_save flag.
623 * targhooks.c: Include function-abi.h.
624 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
625 using eh_edge_abi to choose the mode.
627 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
629 * target.def (hard_regno_call_part_clobbered): Take an ABI
630 identifier instead of an rtx_insn.
631 * doc/tm.texi: Regenerate.
632 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
633 (hook_bool_uint_uint_mode_false): New function.
634 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
635 (hook_bool_uint_uint_mode_false): New function.
636 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
637 Take an ABI identifier instead of an rtx_insn.
638 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
639 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
640 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
641 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
642 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
644 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
645 * cselib.c: Include function-abi.h.
646 (cselib_process_insn): Update call to
647 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
648 to get the appropriate ABI identifier.
649 * function-abi.cc (predefined_function_abi::initialize): Update call
650 to targetm.hard_regno_call_part_clobbered.
651 * ira-conflicts.c (ira_build_conflicts): Likewise.
652 * ira-costs.c (ira_tune_allocno_costs): Likewise.
653 * lra-constraints.c: Include function-abi.h.
654 (need_for_call_save_p): Update call to
655 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
656 to get the appropriate ABI identifier.
657 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
658 * regcprop.c (copyprop_hardreg_forward_1): Update call
659 to targetm.hard_regno_call_part_clobbered.
660 * reginfo.c (choose_hard_reg_mode): Likewise.
661 * regrename.c (check_new_reg_p): Likewise.
662 * reload.c (find_equiv_reg): Likewise.
663 * reload1.c (emit_reload_insns): Likewise.
664 * sched-deps.c: Include function-abi.h.
665 (deps_analyze_insn): Update call to
666 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
667 to get the appropriate ABI identifier.
668 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
669 call to targetm.hard_regno_call_part_clobbered.
670 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
672 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
674 * config/i386/i386.c: Include function-abi.h.
675 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
676 if they preserve some 256-bit or 512-bit SSE registers.
678 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
680 * target.def (insn_callee_abi): New hook.
681 (remove_extra_call_preserved_regs): Delete.
682 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
683 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
684 * doc/tm.texi: Regenerate.
685 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
686 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
687 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
689 (aarch64_remove_extra_call_preserved_regs): Delete.
690 (aarch64_insn_callee_abi): New function.
691 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
692 (TARGET_INSN_CALLEE_ABI): New macro.
693 * rtl.h (get_call_fndecl): Declare.
694 (cgraph_rtl_info): Fix formatting. Tweak comment for
695 function_used_regs. Remove function_used_regs_valid.
696 * rtlanal.c (get_call_fndecl): Moved from final.c
697 * function-abi.h (insn_callee_abi): Declare.
698 (target_function_abi_info): Mention insn_callee_abi.
699 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
700 way to get_call_reg_set_usage did.
701 (insn_callee_abi): New function.
702 * regs.h (get_call_reg_set_usage): Delete.
703 * final.c: Include function-abi.h.
704 (collect_fn_hard_reg_usage): Add fixed and stack registers to
705 function_used_regs before the main loop rather than afterwards.
706 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
707 if function_used_regs ends up not being useful.
708 (get_call_fndecl): Move to rtlanal.c
709 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
710 * caller-save.c: Include function-abi.h.
711 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
712 instead of get_call_reg_set_usage.
713 * cfgcleanup.c: Include function-abi.h.
714 (old_insns_match_p): Use insn_callee_abi instead of
715 get_call_reg_set_usage.
716 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
718 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
720 * df-scan.c: Include function-abi.h.
721 (df_get_call_refs): Use insn_callee_abi instead of
722 get_call_reg_set_usage.
723 * ira-lives.c: Include function-abi.h.
724 (process_bb_node_lives): Use insn_callee_abi instead of
725 get_call_reg_set_usage.
726 * lra-lives.c: Include function-abi.h.
727 (process_bb_lives): Use insn_callee_abi instead of
728 get_call_reg_set_usage.
729 * postreload.c: Include function-abi.h.
730 (reload_combine): Use insn_callee_abi instead of
731 get_call_reg_set_usage.
732 * regcprop.c: Include function-abi.h.
733 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
734 get_call_reg_set_usage.
735 * resource.c: Include function-abi.h.
736 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
737 instead of get_call_reg_set_usage.
738 * var-tracking.c: Include function-abi.h.
739 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
740 get_call_reg_set_usage.
742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
744 * target.def (fntype_abi): New target hook.
745 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
746 * doc/tm.texi: Regenerate.
747 * target.h (predefined_function_abi): Declare.
748 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
750 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
751 * config/aarch64/aarch64.c: Include function-abi.h.
752 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
753 (TARGET_FNTYPE_ABI): Define.
755 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
757 * Makefile.in (OBJS): Add function-abi.o.
758 (GTFILES): Add function-abi.h.
759 * function-abi.cc: New file.
760 * function-abi.h: Likewise.
761 * emit-rtl.h (rtl_data::abi): New field.
762 * function.c: Include function-abi.h.
763 (prepare_function_start): Initialize crtl->abi.
764 * read-rtl-function.c: Include regs.h and function-abi.h.
765 (read_rtl_function_body): Initialize crtl->abi.
766 (read_rtl_function_body_from_file_range): Likewise.
767 * reginfo.c: Include function-abi.h.
768 (init_reg_sets_1): Initialize default_function_abi.
769 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
770 when making a register global.
771 * target-globals.h (this_target_function_abi_info): Declare.
772 (target_globals::function_abi_info): New field.
773 (restore_target_globals): Copy it.
774 * target-globals.c: Include function-abi.h.
775 (default_target_globals): Initialize the function_abi_info field.
776 (target_globals): Allocate it.
777 (save_target_globals): Free it.
779 2019-09-30 Nick Clifton <nickc@redhat.com>
782 * config/frv/frv.c (frv_register_move_cost): Add break statements
783 to avoid falling through to the wrong cases. Tidy code.
785 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
787 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
788 For multi-registers modes, test how big each register part is.
790 2019-09-30 Nick Clifton <nickc@redhat.com>
793 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
794 (TARGET_ASM_SELECT_SECTION): Remove definition.
795 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
797 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
799 * emit-rtl.c (init_raw_REG): New function.
800 (gen_raw_REG): Use init_raw_REG.
801 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
803 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
804 * rtl.h (rtx_init): New function.
805 (rtx_alloca): New function.
806 (init_raw_REG): New function.
807 (alloca_raw_REG): New macro.
809 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
811 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
812 (pcrel_local_address): Replace pcrel_address predicate, use the
813 new function address_to_insn_form.
814 (pcrel_external_address): Replace with new implementation using
815 address_to_insn_form..
816 (prefixed_mem_operand): Delete predicate which is now unused.
817 (pcrel_external_mem_operand): Delete predicate which is now
819 * config/rs6000/rs6000-protos.h (enum insn_form): New
821 (enum non_prefixed_form): New enumeration.
822 (address_to_insn_form): New declaration.
823 (prefixed_load_p): New declaration.
824 (prefixed_store_p): New declaration.
825 (prefixed_paddi_p): New declaration.
826 (rs6000_asm_output_opcode): New declaration.
827 (rs6000_final_prescan_insn): Move declaration and update calling
829 (address_is_prefixed): New helper inline function.
830 * config/rs6000/rs6000.c(print_operand_address): Check for either
831 PC-relative local symbols or PC-relative external symbols.
832 (rs6000_emit_move): Support loading PC-relative addresses.
833 (mode_supports_prefixed_address_p): Delete, no longer used.
834 (rs6000_prefixed_address_mode_p): Delete, no longer used.
835 (address_to_insn_form): New function to decode an address format.
836 (reg_to_non_prefixed): New function to identify what the
837 non-prefixed memory instruction format is for a register.
838 (prefixed_load_p): New function to identify prefixed loads.
839 (prefixed_store_p): New function to identify prefixed stores.
840 (prefixed_paddi_p): New function to identify prefixed load
842 (next_insn_prefixed_p): New static state variable.
843 (rs6000_final_prescan_insn): New function to determine if an insn
844 uses a prefixed instruction.
845 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
846 prefixed instruction.
847 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
848 (ASM_OUTPUT_OPCODE): New target hook.
849 * config/rs6000/rs6000.md (prefixed): New insn attribute for
850 prefixed instructions.
851 (prefixed_length): New insn attribute for the size of prefixed
853 (non_prefixed_length): New insn attribute for the size of
854 non-prefixed instructions.
855 (pcrel_local_addr): New insn to load up a local PC-relative
857 (pcrel_extern_addr): New insn to load up an external PC-relative
859 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
860 GPR and loading a 128-bit floating point type to a GPR.
862 2019-09-30 Richard Biener <rguenther@suse.de>
864 * gimple.c (gimple_get_lhs): For PHIs return the result.
865 * tree-vectorizer.h (vectorizable_live_operation): Also get the
866 SLP instance as argument.
867 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
868 double-reduction PHIs with vectorizable_lc_phi.
869 (vect_analyze_loop_operations): Adjust.
870 (vect_create_epilog_for_reduction): Remove all code not dealing
871 with reduction LC PHI or epilogue generation.
872 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
873 for live stmts of reductions.
874 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
875 do not handle defs that are not vect_internal_def.
876 (can_vectorize_live_stmts): Adjust.
877 (vect_analyze_stmt): When the vectorized stmt defined a value
878 used on backedges adjust the backedge uses of vectorized PHIs.
880 2019-09-30 Martin Jambor <mjambor@suse.cz>
883 * tree-inline.c (force_value_to_type): New function.
884 (setup_one_parameter): Use force_value_to_type to convert type.
885 * tree-inline.c (force_value_to_type): Declare.
886 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
887 with register type mismatches.
889 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
891 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
893 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
894 * config/rs6000/t-freebsd64: Make use of the above define and build
895 the 32-bit libraries with secure-plt.
897 2019-09-30 Jakub Jelinek <jakub@redhat.com>
900 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
901 gen_int_mode instead of GEN_INT.
903 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
905 * config/darwin.c (gen_macho_low): Amend to include the mode
907 (machopic_indirect_data_reference): Amend gen_macho_low call
908 to include mode argument
909 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
910 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
911 the macho_high expander and two define_insn entries.
913 2019-09-29 Jakub Jelinek <jakub@redhat.com>
916 * optc-save-gen.awk: Fix up printing string option differences.
918 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
920 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
921 vec_perm cost to 1 for non-Power7 VSX architectures.
923 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
925 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
926 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
927 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
929 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
931 * config/darwin.c (gen_macho_high): Amend to include the mode
933 (machopic_indirect_data_reference): Amend gen_macho_high call
934 to include mode argument.
935 (machopic_legitimize_pic_address): Likewise.
936 * config/rs6000/rs6000.c (rs6000_legitimize_address):
937 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
938 the macho_high expander and two define_insn entries.
940 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
943 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
945 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
948 * config/sh/sh.c (parse_validate_atomic_model_option): Use
949 std::string::compare instead of std::string::find.
951 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
953 * configure: Regenerate.
955 2019-09-27 Jakub Jelinek <jakub@redhat.com>
958 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
961 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
963 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
964 replaces the expander and two define_insn entries.
965 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
967 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
969 2019-09-27 David Malcolm <dmalcolm@redhat.com>
971 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
972 (fibonacci_heap::nodes): Likewise.
973 (fibonacci_heap::min_key): Likewise.
974 (fibonacci_heap::min): Likewise.
976 2019-09-27 David Malcolm <dmalcolm@redhat.com>
978 * cgraph.c (cgraph_node::get_fun): Make const.
979 * cgraph.h (cgraph_node::get_fun): Likewise.
981 2019-09-27 Jakub Jelinek <jakub@redhat.com>
984 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
987 2019-09-27 Richard Biener <rguenther@suse.de>
989 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
990 (STMT_VINFO_REDUC_FN): Likewise.
991 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
993 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
994 for condition reductions.
995 (vect_create_epilog_for_reduction): Compute all required state
996 from the stmt to be vectorized.
997 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
998 invocation and remove then dead code. For single def-use chains
999 record only a single vector stmt.
1001 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
1003 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
1004 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
1005 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
1006 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
1007 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
1008 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
1009 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
1010 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
1011 (aarch64_general_builtin_rsqrt): Declare.
1012 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
1014 (aarch64_mangle_builtin_type): Rename to...
1015 (aarch64_general_mangle_builtin_type): ...this.
1016 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
1017 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
1018 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
1019 aarch64_general_add_builtin instead of add_builtin_function.
1020 (aarch64_init_builtins): Rename to...
1021 (aarch64_general_init_builtins): ...this. Use
1022 aarch64_general_add_builtin instead of add_builtin_function.
1023 (aarch64_builtin_decl): Rename to...
1024 (aarch64_general_builtin_decl): ...this and remove the unused
1026 (aarch64_expand_builtin): Rename to...
1027 (aarch64_general_expand_builtin): ...this and remove the unused
1029 (aarch64_builtin_rsqrt): Rename to...
1030 (aarch64_general_builtin_rsqrt): ...this.
1031 (aarch64_fold_builtin): Rename to...
1032 (aarch64_general_fold_builtin): ...this. Take the function subcode
1033 and return type as arguments. Remove the "ignored" argument.
1034 (aarch64_gimple_fold_builtin): Rename to...
1035 (aarch64_general_gimple_fold_builtin): ...this. Take the function
1036 subcode and gcall as arguments, and return the new function call.
1037 * config/aarch64/aarch64.c (aarch64_init_builtins)
1038 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
1039 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
1040 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
1041 instead of aarch64_builtin_rsqrt.
1042 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
1043 instead of aarch64_mangle_builtin_type.
1045 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
1047 * target.def (check_builtin_call): New target hook.
1048 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
1049 * doc/tm.texi: Regenerate.
1051 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
1053 PR tree-optimization/91909
1054 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
1055 reduc_index parameter. When handling COND_REDUCTION, make sure
1056 that the reduction phi operand is in the correct arm of the
1058 (vectorizable_reduction): Pass reduc_index to the above.
1060 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
1062 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
1063 New combine pattern.
1065 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
1067 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
1068 loop instruction into new basic block before the loop when basic
1069 block that precedes the loop is empty.
1071 2019-09-26 Jakub Jelinek <jakub@redhat.com>
1073 * function.c (gimplify_parameters): Use build_clobber function.
1074 * tree-ssa.c (execute_update_addresses_taken): Likewise.
1075 * tree-inline.c (expand_call_inline): Likewise.
1076 * tree-sra.c (clobber_subtree): Likewise.
1077 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
1078 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
1079 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
1080 lower_omp_target): Likewise.
1081 * omp-expand.c (expand_omp_for_generic): Likewise.
1082 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
1084 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
1086 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
1087 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
1088 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
1089 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
1090 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
1091 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
1092 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
1093 LD_ELEMREV_V16QI): Use the PURE attribute.
1095 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
1097 * config/rs6000/darwin.md: Replace the expanders for
1098 load_macho_picbase and reload_macho_picbase with use of '@'
1099 and <mode> in their respective define_insns.
1100 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
1101 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
1102 Pmode to gen_load_macho_picbase.
1103 * config/rs6000/rs6000.md: Likewise.
1105 2019-09-25 Richard Biener <rguenther@suse.de>
1107 PR tree-optimization/91896
1108 * tree-vect-loop.c (vectorizable_reduction): The single
1109 def-use cycle optimization cannot apply when there's more
1110 than one pattern stmt involved.
1112 2019-09-26 Richard Biener <rguenther@suse.de>
1114 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
1115 loop-closed PHIs that are vect_internal_def.
1116 (vect_create_epilog_for_reduction): Exit early for nested cycles.
1118 (vectorizable_lc_phi): New.
1119 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
1120 (vect_transform_stmt): Likewise.
1121 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
1122 (vectorizable_lc_phi): Declare.
1124 2019-09-26 Richard Biener <rguenther@suse.de>
1126 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
1127 vectorizable_reduction for vect_double_reduction_def.
1128 (vect_transform_loop): Likewise.
1129 (vect_create_epilog_for_reduction): Move double-reduction
1130 PHI creation and preheader argument setting of PHIs ...
1131 (vectorizable_reduction): ... here. Also process
1132 vect_double_reduction_def PHIs, creating the vectorized
1133 PHI nodes, remembering the scalar adjustment computed for
1134 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
1135 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
1136 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
1137 Initialize STMT_VINFO_REDUC_CODE.
1138 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
1139 (_stmt_vec_info::reduc_code): Likewise.
1140 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
1141 (STMT_VINFO_REDUC_CODE): Likewise.
1143 2019-09-26 Matt Turner <mattst88@gmail.com>
1146 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
1147 (mtune=): Add Negative(mtune=).
1148 (mcpu=): Add Negative(mcpu=).
1149 * config/arm/arm.opt: Likewise.
1151 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1153 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
1154 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
1156 * config/arm/arm_acle.h: Define builtins for the above.
1157 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
1158 (simd32_op): Handle the above.
1159 * config/arm/unspecs.md: Define unspecs for the above.
1161 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1163 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
1164 (arm_<sup>xtb16): Likewise.
1165 (arm_usada8): Likewise.
1166 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
1167 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
1168 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
1169 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
1170 __sxtb16, __uxtab16, __uxtb16): Define.
1171 * config/arm/arm_acle_builtins.def: Define builtins for the above.
1172 * config/arm/unspecs.md: Define unspecs for the above.
1173 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
1174 (USXTB16): Likewise.
1175 (simd32_op): New int_attribute.
1176 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
1177 * doc/sourcebuild.exp (arm_simd32_ok): Document.
1179 2019-09-26 Martin Jambor <mjambor@suse.cz>
1181 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
1184 2019-09-26 Martin Jambor <mjambor@suse.cz>
1186 * ipa-sra.c (process_scan_results): Fix continue condition.
1188 2019-09-26 Martin Liska <mliska@suse.cz>
1190 PR tree-optimization/91885
1191 * tree-vectorizer.c (try_vectorize_loop_1): Add
1192 TODO_update_ssa_only_virtuals similarly to what slp pass does.
1194 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
1196 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1197 aarch64_plus_immediate rather than aarch64_uimm12_shift
1198 to test for valid PLUS immediates.
1200 2019-09-25 Martin Jambor <mjambor@suse.cz>
1202 * tree-sra.c (no_accesses_p): Remove.
1203 (no_accesses_representant): Likewise.
1205 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1207 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
1209 (vaba_s16): Likewise.
1210 (vaba_s32): Likewise.
1211 (vaba_u8): Likewise.
1212 (vaba_u16): Likewise.
1213 (vaba_u32): Likewise.
1214 (vabal_high_s8): Likewise.
1215 (vabal_high_s16): Likewise.
1216 (vabal_high_s32): Likewise.
1217 (vabal_high_u8): Likewise.
1218 (vabal_high_u16): Likewise.
1219 (vabal_high_u32): Likewise.
1220 (vabal_s8): Likewise.
1221 (vabal_s16): Likewise.
1222 (vabal_s32): Likewise.
1223 (vabal_u8): Likewise.
1224 (vabal_u16): Likewise.
1225 (vabal_u32): Likewise.
1226 (vabaq_s8): Likewise.
1227 (vabaq_s16): Likewise.
1228 (vabaq_s32): Likewise.
1229 (vabaq_u8): Likewise.
1230 (vabaq_u16): Likewise.
1231 (vabaq_u32): Likewise.
1232 (vabd_s8): Likewise.
1233 (vabd_s16): Likewise.
1234 (vabd_s32): Likewise.
1235 (vabd_u8): Likewise.
1236 (vabd_u16): Likewise.
1237 (vabd_u32): Likewise.
1238 (vabdl_high_s8): Likewise.
1239 (vabdl_high_s16): Likewise.
1240 (vabdl_high_s32): Likewise.
1241 (vabdl_high_u8): Likewise.
1242 (vabdl_high_u16): Likewise.
1243 (vabdl_high_u32): Likewise.
1244 (vabdl_s8): Likewise.
1245 (vabdl_s16): Likewise.
1246 (vabdl_s32): Likewise.
1247 (vabdl_u8): Likewise.
1248 (vabdl_u16): Likewise.
1249 (vabdl_u32): Likewise.
1250 (vabdq_s8): Likewise.
1251 (vabdq_s16): Likewise.
1252 (vabdq_s32): Likewise.
1253 (vabdq_u8): Likewise.
1254 (vabdq_u16): Likewise.
1255 (vabdq_u32): Likewise.
1256 (vaddlv_s8): Likewise.
1257 (vaddlv_s16): Likewise.
1258 (vaddlv_u8): Likewise.
1259 (vaddlv_u16): Likewise.
1260 (vaddlvq_s8): Likewise.
1261 (vaddlvq_s16): Likewise.
1262 (vaddlvq_s32): Likewise.
1263 (vaddlvq_u8): Likewise.
1264 (vaddlvq_u16): Likewise.
1265 (vaddlvq_u32): Likewise.
1266 (vcvtx_f32_f64): Likewise.
1267 (vcvtx_high_f32_f64): Likewise.
1268 (vcvtxd_f32_f64): Likewise.
1269 (vmla_n_f32): Likewise.
1270 (vmla_n_s16): Likewise.
1271 (vmla_n_s32): Likewise.
1272 (vmla_n_u16): Likewise.
1273 (vmla_n_u32): Likewise.
1274 (vmla_s8): Likewise.
1275 (vmla_s16): Likewise.
1276 (vmla_s32): Likewise.
1277 (vmla_u8): Likewise.
1278 (vmla_u16): Likewise.
1279 (vmla_u32): Likewise.
1280 (vmlal_high_n_s16): Likewise.
1281 (vmlal_high_n_s32): Likewise.
1282 (vmlal_high_n_u16): Likewise.
1283 (vmlal_high_n_u32): Likewise.
1284 (vmlal_high_s8): Likewise.
1285 (vmlal_high_s16): Likewise.
1286 (vmlal_high_s32): Likewise.
1287 (vmlal_high_u8): Likewise.
1288 (vmlal_high_u16): Likewise.
1289 (vmlal_high_u32): Likewise.
1290 (vmlal_n_s16): Likewise.
1291 (vmlal_n_s32): Likewise.
1292 (vmlal_n_u16): Likewise.
1293 (vmlal_n_u32): Likewise.
1294 (vmlal_s8): Likewise.
1295 (vmlal_s16): Likewise.
1296 (vmlal_s32): Likewise.
1297 (vmlal_u8): Likewise.
1298 (vmlal_u16): Likewise.
1299 (vmlal_u32): Likewise.
1300 (vmlaq_n_f32): Likewise.
1301 (vmlaq_n_s16): Likewise.
1302 (vmlaq_n_s32): Likewise.
1303 (vmlaq_n_u16): Likewise.
1304 (vmlaq_n_u32): Likewise.
1305 (vmlaq_s8): Likewise.
1306 (vmlaq_s16): Likewise.
1307 (vmlaq_s32): Likewise.
1308 (vmlaq_u8): Likewise.
1309 (vmlaq_u16): Likewise.
1310 (vmlaq_u32): Likewise.
1311 (vmls_n_f32): Likewise.
1312 (vmls_n_s16): Likewise.
1313 (vmls_n_s32): Likewise.
1314 (vmls_n_u16): Likewise.
1315 (vmls_n_u32): Likewise.
1316 (vmls_s8): Likewise.
1317 (vmls_s16): Likewise.
1318 (vmls_s32): Likewise.
1319 (vmls_u8): Likewise.
1320 (vmls_u16): Likewise.
1321 (vmls_u32): Likewise.
1322 (vmlsl_high_n_s16): Likewise.
1323 (vmlsl_high_n_s32): Likewise.
1324 (vmlsl_high_n_u16): Likewise.
1325 (vmlsl_high_n_u32): Likewise.
1326 (vmlsl_high_s8): Likewise.
1327 (vmlsl_high_s16): Likewise.
1328 (vmlsl_high_s32): Likewise.
1329 (vmlsl_high_u8): Likewise.
1330 (vmlsl_high_u16): Likewise.
1331 (vmlsl_high_u32): Likewise.
1332 (vmlsl_n_s16): Likewise.
1333 (vmlsl_n_s32): Likewise.
1334 (vmlsl_n_u16): Likewise.
1335 (vmlsl_n_u32): Likewise.
1336 (vmlsl_s8): Likewise.
1337 (vmlsl_s16): Likewise.
1338 (vmlsl_s32): Likewise.
1339 (vmlsl_u8): Likewise.
1340 (vmlsl_u16): Likewise.
1341 (vmlsl_u32): Likewise.
1342 (vmlsq_n_f32): Likewise.
1343 (vmlsq_n_s16): Likewise.
1344 (vmlsq_n_s32): Likewise.
1345 (vmlsq_n_u16): Likewise.
1346 (vmlsq_n_u32): Likewise.
1347 (vmlsq_s8): Likewise.
1348 (vmlsq_s16): Likewise.
1349 (vmlsq_s32): Likewise.
1350 (vmlsq_u8): Likewise.
1351 (vmlsq_u16): Likewise.
1352 (vmlsq_u32): Likewise.
1353 (vmovl_high_s8): Likewise.
1354 (vmovl_high_s16): Likewise.
1355 (vmovl_high_s32): Likewise.
1356 (vmovl_high_u8): Likewise.
1357 (vmovl_high_u16): Likewise.
1358 (vmovl_high_u32): Likewise.
1359 (vmovl_s8): Likewise.
1360 (vmovl_s16): Likewise.
1361 (vmovl_s32): Likewise.
1362 (vmovl_u8): Likewise.
1363 (vmovl_u16): Likewise.
1364 (vmovl_u32): Likewise.
1365 (vmovn_high_s16): Likewise.
1366 (vmovn_high_s32): Likewise.
1367 (vmovn_high_s64): Likewise.
1368 (vmovn_high_u16): Likewise.
1369 (vmovn_high_u32): Likewise.
1370 (vmovn_high_u64): Likewise.
1371 (vmovn_s16): Likewise.
1372 (vmovn_s32): Likewise.
1373 (vmovn_s64): Likewise.
1374 (vmovn_u16): Likewise.
1375 (vmovn_u32): Likewise.
1376 (vmovn_u64): Likewise.
1377 (vmull_high_n_s16): Likewise.
1378 (vmull_high_n_s32): Likewise.
1379 (vmull_high_n_u16): Likewise.
1380 (vmull_high_n_u32): Likewise.
1381 (vmull_high_p8): Likewise.
1382 (vmull_high_s8): Likewise.
1383 (vmull_high_s16): Likewise.
1384 (vmull_high_s32): Likewise.
1385 (vmull_high_u8): Likewise.
1386 (vmull_high_u16): Likewise.
1387 (vmull_high_u32): Likewise.
1388 (vmull_n_s16): Likewise.
1389 (vmull_n_s32): Likewise.
1390 (vmull_n_u16): Likewise.
1391 (vmull_n_u32): Likewise.
1392 (vmull_p8): Likewise.
1393 (vmull_s8): Likewise.
1394 (vmull_s16): Likewise.
1395 (vmull_s32): Likewise.
1396 (vmull_u8): Likewise.
1397 (vmull_u16): Likewise.
1398 (vmull_u32): Likewise.
1399 (vpadal_s8): Likewise.
1400 (vpadal_s16): Likewise.
1401 (vpadal_s32): Likewise.
1402 (vpadal_u8): Likewise.
1403 (vpadal_u16): Likewise.
1404 (vpadal_u32): Likewise.
1405 (vpadalq_s8): Likewise.
1406 (vpadalq_s16): Likewise.
1407 (vpadalq_s32): Likewise.
1408 (vpadalq_u8): Likewise.
1409 (vpadalq_u16): Likewise.
1410 (vpadalq_u32): Likewise.
1411 (vpaddl_s8): Likewise.
1412 (vpaddl_s16): Likewise.
1413 (vpaddl_s32): Likewise.
1414 (vpaddl_u8): Likewise.
1415 (vpaddl_u16): Likewise.
1416 (vpaddl_u32): Likewise.
1417 (vpaddlq_s8): Likewise.
1418 (vpaddlq_s16): Likewise.
1419 (vpaddlq_s32): Likewise.
1420 (vpaddlq_u8): Likewise.
1421 (vpaddlq_u16): Likewise.
1422 (vpaddlq_u32): Likewise.
1423 (vpaddq_s8): Likewise.
1424 (vpaddq_s16): Likewise.
1425 (vpaddq_s32): Likewise.
1426 (vpaddq_s64): Likewise.
1427 (vpaddq_u8): Likewise.
1428 (vpaddq_u16): Likewise.
1429 (vpaddq_u32): Likewise.
1430 (vpaddq_u64): Likewise.
1431 (vqdmulh_n_s16): Likewise.
1432 (vqdmulh_n_s32): Likewise.
1433 (vqdmulhq_n_s16): Likewise.
1434 (vqdmulhq_n_s32): Likewise.
1435 (vqmovn_high_s16): Likewise.
1436 (vqmovn_high_s32): Likewise.
1437 (vqmovn_high_s64): Likewise.
1438 (vqmovn_high_u16): Likewise.
1439 (vqmovn_high_u32): Likewise.
1440 (vqmovn_high_u64): Likewise.
1441 (vqmovun_high_s16): Likewise.
1442 (vqmovun_high_s32): Likewise.
1443 (vqmovun_high_s64): Likewise.
1444 (vqrdmulh_n_s16): Likewise.
1445 (vqrdmulh_n_s32): Likewise.
1446 (vqrdmulhq_n_s16): Likewise.
1447 (vqrdmulhq_n_s32): Likewise.
1448 (vrsqrte_u32): Likewise.
1449 (vrsqrteq_u32): Likewise.
1450 (vtst_p8): Likewise.
1451 (vtst_p16): Likewise.
1452 (vtst_p64): Likewise.
1453 (vtstq_p8): Likewise.
1454 (vtstq_p16): Likewise.
1455 (vtstq_p64): Likewise.
1456 (vaddlv_s32): Likewise.
1457 (vaddlv_u32): Likewise.
1458 (vqtbl1_p8): Likewise.
1459 (vqtbl1_s8): Likewise.
1460 (vqtbl1_u8): Likewise.
1461 (vqtbl1q_p8): Likewise.
1462 (vqtbl1q_s8): Likewise.
1463 (vqtbl1q_u8): Likewise.
1464 (vqtbx1_s8): Likewise.
1465 (vqtbx1_u8): Likewise.
1466 (vqtbx1_p8): Likewise.
1467 (vqtbx1q_s8): Likewise.
1468 (vqtbx1q_u8): Likewise.
1469 (vqtbx1q_p8): Likewise.
1470 (vtbl1_s8): Likewise.
1471 (vtbl1_u8): Likewise.
1472 (vtbl1_p8): Likewise.
1473 (vtbl2_s8): Likewise.
1474 (vtbl2_u8): Likewise.
1475 (vtbl2_p8): Likewise.
1476 (vtbl3_s8): Likewise.
1477 (vtbl3_u8): Likewise.
1478 (vtbl3_p8): Likewise.
1479 (vtbl4_s8): Likewise.
1480 (vtbl4_u8): Likewise.
1481 (vtbl4_p8): Likewise.
1482 (vtbx2_s8): Likewise.
1483 (vtbx2_u8): Likewise.
1484 (vtbx2_p8): Likewise.
1485 (vld1_f32): Likewise.
1486 (vld1_f64): Likewise.
1487 (vld1_p8): Likewise.
1488 (vld1_p16): Likewise.
1489 (vld1_p64): Likewise.
1490 (vld1_s8): Likewise.
1491 (vld1_s16): Likewise.
1492 (vld1_s32): Likewise.
1493 (vld1_s64): Likewise.
1494 (vld1_u8): Likewise.
1495 (vld1_u16): Likewise.
1496 (vld1_u32): Likewise.
1497 (vld1_u64): Likewise.
1498 (vld1q_f32): Likewise.
1499 (vld1q_f64): Likewise.
1500 (vld1q_p8): Likewise.
1501 (vld1q_p16): Likewise.
1502 (vld1q_p64): Likewise.
1503 (vld1q_s8): Likewise.
1504 (vld1q_s16): Likewise.
1505 (vld1q_s32): Likewise.
1506 (vld1q_s64): Likewise.
1507 (vld1q_u8): Likewise.
1508 (vld1q_u16): Likewise.
1509 (vld1q_u32): Likewise.
1510 (vld1q_u64): Likewise.
1511 (vpmax_s8): Likewise.
1512 (vpmax_s16): Likewise.
1513 (vpmax_s32): Likewise.
1514 (vpmax_u8): Likewise.
1515 (vpmax_u16): Likewise.
1516 (vpmax_u32): Likewise.
1517 (vpmaxq_s8): Likewise.
1518 (vpmaxq_s16): Likewise.
1519 (vpmaxq_s32): Likewise.
1520 (vpmaxq_u8): Likewise.
1521 (vpmaxq_u16): Likewise.
1522 (vpmaxq_u32): Likewise.
1523 (vpmax_f32): Likewise.
1524 (vpmaxq_f32): Likewise.
1525 (vpmaxq_f64): Likewise.
1526 (vpmaxqd_f64): Likewise.
1527 (vpmaxs_f32): Likewise.
1528 (vpmaxnm_f32): Likewise.
1529 (vpmaxnmq_f32): Likewise.
1530 (vpmaxnmq_f64): Likewise.
1531 (vpmaxnmqd_f64): Likewise.
1532 (vpmaxnms_f32): Likewise.
1533 (vpmin_s8): Likewise.
1534 (vpmin_s16): Likewise.
1535 (vpmin_s32): Likewise.
1536 (vpmin_u8): Likewise.
1537 (vpmin_u16): Likewise.
1538 (vpmin_u32): Likewise.
1539 (vpminq_s8): Likewise.
1540 (vpminq_s16): Likewise.
1541 (vpminq_s32): Likewise.
1542 (vpminq_u8): Likewise.
1543 (vpminq_u16): Likewise.
1544 (vpminq_u32): Likewise.
1545 (vpmin_f32): Likewise.
1546 (vpminq_f32): Likewise.
1547 (vpminq_f64): Likewise.
1548 (vpminqd_f64): Likewise.
1549 (vpmins_f32): Likewise.
1550 (vpminnm_f32): Likewise.
1551 (vpminnmq_f32): Likewise.
1552 (vpminnmq_f64): Likewise.
1553 (vpminnmqd_f64): Likewise.
1554 (vpminnms_f32): Likewise.
1555 (vmla_f32): Likewise.
1556 (vmlaq_f32): Likewise.
1557 (vmlaq_f64): Likewise.
1558 (vmls_f32): Likewise.
1559 (vmlsq_f32): Likewise.
1560 (vmlsq_f64): Likewise.
1561 (vqtbl2_s8): Likewise.
1562 (vqtbl2_u8): Likewise.
1563 (vqtbl2_p8): Likewise.
1564 (vqtbl2q_s8): Likewise.
1565 (vqtbl2q_u8): Likewise.
1566 (vqtbl2q_p8): Likewise.
1567 (vqtbl3_s8): Likewise.
1568 (vqtbl3_u8): Likewise.
1569 (vqtbl3_p8): Likewise.
1570 (vqtbl3q_s8): Likewise.
1571 (vqtbl3q_u8): Likewise.
1572 (vqtbl3q_p8): Likewise.
1573 (vqtbl4_s8): Likewise.
1574 (vqtbl4_u8): Likewise.
1575 (vqtbl4_p8): Likewise.
1576 (vqtbl4q_s8): Likewise.
1577 (vqtbl4q_u8): Likewise.
1578 (vqtbl4q_p8): Likewise.
1579 (vqtbx2_s8): Likewise.
1580 (vqtbx2_u8): Likewise.
1581 (vqtbx2_p8): Likewise.
1582 (vqtbx2q_s8): Likewise.
1583 (vqtbx2q_u8): Likewise.
1584 (vqtbx2q_p8): Likewise.
1585 (vqtbx3_s8): Likewise.
1586 (vqtbx3_u8): Likewise.
1587 (vqtbx3_p8): Likewise.
1588 (vqtbx3q_s8): Likewise.
1589 (vqtbx3q_u8): Likewise.
1590 (vqtbx3q_p8): Likewise.
1591 (vqtbx4_s8): Likewise.
1592 (vqtbx4_u8): Likewise.
1593 (vqtbx4_p8): Likewise.
1594 (vqtbx4q_s8): Likewise.
1595 (vqtbx4q_u8): Likewise.
1596 (vqtbx4q_p8): Likewise.
1597 (vrev16_p8): Likewise.
1598 (vrev16_s8): Likewise.
1599 (vrev16_u8): Likewise.
1600 (vrev16q_p8): Likewise.
1601 (vrev16q_s8): Likewise.
1602 (vrev16q_u8): Likewise.
1603 (vrev32_p8): Likewise.
1604 (vrev32_p16): Likewise.
1605 (vrev32_s8): Likewise.
1606 (vrev32_s16): Likewise.
1607 (vrev32_u8): Likewise.
1608 (vrev32_u16): Likewise.
1609 (vrev32q_p8): Likewise.
1610 (vrev32q_p16): Likewise.
1611 (vrev32q_s8): Likewise.
1612 (vrev32q_s16): Likewise.
1613 (vrev32q_u8): Likewise.
1614 (vrev32q_u16): Likewise.
1615 (vrev64_f32): Likewise.
1616 (vrev64_p8): Likewise.
1617 (vrev64_p16): Likewise.
1618 (vrev64_s8): Likewise.
1619 (vrev64_s16): Likewise.
1620 (vrev64_s32): Likewise.
1621 (vrev64_u8): Likewise.
1622 (vrev64_u16): Likewise.
1623 (vrev64_u32): Likewise.
1624 (vrev64q_f32): Likewise.
1625 (vrev64q_p8): Likewise.
1626 (vrev64q_p16): Likewise.
1627 (vrev64q_s8): Likewise.
1628 (vrev64q_s16): Likewise.
1629 (vrev64q_s32): Likewise.
1630 (vrev64q_u8): Likewise.
1631 (vrev64q_u16): Likewise.
1632 (vrev64q_u32): Likewise.
1633 (vsha1cq_u32): Likewise.
1634 (vsha1mq_u32): Likewise.
1635 (vsha1pq_u32): Likewise.
1636 (vsha1h_u32): Likewise.
1637 (vsha1su0q_u32): Likewise.
1638 (vsha1su1q_u32): Likewise.
1639 (vsha256hq_u32): Likewise.
1640 (vsha256h2q_u32): Likewise.
1641 (vsha256su0q_u32): Likewise.
1642 (vsha256su1q_u32): Likewise.
1643 (vmull_p64): Likewise.
1644 (vmull_high_p64): Likewise.
1645 (vsqrt_f32): Likewise.
1646 (vsqrtq_f32): Likewise.
1647 (vsqrt_f64): Likewise.
1648 (vsqrtq_f64): Likewise.
1649 (vst1_f32): Likewise.
1650 (vst1_f64): Likewise.
1651 (vst1_p8): Likewise.
1652 (vst1_p16): Likewise.
1653 (vst1_p64): Likewise.
1654 (vst1_s8): Likewise.
1655 (vst1_s16): Likewise.
1656 (vst1_s32): Likewise.
1657 (vst1_s64): Likewise.
1658 (vst1_u8): Likewise.
1659 (vst1_u16): Likewise.
1660 (vst1_u32): Likewise.
1661 (vst1_u64): Likewise.
1662 (vst1q_f32): Likewise.
1663 (vst1q_f64): Likewise.
1664 (vst1q_p8): Likewise.
1665 (vst1q_p16): Likewise.
1666 (vst1q_p64): Likewise.
1667 (vst1q_s8): Likewise.
1668 (vst1q_s16): Likewise.
1669 (vst1q_s32): Likewise.
1670 (vst1q_s64): Likewise.
1671 (vst1q_u8): Likewise.
1672 (vst1q_u16): Likewise.
1673 (vst1q_u32): Likewise.
1674 (vst1q_u64): Likewise.
1675 (vst1_s64_x2): Likewise.
1676 (vst1_u64_x2): Likewise.
1677 (vst1_f64_x2): Likewise.
1678 (vst1_s8_x2): Likewise.
1679 (vst1_p8_x2): Likewise.
1680 (vst1_s16_x2): Likewise.
1681 (vst1_p16_x2): Likewise.
1682 (vst1_s32_x2): Likewise.
1683 (vst1_u8_x2): Likewise.
1684 (vst1_u16_x2): Likewise.
1685 (vst1_u32_x2): Likewise.
1686 (vst1_f16_x2): Likewise.
1687 (vst1_f32_x2): Likewise.
1688 (vst1_p64_x2): Likewise.
1689 (vst1q_s8_x2): Likewise.
1690 (vst1q_p8_x2): Likewise.
1691 (vst1q_s16_x2): Likewise.
1692 (vst1q_p16_x2): Likewise.
1693 (vst1q_s32_x2): Likewise.
1694 (vst1q_s64_x2): Likewise.
1695 (vst1q_u8_x2): Likewise.
1696 (vst1q_u16_x2): Likewise.
1697 (vst1q_u32_x2): Likewise.
1698 (vst1q_u64_x2): Likewise.
1699 (vst1q_f16_x2): Likewise.
1700 (vst1q_f32_x2): Likewise.
1701 (vst1q_f64_x2): Likewise.
1702 (vst1q_p64_x2): Likewise.
1703 (vst1_s64_x3): Likewise.
1704 (vst1_u64_x3): Likewise.
1705 (vst1_f64_x3): Likewise.
1706 (vst1_s8_x3): Likewise.
1707 (vst1_p8_x3): Likewise.
1708 (vst1_s16_x3): Likewise.
1709 (vst1_p16_x3): Likewise.
1710 (vst1_s32_x3): Likewise.
1711 (vst1_u8_x3): Likewise.
1712 (vst1_u16_x3): Likewise.
1713 (vst1_u32_x3): Likewise.
1714 (vst1_f16_x3): Likewise.
1715 (vst1_f32_x3): Likewise.
1716 (vst1_p64_x3): Likewise.
1717 (vst1q_s8_x3): Likewise.
1718 (vst1q_p8_x3): Likewise.
1719 (vst1q_s16_x3): Likewise.
1720 (vst1q_p16_x3): Likewise.
1721 (vst1q_s32_x3): Likewise.
1722 (vst1q_s64_x3): Likewise.
1723 (vst1q_u8_x3): Likewise.
1724 (vst1q_u16_x3): Likewise.
1725 (vst1q_u32_x3): Likewise.
1726 (vst1q_u64_x3): Likewise.
1727 (vst1q_f16_x3): Likewise.
1728 (vst1q_f32_x3): Likewise.
1729 (vst1q_f64_x3): Likewise.
1730 (vst1q_p64_x3): Likewise.
1731 (vst2_s64): Likewise.
1732 (vst2_u64): Likewise.
1733 (vst2_f64): Likewise.
1734 (vst2_s8): Likewise.
1735 (vst2_p8): Likewise.
1736 (vst2_s16): Likewise.
1737 (vst2_p16): Likewise.
1738 (vst2_s32): Likewise.
1739 (vst2_u8): Likewise.
1740 (vst2_u16): Likewise.
1741 (vst2_u32): Likewise.
1742 (vst2_f16): Likewise.
1743 (vst2_f32): Likewise.
1744 (vst2_p64): Likewise.
1745 (vst2q_s8): Likewise.
1746 (vst2q_p8): Likewise.
1747 (vst2q_s16): Likewise.
1748 (vst2q_p16): Likewise.
1749 (vst2q_s32): Likewise.
1750 (vst2q_s64): Likewise.
1751 (vst2q_u8): Likewise.
1752 (vst2q_u16): Likewise.
1753 (vst2q_u32): Likewise.
1754 (vst2q_u64): Likewise.
1755 (vst2q_f16): Likewise.
1756 (vst2q_f32): Likewise.
1757 (vst2q_f64): Likewise.
1758 (vst2q_p64): Likewise.
1759 (vst3_s64): Likewise.
1760 (vst3_u64): Likewise.
1761 (vst3_f64): Likewise.
1762 (vst3_s8): Likewise.
1763 (vst3_p8): Likewise.
1764 (vst3_s16): Likewise.
1765 (vst3_p16): Likewise.
1766 (vst3_s32): Likewise.
1767 (vst3_u8): Likewise.
1768 (vst3_u16): Likewise.
1769 (vst3_u32): Likewise.
1770 (vst3_f16): Likewise.
1771 (vst3_f32): Likewise.
1772 (vst3_p64): Likewise.
1773 (vst3q_s8): Likewise.
1774 (vst3q_p8): Likewise.
1775 (vst3q_s16): Likewise.
1776 (vst3q_p16): Likewise.
1777 (vst3q_s32): Likewise.
1778 (vst3q_s64): Likewise.
1779 (vst3q_u8): Likewise.
1780 (vst3q_u16): Likewise.
1781 (vst3q_u32): Likewise.
1782 (vst3q_u64): Likewise.
1783 (vst3q_f16): Likewise.
1784 (vst3q_f32): Likewise.
1785 (vst3q_f64): Likewise.
1786 (vst3q_p64): Likewise.
1787 (vst4_s64): Likewise.
1788 (vst4_u64): Likewise.
1789 (vst4_f64): Likewise.
1790 (vst4_s8): Likewise.
1791 (vst4_p8): Likewise.
1792 (vst4_s16): Likewise.
1793 (vst4_p16): Likewise.
1794 (vst4_s32): Likewise.
1795 (vst4_u8): Likewise.
1796 (vst4_u16): Likewise.
1797 (vst4_u32): Likewise.
1798 (vst4_f16): Likewise.
1799 (vst4_f32): Likewise.
1800 (vst4_p64): Likewise.
1801 (vst4q_s8): Likewise.
1802 (vst4q_p8): Likewise.
1803 (vst4q_s16): Likewise.
1804 (vst4q_p16): Likewise.
1805 (vst4q_s32): Likewise.
1806 (vst4q_s64): Likewise.
1807 (vst4q_u8): Likewise.
1808 (vst4q_u16): Likewise.
1809 (vst4q_u32): Likewise.
1810 (vst4q_u64): Likewise.
1811 (vst4q_f16): Likewise.
1812 (vst4q_f32): Likewise.
1813 (vst4q_f64): Likewise.
1814 (vst4q_p64): Likewise.
1815 (vtbx4_s8): Likewise.
1816 (vtbx4_u8): Likewise.
1817 (vtbx4_p8): Likewise.
1818 (vtrn_f32): Likewise.
1819 (vtrn_p8): Likewise.
1820 (vtrn_p16): Likewise.
1821 (vtrn_s8): Likewise.
1822 (vtrn_s16): Likewise.
1823 (vtrn_s32): Likewise.
1824 (vtrn_u8): Likewise.
1825 (vtrn_u16): Likewise.
1826 (vtrn_u32): Likewise.
1827 (vtrnq_f32): Likewise.
1828 (vtrnq_p8): Likewise.
1829 (vtrnq_p16): Likewise.
1830 (vtrnq_s8): Likewise.
1831 (vtrnq_s16): Likewise.
1832 (vtrnq_s32): Likewise.
1833 (vtrnq_u8): Likewise.
1834 (vtrnq_u16): Likewise.
1835 (vtrnq_u32): Likewise.
1836 (vrsqrte_f16): Likewise.
1837 (vrsqrteq_f16): Likewise.
1838 (vsqrt_f16): Likewise.
1839 (vsqrtq_f16): Likewise.
1840 (vabd_f16): Likewise.
1841 (vabdq_f16): Likewise.
1842 (vpadd_f16): Likewise.
1843 (vpaddq_f16): Likewise.
1844 (vpmax_f16): Likewise.
1845 (vpmaxq_f16): Likewise.
1846 (vpmaxnm_f16): Likewise.
1847 (vpmaxnmq_f16): Likewise.
1848 (vpmin_f16): Likewise.
1849 (vpminq_f16): Likewise.
1850 (vpminnm_f16): Likewise.
1851 (vpminnmq_f16): Likewise.
1852 (vrsqrts_f16): Likewise.
1853 (vrsqrtsq_f16): Likewise.
1855 2019-09-25 Richard Biener <rguenther@suse.de>
1857 PR tree-optimization/91896
1858 * tree-vect-loop.c (vectorizable_reduction): The single
1859 def-use cycle optimization cannot apply when there's more
1860 than one pattern stmt involved.
1862 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
1864 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
1865 the 'P' mode iterator, replacing the (removed) SI and DI variants.
1866 (reload_macho_picbase_<mode>): Likewise.
1868 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
1870 * config/rs6000/rs6000.md: Move darwin.md include until
1871 after the definition of the mode iterators.
1873 2019-09-23 Martin Sebor <msebor@redhat.com>
1875 PR tree-optimization/91570
1876 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
1877 non-constant minlen, maxlen and maxbound.
1879 2019-09-24 Richard Biener <rguenther@suse.de>
1881 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
1883 (_stmt_vec_info::cond_reduc_code): ... this.
1884 (_stmt_vec_info::induc_cond_initial_val): Add.
1885 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
1886 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
1887 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
1888 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
1889 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
1891 (vect_create_epilog_for_reduction): Drop special
1892 induction condition reduction params, pass in reduction code
1894 (vectorizable_reduction): Perform condition reduction kind
1895 selection only at analysis time. Adjust passing on state.
1897 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1899 * config/aarch64/aarch64.md (mov<mode>): Don't call
1900 aarch64_split_dimode_const_store on volatile MEM.
1902 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
1904 * config/aarch64/aarch64-option-extensions.def (fp16fml):
1905 Update hwcap string for fp16fml.
1907 2019-09-24 Jakub Jelinek <jakub@redhat.com>
1910 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
1911 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
1913 2019-09-24 Martin Liska <mliska@suse.cz>
1915 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
1916 instead of if-elseif-elseif-...
1917 * gimple-expr.c (extract_ops_from_tree): Likewise.
1918 * gimple.c (get_gimple_rhs_num_ops): Likewise.
1919 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
1921 2019-09-24 Martin Jambor <mjambor@suse.cz>
1924 * ipa-param-manipulation.c (carry_over_param): Make a method of
1925 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
1926 in case of a context mismatch.
1927 (ipa_param_body_adjustments::common_initialization): Adjust call to
1929 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
1930 private method carry_over_param.
1932 2019-09-24 Martin Jambor <mjambor@suse.cz>
1935 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
1937 2019-09-24 Richard Biener <rguenther@suse.de>
1939 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
1942 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1944 * config/arm/t-arm (arm-builtins.o): Add dependency on
1945 arm_acle_builtins.def.
1947 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
1950 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
1951 canonical CONST_INTs. Use gen_rtvec.
1953 2019-09-23 Richard Biener <rguenther@suse.de>
1955 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
1956 avoid adjusting by + 0 or * 1.
1957 (vect_create_epilog_for_reduction): Get reduction code only
1958 when necessary. Deal with adjustment_def only when necessary.
1960 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
1962 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
1965 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1968 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
1971 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
1973 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
1974 code. Merge code blocks with common conditionals. Use declared
1975 macro instead of a magic number for PIC level.
1977 2019-09-21 Martin Sebor <msebor@redhat.com>
1980 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
1981 Simplify computation of the offset of the referenced subobject.
1983 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
1985 * config/darwin.c (machopic_legitimize_pic_address): Check
1988 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
1990 * ira-conflicts.c (can_use_same_reg_p): New function.
1991 (process_reg_shuffles): Take an insn parameter. Ignore cases
1992 in which input operand op_num could seemingly never be allocated
1993 to the same register as the destination.
1994 (add_insn_allocno_copies): Update call to process_reg_shuffles.
1996 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
1998 * simplify-rtx.c (neg_const_int): Replace with...
1999 (neg_poly_int_rtx): ...this new function.
2000 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
2001 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
2002 (simplify_plus_minus): Likewise for constant terms here.
2004 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
2006 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
2007 HOST_WIDE_PRINT_UNSIGNED.
2009 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
2011 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
2014 2019-09-20 Maya Rashish <coypu@sdf.org>
2017 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
2018 Define to speculation_safe_value_not_needed.
2020 2019-09-20 Richard Biener <rguenther@suse.de>
2021 Uros Bizjak <ubizjak@gmail.com>
2024 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
2026 (general_scalar_chain::convert_op): Force not suitable memory
2027 operands to a register.
2029 2019-09-20 Richard Biener <rguenther@suse.de>
2031 PR tree-optimization/91821
2032 * tree-vect-loop.c (check_reduction_path): Check we can compute
2034 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
2035 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
2036 operands in canonical order.
2037 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2038 STMT_VINFO_REDUC_IDX.
2039 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
2040 (STMT_VINFO_REDUC_IDX): Likewise.
2042 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
2045 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2047 2019-09-20 Richard Biener <rguenther@suse.de>
2049 PR tree-optimization/91822
2050 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
2052 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
2053 for reduc_index in nested cycles, adjust vectorizable_condition
2055 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
2057 (vect_analyze_stmt): Adjust.
2058 (vect_transform_stmt): Likewise.
2060 2019-09-20 Richard Biener <rguenther@suse.de>
2063 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
2064 Ensure there's a sequence point between allocating the new register
2065 and passing a reference to a reg via regno_reg_rtx.
2067 2019-09-20 Martin Jambor <mjambor@suse.cz>
2069 * coretypes.h (cgraph_edge): Declare.
2070 * ipa-param-manipulation.c: Rewrite.
2071 * ipa-param-manipulation.h: Likewise.
2072 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
2073 (OBJS): Added ipa-sra.o.
2074 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
2075 and ref_p, added fields param_adjustments and performed_splits.
2076 (struct cgraph_clone_info): Remove ags_to_skip and
2077 combined_args_to_skip, new field param_adjustments.
2078 (cgraph_node::create_clone): Changed parameters to use
2079 ipa_param_adjustments.
2080 (cgraph_node::create_virtual_clone): Likewise.
2081 (cgraph_node::create_virtual_clone_with_body): Likewise.
2082 (tree_function_versioning): Likewise.
2083 (cgraph_build_function_type_skip_args): Removed.
2084 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
2085 using ipa_param_adjustments.
2086 (clone_of_p): Likewise.
2087 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
2088 (build_function_decl_skip_args): Likewise.
2089 (duplicate_thunk_for_node): Adjust parameters using
2090 ipa_param_body_adjustments, copy param_adjustments instead of
2092 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
2093 (cgraph_node::create_virtual_clone): Likewise.
2094 (cgraph_node::create_version_clone_with_body): Likewise.
2095 (cgraph_materialize_clone): Likewise.
2096 (symbol_table::materialize_all_clones): Likewise.
2097 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
2098 ipa_replace_map check.
2099 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
2100 (initialize_node_lattices): Make aware that some parameters might have
2101 already been removed.
2102 (want_remove_some_param_p): New function.
2103 (create_specialized_node): Convert to using ipa_param_adjustments and
2104 deal with possibly pre-existing adjustments.
2105 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
2106 (output_node_opt_summary): Do not stream removed fields. Stream
2107 parameter adjustments instead of argumetns to skip.
2108 (input_node_opt_summary): Likewise.
2109 (input_node_opt_summary): Likewise.
2110 * lto-section-in.c (lto_section_name): Added ipa-sra section.
2111 * lto-streamer.h (lto_section_type): Likewise.
2112 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
2114 (copy_decl_to_var): Declare.
2115 * tree-inline.c (update_clone_info): Do not remap old_tree.
2116 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
2117 statements, walk all extra generated statements and remap their
2119 (redirect_all_calls): Add killed SSA names to a hash set.
2120 (remap_ssa_name): Do not remap killed SSA names.
2121 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
2122 half of functionality moved to ipa_param_body_adjustments.
2123 (copy_decl_to_var): Make exported.
2124 (copy_body): Destroy killed_new_ssa_names hash set.
2125 (expand_call_inline): Remap performed splits.
2126 (update_clone_info): Likewise.
2127 (tree_function_versioning): Simplify tree_map processing. Updated to
2128 accept ipa_param_adjustments and use ipa_param_body_adjustments.
2129 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
2130 for the new interface.
2131 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
2132 (simd_clone_compute_base_data_type): Likewise.
2133 (simd_clone_init_simd_arrays): Adjust for the new interface.
2134 (simd_clone_adjust_argument_types): Likewise.
2135 (struct modify_stmt_info): Likewise.
2136 (ipa_simd_modify_stmt_ops): Likewise.
2137 (ipa_simd_modify_function_body): Likewise.
2138 (simd_clone_adjust): Likewise.
2139 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
2140 (type_internals_preclude_sra_p): Make public.
2141 * tree-sra.h: New file.
2142 * ipa-inline-transform.c (save_inline_function_body): Update to
2143 refelct new tree_function_versioning signature.
2144 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
2145 ipa_param_adjustments to get current parameter indices.
2146 (ipcp_modif_dom_walker::before_dom_children): Likewise.
2147 (ipcp_update_bits): Likewise.
2148 (ipcp_update_vr): Likewise.
2149 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
2150 * ipa-sra.c: New file.
2151 * multiple_target.c (create_target_clone): Update to reflet new type
2152 of create_version_clone_with_body.
2153 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
2154 tree_function_versioning.
2155 (modify_function): Update to reflect new type of
2156 tree_function_versioning.
2157 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
2158 * passes.def: Remove old IPA-SRA and add new one.
2159 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
2160 (make_pass_ipa_sra): Declare.
2161 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
2163 * doc/invoke.texi (ipa-sra-max-replacements): New.
2165 2019-09-19 Martin Sebor <msebor@redhat.com>
2168 * builtins.c (component_size): Correct trailing array computation,
2169 rename to component_ref_size and move...
2170 (compute_objsize): Adjust.
2171 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
2172 (builtin_access::strict): Do not consider memmove.
2173 (builtin_access::write_off): New function.
2174 (builtin_memref::builtin_memref): Initialize refsize.
2175 (builtin_memref::set_base_and_offset): Adjust refoff and compute
2177 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
2179 (builtin_access::builtin_access): Initialize dstoff to destination
2180 refeence offset here instead of in maybe_diag_overlap. Adjust
2181 referencess even to unrelated objects. Adjust sizrange of bounded
2182 string functions to reflect bound. For strcat, adjust destination
2183 sizrange by that of source.
2184 (builtin_access::strcat_overlap): Adjust offsets and sizes
2185 to reflect the increase in destination sizrange above.
2186 (builtin_access::overlap): Do not set dstoff here but instead
2187 in builtin_access::builtin_access.
2188 (check_bounds_or_overlap): Use builtin_access::write_off.
2189 (maybe_diag_access_bounds): Add argument. Add informational notes.
2190 (dump_builtin_memref, dump_builtin_access): New functions.
2191 * tree.c (component_ref_size): ...to here.
2192 * tree.h (component_ref_size): Declare.
2193 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
2194 nul in the size of the source string.
2196 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
2199 * doc/cpp.texi: Document support for extended characters in
2201 * doc/cppopts.texi: Likewise.
2203 2019-09-19 Richard Biener <rguenther@suse.de>
2205 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
2206 (check_reduction_path): New overload having the path as result.
2207 (vect_is_simple_reduction): From the detected reduction
2208 path build a SLP reduction chain if possible.
2210 2019-09-19 Richard Biener <rguenther@suse.de>
2213 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
2214 Force operand to a register if it isn't nonimmediate_operand.
2216 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
2218 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
2219 * config/arm/iterators.md (optab): Add and, ior, xor entries.
2220 (logical_op): Remove code attribute.
2221 (logical_OP): Likewise.
2223 2019-09-19 Martin Liska <mliska@suse.cz>
2225 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
2228 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
2230 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
2233 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
2234 for NE comparison of TImode values.
2235 (aarch64_emit_load_exclusive): Add support for TImode.
2236 (aarch64_emit_store_exclusive): Likewise.
2237 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
2238 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
2239 Change iterator from ALLI to ALLI_TI.
2240 (@atomic_compare_and_swap<JUST_TI>): New.
2241 (@atomic_compare_and_swap<JUST_TI>_lse): New.
2242 (aarch64_load_exclusive_pair): New.
2243 (aarch64_store_exclusive_pair): New.
2244 * config/aarch64/iterators.md (JUST_TI): New.
2246 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
2247 strong_zero_p for aarch64_track_speculation; unify some code paths;
2248 use aarch64_gen_compare_reg instead of open-coding.
2250 * config/aarch64/aarch64.opt (-moutline-atomics): New.
2251 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
2252 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
2253 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
2254 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
2255 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
2256 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
2257 (atomic_<atomic_op><ALLI>): Likewise.
2258 (atomic_fetch_<atomic_op><ALLI>): Likewise.
2259 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
2260 * doc/invoke.texi: Document -moutline-atomics.
2262 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
2264 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
2265 trivial predicate for condition branch.
2266 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
2268 (compute_bb_predicates): Update predicate based on post-dominating
2270 (analyze_function_body): Calculate post-dominating information.
2272 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
2274 * tree-vectorizer.h (vectorizable_condition): Take an int
2275 reduction index instead of a boolean flag.
2276 * tree-vect-stmts.c (vectorizable_condition): Likewise.
2277 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
2278 reductions if the reduction accumulator is the "then" rather
2279 than the "else" value.
2280 (vect_analyze_stmt): Update call accordingly.
2281 (vect_transform_stmt): Likewise.
2282 * tree-vect-loop.c (vectorizable_reduction): Likewise,
2283 asserting that the index is > 0.
2285 2019-09-19 Martin Liska <mliska@suse.cz>
2287 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
2288 (sort_congruence_classes_by_decl_uid): Likewise.
2289 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
2291 (sem_item_optimizer::merge_classes): Likewise.
2293 2019-09-19 Richard Biener <rguenther@suse.de>
2295 PR tree-optimization/91812
2296 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
2299 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
2301 * defaults.h (TARGET_UNIT): New macro.
2302 (target_unit): New type.
2303 * rtl.h (native_encode_rtx, native_decode_rtx)
2304 (native_decode_vector_rtx, subreg_size_lsb): Declare.
2305 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
2306 * rtlanal.c (subreg_lsb_1): Delete.
2307 (subreg_size_lsb): New function.
2308 * simplify-rtx.c: Include rtx-vector-builder.h
2309 (simplify_immed_subreg): Delete.
2310 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
2311 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
2313 (simplify_subreg): Use them.
2314 (test_vector_subregs_modes, test_vector_subregs_repeating)
2315 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
2316 (test_vector_subregs): New functions.
2317 (test_vector_ops): Call test_vector_subregs for integer vector
2318 modes with at least 2 elements.
2320 2019-09-19 Richard Biener <rguenther@suse.de>
2322 * tree-parloops.c (parloops_is_slp_reduction): Do not set
2323 LOOP_VINFO_OPERANDS_SWAPPED.
2324 (parloops_is_simple_reduction): Likewise.
2325 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
2326 initialize operands_swapped.
2327 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
2328 (vect_is_slp_reduction): Do not swap operands.
2329 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
2330 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
2332 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
2335 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
2336 Add avx_partial_xmm_update.
2338 2019-09-18 Jim Wilson <jimw@sifive.com>
2341 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
2342 (riscv_move_integer): Likewise.
2343 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
2344 riscv_move_integer arg.
2345 (riscv_legitimize_move): Likewise.
2346 (riscv_force_temporary): New parameter in_splitter. Don't call
2348 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
2350 (riscv_add_offset): Likewise.
2351 (riscv_split_symbol): New parameter in_splitter. Pass to
2352 riscv_force_temporary.
2353 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
2355 (riscv_move_integer): New parameter in_splitter. New local
2356 can_create_psuedo. Don't call riscv_split_integer or force_reg when
2358 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
2359 riscv_split_symbol, and riscv_force_temporary args.
2360 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
2361 riscv_move_integer arg.
2362 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
2364 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
2367 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
2368 hard register store cost to 6.
2370 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
2373 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
2374 pseudo register store cost from 3 to 6 to make it the same as
2377 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2380 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
2381 (one_cmpldi2): Likewise.
2382 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
2383 of the constant parts is simple.
2384 * config/arm/iterators.md (LOGICAL): Add new code iterator.
2385 (logical_op): Add new code attribute.
2386 (logical_OP): Likewise.
2387 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
2388 (arm_iordi_operand): Add predicate.
2389 (arm_xordi_operand): Add predicate.
2391 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2393 * config/arm/arm.md (maddsidi4): Remove expander.
2394 (mulsidi3adddi): Remove pattern.
2395 (mulsidi3adddi_v6): Likewise.
2396 (mulsidi3_nov6): Likewise.
2397 (mulsidi3_v6): Likewise.
2398 (umulsidi3): Remove expander.
2399 (umulsidi3_nov6): Remove pattern.
2400 (umulsidi3_v6): Likewise.
2401 (umulsidi3adddi): Likewise.
2402 (umulsidi3adddi_v6): Likewise.
2403 (<Us>mulsidi3): Add combined expander.
2404 (<Us>maddsidi4): Likewise.
2405 (<US>mull): Add combined umull and smull pattern.
2406 (<US>mlal): Likewise.
2407 * config/arm/iterators.md (Us): Add new iterator.
2409 2019-09-18 Richard Biener <rguenther@suse.de>
2411 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
2413 (vectorize_fold_left_reduction): Remove assert.
2414 (vectorizable_reduction): Also expect COND_EXPR non-reduction
2415 operand in position 2. Remove assert.
2417 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2419 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
2420 (smulsi3_highpart_nov6): Remove pattern.
2421 (smulsi3_highpart_v6): Likewise.
2422 (umulsi3_highpart): Likewise.
2423 (umulsi3_highpart_nov6): Likewise.
2424 (umulsi3_highpart_v6): Likewise.
2425 (<US>mull_high): Add new combined multiply pattern.
2427 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
2429 * config/arm/arm.md (arm_mulsi3): Remove pattern.
2430 (arm_mulsi3_v6): Likewise.
2431 (mulsi3addsi_v6): Likewise.
2432 (mulsi3subsi): Likewise.
2433 (mul): Add new multiply pattern.
2437 2019-09-18 Richard Biener <rguenther@suse.de>
2439 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
2440 (parloops_valid_reduction_input_p): Copy from
2441 valid_reduction_input_p.
2442 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
2443 (parloops_needs_fold_left_reduction_p): Copy from
2444 needs_fold_left_reduction_p.
2445 (parloops_is_simple_reduction): Copy from
2446 vect_is_simple_reduction.
2447 (parloops_force_simple_reduction): Copy from
2448 vect_force_simple_reduction.
2449 (gather_scalar_reductions): Adjust.
2450 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
2451 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
2453 2019-09-18 Richard Biener <rguenther@suse.de>
2455 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
2456 * tree-vect-loop.c (get_initial_def_for_reduction): Make
2458 (vect_create_epilog_for_reduction): Remove dead code.
2460 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2462 * varasm.c (assemble_real): Generate canonical const_ints.
2464 2019-09-18 Richard Biener <rguenther@suse.de>
2467 * lto-streamer-in.c (input_eh_regions): Move EH init to
2468 lto_materialize_function.
2469 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2472 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2474 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
2477 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2479 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
2480 of checking specifically for INTEGER_CST.
2482 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2484 * stor-layout.c (compute_record_mode): Operate on poly_uint64
2485 sizes instead of uhwi sizes.
2487 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
2489 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
2490 (add_const_value_attribute): Handle CONST_POLY_INT.
2492 2019-09-18 Martin Liska <mliska@suse.cz>
2494 * dbgcnt.def (store_merging): New counter.
2495 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
2496 Use it in store merging.
2498 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2500 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
2502 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2503 * config/arm/arm.c (arm_sched_variable_issue): New function.
2504 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2506 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2508 * config/arm/types.md (no_reservation): New reservation.
2509 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
2511 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
2512 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
2513 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
2514 * config/arm/arm1020e.md (1020alu_op): Likewise.
2515 * config/arm/arm1026ejs.md (alu_op): Likewise.
2516 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
2517 * config/arm/arm926ejs.md (9_alu_op): Likewise.
2518 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
2519 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
2520 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2521 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2522 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
2523 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
2524 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
2525 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2526 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2527 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
2528 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
2529 * config/arm/fa526.md (526_alu_op): Likewise.
2530 * config/arm/fa606te.md (606te_alu_op): Likewise.
2531 * config/arm/fa626te.md (626te_alu_op): Likewise.
2532 * config/arm/fa726te.md (726te_alu_op): Likewise.
2533 * config/arm/xgene1.md (xgene1_nop): Likewise.
2535 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2537 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
2538 "no_insn" to "branch".
2540 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2542 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
2544 2019-09-17 Richard Biener <rguenther@suse.de>
2547 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
2548 was missing generate locations only once.
2550 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
2553 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
2555 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
2556 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
2557 for switch default case using range analysis information.
2559 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
2562 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
2563 mode attributed is supported by FDPIC.
2565 2019-09-17 Richard Biener <rguenther@suse.de>
2567 PR tree-optimization/91790
2568 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2569 use the correct DR for setting up realignment.
2571 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
2574 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
2575 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
2576 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
2577 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
2579 2019-09-16 Jason Merrill <jason@redhat.com>
2581 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
2583 2019-09-16 Martin Liska <mliska@suse.cz>
2585 * gimple-fold.c (or_comparisons_1): Remove rules moved
2587 * match.pd: ... here.
2589 2019-09-16 Martin Liska <mliska@suse.cz>
2591 * gimple-fold.c (or_comparisons_1): Remove rules
2593 * match.pd: ... here.
2595 2019-09-16 Martin Liska <mliska@suse.cz>
2597 * genmatch.c (dt_node::append_simplify): Do not print
2598 warning when we have duplicate patterns belonging
2599 to a same simplify rule.
2600 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
2601 (maybe_fold_comparisons_from_match_pd): Handle
2602 tcc_comparison as a results.
2603 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
2605 2019-09-16 Li Jia He <helijia@linux.ibm.com>
2606 Qi Feng <ffengqi@linux.ibm.com>
2609 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
2610 (x > y && x == XXX_MIN): Optimize into 'false'.
2611 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
2612 (x < y && x != XXX_MAX): Optimize into 'x < y'.
2613 (x < y && x == XXX_MAX): Optimize into 'false'.
2614 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
2615 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
2616 (x <= y || x != XXX_MIN): Optimize into 'true'.
2617 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
2618 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
2619 (x >= y || x != XXX_MAX): Optimize into 'true'.
2620 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
2622 2019-09-16 Li Jia He <helijia@linux.ibm.com>
2623 Martin Liska <mliska@suse.cz>
2625 * gimple-fold.c (and_comparisons_1): Add type as first
2627 (and_var_with_comparison): Likewise.
2628 (and_var_with_comparison_1): Likewise.
2629 (or_comparisons_1): Likewise.
2630 (or_var_with_comparison): Likewise.
2631 (or_var_with_comparison_1): Likewise.
2632 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
2633 (maybe_fold_or_comparisons): Likewise.
2634 (maybe_fold_comparisons_from_match_pd): New.
2635 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
2636 (maybe_fold_or_comparisons): Likewise.
2637 * gimple.c (gimple_size): Make it public and add num_ops argument.
2638 (gimple_init): New function.
2639 (gimple_alloc): Call gimple_init.
2640 * gimple.h (gimple_size): New.
2641 (gimple_init): Likewise.
2642 * tree-if-conv.c (fold_or_predicates): Pass type.
2643 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2644 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
2645 (optimize_vec_cond_expr): Likewise.
2646 (ovce_extract_ops): Return type of conditional expression.
2647 * tree-ssanames.c (init_ssa_name_imm_use): New.
2648 (make_ssa_name_fn): Use init_ssa_name_imm_use.
2649 * tree-ssanames.h (init_ssa_name_imm_use): New.
2651 2019-09-16 Richard Biener <rguenther@suse.de>
2653 PR tree-optimization/91756
2654 PR tree-optimization/87132
2655 * tree-ssa-alias.h (enum translate_flags): New.
2656 (get_continuation_for_phi): Use it instead of simple bool flag.
2657 (walk_non_aliased_vuses): Likewise.
2658 * tree-ssa-alias.c (maybe_skip_until): Adjust.
2659 (get_continuation_for_phi): When looking across backedges only
2660 disallow valueization.
2661 (walk_non_aliased_vuses): Adjust.
2662 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
2665 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
2668 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
2669 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2670 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2671 * target.def (have_count_reg_decr_p): New hook.
2672 (doloop_cost_for_generic): Likewise.
2673 (doloop_cost_for_address): Likewise.
2674 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
2675 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2676 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2677 * doc/tm.texi: Regenerate.
2678 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
2680 (record_group): Init doloop_p.
2681 (add_candidate_1): Add optional argument doloop, change the handlings
2683 (add_candidate): Likewise.
2684 (generic_predict_doloop_p): Update attribute.
2685 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
2686 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
2687 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
2689 (get_computation_cost): Update for doloop IV cand extra cost.
2690 (determine_group_iv_cost_cond): Update for doloop IV cand.
2691 (determine_iv_cost): Likewise.
2692 (ivopts_estimate_reg_pressure): Likewise.
2693 (may_eliminate_iv): Update handlings for doloop IV cand.
2694 (add_iv_candidate_for_doloop): New function.
2695 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
2696 (iv_ca_set_no_cp): Update for doloop IV cand.
2697 (iv_ca_set_cp): Likewise.
2698 (iv_ca_dump): Dump register cost.
2699 (find_doloop_use): New function.
2700 (analyze_and_mark_doloop_use): Likewise.
2701 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
2703 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
2706 * cse.c (cse_insn): Do not replace anything with a
2709 2019-09-13 Ian Lance Taylor <iant@golang.org>
2711 * doc/invoke.texi (Optimize Options): Fix typo.
2713 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
2715 PR tree-optimization/89386
2716 * config/i386/sse.md (smulhrs<mode>3): New expander.
2717 (smulhrsv4hi3): Ditto.
2719 2019-09-12 Richard Biener <rguenther@suse.de>
2721 PR tree-optimization/91750
2722 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
2723 in the type of the evolution.
2725 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
2727 PR tree-optimization/89386
2728 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
2729 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
2730 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
2731 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
2732 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
2733 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
2734 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
2735 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
2736 (su, r): Handle the unspecs above.
2737 (bt): New int attribute.
2738 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
2739 * internal-fn.c (first_commutative_argument): Commutativity info for
2741 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
2742 (umulhrs_optab): New optabs.
2743 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
2744 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
2745 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
2747 (vect_vect_recog_func_ptrs): Add it.
2749 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
2751 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
2754 2019-09-11 Nathan Sidwell <nathan@acm.org>
2756 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
2757 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
2759 2019-09-11 Richard Biener <rguenther@suse.de>
2761 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
2762 * lto-wrapper.c (merge_and_complain): Pick up -g.
2763 (append_compiler_options): Likewise.
2764 (run_gcc): Re-instantiate handling -g0 at link-time.
2765 * doc/invoke.texi (flto): Document debug info generation.
2767 2019-09-11 Richard Biener <rguenther@suse.de>
2769 PR tree-optimization/90387
2770 * vr-values.c (vr_values::extract_range_basic): After inlining
2771 simplify non-constant __builtin_constant_p to false.
2773 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
2775 PR rtl-optimization/89795
2776 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
2777 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
2779 2019-09-11 Jakub Jelinek <jakub@redhat.com>
2781 PR tree-optimization/91723
2782 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
2783 instead of pointer equality when checking if argument vectypes are
2787 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
2788 of get_nonzero_bits, only call it for integral types.
2790 2019-09-11 Richard Biener <rguenther@suse.de>
2793 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
2795 * match.pd: Add flag_unsafe_math_optimizations check
2796 before deciding on the widest type in a binary math operation.
2798 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2800 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
2801 and CALL_REALLY_USED_REGISTERS must be defined, and that
2802 CALL_REALLY_USED_REGISTERS is preferred.
2803 * doc/tm.texi: Regenerate.
2804 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
2805 (call_really_used_regs): Likewise.
2806 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
2807 CALL_REALLY_USED_REGISTERS are defined.
2808 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
2809 initial value if defined.
2810 (initial_call_really_used_regs): Delete.
2811 (saved_call_really_used_regs): Likewise.
2812 (CALL_REALLY_USED_REGNO_P): Likewise.
2813 (init_reg_sets): Remove handling of call_really_used_regs.
2814 (save_register_info, restore_register_info, globalize_reg): Likewise.
2815 (init_reg_sets_1): Likewise. Use call_used_regs instead of
2816 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
2817 outside operand_reg_set.
2818 (fix_register): Don't change call_used_regs if
2819 CALL_REALLY_USED_REGISTERS is defined.
2820 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
2821 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
2822 instead of call_really_used_regs.
2823 (csky_conditional_register_usage): Remove the old handling of
2824 call_used_regs and change the handling of call_really_used_regs
2825 to use call_used_regs instead.
2826 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
2827 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
2828 making a register fixed.
2829 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
2830 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
2831 instead of call_really_used_regs.
2832 (m32r_conditional_register_usage): Don't set call_used_regs when
2833 making a register fixed.
2834 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
2835 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
2836 instead of call_really_used_regs.
2837 (mips_interrupt_extra_call_saved_reg_p): Likewise.
2838 (mips_cfun_call_saved_reg_p): Likewise.
2839 (mips_swap_registers): Remove the old handling of call_used_regs
2840 and change the handling of call_really_used_regs to use call_used_regs
2842 (mips_conditional_register_usage): Likewise.
2843 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
2844 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
2845 instead of call_really_used_regs.
2846 (mn10300_get_live_callee_saved_regs): Likewise.
2847 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
2848 (mn10300_conditional_register_usage): Don't set call_used_regs when
2849 making a register fixed.
2850 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
2851 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2852 Remove the old handling of call_used_regs and change the handling
2853 of call_really_used_regs to use call_used_regs instead.
2854 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
2855 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
2856 instead of call_really_used_regs.
2857 (s390_register_info_gprtofpr, s390_register_info): Likewise.
2858 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
2859 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
2860 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
2861 (s390_conditional_register_usage): Remove the old handling of
2862 call_used_regs and change the handling of call_really_used_regs
2863 to use call_used_regs instead.
2864 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
2865 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
2866 (sh_fix_range, reg_unused_after): Likewise.
2867 (sh_conditional_register_usage): Remove the old handling of
2868 call_used_regs and change the handling of call_really_used_regs
2869 to use call_used_regs instead.
2870 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
2871 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
2872 call_used_regs when making a register fixed.
2873 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
2874 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
2875 call_used_regs when making a register fixed.
2876 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
2877 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
2878 set call_used_regs when making a register fixed.
2879 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
2880 * config/visium/visium.c (visium_conditional_register_usage): Remove
2881 the old handling of call_used_regs and change the handling of
2882 call_really_used_regs to use call_used_regs instead.
2884 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2886 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
2887 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
2888 * reginfo.c (call_used_regs): New macro.
2890 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2892 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
2894 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2895 (bpf_expand_epilogue): Likewise.
2896 * config/c6x/c6x.c (c6x_save_reg): Likewise.
2897 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2898 (ft32_expand_epilogue): Likewise.
2899 * config/i386/i386.c (ix86_save_reg): Likewise.
2900 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
2901 (moxie_expand_epilogue): Likewise.
2902 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2903 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2904 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2906 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2908 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
2909 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
2910 instead of testing call_used_regs directly.
2911 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
2912 (aarch64_components_for_bb): Likewise.
2913 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
2914 * config/arc/arc.c (arc_must_save_register): Likewise.
2915 (arc_epilogue_uses): Likewise.
2916 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
2917 (legitimize_pic_address, callee_saved_reg_p): Likewise.
2918 (arm_compute_save_reg0_reg12_mask): Likewise.
2919 (arm_compute_save_core_reg_mask): Likewise.
2920 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
2921 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
2922 (cmse_nonsecure_entry_clear_before_return): Likewise.
2923 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
2924 (arm_expand_epilogue): Likewise.
2925 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
2926 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
2927 (_reg_unused_after): Likewise.
2928 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
2929 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
2930 (add_to_reg, hwloop_optimize): Likewise.
2931 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2932 (bpf_expand_epilogue): Likewise.
2933 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
2934 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2935 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
2936 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
2937 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
2938 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
2939 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
2940 * config/frv/frv.c (frv_stack_info): Likewise.
2941 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
2942 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
2943 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
2944 (move_callee_saved_registers): Likewise.
2945 * config/h8300/h8300.c (byte_reg): Likewise.
2946 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
2947 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
2948 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
2949 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
2950 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
2951 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
2952 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
2953 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2954 * config/m32c/m32c.c (need_to_save): Likewise.
2955 * config/m68k/m68k.c (m68k_save_reg): Likewise.
2956 * config/mcore/mcore.c (calc_live_regs): Likewise.
2957 * config/microblaze/microblaze.c (microblaze_must_save_register):
2959 * config/mmix/mmix.c (mmix_local_regno): Likewise.
2960 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
2961 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
2962 (mmix_expand_epilogue): Likewise.
2963 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
2964 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
2965 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
2966 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
2967 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
2968 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
2969 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
2970 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
2971 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
2972 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
2973 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
2974 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
2975 * config/rl78/rl78.c (need_to_save): Likewise.
2976 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
2977 (rs6000_stack_info, generate_set_vrsave): Likewise.
2978 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
2979 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
2980 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2981 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2982 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
2983 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
2984 (save_local_or_in_reg_p): Likewise.
2985 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
2986 (xstormy16_epilogue_uses): Likewise.
2987 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2988 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2989 * config/v850/v850.c (compute_register_save_size): Likewise.
2990 * config/vax/vax.c (vax_expand_prologue): Likewise.
2991 * config/visium/visium.c (visium_save_reg_p): Likewise.
2992 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2993 * cselib.c (cselib_process_insn): Likewise.
2994 * df-scan.c (df_get_entry_block_def_set): Likewise.
2995 * function.c (aggregate_value_p): Likewise.
2996 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
2997 * ira-lives.c (process_bb_node_lives): Likewise.
2998 * ira.c (do_reload): Likewise.
2999 * lra-lives.c (process_bb_lives): Likewise.
3000 * lra-remat.c (lra_remat): Likewise.
3001 * lra.c (lra): Likewise.
3002 * postreload.c (reload_combine_recognize_pattern): Likewise.
3003 (reload_cse_move2add): Likewise.
3004 * recog.c (peep2_find_free_register): Likewise.
3005 * regrename.c (check_new_reg_p): Likewise.
3006 * reload.c (find_equiv_reg): Likewise.
3007 * reload1.c (reload, find_reg): Likewise.
3008 * sel-sched.c (init_hard_regs_data): Likewise.
3010 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3012 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
3013 regs_invalidated_by_call & ~fixed_reg_set instead of
3014 call_used_or_fixed_regs & ~fixed_reg_set.
3015 * config/sh/sh.c (output_stack_adjust): Likewise.
3017 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3019 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
3020 (call_used_reg_set): Delete.
3021 (call_used_or_fixed_regs): New macro.
3022 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
3023 of call_used_reg_set.
3024 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
3025 instead of call_used_regs.
3026 (save_call_clobbered_regs): Likewise.
3027 * cfgcleanup.c (old_insns_match_p): Likewise.
3028 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
3029 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
3031 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3032 * config/sh/sh.c (output_stack_adjust): Likewise.
3033 * final.c (collect_fn_hard_reg_usage): Likewise.
3034 * ira-build.c (ira_build): Likewise.
3035 * ira-color.c (calculate_saved_nregs): Likewise.
3036 (allocno_reload_assign, calculate_spill_cost): Likewise.
3037 * ira-conflicts.c (ira_build_conflicts): Likewise.
3038 * ira-costs.c (ira_tune_allocno_costs): Likewise.
3039 * ira-lives.c (process_bb_node_lives): Likewise.
3040 * ira.c (setup_reg_renumber): Likewise.
3041 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
3042 * lra-constraints.c (need_for_call_save_p): Likewise.
3043 (need_for_split_p, inherit_in_ebb): Likewise.
3044 * lra-lives.c (process_bb_lives): Likewise.
3045 * lra-remat.c (call_used_input_regno_present_p): Likewise.
3046 * postreload.c (reload_combine): Likewise.
3047 * regrename.c (find_rename_reg): Likewise.
3048 * reload1.c (reload_as_needed): Likewise.
3049 * rtlanal.c (find_all_hard_reg_sets): Likewise.
3050 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3051 * shrink-wrap.c (requires_stack_frame_p): Likewise.
3053 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3055 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
3056 (no_caller_save_reg_set): Delete.
3057 * caller-save.c (init_caller_save): Don't initialize it.
3058 * ira-conflicts.c (ira_build_conflicts): Calculate
3059 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
3061 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3063 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
3064 (target_hard_regs::x_savable_regs): New field.
3065 (call_fixed_reg_set): Delete.
3066 (savable_regs): New macro,
3067 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
3068 (init_reg_sets_1): Likewise. Initialize savable_regs.
3069 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
3070 for all registers. Set savable_regs instead of call_fixed_reg_set.
3071 (setup_save_areas, save_call_clobbered_regs): Replace uses of
3072 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
3073 * config/sh/sh.c (output_stack_adjust): Likewise.
3075 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3077 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
3078 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
3079 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
3081 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
3083 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
3084 * rtlanal.c (get_call_rtx_from): Likewise.
3085 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
3086 than the pattern to get_call_rtx_from.
3087 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
3088 an rtx_insn * instead of an rtx.
3089 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
3091 2019-09-10 Martin Liska <mliska@suse.cz>
3093 * common.opt: Use newly added WarnRemoved.
3094 * config/aarch64/aarch64.opt: Likewise.
3095 * config/arm/arm.opt: Likewise.
3096 * config/i386/i386.opt: Likewise.
3097 * config/ia64/ia64.opt: Likewise.
3098 * config/rs6000/rs6000.opt: Likewise.
3099 * doc/options.texi: Document WarnRemoved properly.
3100 * dwarf2out.c (gen_producer_string): Handle renamed
3101 OPT_SPECIAL_warn_removed.
3102 * lto-opts.c (lto_write_options): Likewise.
3103 * lto-wrapper.c (merge_and_complain): Likewise.
3104 * opts-common.c (decode_cmdline_option): Likewise.
3105 (prune_options): Likewise.
3106 (read_cmdline_option): Likewise.
3107 (control_warning_option): Likewise.
3108 * opts.c (print_filtered_help): Likewise.
3109 * optc-gen.awk: Parse for WarnRemoved and make usage
3110 of Deprecated an error.
3111 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
3113 2019-09-10 Arnaud Charlet <charlet@adacore.com>
3115 * doc/install.texi: Fix syntax for html generation.
3117 2019-09-10 Jakub Jelinek <jakub@redhat.com>
3120 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
3121 the shift type to type.
3123 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3125 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
3127 (stack_protect_combined_test_insn): Likewise.
3129 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3130 Mickaël Guêné <mickael.guene@st.com>
3132 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
3133 * config/arm/arm.md (FDPIC_REGNUM): New constant.
3134 (load_tp_soft_fdpic): New pattern.
3135 (load_tp_soft): Disable in FDPIC mode.
3137 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3138 Mickaël Guêné <mickael.guene@st.com>
3140 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
3141 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
3142 (arm_call_tls_get_addr): Add FDPIC support.
3143 (legitimize_tls_address): Likewise.
3144 (arm_emit_tls_decoration): Likewise.
3146 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3147 Mickaël Guêné <mickael.guene@st.com>
3149 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
3151 (arm_trampoline_init): Likewise.
3152 (arm_trampoline_adjust_address): Likewise.
3153 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
3155 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3156 Mickaël Guêné <mickael.guene@st.com>
3158 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
3159 (legitimize_pic_address): Enforce binding rules on function
3160 pointers in FDPIC mode.
3161 (arm_assemble_integer): Likewise.
3163 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3164 Mickaël Guêné <mickael.guene@st.com>
3166 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
3167 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
3170 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3171 Mickaël Guêné <mickael.guene@st.com>
3173 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
3176 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3177 Mickaël Guêné <mickael.guene@st.com>
3179 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
3181 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
3183 * config/arm/arm.c (arm_option_override): Define pic register to
3185 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
3186 have no decl or go through PLT.
3187 (calculate_pic_address_constant): New function.
3188 (legitimize_pic_address): Call calculate_pic_address_constant.
3189 (arm_load_pic_register): Handle TARGET_FDPIC.
3190 (arm_is_segment_info_known): New function.
3191 (arm_pic_static_addr): Add support for FDPIC.
3192 (arm_load_function_descriptor): New function.
3193 (arm_emit_call_insn): Add support for FDPIC.
3194 (arm_assemble_integer): Add support for FDPIC.
3195 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
3196 Define. (FDPIC_REGNUM): New define.
3197 * config/arm/arm.md (call): Add support for FDPIC.
3198 (call_value): Likewise.
3199 (restore_pic_register_after_call): New pattern.
3200 (untyped_call): Disable if FDPIC.
3201 (untyped_return): Likewise.
3202 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
3204 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3205 Mickaël Guêné <mickael.guene@st.com>
3207 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
3208 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
3209 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
3210 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
3211 (CC1_SPEC): Use FDPIC_CC1_SPEC.
3212 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
3213 * config/arm/uclinuxfdpiceabi.h: New file.
3215 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3217 * config.gcc: Handle *-*-uclinuxfdpiceabi.
3219 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
3220 Mickaël Guêné <mickael.guene@st.com>
3222 * config/arm/arm.opt: Add -mfdpic option.
3223 * doc/invoke.texi: Add documentation for -mfdpic.
3225 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
3227 * expmed.c (extract_bit_field): Update function comment
3229 * expr.c (expand_expr_real): Update function comment
3231 (expand_misaligned_mem_ref): New helper function.
3232 (expand_expr_real_2): Use expand_misaligned_mem_ref.
3233 Remove duplicate assignment to "base" at case MEM_REF.
3234 Remove a shadowed variable "unsignedp" at case VCE.
3236 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3238 * regset.h (regs_invalidated_by_call_regset): Delete.
3239 (fixed_reg_set_regset): Likewise.
3240 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
3241 (fixed_reg_set_regset, persistent_obstack): Likewise.
3242 (init_reg_sets_1, globalize_reg): Update accordingly.
3243 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
3244 instead of a bitmap.
3245 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
3246 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
3247 instead of regs_invalidated_by_call_regset.
3248 (df_lr_confluence_n, df_md_confluence_n): Likewise.
3249 * df-scan.c (df_scan_start_dump): Likewise.
3250 * dse.c (copy_fixed_regs): Likewise.
3251 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
3253 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3255 * array-traits.h: New file.
3256 * coretypes.h (array_traits, bitmap_view): New types.
3257 * bitmap.h: Include "array-traits.h"
3258 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
3259 (base_bitmap_view, bitmap_view): New classes.
3260 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
3261 * hard-reg-set.h: Include array-traits.h.
3262 (array_traits<HARD_REG_SET>): New struct.
3263 * regset.h (IOR_REG_SET_HRS): New macro.
3264 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
3265 rather than iterating over each hard register.
3266 * sched-deps.c (sched_analyze_insn): Likewise.
3267 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
3269 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3271 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
3272 instead of a HARD_REG_SET *.
3273 * ira-build.c (ior_hard_reg_conflicts): Likewise.
3274 (ira_build): Update call accordingly.
3275 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
3277 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3279 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
3280 (HARD_REG_SET::operator!=): Likewise.
3281 (hard_reg_set_equal_p): Delete.
3282 * cfgcleanup.c (old_insns_match_p): Use == instead of
3283 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
3284 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
3285 (add_allocno_hard_regs_to_forest): Likewise.
3286 (setup_allocno_available_regs_num): Likewise.
3287 * ira.c (setup_pressure_classes): Likewise.
3288 (setup_allocno_and_important_classes): Likewise.
3289 (setup_reg_class_relations): Likewise.
3290 * lra-lives.c (process_bb_lives): Likewise.
3291 * reg-stack.c (change_stack, convert_regs_1): Likewise.
3293 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3295 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
3296 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
3297 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
3298 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
3300 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
3301 * ira.c (setup_reg_renumber): Likewise.
3302 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3303 * regrename.c (regrename_find_superclass): Likewise.
3304 * reload1.c (find_reg): Likewise.
3306 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3308 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
3309 * caller-save.c (setup_save_areas): Use "&~" instead of
3310 AND_COMPL_HARD_REG_SET.
3311 (save_call_clobbered_regs): Likewise.
3312 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
3314 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3315 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3316 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
3317 * config/mips/mips.c (mips_class_max_nregs): Likewise.
3318 (mips_conditional_register_usage): Likewise.
3319 * config/sh/sh.c (output_stack_adjust): Likewise.
3320 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
3321 (setup_profitable_hard_regs): Likewise.
3322 (get_conflict_and_start_profitable_regs): Likewise.
3323 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3324 (ira_build_conflicts): Likewise.
3325 * ira-costs.c (restrict_cost_classes): Likewise.
3326 (setup_regno_cost_classes_by_aclass): Likewise.
3327 * ira-lives.c (process_bb_node_lives): Likewise.
3328 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
3329 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
3330 (setup_allocno_and_important_classes, setup_class_translate_array)
3331 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
3333 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3334 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3335 (process_alt_operands, inherit_in_ebb): Likewise.
3336 * lra-eliminations.c (update_reg_eliminate): Likewise.
3337 * lra-lives.c (process_bb_lives): Likewise.
3338 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
3339 * resource.c (find_dead_or_set_registers): Likewise.
3340 (mark_target_live_regs): Likewise.
3341 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
3342 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3343 (implicit_clobber_conflict_p): Likewise.
3344 * shrink-wrap.c (requires_stack_frame_p): Likewise.
3345 (try_shrink_wrapping): Likewise.
3347 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3349 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
3350 (HARD_REG_SET::operator|=): Likewise.
3351 (IOR_HARD_REG_SET): Delete.
3352 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
3354 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3355 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
3356 * final.c (collect_fn_hard_reg_usage): Likewise.
3357 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
3358 * ira-build.c (merge_hard_reg_conflicts): Likewise.
3359 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
3360 (propagate_some_info_from_allocno): Likewise.
3361 (copy_info_to_removed_store_destinations): Likewise.
3362 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
3363 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
3364 (fast_allocation): Likewise.
3365 * ira-conflicts.c (ira_build_conflicts): Likewise.
3366 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
3367 (process_bb_node_lives): Likewise.
3368 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
3369 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3370 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3371 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
3372 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
3373 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
3374 (process_bb_lives): Likewise.
3375 * lra-spills.c (assign_spill_hard_regs): Likewise.
3376 * postreload.c (reload_combine): Likewise.
3377 * reginfo.c (init_reg_sets_1): Likewise.
3378 * regrename.c (merge_overlapping_regs, find_rename_reg)
3379 (merge_chains): Likewise.
3380 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
3381 (find_reload_regs, finish_spills, choose_reload_regs_init)
3382 (emit_reload_insns): Likewise.
3383 * reorg.c (redundant_insn): Likewise.
3384 * resource.c (find_dead_or_set_registers, mark_set_resources)
3385 (mark_target_live_regs): Likewise.
3386 * rtlanal.c (find_all_hard_reg_sets): Likewise.
3387 * sched-deps.c (sched_analyze_insn): Likewise.
3388 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3389 (find_best_reg_for_expr): Likewise.
3390 * shrink-wrap.c (try_shrink_wrapping): Likewise.
3392 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3394 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
3395 (HARD_REG_SET::operator&): Likewise.
3396 (AND_HARD_REG_SET): Delete.
3397 * caller-save.c (setup_save_areas): Use "&" instead of
3399 (save_call_clobbered_regs): Likewise.
3400 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3401 * config/m32c/m32c.c (reduce_class): Likewise.
3402 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3403 * final.c (get_call_reg_set_usage): Likewise.
3404 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
3405 (setup_left_conflict_sizes_p): Likewise.
3406 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3407 (ira_build_conflicts): Likewise.
3408 * ira-costs.c (restrict_cost_classes): Likewise.
3409 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
3410 (setup_reg_class_relations): Likewise.
3411 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
3412 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
3413 * resource.c (find_dead_or_set_registers): Likewise.
3414 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3416 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3418 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
3419 (COMPL_HARD_REG_SET): Delete.
3420 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
3421 of COMPL_HARD_REG_SET.
3422 (try_rename_operands): Likewise.
3423 * config/sh/sh.c (push_regs): Likewise.
3424 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3425 * lra-constraints.c (contains_reg_p): Likewise.
3426 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
3428 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3430 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
3431 * caller-save.c (save_call_clobbered_regs): Use assignment instead
3432 of COPY_HARD_REG_SET.
3433 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
3434 (epiphany_conditional_register_usage): Likewise.
3435 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3436 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3437 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
3438 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3439 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
3440 * config/mips/mips.c (mips_class_max_nregs): Likewise.
3441 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
3442 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3443 * config/sh/sh.c (output_stack_adjust): Likewise.
3444 * final.c (collect_fn_hard_reg_usage): Likewise.
3445 (get_call_reg_set_usage): Likewise.
3446 * ira-build.c (ira_create_object, remove_low_level_allocnos)
3447 (ira_flattening): Likewise.
3448 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
3449 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
3450 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
3451 (ira_reassign_pseudos): Likewise.
3452 * ira-conflicts.c (print_allocno_conflicts): Likewise.
3453 (ira_build_conflicts): Likewise.
3454 * ira-costs.c (restrict_cost_classes): Likewise.
3455 (setup_regno_cost_classes_by_aclass): Likewise.
3456 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
3457 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
3458 (setup_stack_reg_pressure_class, setup_pressure_classes)
3459 (setup_allocno_and_important_classes, setup_class_translate_array)
3460 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
3461 (ira_setup_eliminable_regset): Likewise.
3462 * lra-assigns.c (find_hard_regno_for_1): Likewise.
3463 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3464 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3465 (process_alt_operands, inherit_in_ebb): Likewise.
3466 * lra-lives.c (process_bb_lives): Likewise.
3467 * lra-spills.c (assign_spill_hard_regs): Likewise.
3468 * lra.c (lra): Likewise.
3469 * mode-switching.c (new_seginfo): Likewise.
3470 * postreload.c (reload_combine): Likewise.
3471 * reg-stack.c (straighten_stack): Likewise.
3472 * reginfo.c (save_register_info, restore_register_info): Likewise.
3473 (init_reg_sets_1, record_subregs_of_mode): Likewise
3474 * regrename.c (create_new_chain, rename_chains): Likewise.
3475 * reload1.c (order_regs_for_reload, find_reg): Likewise.
3476 (find_reload_regs): Likewise.
3477 * resource.c (find_dead_or_set_registers): Likewise.
3478 (mark_target_live_regs): Likewise.
3479 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3481 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3483 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
3484 (note_pattern_stores): Declare.
3485 (note_stores): Take an rtx_insn *.
3486 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
3487 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
3488 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
3489 (note_stores): Take an rtx_insn * as argument and process
3490 CALL_INSN_FUNCTION_USAGE. Rename old function to...
3491 (note_pattern_stores): ...this.
3492 (find_first_parameter_load): Pass the insn rather than
3493 its pattern to note_stores.
3494 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
3495 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
3496 (insert_one_insn): Likewise.
3497 * combine.c (combine_instructions): Likewise.
3498 (likely_spilled_retval_p): Likewise.
3499 (try_combine): Use note_pattern_stores instead of note_stores.
3500 (record_dead_and_set_regs): Pass the insn rather than its pattern
3502 (reg_dead_at_p): Likewise.
3503 * config/bfin/bfin.c (workaround_speculation): Likewise.
3504 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
3506 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
3507 instead of note_stores.
3508 (frv_optimize_membar_local): Pass the insn rather than its pattern
3510 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3511 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
3512 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
3513 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
3514 (mips_reorg_process_insns): Likewise.
3515 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
3516 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
3518 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
3519 its pattern to note_stores.
3520 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
3522 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
3523 the insn to note_stores.
3524 (prescan_insns_for_dce): Update call accordingly.
3525 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
3527 * df-problems.c (can_move_insns_across): Likewise.
3528 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
3529 * function.c (assign_parm_setup_reg): Likewise.
3530 * gcse-common.c (record_last_mem_set_info_common): Likewise.
3531 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
3532 (single_set_gcse): Likewise.
3533 * ira.c (validate_equiv_mem): Likewise.
3534 (update_equiv_regs): Use note_pattern_stores rather than note_stores
3536 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
3537 pattern to note_stores.
3538 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3539 * loop-iv.c (simplify_using_initial_values): Likewise.
3540 * mode-switching.c (optimize_mode_switching): Likewise.
3541 * optabs.c (emit_libcall_block_1): Likewise.
3542 (expand_atomic_compare_and_swap): Likewise.
3543 * postreload-gcse.c (load_killed_in_block_p): Likewise.
3544 (record_opr_changes): Likewise. Remove explicit handling of
3545 CALL_INSN_FUNCTION_USAGE.
3546 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
3547 * regcprop.c (kill_clobbered_values): Likewise.
3548 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
3550 * regrename.c (build_def_use): Likewise.
3551 * reload1.c (reload): Use note_pattern_stores instead of note_stores
3552 for mark_not_eliminable.
3553 (reload_as_needed): Pass the insn rather than its pattern
3555 (emit_output_reload_insns): Likewise.
3556 * resource.c (mark_target_live_regs): Likewise.
3557 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3558 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
3559 instead of note_stores.
3560 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
3561 its pattern to note_stores.
3562 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
3563 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
3565 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3567 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
3568 than a #define. Use a structure rather than an array as the
3569 fallback definition. Remove special cases for low array sizes.
3570 (const_hard_reg_set): New typedef.
3571 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
3572 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
3573 (hard_reg_set_empty_p): Likewise.
3574 (SET_HARD_REG_BIT): Use a function rather than a macro to
3575 handle the case in which HARD_REG_SET is a structure.
3576 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
3577 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3578 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3579 (IOR_COMPL_HARD_REG_SET): Likewise.
3580 (hard_reg_set_iterator::pset): Constify the pointer target.
3581 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
3582 of a "const HARD_REG_SET". Update the handling of non-integer
3584 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
3585 * reload.h: Likewise.
3586 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
3587 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
3588 of a "const HARD_REG_SET".
3589 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
3590 (range_in_hard_reg_set_p): Likewise.
3591 * ira-costs.c (restrict_cost_classes): Likewise.
3592 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
3593 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
3594 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
3595 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
3596 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
3597 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
3598 take an unsigned int and open-code the HARD_REG_SET operations.
3600 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3602 * Makefile.in (OBJS): Remove bt-load.o.
3603 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
3604 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3605 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
3606 document that the option no longer does anything.
3607 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3608 * target.def (branch_target_register_class): Delete.
3609 (branch_target_register_callee_saved): Likewise.
3610 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3611 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3612 * doc/tm.texi: Regenerate.
3613 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
3614 (make_pass_branch_target_load_optimize2): Likewise.
3615 * passes.def (pass_branch_target_load_optimize1): Likewise.
3616 (pass_branch_target_load_optimize2): Likewise.
3617 * targhooks.h (default_branch_target_register_class): Likewise.
3618 * targhooks.c (default_branch_target_register_class): Likewise.
3619 * opt-suggestions.c (test_completion_valid_options): Remove
3620 -fbtr-bb-exclusive from the list of test options.
3621 * bt-load.c: Remove.
3623 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
3625 * match.pd: Add flag_unsafe_math_optimizations check
3626 before deciding on the widest type in a binary math operation.
3628 2019-09-09 Martin Liska <mliska@suse.cz>
3630 * config/i386/i386.opt: Update comment of removed
3631 options that are preserved only for backward
3634 2019-09-09 Jakub Jelinek <jakub@redhat.com>
3637 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
3641 * config/i386/avxintrin.h (__v32qs): New typedef.
3642 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
3645 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3647 * doc/invoke.texi (Option Summary): Cover eBPF.
3648 (eBPF Options): New section.
3649 * doc/extend.texi (BPF Built-in Functions): Likewise.
3650 (BPF Kernel Helpers): Likewise.
3652 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3654 * config.gcc: Support for bpf-*-* targets.
3655 * common/config/bpf/bpf-common.c: New file.
3656 * config/bpf/t-bpf: Likewise.
3657 * config/bpf/predicates.md: Likewise.
3658 * config/bpf/constraints.md: Likewise.
3659 * config/bpf/bpf.opt: Likewise.
3660 * config/bpf/bpf.md: Likewise.
3661 * config/bpf/bpf.h: Likewise.
3662 * config/bpf/bpf.c: Likewise.
3663 * config/bpf/bpf-protos.h: Likewise.
3664 * config/bpf/bpf-opts.h: Likewise.
3665 * config/bpf/bpf-helpers.h: Likewise.
3666 * config/bpf/bpf-helpers.def: Likewise.
3668 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3670 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3673 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3675 * opt-functions.awk (integer_range_info): Make sure values are in
3676 numeric context before operating with them.
3678 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
3680 * genemit.c (gen_split): Print the filename and line number where the
3681 splitter (or peephole2) was defined, to the dump file.
3683 2019-09-07 Jakub Jelinek <jakub@redhat.com>
3685 PR tree-optimization/91665
3686 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
3687 incompatible with the type of PHI result.
3689 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3692 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
3693 gen_unaligned_storedi for 4-byte aligned addresses.
3695 2019-09-06 Jim Wilson <jimw@sifive.com>
3697 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
3700 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
3702 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
3704 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
3706 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
3707 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
3709 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
3712 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
3713 cost of SSE->integer and integer->SSE moves from 2 to 6.
3716 2019-09-06 Jakub Jelinek <jakub@redhat.com>
3718 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
3719 before testing TYPE_TRANSPARENT_AGGR.
3720 * calls.c (initialize_argument_information, load_register_parameters):
3723 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
3725 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
3727 (cmp_ior): Likewise.
3729 2019-09-06 Martin Liska <mliska@suse.cz>
3731 * doc/match-and-simplify.texi: Separate tuples with ;.
3733 2019-09-06 Martin Liska <mliska@suse.cz>
3736 * Makefile.in: Remove tlink.o.
3737 * collect2.c (do_link): New function isolated
3740 * collect2.h (do_tlink): Remove declaration of do_tlink.
3741 * doc/extend.texi: Remove documentation of -frepo.
3742 * doc/invoke.texi: Likewise.
3743 * doc/sourcebuild.texi: Remove cleanup-repo-files.
3746 2019-09-05 Jakub Jelinek <jakub@redhat.com>
3747 Jim Wilson <jimw@sifive.com>
3750 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
3751 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
3752 paradoxical_subreg_p (operands[0]).
3753 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
3754 use as intermediate value.
3756 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
3758 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
3759 (sync_compare_and_swap<mode>_insn): Likewise.
3761 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3764 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
3765 without movmisalign optab.
3767 2019-09-05 Jakub Jelinek <jakub@redhat.com>
3772 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
3773 types, use type of their first field instead of type of
3776 2019-09-05 Richard Biener <rguenther@suse.de>
3778 PR rtl-optimization/91656
3779 * postreload-gcse.c (record_last_mem_set_info): Revert addition
3782 2019-09-05 Richard Biener <rguenther@suse.de>
3785 * tree-inline.c (declare_return_variable): Mark the return
3786 slot as addressable after building an address of it.
3788 2019-09-05 Arnaud Charlet <charlet@adacore.com>
3790 * doc/install.texi: Update and clarify requirements to build GNAT.
3792 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
3795 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
3796 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
3797 call to be in memory.
3798 (pass_expand::execute): Call discover_nonconstant_array_refs before
3799 setting currently_expanding_to_rtl.
3801 2019-09-04 Caroline Tice <cmtice@google.com>
3803 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
3806 2019-09-04 Marek Polacek <polacek@redhat.com>
3808 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
3810 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
3813 * config/i386/i386.c (inline_secondary_memory_needed): Return true
3814 for QI and HImode moves between SSE and general registers.
3816 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3819 * doc/invoke.texi: Document -Wenum-conversion.
3821 2019-09-04 Richard Biener <rguenther@suse.de>
3823 PR rtl-optimization/36262
3824 * postreload-gcse.c: Include intl.h and gcse.h.
3825 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
3826 to avoid linear list walk.
3827 (record_last_mem_set_info): Gate off if not computing transparentness.
3828 (get_bb_avail_insn): If transparentness isn't computed give up
3830 (gcse_after_reload_main): Skip compute_transp and extended PRE
3831 if gcse_or_cprop_is_too_expensive says so.
3833 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3835 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
3837 (msp430_select_section): Handle decls with the "noinit" attribute with
3838 default_elf_select_section.
3839 Handle SECCAT_RODATA_MERGE_* section types with
3840 default_elf_select_section.
3841 Add comments about handling of unsupported section types.
3842 (msp430_section_type_flags): Remove handling of the noinit section.
3844 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3846 * config/msp430/msp430.c (msp430_attr): Remove warnings about
3847 conflicting msp430-specific attributes.
3848 (msp430_section_attr): Likewise.
3849 Add warnings about conflicts with generic "noinit" and "section"
3851 Fix grammar in -mlarge error message.
3852 (msp430_data_attr): Rename to msp430_persist_attr.
3853 Add warnings about conflicts with generic "noinit" and "section"
3855 Add warning for when variable is not initialized.
3856 Chain conditionals which prevent the attribute being added.
3857 (ATTR_EXCL): New helper.
3858 (attr_reent_exclusions): New exclusion table.
3859 (attr_naked_exclusions): Likewise.
3860 (attr_crit_exclusions): Likewise.
3861 (attr_lower_exclusions): Likewise.
3862 (attr_upper_exclusions): Likewise.
3863 (attr_either_exclusions): Likewise.
3864 (attr_persist_exclusions): Likewise.
3865 (msp430_attribute_table): Update with exclusion rules.
3866 (msp430_output_aligned_decl_common): Don't output common symbol if decl
3869 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3871 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
3872 (msp430_handle_generic_attribute): New function.
3873 * doc/tm.texi: Regenerate.
3874 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
3875 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3876 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3877 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
3879 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
3881 PR tree-optimization/91504
3882 * match.pd: Add ((~a & b) ^a) --> (a | b).
3884 2019-09-03 Jakub Jelinek <jakub@redhat.com>
3887 * config/i386/i386-expand.c (split_double_mode): If there is more than
3888 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
3889 already split matching MEM operand instead of calling adjust_address
3892 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3894 * config.gcc: Obsolete spu target. Remove references to spu.
3895 * configure.ac: Remove references to spu.
3896 * configure: Regenerate.
3897 * config/spu/: Remove directory.
3898 * common/config/spu/: Remove directory.
3900 * doc/extend.texi: Remove references to spu.
3901 * doc/invoke.texi: Likewise.
3902 * doc/md.texi: Likewise.
3903 * doc/sourcebuild.texi: Likewise.
3905 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3910 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
3911 and SSA_NAME referring to CONSTANT_P correctly.
3913 2019-09-03 Richard Biener <rguenther@suse.de>
3915 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
3916 (vn_nary_op_insert): Likewise.
3917 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
3918 (vn_nary_op_lookup): Likewise.
3919 (vn_nary_op_insert): Likewise.
3921 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
3923 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
3924 (*op0, 1) instead of XEXP (*op1, 0).
3926 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3928 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
3929 (aarch64_fjcvtzs): New define_insn.
3930 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
3931 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
3933 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
3934 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
3935 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3936 __ARM_FEATURE_JCVT where appropriate.
3937 * config/aarch64/arm_acle.h (__jcvt): Define.
3939 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3941 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
3942 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
3943 (aarch64_<frintnzs_op><mode>): New define_insn.
3944 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
3945 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3946 __ARM_FEATURE_FRINT when appropriate.
3947 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
3948 frint32x, frint64z, frint64x.
3949 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
3950 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
3951 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
3952 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
3953 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
3954 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
3955 * config/aarch64/iterators.md (VSFDF): Define.
3956 (FRINTNZX): Likewise.
3957 (frintnzs_op): Likewise.
3959 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
3961 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
3962 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
3964 * config/aarch64/aarch64-tune.md: Regenerated.
3965 * doc/invoke.texi: Document the new processors.
3967 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3969 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
3973 (sve2-sm4): Likewise.
3975 (svesha3): Likewise.
3976 (svebitperm): Likewise.
3978 2019-09-03 Jakub Jelinek <jakub@redhat.com>
3979 Richard Biener <rguenther@suse.de>
3981 PR tree-optimization/91597
3982 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
3983 BIT_AND_EXPR optimization for pointers, even if both operand
3984 ranges don't include NULL, the result can be NULL.
3986 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3989 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
3990 (non_mem_decl_p): ...this.
3991 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
3992 (expand_assignment): Call mem_ref_referes_to_non_mem_p
3993 unconditionally as before.
3995 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
3998 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
3999 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
4000 * tree.def (LTGT_EXPR): Likewise.
4001 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
4003 2019-09-02 Jakub Jelinek <jakub@redhat.com>
4006 * fold-const.c (range_check_type): For enumeral and boolean
4007 type, pass 1 to type_for_size langhook instead of
4008 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
4009 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
4010 (build_range_check): Don't call unsigned_type_for for pointer types.
4011 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
4012 range_check_type result.
4014 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
4016 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
4017 (replace_ref): Do not replace a chain of only two candidates which are
4018 valid memory references.
4020 2019-09-02 Martin Liska <mliska@suse.cz>
4022 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
4023 Bail out when we'll end up with the same number of clusters as
4025 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
4026 (jump_table_cluster::can_be_handled): Remove the guard
4027 as it's already handled in ::is_enabled. Allocate output
4028 after early bail out.
4030 2019-09-02 Martin Liska <mliska@suse.cz>
4032 PR gcov-profile/91601
4033 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
4034 (path_contains_zero_or_negative_cycle_arc): ... this and handle
4035 also negative edges.
4036 (circuit): Handle also negative edges as they can happen
4039 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
4042 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
4043 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
4044 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
4046 2019-09-01 Jakub Jelinek <jakub@redhat.com>
4049 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
4050 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
4051 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
4055 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
4056 GIMPLE_ASM TREE_LIST operands.
4058 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
4060 * doc/generic.texi (Unary and Binary Expressions): Mark up
4061 an instance of TYPE_MIN.
4063 2019-08-31 Stafford Horne <shorne@gmail.com>
4065 * config/or1k/constraints.md (t): New constraint.
4066 * config/or1k/or1k.h (GOT_REGS): New register class.
4067 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
4069 2019-08-30 Jim Wilson <jimw@sifive.com>
4071 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
4072 and -fpic and -mplt then disable -msave-restore and warn.
4074 2019-08-30 Martin Sebor <msebor@redhat.com>
4077 * tree-ssa-strlen.c (handle_store): Use a fallback location if
4078 the statement doesn't have one.
4079 * gimple-pretty-print.c (percent_G_format): Same.
4082 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
4083 before using them to validate MEM_REF offset.
4085 2019-08-30 Marek Polacek <polacek@redhat.com>
4087 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
4089 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4091 * config/arm/arm.md (unaligned_loaddi,
4092 unaligned_storedi): New unspec insn patterns.
4093 * config/arm/neon.md (unaligned_storev8qi): Likewise.
4094 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
4095 and unaligned_storedi for 4-byte aligned memory.
4096 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
4097 4-byte aligned memory.
4099 2019-08-30 Martin Jambor <mjambor@suse.cz>
4101 tree-optimization/91579
4102 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
4103 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
4105 (arg_needs_copy_p): Removed.
4106 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
4108 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
4110 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
4112 * config/i386/i386-features.c
4113 (general_scalar_chain::compute_convert_gain):
4114 Correct cost for double-word shifts.
4115 (general_scalar_to_vector_candidate_p): Reject count operands
4116 greater or equal to mode bitsize.
4118 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
4120 * config/i386/i386.c (inline_secondary_memory_needed): Return true
4121 for moves between SSE and non-general registers and between
4122 mask and non-general registers.
4123 (ix86_register_move_cost): Remove stalled comment.
4125 2019-08-29 Richard Biener <rguenther@suse.de>
4127 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
4128 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
4130 2019-08-29 Richard Biener <rguenther@suse.de>
4133 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
4134 Do not emit scalar copies for debug-insns, instead replace
4135 their uses with the reg copy used in the chain or reset them
4136 if there is a reaching definition outside of the chain as well.
4138 2019-08-29 Jakub Jelinek <jakub@redhat.com>
4141 * config/i386/i386-expand.c (expand_vec_perm_movs,
4142 expand_vec_perm_blend, expand_vec_perm_vpermil,
4143 expand_vec_perm_pshufb, expand_vec_perm_1,
4144 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
4145 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
4146 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
4147 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
4148 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
4149 comments - replace ix86_expand_vec_perm_builtin_1 with
4150 ix86_expand_vec_perm_const_1.
4151 (expand_vec_perm2_vperm2f128_vblend): New function.
4152 (ix86_expand_vec_perm_const_1): New forward declaration. Call
4153 expand_vec_perm2_vperm2f128_vblend as last resort.
4154 (canonicalize_perm): Formatting fix.
4156 PR tree-optimization/91351
4157 * tree-cfg.c (generate_range_test): Use range_check_type instead of
4159 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
4160 range_check_type returns NULL.
4161 * tree-switch-conversion.c (switch_conversion::build_one_array):
4162 Use range_check_type instead of unsigned_type_for, don't perform
4163 linear opt if it returns NULL.
4164 (bit_test_cluster::find_bit_tests): Formatting fix.
4165 (bit_test_cluster::emit): Use range_check_type instead of
4167 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
4170 2019-08-29 Richard Biener <rguenther@suse.de>
4172 PR tree-optimization/91568
4173 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
4174 (vect_update_max_nunits): Add overload for poly_uint64.
4175 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
4176 (vect_build_slp_tree): Record max_nunits into the subtree
4177 and merge it upwards.
4178 (vect_print_slp_tree): Print max_nunits.
4180 2019-08-28 Marek Polacek <polacek@redhat.com>
4182 Implement P1152R4: Deprecating some uses of volatile.
4184 * doc/invoke.texi: Document -Wvolatile.
4186 2019-08-28 Marek Polacek <polacek@redhat.com>
4188 PR c++/91360 - Implement C++20 P1143R2: constinit.
4189 * doc/invoke.texi: Document -Wc++20-compat.
4191 2019-08-28 Martin Sebor <msebor@redhat.com>
4193 PR tree-optimization/91457
4194 * builtins.c (component_size): New function.
4195 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
4196 * builtins.h (compute_objsize): Add argument.
4197 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
4198 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
4199 (vrp_prop::check_mem_ref): Same.
4200 (vrp_prop::search_for_addr_array): Set no-warning bit.
4201 (check_array_bounds): Same.
4203 2019-08-28 Martin Sebor <msebor@redhat.com>
4206 * opts-common.c (option_enabled): Correct checking for language
4209 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
4211 * config/i386/i386.c (ix86_register_move_cost): Do not
4212 limit the cost of moves to/from XMM register to minimum 8.
4214 2019-08-28 Martin Jambor <mjambor@suse.cz>
4217 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
4218 checking assert a normal assert to test it really is redundant.
4219 * ipa-prop.c (compute_complex_assign_jump_func): Removed
4221 (update_jump_functions_after_inlining): Removed combining unary
4222 arithmetic operations with an ancestor jump function.
4223 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
4226 2019-08-28 Richard Biener <rguenther@suse.de>
4228 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
4231 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
4232 Richard Biener <rguenther@suse.de>
4234 * expr.c (expand_assignment): Handle misaligned DECLs.
4235 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
4236 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
4238 (assign_parm_setup_stack): Allocate properly aligned stack slots.
4239 * varasm.c (build_constant_desc): Align constants of misaligned types.
4240 * config/arm/predicates.md (aligned_operand): New predicate.
4241 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
4242 aligned_operand to check restrictions on memory addresses.
4243 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
4244 * config/arm/vec-common.md (mov<VALL>): Likewise.
4246 2019-08-28 Jakub Jelinek <jakub@redhat.com>
4249 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
4250 V_128 iterator instead of VI_128.
4252 2019-08-28 Martin Liska <mliska@suse.cz>
4254 PR tree-optimization/90970
4255 * builtins.c (check_access): Remove assignment to maxread
4256 as it hasn't been used since when it was introduced in r255755.
4258 2019-08-27 Martin Sebor <msebor@redhat.com>
4260 PR tree-optimization/91567
4261 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
4263 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
4266 2019-08-27 Jeff Law <law@redhat.com>
4268 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
4269 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
4271 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
4274 * config/i386/i386-features.c (convert_scalars_to_vector):
4275 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
4276 crtl->stack_realign_processed. Update crtl->drap_reg by calling
4277 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
4278 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
4280 2019-08-27 Richard Biener <rguenther@suse.de>
4282 * config/i386/i386-features.h
4283 (general_scalar_chain::~general_scalar_chain): Add.
4284 (general_scalar_chain::insns_conv): New bitmap.
4285 (general_scalar_chain::n_sse_to_integer): New.
4286 (general_scalar_chain::n_integer_to_sse): Likewise.
4287 (general_scalar_chain::make_vector_copies): Adjust signature.
4288 * config/i386/i386-features.c
4289 (general_scalar_chain::general_scalar_chain): Outline,
4290 initialize new members.
4291 (general_scalar_chain::~general_scalar_chain): New.
4292 (general_scalar_chain::mark_dual_mode_def): Record insns
4293 we need to insert conversions at and count them.
4294 (general_scalar_chain::compute_convert_gain): Account
4295 for conversion instructions at chain boundary.
4296 (general_scalar_chain::make_vector_copies): Generate a single
4297 copy for a def by a specific insn.
4298 (general_scalar_chain::convert_registers): First populate
4299 defs_map, then make copies at out-of chain insns.
4301 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
4303 * config/arm/arm.md (stack_protect_set_insn): Add security-related
4305 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
4307 2019-08-27 Martin Liska <mliska@suse.cz>
4309 * cgraph.c (cgraph_node::remove): Remove dead assignment before
4311 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
4312 Enclose in anonymous namespace.
4313 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
4314 hard_register initialization in braces.
4315 * tree-vrp.h (value_range_base::supports_type_p): Return false
4316 for function with boolean return type.
4318 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
4320 * config/i386/i386.c (emit_i387_cw_initialization)
4321 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
4323 2019-08-26 Martin Sebor <msebor@redhat.com>
4326 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
4327 (sprintf_dom_walker): Remove class.
4328 (get_int_range): Make argument const.
4329 (directive::fmtfunc, directive::set_precision): Same.
4330 (format_none): Same.
4331 (build_intmax_type_nodes): Same.
4332 (adjust_range_for_overflow): Same.
4333 (format_floating): Same.
4334 (format_character): Same.
4335 (format_string): Same.
4336 (format_plain): Same.
4337 (get_int_range): Cast away constness.
4338 (format_integer): Same.
4339 (get_string_length): Call get_range_strlen_dynamic. Handle
4340 null lendata.maxbound.
4341 (should_warn_p): Adjust argument scope qualifier.
4343 (format_directive): Same.
4344 (parse_directive): Same.
4345 (is_call_safe): Same.
4346 (try_substitute_return_value): Same.
4347 (sprintf_dom_walker::handle_printf_call): Rename...
4348 (handle_printf_call): ...to this. Initialize target to host charmap
4349 here instead of in pass_sprintf_length::execute.
4350 (struct call_info): Make global.
4351 (sprintf_dom_walker::compute_format_length): Make global.
4352 (sprintf_dom_walker::handle_gimple_call): Same.
4353 * passes.def (pass_sprintf_length): Replace with pass_strlen.
4354 * print-rtl.c (print_pattern): Reduce the number of spaces to
4355 avoid -Wformat-truncation.
4356 * tree-pass.h (make_pass_warn_printf): New function.
4357 * tree-ssa-strlen.c (strlen_optimize): New variable.
4358 (get_string_length): Add comments.
4359 (get_range_strlen_dynamic): New function.
4360 (check_and_optimize_call): New function.
4361 (handle_integral_assign): New function.
4362 (strlen_check_and_optimize_stmt): Factor code out into
4363 strlen_check_and_optimize_call and handle_integral_assign.
4364 (strlen_dom_walker::evrp): New member.
4365 (strlen_dom_walker::before_dom_children): Use evrp member.
4366 (strlen_dom_walker::after_dom_children): Use evrp member.
4367 (printf_strlen_execute): New function.
4368 (pass_strlen::gate): Update to handle printf calls.
4369 (dump_strlen_info): New function.
4370 (pass_data_warn_printf): New variable.
4371 (pass_warn_printf): New class.
4372 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
4373 (handle_printf_call): Same.
4374 * tree-vrp.c (value_range_base::type): Adjust assertion.
4375 * vr-values.c (vr_values::update_value_range): Use type of the first
4376 argument rather than the second.
4378 2019-08-26 Richard Biener <rguenther@suse.de>
4380 * config/i386/i386-features.c (general_remove_non_convertible_regs):
4382 (convert_scalars_to_vector): Do not call it.
4384 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
4385 Uros Bizjak <ubizjak@gmail.com>
4387 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
4388 CASE_MATHFN_FLOATN for roundeven.
4389 * config/i386/i386.c (ix86_i387_mode_needed): Add case
4391 (ix86_mode_needed): Likewise.
4392 (ix86_mode_after): Likewise.
4393 (ix86_mode_entry): Likewise.
4394 (ix86_mode_exit): Likewise.
4395 (ix86_emit_mode_set): Likewise.
4396 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
4397 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
4398 (ix86_entity): Add I387_ROUNDEVEN.
4399 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
4400 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
4401 (define_int_iterator): Likewise.
4402 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
4403 (define_constant): Define ROUND_ROUNDEVEN mode.
4404 (define_attr): Add roundeven mode for i387_cw.
4405 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
4406 * internal-fn.def (ROUNDEVEN): New builtin function.
4407 * optabs.def (roundeven_optab): New optab.
4409 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
4411 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
4413 * builtins.def: Added function definitions for roundeven function
4415 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
4416 function call. Adjust condition for floor, ceil, trunc and round.
4417 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
4418 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
4419 (integer_valued_real_call_p): Added case for roundeven function.
4420 * real.c (is_even): New function. Returns true if real number is even,
4421 otherwise returns false.
4422 (is_halfway_below): New function. Returns true if real number is
4423 halfway between two integers, else return false.
4424 (real_roundeven): New function. Round real number to nearest integer,
4425 rounding halfway cases towards even.
4426 * real.h (real_value): Added descriptive comments. Added function
4427 declaration for roundeven function.
4428 * doc/extend.texi (Other Builtins): List roundeven variants among
4429 functions which can be handled as builtins.
4431 2019-08-26 Richard Biener <rguenther@suse.de>
4435 * config/i386/i386-features.h (general_scalar_chain::defs_map):
4437 (general_scalar_chain::replace_with_subreg): Remove.
4438 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4439 (general_scalar_chain::convert_reg): Adjust signature.
4440 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
4441 iterate over all defs of a reg.
4442 (general_scalar_chain::replace_with_subreg): Remove.
4443 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4444 (general_scalar_chain::make_vector_copies): Populate defs_map,
4445 place copy only after defs that are used as vectors in the chain.
4446 (general_scalar_chain::convert_reg): Emit a copy for a specific
4447 def in a specific instruction.
4448 (general_scalar_chain::convert_op): All reg uses are converted here.
4449 (general_scalar_chain::convert_insn): Emit copies for scalar
4450 uses of defs here. Replace uses with the copies we created.
4451 Replace and convert the def. Adjust REG_DEAD notes, remove
4452 REG_EQUIV/EQUAL notes.
4453 (general_scalar_chain::convert_registers): Only handle copies
4454 into the chain here.
4456 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
4458 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
4460 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
4462 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
4463 Add nop_convert case.
4464 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
4465 Fold all statements if requested.
4466 * tree-ssa-propagate.h (class substitute_and_fold_engine):
4467 Allow to fold all statements.
4468 * tree-vrp.c (class vrp_folder):
4469 Let substitute_and_fold_engine fold all statements.
4471 2019-08-26 Richard Biener <rguenther@suse.de>
4473 PR tree-optimization/91526
4474 * passes.def: Note that after late FRE we do TODO_update_address_taken.
4475 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
4476 TODO_update_address_taken.
4478 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
4480 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
4483 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4485 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
4486 machine mode for unspec_volatile operand.
4488 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
4490 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
4491 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
4492 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
4493 (prefer_neon_for_64bits): Remove.
4494 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
4495 (tune_params): Remove PREF_NEON_64_FALSE uses.
4496 (arm_option_override): Remove prefer_neon selection code.
4497 (arm_print_tune_info): Remove prefer_neon_for_64bits.
4498 * gcc/config/arm/arm-protos.h (tune_params): Remove
4499 prefer_neon_for_64bits.
4500 (prefer_neon_for_64bits): Remove.
4502 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
4505 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
4506 and issue any diagnostics needed before collecting the pre-PCH
4509 2019-08-23 Jakub Jelinek <jakub@redhat.com>
4512 * common.opt (fexcess-precision=): Add Optimization flag. Use
4513 flag_excess_precision variable instead of
4514 flag_excess_precision_cmdline.
4515 * flags.h (class target_flag_state): Remove x_flag_excess_precision
4517 (flag_excess_precision): Don't define.
4518 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
4519 flag_excess_precision_cmdline. Remove comment.
4520 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
4521 and x_flag_excess_precision instead of
4522 frontend_set_flag_excess_precision_cmdline and
4523 x_flag_excess_precision_cmdline.
4524 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
4525 x_flag_excess_precision_cmdline.
4526 * toplev.c (init_excess_precision): Remove.
4527 (lang_dependent_init_target): Don't call it.
4529 2019-08-23 Martin Liska <mliska@suse.cz>
4531 * lto-wrapper.c (run_gcc): When setting jobserver
4532 set also parallel to 1. This was done so before r273908.
4534 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
4536 * config/arm/arm-cpus.in (cortex-m35p): New entry.
4537 (cortex-a76ae): Likewise.
4538 (cortex-a77): Likewise
4539 * config/arm/arm-tables.opt: Regenerate.
4540 * config/arm/arm-tune.md: Likewise.
4541 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
4542 cortex-a77 CPU options.
4544 2019-08-23 Martin Liska <mliska@suse.cz>
4546 * profile.c (instrument_values): Do not set
4548 * tree-profile.c (gimple_gen_interval_profiler): Remove
4550 (gimple_gen_pow2_profiler): Likewise.
4551 (gimple_gen_topn_values_profiler): Likewise.
4552 (gimple_gen_ic_profiler): Likewise.
4553 (gimple_gen_time_profiler): Likewise.
4554 (gimple_gen_average_profiler): Likewise.
4555 (gimple_gen_ior_profiler): Likewise.
4556 * value-prof.c (dump_histogram_value): Use default
4557 in switch statement instead of HIST_TYPE_MAX.
4558 (stream_in_histogram_value): Likewise.
4559 (gimple_duplicate_stmt_histograms): Do not
4560 use NULL for implicitly set arguments.
4561 (gimple_divmod_values_to_profile): Do not use
4563 (gimple_indirect_call_to_profile): Likewise.
4564 (gimple_find_values_to_profile): Use implicit
4565 function call arguments.
4566 * value-prof.h (gimple_alloc_histogram_value):
4568 (gimple_gen_interval_profiler): Remove last argument.
4569 (gimple_gen_pow2_profiler): Likewise.
4570 (gimple_gen_topn_values_profiler): Likewise.
4571 (gimple_gen_ic_profiler): Likewise.
4572 (gimple_gen_time_profiler): Likewise.
4573 (gimple_gen_average_profiler): Likewise.
4574 (gimple_gen_ior_profiler): Likewise.
4576 2019-08-22 Martin Sebor <msebor@redhat.com>
4579 * builtins.c (c_strlen): Rename argument and introduce new local.
4580 Set no-warning bit on original argument.
4581 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
4582 Fold empty and zero constructors into empty strings.
4583 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
4584 for missing initializers.
4585 * tree.c (build_string_literal): Handle optional argument.
4586 * tree.h (build_string_literal): Add defaulted argument.
4587 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
4588 no-warning bit on original expression.
4590 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
4593 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4594 and UNSPEC_DARN_RAW.
4595 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
4597 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
4598 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
4599 (darn): Use an unspec_volatile, and UNSPECV_DARN.
4601 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
4603 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4604 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
4605 * config/rs6000/rs6000.md (unspec): ... here.
4606 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
4607 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4608 cmpeqb, *cmpeqb_internal): Delete, move to...
4609 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
4610 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4611 cmpeqb, *cmpeqb_internal): ... here.
4613 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4615 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
4616 intrinsics if __ARM_FP.
4617 Use __ARM_FEATURE_CRC32 ifdef guard.
4619 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4621 * config/arm/arm.md (neon_for_64bits): Remove.
4622 (avoid_neon_for_64bits): Remove.
4623 (arm_adddi3): Always split early.
4624 (arm_subdi3): Always split early.
4625 (negdi2): Remove Neon expansion.
4626 (split zero_extend): Split before reload.
4627 (split sign_extend): Split before reload.
4629 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4631 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
4632 (qhs_extenddi_cstr): Likewise.
4633 * config/arm/arm.md (ashldi3): Always expand early.
4634 (ashlsi3): Likewise.
4635 (ashrsi3): Likewise.
4636 (zero_extend<mode>di2): Remove Neon variants.
4637 (extend<mode>di2): Likewise.
4638 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
4639 (signed_shift_di3_neon): Likewise.
4640 (unsigned_shift_di3_neon): Likewise.
4641 (ashrdi3_neon_imm_noclobber): Likewise.
4642 (lshrdi3_neon_imm_noclobber): Likewise.
4643 (<shift>di3_neon): Likewise.
4644 (split extend): Remove DI extend split patterns.
4646 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4648 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
4649 (split not): Add DImode not splitter.
4650 (anddi3): Remove pattern.
4651 (anddi3_insn): Likewise.
4652 (anddi_zesidi_di): Likewise.
4653 (anddi_sesdi_di): Likewise.
4654 (anddi_notdi_di): Likewise.
4655 (anddi_notzesidi_di): Likewise.
4656 (anddi_notsesidi_di): Likewise.
4658 (iordi3_insn): Likewise.
4659 (iordi_zesidi_di): Likewise.
4660 (iordi_sesidi_di): Likewise.
4662 (xordi3_insn): Likewise.
4663 (xordi_sesidi_di): Likewise.
4664 (xordi_zesidi_di): Likewise.
4665 (one_cmpldi2): Likewise.
4666 (one_cmpldi2_insn): Likewise.
4667 * config/arm/constraints.md: Remove De, Df, Dg constraints.
4668 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
4670 (iwmmxt_xordi3): Likewise.
4671 (iwmmxt_anddi3): Likewise.
4672 * config/arm/neon.md (orndi3_neon): Remove pattern.
4673 (anddi_notdi_di): Likewise.
4674 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
4675 (arm_iordi_operand_neon): Likewise.
4676 (arm_xordi_operand_neon): Likewise.
4677 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
4678 (iordi_notzesidi_di): Likewise.
4679 (iordi_notdi_zesidi): Likewise.
4680 (iordi_notsesidi_di): Likewise.
4682 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
4684 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
4686 (iorsi3_compare0_scratch): Likewise.
4688 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
4690 * config/aarch64/aarch64-simd-builtins.def:
4693 * config/aarch64/aarch64-simd.md:
4694 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
4695 (aarch64_st1x4<VALLDIF:mode>): Likewise.
4696 (aarch64_ld1_x4_<mode>): Likewise.
4697 (aarch64_st1_x4_<mode>): Likewise.
4698 * config/aarch64/arm_neon.h:
4699 (vld1_s8_x4): New function.
4700 (vld1q_s8_x4): Likewise.
4701 (vld1_s16_x4): Likewise.
4702 (vld1q_s16_x4): Likewise.
4703 (vld1_s32_x4): Likewise.
4704 (vld1q_s32_x4): Likewise.
4705 (vld1_u8_x4): Likewise.
4706 (vld1q_u8_x4): Likewise.
4707 (vld1_u16_x4): Likewise.
4708 (vld1q_u16_x4): Likewise.
4709 (vld1_u32_x4): Likewise.
4710 (vld1q_u32_x4): Likewise.
4711 (vld1_f16_x4): Likewise.
4712 (vld1q_f16_x4): Likewise.
4713 (vld1_f32_x4): Likewise.
4714 (vld1q_f32_x4): Likewise.
4715 (vld1_p8_x4): Likewise.
4716 (vld1q_p8_x4): Likewise.
4717 (vld1_p16_x4): Likewise.
4718 (vld1q_p16_x4): Likewise.
4719 (vld1_s64_x4): Likewise.
4720 (vld1_u64_x4): Likewise.
4721 (vld1_p64_x4): Likewise.
4722 (vld1q_s64_x4): Likewise.
4723 (vld1q_u64_x4): Likewise.
4724 (vld1q_p64_x4): Likewise.
4725 (vld1_f64_x4): Likewise.
4726 (vld1q_f64_x4): Likewise.
4727 (vst1_s8_x4): Likewise.
4728 (vst1q_s8_x4): Likewise.
4729 (vst1_s16_x4): Likewise.
4730 (vst1q_s16_x4): Likewise.
4731 (vst1_s32_x4): Likewise.
4732 (vst1q_s32_x4): Likewise.
4733 (vst1_u8_x4): Likewise.
4734 (vst1q_u8_x4): Likewise.
4735 (vst1_u16_x4): Likewise.
4736 (vst1q_u16_x4): Likewise.
4737 (vst1_u32_x4): Likewise.
4738 (vst1q_u32_x4): Likewise.
4739 (vst1_f16_x4): Likewise.
4740 (vst1q_f16_x4): Likewise.
4741 (vst1_f32_x4): Likewise.
4742 (vst1q_f32_x4): Likewise.
4743 (vst1_p8_x4): Likewise.
4744 (vst1q_p8_x4): Likewise.
4745 (vst1_p16_x4): Likewise.
4746 (vst1q_p16_x4): Likewise.
4747 (vst1_s64_x4): Likewise.
4748 (vst1_u64_x4): Likewise.
4749 (vst1_p64_x4): Likewise.
4750 (vst1q_s64_x4): Likewise.
4751 (vst1q_u64_x4): Likewise.
4752 (vst1q_p64_x4): Likewise.
4753 (vst1_f64_x4): Likewise.
4754 (vst1q_f64_x4): Likewise.
4756 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4758 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
4760 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4761 Richard Sandiford <richard.sandiford@arm.com>
4764 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
4765 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
4767 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4770 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
4771 in reg if it fails aarch64_plus_operand predicate.
4773 2019-08-21 Richard Biener <rguenther@suse.de>
4775 PR tree-optimization/91482
4776 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
4777 BUILT_IN_ASSUME_ALIGNED calls.
4779 2019-08-21 Richard Biener <rguenther@suse.de>
4783 * config/i386/i386-features.c
4784 (general_scalar_chain::make_vector_copies): Copy stack temporary
4785 rtx when using it multiple times.
4786 (general_scalar_chain::convert_reg): Likewise.
4788 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4790 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
4792 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
4794 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
4795 catch more redundant zero initialization cases.
4796 (dse_dom_walker::dse_optimize_stmt): Likewise.
4798 2019-08-20 Richard Biener <rguenther@suse.de>
4801 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
4802 by collect2 when targetm.have_ctors_dtors which avoids dragging
4803 in temporary filenames from LTO input objects.
4805 2019-08-20 Richard Biener <rguenther@suse.de>
4807 PR tree-optimization/37242
4808 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
4809 to (T)a + (T)b if we know that a + b does not overflow.
4811 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
4813 PR rtl-optimization/91347
4814 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
4815 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
4817 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4819 * calls.h (function_arg_info): Add a pass_by_reference field,
4820 defaulting to false.
4821 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
4822 when applying pass-by-reference semantics.
4823 (initialize_argument_information): Likewise.
4824 (emit_library_call_value_1): Likewise.
4825 * function.c (assign_parm_data_one): Remove passed_pointer field.
4826 (assign_parm_find_data_types): Don't set it.
4827 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
4828 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
4829 arg.pass_by_reference instead of passed_pointer.
4831 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4833 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
4834 into a single function_arg_info, updating its fields when we
4835 apply pass-by-reference and promotion semantics. Use the
4836 function_arg_info to track the mode rather than keeping it in
4837 a separate local variable.
4838 (initialize_argument_information): Likewise. Base the final
4839 arg_to_skip on this new function_arg_info rather than creating
4840 a new one from scratch.
4842 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4844 * function.c (assign_parm_data_one): Replace passed_type,
4845 promoted_mode and named_arg with a function_arg_info field.
4846 (assign_parm_find_data_types): Remove local variables and
4847 assign directly to "data". Make data->passed_mode shadow
4848 data->arg.mode until promotion, then assign the promoted
4849 mode to data->arg.mode.
4850 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
4851 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
4852 (assign_parm_remove_parallels, assign_parm_setup_block_p)
4853 (assign_parm_setup_block, assign_parm_setup_reg)
4854 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
4855 arg.mode instead of promoted_mode, arg.type instead of passed_type
4856 and arg.named instead of named_arg. Use data->arg for
4857 function_arg_info structures that had the field values passed_type,
4858 promoted_mode and named_arg. Base other function_arg_infos on
4859 data->arg, changing the necessary properties.
4861 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4863 * calls.h (apply_pass_by_reference_rules): Declare.
4864 * calls.c (apply_pass_by_reference_rules): New function.
4865 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
4866 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
4867 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4868 * function.c (assign_parm_find_data_types): Likewise.
4869 * var-tracking.c (prepare_call_arguments): Likewise.
4871 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4873 * target.def (must_pass_in_stack): Take a function_arg_info instead
4874 of a mode and a type.
4875 * doc/tm.texi: Regenerate.
4876 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
4877 instead of a mode and a type.
4878 (must_pass_in_stack_var_size_or_pad): Likewise.
4879 * calls.c (must_pass_in_stack_var_size): Likewise.
4880 (must_pass_in_stack_var_size_or_pad): Likewise.
4881 (initialize_argument_information): Update call to
4882 targetm.calls.must_pass_in_stack.
4883 (must_pass_va_arg_on_stack): Likewise.
4884 * function.c (assign_parm_find_entry_rtl): Likewise.
4885 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
4886 * config/alpha/alpha.c (alpha_function_arg): Likewise.
4887 (alpha_function_arg_advance): Likewise.
4888 * config/cr16/cr16.c (cr16_function_arg): Likewise.
4889 (cr16_function_arg_advance): Likewise.
4890 * config/cris/cris.c (cris_pass_by_reference): Likewise.
4891 (cris_arg_partial_bytes): Likewise.
4892 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
4893 * config/lm32/lm32.c (lm32_function_arg): Likewise.
4894 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
4895 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
4896 * config/mips/mips.c (mips_pass_by_reference): Likewise.
4897 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
4898 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
4899 * config/sh/sh.c (sh_pass_by_reference): Likewise.
4900 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
4901 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4902 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
4903 instead of a mode and a type.
4904 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
4905 (fr30_num_arg_regs): Likewise.
4906 (fr30_setup_incoming_varargs): Update calls accordingly.
4907 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4908 (fr30_function_arg_advance): Likewise.
4909 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
4910 instead of a mode and a type.
4911 * config/gcn/gcn.c (num_arg_regs): Likewise.
4912 (gcn_function_arg, gcn_function_arg_advance): Update calls to
4913 num_arg_regs and targetm.calls.must_pass_in_stack.
4914 (gcn_arg_partial_bytes): Likewise.
4915 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
4916 function_arg_info instead of a mode and a type.
4917 (classify_argument): Update call accordingly.
4918 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
4919 function_arg_info instead of a mode and a type.
4920 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
4922 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
4923 (rs6000_parm_needs_stack): Update call accordingly.
4924 (setup_incoming_varargs): Likewise.
4926 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4928 * target.def (callee_copies): Take a function_arg_info instead
4929 of a mode, type and named flag.
4930 * doc/tm.texi: Regenerate.
4931 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
4932 instead of a mode, type and named flag.
4933 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4934 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4935 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4936 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
4937 instead of a mode, type and named flag.
4938 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4939 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4940 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4941 * calls.h (reference_callee_copied): Take a function_arg_info
4942 instead of a mode, type and named flag.
4943 * calls.c (reference_callee_copied): Likewise.
4944 (initialize_argument_information): Update call accordingly.
4945 (emit_library_call_value_1): Likewise.
4946 * function.c (gimplify_parameters): Likewise.
4947 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
4948 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
4949 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
4950 * config/c6x/c6x.c (c6x_callee_copies): Delete.
4951 (TARGET_CALLEE_COPIES): Define to
4952 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4953 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
4954 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4955 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4956 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
4957 instead of a mode, type and named flag.
4958 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
4959 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4960 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4961 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
4962 * config/msp430/msp430.c (msp430_callee_copies): Delete.
4963 (TARGET_CALLEE_COPIES): Define to
4964 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4965 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
4966 instead of a mode, type and named flag.
4967 * config/sh/sh.c (sh_callee_copies): Likewise.
4968 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
4969 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4970 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4972 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4974 * target.def (function_arg_advance): Take a function_arg_info instead
4975 of a mode, type and named flag.
4976 * doc/tm.texi: Regenerate.
4977 * targhooks.h (default_function_arg_advance): Take a function_arg_info
4978 instead of a mode, type and named flag.
4979 * targhooks.c (default_function_arg_advance): Likewise.
4980 * calls.c (initialize_argument_information): Update call to
4981 targetm.calls.function_arg_advance.
4982 (emit_library_call_value_1): Likewise.
4983 * dse.c (get_call_args): Likewise.
4984 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4985 * function.c (assign_parms, gimplify_parameters): Likewise.
4986 * var-tracking.c (prepare_call_arguments): Likewise.
4987 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
4988 function_arg_info instead of a mode, type and named flag.
4989 (aarch64_setup_incoming_varargs): Update call accordingly.
4990 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
4991 function_arg_info instead of a mode, type and named flag.
4992 (alpha_setup_incoming_varargs): Update call accordingly.
4993 * config/arc/arc.c (arc_function_arg_advance): Take a
4994 function_arg_info instead of a mode, type and named flag.
4995 (arc_setup_incoming_varargs): Update call accordingly.
4996 * config/arm/arm.c (arm_function_arg_advance): Take a
4997 function_arg_info instead of a mode, type and named flag.
4998 (cmse_func_args_or_return_in_stack): Update call accordingly.
4999 (arm_function_ok_for_sibcall): Likewise.
5000 (cmse_nonsecure_call_clear_caller_saved): Likewise.
5001 * config/avr/avr.c (avr_function_arg_advance): Take a
5002 function_arg_info instead of a mode, type and named flag.
5003 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
5004 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
5005 (c6x_call_saved_register_used): Update call accordingly.
5006 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
5007 function_arg_info instead of a mode, type and named flag.
5008 * config/cris/cris.c (cris_function_arg_advance): Likewise.
5009 * config/csky/csky.c (csky_function_arg_advance): Likewise.
5010 (csky_setup_incoming_varargs): Update call accordingly.
5011 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
5012 function_arg_info instead of a mode, type and named flag.
5013 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
5014 * config/frv/frv.c (frv_function_arg_advance): Likewise.
5015 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
5016 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
5017 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
5018 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
5019 (ix86_setup_incoming_varargs): Update call accordingly.
5020 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
5021 function_arg_info instead of a mode, type and named flag.
5022 (ia64_setup_incoming_varargs): Update call accordingly.
5023 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
5024 function_arg_info instead of a mode, type and named flag.
5025 (iq2000_expand_prologue): Update call accordingly.
5026 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
5027 function_arg_info instead of a mode, type and named flag.
5028 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
5029 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
5030 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
5031 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
5032 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
5034 (microblaze_expand_prologue): Update call accordingly.
5035 * config/mips/mips.c (mips_function_arg_advance): Take a
5036 function_arg_info instead of a mode, type and named flag.
5037 (mips_setup_incoming_varargs): Update call accordingly.
5038 (mips_output_args_xfer): Likewise.
5039 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
5040 function_arg_info instead of a mode, type and named flag.
5041 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
5042 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
5043 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
5044 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
5045 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
5046 (nios2_setup_incoming_varargs): Update call accordingly.
5047 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
5048 function_arg_info instead of a mode, type and named flag.
5049 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
5050 * config/pa/pa.c (pa_function_arg_advance): Likewise.
5051 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
5052 * config/pru/pru.c (pru_function_arg_advance): Likewise.
5053 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
5054 (riscv_setup_incoming_varargs): Update call accordingly.
5055 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
5056 function_arg_info instead of a mode, type and named flag.
5057 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
5059 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
5060 (rs6000_parm_needs_stack): Update call accordingly.
5061 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
5062 instead of a mode, type and named flag.
5063 * config/s390/s390.c (s390_function_arg_advance): Likewise.
5064 (s390_call_saved_register_used): Update call accordingly.
5065 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
5066 instead of a mode, type and named flag.
5067 (sh_output_mi_thunk): Update call accordingly.
5068 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
5069 function_arg_info instead of a mode, type and named flag.
5070 * config/spu/spu.c (spu_function_arg_advance): Likewise.
5071 (spu_setup_incoming_varargs): Update call accordingly.
5072 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
5073 function_arg_info instead of a mode, type and named flag.
5074 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
5075 (tilegx_setup_incoming_varargs): Update call accordingly.
5076 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
5077 function_arg_info instead of a mode, type and named flag.
5078 (tilegx_setup_incoming_varargs): Update call accordingly.
5079 * config/v850/v850.c (v850_function_arg_advance): Take a
5080 function_arg_info instead of a mode, type and named flag.
5081 * config/vax/vax.c (vax_function_arg_advance): Likewise.
5082 * config/visium/visium.c (visium_function_arg_advance): Likewise.
5083 (visium_setup_incoming_varargs): Update call accordingly.
5084 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
5085 function_arg_info instead of a mode, type and named flag.
5087 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5089 * target.def (function_arg, function_incoming_arg): Take a
5090 function_arg_info instead of a mode, tree and named flag.
5091 * doc/tm.texi: Regenerate.
5092 * targhooks.h (default_function_arg): Take a function_arg_info
5093 instead of a mode, tree and named flag.
5094 (default_function_incoming_arg): Likewise.
5095 * targhooks.c (default_function_arg): Likewise.
5096 (default_function_incoming_arg): Likewise.
5097 * calls.h (function_arg_info::end_marker_p): New function.
5098 (function_arg_info::end_marker): Likewise.
5099 * calls.c (prepare_call_address, initialize_argument_information)
5100 (expand_call, emit_library_call_value_1): Update calls to
5101 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
5102 * dse.c: Include calls.h.
5103 (get_call_args): Update call to targetm.calls.function_arg.
5104 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5105 * var-tracking.c (prepare_call_arguments): Likewise.
5106 * function.c (assign_parm_find_entry_rtl): Update call to
5107 targetm.calls.function_incoming_arg.
5108 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
5109 function_arg_info instead of a mode, tree and named flag.
5110 * config/alpha/alpha.c (alpha_function_arg): Likewise.
5111 * config/arc/arc.c (arc_function_arg): Likewise.
5112 * config/arm/arm.c (arm_function_arg): Likewise.
5113 (cmse_func_args_or_return_in_stack): Update call accordingly.
5114 (arm_function_ok_for_sibcall): Likewise.
5115 (cmse_nonsecure_call_clear_caller_saved): Likewise.
5116 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
5117 instead of a mode, tree and named flag.
5118 * config/bfin/bfin.c (bfin_function_arg): Likewise.
5119 * config/c6x/c6x.c (c6x_function_arg): Likewise.
5120 (c6x_call_saved_register_used): Update call accordingly.
5121 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
5122 instead of a mode, tree and named flag.
5123 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
5124 (cris_function_arg_1): Likewise.
5125 * config/csky/csky.c (csky_function_arg): Likewise.
5126 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
5127 * config/fr30/fr30.c (fr30_function_arg): Likewise.
5128 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
5129 (frv_function_arg_1): Likewise.
5130 * config/ft32/ft32.c (ft32_function_arg): Likewise.
5131 * config/gcn/gcn.c (gcn_function_arg): Likewise.
5132 * config/h8300/h8300.c (h8300_function_arg): Likewise.
5133 * config/i386/i386.c (ix86_function_arg): Likewise.
5134 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
5135 (ia64_function_arg_1): Likewise.
5136 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
5137 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
5139 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
5140 instead of a mode, tree and named flag.
5141 * config/m32c/m32c.c (m32c_function_arg): Likewise.
5142 * config/m32r/m32r.c (m32r_function_arg): Likewise.
5143 * config/m68k/m68k.c (m68k_function_arg): Likewise.
5144 * config/mcore/mcore.c (mcore_function_arg): Likewise.
5145 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
5146 (microblaze_expand_prologue): Update call accordingly.
5147 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
5148 instead of a mode, tree and named flag.
5149 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
5150 (mmix_function_arg_1): Likewise.
5151 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
5152 * config/moxie/moxie.c (moxie_function_arg): Likewise.
5153 * config/msp430/msp430.c (msp430_function_arg): Likewise.
5154 * config/nds32/nds32.c (nds32_function_arg): Likewise.
5155 * config/nios2/nios2.c (nios2_function_arg): Likewise.
5156 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
5157 (nvptx_function_incoming_arg): Likewise.
5158 * config/or1k/or1k.c (or1k_function_arg): Likewise.
5159 * config/pa/pa.c (pa_function_arg): Likewise.
5160 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
5161 * config/pru/pru.c (pru_function_arg): Likewise.
5162 * config/riscv/riscv.c (riscv_function_arg): Likewise.
5163 * config/rl78/rl78.c (rl78_function_arg): Likewise.
5164 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
5165 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
5166 (rs6000_parm_needs_stack): Update call accordingly.
5167 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
5168 instead of a mode, tree and named flag.
5169 * config/s390/s390.c (s390_function_arg): Likewise.
5170 (s390_call_saved_register_used): Update call accordingly.
5171 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
5172 instead of a mode, tree and named flag.
5173 (sh_output_mi_thunk): Update call accordingly.
5174 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
5175 (sparc_function_incoming_arg): Take a function_arg_info instead of
5176 a mode, tree and named flag.
5177 * config/spu/spu.c (spu_function_arg): Likewise.
5178 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
5179 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
5180 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
5181 * config/v850/v850.c (v850_function_arg): Likewise.
5182 * config/vax/vax.c (vax_function_arg): Likewise.
5183 * config/visium/visium.c (visium_function_arg): Likewise.
5184 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
5185 (xtensa_function_incoming_arg): Likewise.
5187 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5189 * target.def (setup_incoming_varargs): Take a function_arg_info
5190 instead of a mode and tree.
5191 * doc/tm.texi: Regenerate.
5192 * targhooks.h (default_setup_incoming_varargs): Take a
5193 function_arg_info instead of a mode and tree.
5194 * targhooks.c (default_setup_incoming_varargs): Likewise.
5195 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
5196 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
5197 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
5198 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
5199 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
5200 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
5201 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
5202 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
5204 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
5205 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
5206 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
5207 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
5208 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
5209 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
5210 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5211 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5212 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
5213 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
5214 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
5215 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
5216 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
5217 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
5218 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
5219 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
5220 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
5221 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
5222 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
5223 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
5224 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
5225 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5226 * function.c (assign_parms_setup_varargs): Update call to
5227 targetm.calls.setup_incoming_varargs.
5229 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5231 * target.def (pass_by_reference): Take a function_arg_info instead
5232 of a mode, type and named flag.
5233 * doc/tm.texi: Regenerate.
5234 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
5236 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
5237 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
5238 function_arg_info instead of a mode, type and named flag.
5239 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
5240 * calls.h (pass_by_reference): Take a function_arg_info instead of a
5241 mode, type and named flag.
5242 * calls.c (pass_by_reference): Likewise.
5243 (pass_va_arg_by_reference): Update call accordingly.
5244 (initialize_argument_information): Likewise.
5245 (emit_library_call_value_1): Likewise.
5246 * function.c (assign_parm_find_data_types): Likewise.
5247 * var-tracking.c (prepare_call_arguments): Likewise.
5248 * stor-layout.c: Include calls.h.
5249 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
5250 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
5251 function_arg_info instead of a mode, type and named flag.
5252 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
5253 * config/arc/arc.c (arc_pass_by_reference): Likewise.
5254 * config/arm/arm.c (arm_pass_by_reference): Likewise.
5255 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
5256 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
5257 (c6x_call_saved_register_used): Update call to pass_by_reference.
5258 * config/cris/cris.c (cris_pass_by_reference): Take a
5259 function_arg_info instead of a mode, type and named flag.
5260 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
5261 function_arg_info instead of a mode, type and named flag.
5262 (epiphany_arg_partial_bytes): Update call accordingly.
5263 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
5264 function_arg_info instead of a mode, type and named flag.
5265 (ft32_arg_partial_bytes): Update call accordingly.
5266 * config/i386/i386.c (ix86_pass_by_reference): Take a
5267 function_arg_info instead of a mode, type and named flag.
5268 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
5269 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
5270 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
5271 (m32r_return_in_memory): Update call accordingly.
5272 * config/mips/mips.c (mips_pass_by_reference): Take a
5273 function_arg_info instead of a mode, type and named flag.
5274 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
5275 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5276 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
5277 (moxie_arg_partial_bytes): Update call accordingly.
5278 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
5279 function_arg_info instead of a mode, type and named flag.
5280 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
5281 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
5282 * config/pa/pa.c (pa_pass_by_reference): Likewise.
5283 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
5284 (riscv_return_in_memory): Update call accordingly.
5285 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
5286 function_arg_info instead of a mode, type and named flag.
5287 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
5288 (rs6000_parm_needs_stack): Update call to pass_by_reference.
5289 * config/s390/s390.c (s390_pass_by_reference): Take a
5290 function_arg_info instead of a mode, type and named flag.
5291 (s390_call_saved_register_used): Update call accordingly.
5292 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
5293 instead of a mode, type and named flag.
5294 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
5295 * config/spu/spu.c (spu_pass_by_reference): Likewise.
5296 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
5297 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
5298 * config/v850/v850.c (v850_pass_by_reference): Likewise.
5299 * config/visium/visium.c (visium_pass_by_reference): Likewise.
5301 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5303 * target.def (arg_partial_bytes): Take a function_arg_info instead
5304 of a mode, type and named flag.
5305 * doc/tm.texi: Regenerate.
5306 * target.h (function_arg_info): Declare.
5307 * calls.h (function_arg_info): New class.
5308 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
5309 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
5310 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
5311 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
5312 * calls.c (initialize_argument_information): Update call to
5313 targetm.calls.partial_bytes.
5314 (emit_library_call_value_1): Likewise.
5315 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5316 * function.c (assign_parm_find_entry_rtl): Likewise.
5317 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
5318 function_arg_info instead of a mode, type and named flag.
5319 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
5320 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
5321 (cmse_func_args_or_return_in_stack): Update accordingly.
5322 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
5323 function_arg_info instead of a mode, type and named flag.
5324 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
5325 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
5326 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
5327 * config/fr30/fr30.c: Include calls.h.
5328 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
5329 type and named flag.
5330 * config/frv/frv.c: Include calls.h.
5331 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
5332 type and named flag.
5333 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
5334 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
5335 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
5336 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
5337 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
5338 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
5339 * config/microblaze/microblaze.c (function_arg_partial_bytes):
5341 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
5342 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
5343 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
5344 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
5345 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
5346 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
5347 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
5348 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
5349 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
5350 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
5351 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
5352 (rs6000_parm_needs_stack): Update call accordingly.
5353 * config/sh/sh.c (sh_arg_partial_bytes): Take a
5354 function_arg_info instead of a mode, type and named flag.
5355 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
5356 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
5358 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5360 * calls.h (must_pass_va_arg_in_stack): Declare.
5361 * calls.c (must_pass_va_arg_in_stack): New function.
5362 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
5363 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
5364 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
5366 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5368 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
5370 * calls.h (pass_va_arg_by_reference): Declare.
5371 * calls.c (pass_va_arg_by_reference): New function.
5372 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
5373 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
5374 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
5375 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5376 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5377 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
5378 (mips_gimplify_va_arg_expr): Likewise.
5379 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
5380 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5381 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
5382 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
5383 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5384 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
5385 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
5386 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
5387 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
5388 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5389 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
5391 2019-08-20 Richard Biener <rguenther@suse.de>
5394 * config/i386/i386-features.c (general_scalar_chain::convert_op):
5395 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
5396 (convert_scalars_to_vector): Add timode_p parameter and use it
5397 to guard TImode-only operation.
5398 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
5399 (pass_stv::execute): Pass down timode_p.
5401 2019-08-20 Lili Cui <lili.cui@intel.com>
5403 * common/config/i386/i386-common.c
5404 (processor_names): Add tigerlake and cooperlake.
5405 (processor_alias_table): Add tigerlake and cooperlake.
5406 * config.gcc: Add -march=tigerlake and cooperlake.
5407 * config/i386/driver-i386.c
5408 (host_detect_local_cpu): Detect tigerlake and cooperlake.
5409 Add "has_avx" to classify processor.
5410 * config/i386/i386-builtins.c (processor_model) :
5411 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
5412 (arch_names_table): Add tigerlake and cooperlake.
5413 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
5414 and PROCESSOR_COOPERLAKE.
5415 * config/i386/i386-c.c
5416 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
5417 * config/i386/i386-options.c
5418 (m_TIGERLAKE) : Define.
5419 (m_COOPERLAKE) : Ditto.
5420 (m_CORE_AVX512): Ditto.
5421 (processor_cost_table): Add cascadelake.
5422 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
5423 * config/i386/i386.h
5424 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
5425 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5426 (PTA_MOVDIRI): Ditto.
5427 (PTA_MOVDIR64B): Ditto.
5428 (PTA_COOPERLAKE) : Ditto.
5429 (PTA_TIGERLAKE) : Ditto.
5430 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5431 * doc/extend.texi: Add tigerlake and cooperlake.
5432 * doc/invoke.texi: Add tigerlake and cooperlake.
5434 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
5436 * doc/install.texi (Specific, alpha): Remove note to use
5437 binutils 2.11.2 or later.
5439 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5442 * function.c (assign_parm_find_stack_rtl): Use larger alignment
5445 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
5447 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
5448 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
5449 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
5450 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
5451 * config/aarch64/constraints.md (Dt): New constraint
5452 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
5454 2019-08-19 Richard Biener <rguenther@suse.de>
5456 PR tree-optimization/91403
5457 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
5458 cases we can handle with tail-recursion...
5459 (follow_ssa_edge_expr): ... here. Do so.
5461 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
5464 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
5465 implemented for -fsanitize=kernel-address, and merge check logic
5466 with -fsanitize=address.
5468 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
5470 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
5471 for cpu and machine. Factor 64/32b builtins.
5473 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
5475 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
5476 gone, point to sourceforge.net.
5478 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
5480 * doc/ux.texi (User Experience Guidelines): Update reference.
5482 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
5484 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
5487 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
5489 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
5490 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
5492 2019-08-16 Martin Sebor <msebor@redhat.com>
5494 * tree.def (TYPE_SIZE): Clarify.
5495 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
5497 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
5499 PR tree-optimization/91109
5500 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
5501 * lra.c (lra): Use lra_need_for_scratch_reg_p.
5502 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
5504 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
5506 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
5507 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
5508 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
5509 (uavg<mode>3_ceil): New expander.
5510 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
5511 mode iterator when creating CONST1_RTX.
5512 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
5513 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
5514 mode iterator for const1_operand predicate.
5516 2019-08-16 Richard Biener <rguenther@suse.de>
5518 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
5519 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
5521 (follow_ssa_edge_in_condition_phi_branch): Likewise.
5522 (analyze_evolution_in_loop): Likewise.
5523 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
5524 (follow_ssa_edge_expr): ... here. Refactor code.
5526 2019-08-16 Richard Biener <rguenther@suse.de>
5529 * config/i386/i386-features.c
5530 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
5532 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5535 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
5536 only if subst_name matches curr_attr string.
5538 2019-08-16 Richard Biener <rguenther@suse.de>
5540 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
5541 stmt at gsi_p, instead replace it with a NOP removed later.
5542 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
5543 that became dead because of that.
5545 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
5547 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
5548 for which we can't represent a range.
5549 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
5551 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
5552 Set VR_UNDEFINED if type is not supported.
5553 * tree-ssanames.c (get_range_info): Pass type to set_varying.
5554 * tree-vrp.c (value_range_base::check): Assert that a varying has
5556 (value_range_base::equal_p): Early bail for undefines.
5557 (value_range_base::set_varying): Accept a type.
5558 (value_range::set_varying): Same.
5559 (value_range_base::type): VARYING can have a type, while UNDEFINE
5561 (value_range_base::dump): Print type for VARYING nodes.
5562 (value_range_base::set): Add type to VARYING.
5563 (extract_range_from_multiplicative_op): Pass type to set_varying.
5564 (extract_range_from_binary_expr): Same.
5565 (value_range_base::intersect_helper): Same.
5566 (value_range_base::union_helper): Same.
5567 (value_range_base::normalize_symbolics): Same.
5568 (determine_value_range_1): Same.
5569 * tree-vrp.h (class value_range_base): Add type to set_varying.
5570 Add prototype for dump(void).
5571 Add prototype for supports_type_p.
5572 (class value_range): Add type to set_varying.
5573 Add prototype for dump(void).
5574 * vr-values.c (set_value_range_to_truthvalue): Pass type to
5576 (vr_values::get_lattice_entry): Set varying even if propagation
5578 Pass type to set_varying.
5579 (vr_values::get_value_range): Remove vr_const_varying.
5580 Reallocate the lattice if needed.
5581 (vr_values::update_value_range): Pass type to set_varying.
5582 (vr_values::extract_range_for_var_from_comparison_expr): Same.
5583 (vr_values::extract_range_from_binary_expr): Same.
5584 (vr_values::extract_range_from_unary_expr): Same.
5585 (vr_values::extract_range_from_cond_expr): Same.
5586 (vr_values::check_for_binary_op_overflow): Same.
5587 (vr_values::extract_range_basic): Same.
5588 (vr_values::extract_range_from_assignment): Same.
5589 (vr_values::vr_values): Increase size of num_vr_values.
5590 (vr_values::extract_range_from_phi_node): Pass type to
5593 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
5596 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
5597 for costs of hard register moves.
5598 (ix86_register_move_cost): Likewise.
5599 * config/i386/i386.h (processor_costs): Move costs of hard
5600 register moves to hard_register. Add int_load, int_store,
5601 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5602 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
5603 for costs of RTL expressions.
5604 * config/i386/x86-tune-costs.h: Move costs of hard register
5605 moves to hard_register. Duplicate int_load, int_store,
5606 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5607 sse_load, sse_store for costs of RTL expressions.
5609 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5611 * target.def (setup_incoming_vararg_bounds): Remove.
5612 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
5613 * doc/tm.texi: Regenerate.
5614 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
5615 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
5616 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5617 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
5619 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5621 MSP430: Fix lines over 80 characters long in
5622 config/msp430/*.{c,h} files
5624 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
5625 specifier in string.
5626 (msp430_select_hwmult_lib): Split line more than 80 characters long.
5627 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
5628 redundant old comment.
5629 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
5630 Split line more than 80 characters long.
5631 * config/msp430/msp430.c (msp430_option_override): Likewise.
5632 (msp430_return_in_memory): Likewise.
5633 (msp430_gimplify_va_arg_expr): Likewise.
5634 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
5635 (msp430_legitimate_constant): Likewise.
5636 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
5637 (msp430_attr): Likewise.
5638 (msp430_data_attr): Likewise.
5639 (msp430_start_function): Likewise.
5640 (gen_prefix): Likewise.
5641 (msp430_init_sections): Likewise.
5642 (msp430_select_section): Likewise.
5643 (msp430_function_section): Likewise.
5644 (msp430_unique_section): Likewise.
5645 (msp430_output_aligned_decl_common): Likewise.
5646 (msp430_do_not_relax_short_jumps): Likewise.
5647 (msp430_init_builtins): Likewise.
5648 (msp430_expand_delay_cycles): Likewise.
5649 (msp430_expand_prologue): Likewise.
5650 (msp430_expand_epilogue): Likewise.
5651 (msp430_expand_helper): Likewise.
5652 (msp430_split_movsi): Likewise.
5653 (msp430_print_operand): Likewise.
5654 (msp430_return_addr_rtx): Likewise.
5655 (msp430x_extendhisi): Likewise.
5656 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
5657 (ASM_SPEC): Likewise.
5658 Remove very obvious comments.
5659 (LIB_SPEC): Split line more than 80 characters long.
5660 (EH_RETURN_HANDLER_RTX): Likewise.
5661 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
5663 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5665 MSP430: Fix whitespace errors and incorrect indentation in
5666 config/msp430/*.{c,h} files
5668 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
5669 (msp430_select_hwmult_lib): Likewise.
5670 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
5671 (msp430_extract_mcu_data): Likewise.
5672 (struct t_msp430_mcu_data): Likewise.
5673 * config/msp430/msp430.c (struct machine_function): Remove whitespace
5674 before left square bracket.
5675 (msp430_option_override): Fix indentation.
5676 (msp430_hard_regno_nregs_with_padding): Likewise.
5677 (msp430_initial_elimination_offset): Likewise.
5678 (msp430_special_register_convention_p): Remove whitespace before left
5679 square bracket and after exclamation mark.
5680 (msp430_evaluate_arg): Likewise.
5681 (msp430_callee_copies): Fix indentation.
5682 (msp430_gimplify_va_arg_expr): Likewise.
5683 (msp430_function_arg_advance): Remove whitespace before left square
5685 (reg_ok_for_addr): Likewise.
5686 (msp430_preserve_reg_p): Likewise.
5687 (msp430_compute_frame_info): Likewise.
5688 (msp430_asm_output_addr_const_extra): Add space between function name
5689 and open parenthesis.
5690 (has_section_name): Fix indentation.
5691 (msp430_attr): Remove trailing whitespace.
5692 (msp430_section_attr): Likewise.
5693 (msp430_data_attr): Likewise.
5694 (struct msp430_attribute_table): Fix comment and whitespace.
5695 (msp430_start_function): Remove whitespace before left square bracket.
5696 Add space between function name and open parenthesis.
5697 (msp430_select_section): Remove trailing whitespace.
5698 (msp430_section_type_flags): Remove trailing whitespace.
5699 (msp430_unique_section): Remove space before closing parenthesis.
5700 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
5701 (msp430_builtins): Remove whitespace before left square bracket.
5702 (msp430_init_builtins): Fix indentation.
5703 (msp430_expand_prologue): Remove whitespace before left square bracket.
5704 Remove space before closing parenthesis.
5705 (msp430_expand_epilogue): Remove whitespace before left square bracket.
5706 (msp430_split_movsi): Remove space before closing parenthesis.
5707 (helper_function_name_mappings): Fix indentation.
5708 (msp430_use_f5_series_hwmult): Fix whitespace.
5709 (use_32bit_hwmult): Likewise.
5710 (msp430_no_hwmult): Likewise.
5711 (msp430_output_labelref): Remove whitespace before left square bracket.
5712 (msp430_print_operand_raw): Likewise.
5713 (msp430_print_operand_addr): Likewise.
5714 (msp430_print_operand): Add two spaces after '.' in comment.
5715 Fix trailing whitespace.
5716 (msp430x_extendhisi): Fix indentation.
5717 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
5719 (PC_REGNUM): Likewise.
5720 (STACK_POINTER_REGNUM): Likewise.
5721 (CC_REGNUM): Likewise.
5723 2019-08-15 Richard Biener <rguenther@suse.de>
5726 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
5728 (general_scalar_chain::make_vector_copies): Use it.
5730 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5732 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
5734 2019-08-15 Martin Liska <mliska@suse.cz>
5736 * tree-ssa-dce.c (propagate_necessity): We can't reach now
5737 operators with no arguments.
5738 (eliminate_unnecessary_stmts): Likewise here.
5740 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
5742 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
5743 <case COMPARE>: Revert 2019-08-14 change.
5744 (convertible_comparison_p): Revert 2019-08-14 change. Return false
5745 for (TARGET_64BIT || mode != DImode).
5747 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
5749 * tree-vrp.c (value_range_base::set): Merge in code from
5750 value_range_base::set_and_canonicalize.
5751 Enforce canonicalization at set time.
5752 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
5753 (value_range_base::set_undefined): Inline call to set().
5754 (value_range_base::set_varying): Same.
5755 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
5756 (vrp_val_max): New argument handle_pointers.
5757 (vrp_val_min): Same.
5758 (ranges_from_anti_range): Same.
5759 (extract_range_into_wide_ints): Use tree argument instead of sign
5761 (extract_range_from_multiplicative_op): Take in tree type instead
5762 of precision and sign. Adapt function for canonicalized ranges.
5763 (extract_range_from_binary_expr): Pass type to
5764 extract_range_from_multiplicative_op.
5765 Adapt for canonicalized ranges.
5766 (extract_range_from_unary_expr): Same.
5767 (value_range_base::intersect_helper): Adjust for canonicalized
5769 (value_range_base::union_helper): Same.
5770 (value_range_base::normalize_symbolics): New.
5771 * tree-vrp.h (class value_range_base): Remove
5772 set_and_canonicalize.
5773 New prototype for normalize_symbolics.
5774 (class value_range): Remove set_and_canonicalize.
5775 (vrp_val_min): Adjust prototype.
5776 (vrp_val_max): Same.
5778 (vr_values::extract_range_for_var_from_comparison_expr): Call set
5779 instead of set_and_canonicalize.
5781 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5784 * tree-vect-stmts.c (vectorizable_call): Check that the function
5785 is a BUILT_IN_MD function before passing it to
5786 targetm.vectorize.builtin_md_vectorized_function.
5788 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5790 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
5791 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
5792 (aarch64_select_early_remat_modes): Use it.
5794 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5796 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
5797 16 for SVE predicates even if they are fixed-length.
5799 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5801 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
5802 operand order match the MOV /Z alias.
5804 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5806 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
5807 the vector pattern as an aarch64_svpattern argument. Update the
5808 overloaded caller accordingly.
5809 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
5810 (aarch64_output_sve_vector_inc_dec): Likewise.
5812 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5814 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
5815 multiplication case, try to compute VG * (lowest set bit) directly
5816 rather than always basing the multiplication on VG. Use
5817 expand_mult for the multiplication if we can.
5819 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5821 * config/aarch64/aarch64-protos.h
5822 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
5823 (aarch64_sve_inc_dec_immediate_p): Rename to...
5824 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5825 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
5826 (aarch64_output_sve_scalar_inc_dec): Declare.
5827 (aarch64_output_sve_inc_dec_immediate): Rename to...
5828 (aarch64_output_sve_vector_inc_dec): ...this.
5829 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
5830 (aarch64_output_sve_scalar_inc_dec): New functions.
5831 (aarch64_output_sve_addvl_addpl): Remove the base and offset
5832 arguments. Only handle true ADDVL and ADDPL instructions;
5833 don't emit an INC or DEC.
5834 (aarch64_sve_inc_dec_immediate_p): Rename to...
5835 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5836 (aarch64_output_sve_inc_dec_immediate): Rename to...
5837 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
5838 aarch64_sve_vector_inc_dec_immediate_p.
5839 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
5840 (aarch64_sve_plus_immediate): New predicates.
5841 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
5842 rather than aarch64_sve_addvl_addpl_immediate.
5843 (aarch64_sve_inc_dec_immediate): Rename to...
5844 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
5845 aarch64_sve_vector_inc_dec_immediate_p.
5846 (aarch64_sve_add_operand): Update accordingly.
5847 * config/aarch64/constraints.md (Uai): New constraint.
5848 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
5849 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
5850 operand into a register if it satisfies aarch64_sve_plus_immediate.
5851 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
5852 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
5853 * config/aarch64/aarch64-sve.md (add<mode>3): Call
5854 aarch64_output_sve_vector_inc_dec instead of
5855 aarch64_output_sve_inc_dec_immediate.
5857 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5859 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
5860 (UNSPEC_REVW): New constants.
5861 (elem_bits): New mode attribute.
5862 (SVE_INT_UNARY): New int iterator.
5863 (optab): Handle UNSPEC_REV[BHW].
5864 (sve_int_op): New int attribute.
5865 (min_elem_bits): Handle VNx16QI and the predicate modes.
5866 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
5867 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
5868 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
5869 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
5870 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
5871 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
5872 unspecs based on the total width of the reversed data.
5873 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
5874 reinterpret followed by a subreg on big-endian targets.
5876 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5877 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5879 * config/aarch64/aarch64-sve.md
5880 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
5881 alternatives in which one of the inputs is in the same register
5884 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5886 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
5887 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
5889 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5891 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
5892 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
5894 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5895 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5897 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
5898 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
5899 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
5901 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5902 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5904 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
5905 Add an alternative that uses reversed shifts.
5907 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5909 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
5912 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5914 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
5915 a commutativity marker.
5917 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5918 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5920 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
5921 (aarch64_prepare_sve_cond_int_fma): Declare.
5922 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
5923 (aarch64_prepare_sve_int_fma): New functions.
5924 (aarch64_prepare_sve_cond_int_fma): Likewise.
5925 * config/aarch64/aarch64-sve.md
5926 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
5927 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
5928 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
5929 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
5930 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
5931 (*madd<mode>): Rename to...
5932 (*fma<mode>4): ...this.
5933 (*msub<mode>): Rename to...
5934 (*fnma<mode>4): ...this.
5936 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5937 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5939 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
5940 Print 2.0 naturally.
5941 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
5942 * config/aarch64/predicates.md
5943 (aarch64_sve_float_negated_arith_immediate): New predicate,
5944 renamed from aarch64_sve_float_arith_with_sub_immediate.
5945 (aarch64_sve_float_arith_with_sub_immediate): Test for both
5946 positive and negative constants.
5947 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
5948 or an aarch64_sve_float_arith_with_sub_immediate.
5949 * config/aarch64/constraints.md (vsN): Use
5950 aarch64_sve_float_negated_arith_immediate.
5951 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
5953 (sve_pred_fp_rhs2_immediate): New int attribute.
5954 * config/aarch64/aarch64-sve.md
5955 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
5956 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
5957 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
5958 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
5959 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
5960 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
5962 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5963 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5965 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
5966 (*aarch64_cond_abd<SVE_F:mode>_3)
5967 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
5969 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5970 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5972 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
5973 (*aarch64_cond_<su>abd<mode>_any): New patterns.
5975 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5976 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5978 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
5979 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
5980 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
5981 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
5983 * optabs.h (create_convert_operand_from): Expand comment.
5984 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
5985 when mapping scalar rtxes to vector operands.
5986 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
5987 ashiftrt and lshiftrt.
5988 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
5989 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
5990 (*cond_<optab><mode>_any_const): New patterns.
5992 2019-08-15 Martin Liska <mliska@suse.cz>
5995 * cgraph.c (cgraph_node::remove): When setting
5996 n->origin = NULL for all nested functions, reset
5999 2019-08-15 Martin Liska <mliska@suse.cz>
6001 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
6004 2019-08-15 Martin Liska <mliska@suse.cz>
6007 * passes.c (order): Remove.
6008 (uid_hash_t): Likewise).
6009 (remove_cgraph_node_from_order): Remove from set
6010 of pointers (cgraph_node *).
6011 (insert_cgraph_node_to_order): New.
6012 (duplicate_cgraph_node_to_order): New.
6013 (do_per_function_toporder): Register all 3 cgraph hooks.
6014 Skip removed_nodes now as we know about all of them.
6016 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
6018 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
6019 <case E_V8QImode>: Use vector_set path for
6020 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6021 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
6022 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6024 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
6026 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
6028 2019-08-14 Martin Sebor <msebor@redhat.com>
6030 PR tree-optimization/91294
6031 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
6032 source length as exact.
6034 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
6036 * doc/extend.texi: Add "noinit" attribute documentation.
6037 * doc/sourcebuild.texi: Add noinit effective target documentation.
6038 * varasm.c (default_section_type_flags): Add support for "noinit"
6040 (default_elf_select_section): Add support for "noinit" attribute.
6041 * config/msp430/msp430.c (msp430_attribute_table): Remove
6044 2019-08-14 Richard Biener <rguenther@suse.de>
6045 Uroš Bizjak <ubizjak@gmail.com>
6048 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
6050 (scalar_chain::smode): New member.
6051 (scalar_chain::vmode): Likewise.
6052 (dimode_scalar_chain): Rename to...
6053 (general_scalar_chain): ... this.
6054 (general_scalar_chain::general_scalar_chain): Take mode arguments.
6055 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
6056 base with TImode and V1TImode.
6057 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
6058 (general_scalar_chain::vector_const_cost): Adjust for SImode
6060 (general_scalar_chain::compute_convert_gain): Likewise. Add
6061 {S,U}{MIN,MAX} support.
6062 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
6063 (general_scalar_chain::make_vector_copies): Likewise. Handle
6064 non-DImode chains appropriately.
6065 (general_scalar_chain::convert_reg): Likewise.
6066 (general_scalar_chain::convert_op): Likewise.
6067 (general_scalar_chain::convert_insn): Likewise. Add
6068 fatal_insn_not_found if the result is not recognized.
6069 (convertible_comparison_p): Pass in the scalar mode and use that.
6070 (general_scalar_to_vector_candidate_p): Likewise. Rename from
6071 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
6072 (scalar_to_vector_candidate_p): Remove by inlining into single
6074 (general_remove_non_convertible_regs): Rename from
6075 dimode_remove_non_convertible_regs.
6076 (remove_non_convertible_regs): Remove by inlining into single caller.
6077 (convert_scalars_to_vector): Handle SImode and DImode chains
6078 in addition to TImode chains.
6079 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
6080 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
6081 (*<maxmin>di3_doubleword): Likewise.
6083 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6084 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6086 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
6087 (*cond_bic<mode>_any): New patterns.
6089 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6091 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
6092 take the equivalent mask, as well as a bit count.
6093 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
6094 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
6095 (aarch64_sve_pred_and_operand): New predicates.
6096 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
6098 * config/aarch64/aarch64-sve.md
6099 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
6100 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
6102 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6104 * config/aarch64/aarch64-sve.md
6105 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
6106 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
6109 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6110 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6112 * config/aarch64/aarch64-sve.md
6113 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
6114 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
6116 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6117 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6119 * config/aarch64/aarch64-sve.md
6120 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
6121 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
6123 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6125 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
6126 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
6129 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6130 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6132 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
6134 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6135 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6137 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
6138 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
6139 (aarch64_print_operand): Add support for %I.
6140 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
6141 Bitcast floating-point constants to the corresponding integer constant.
6142 (aarch64_float_const_representable_p): Handle vectors as well
6144 (aarch64_expand_sve_vcond): Make sure that the operands are valid
6145 for the new vcond_mask_<mode><vpred> expander.
6146 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
6147 test aarch64_float_const_representable_p.
6148 (aarch64_sve_reg_or_dup_imm): New predicate.
6149 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
6150 gen_vcond_mask_<mode><vpred> instead of
6151 gen_aarch64_sve_dup<mode>_const.
6152 (vcond_mask_<mode><vpred>): Turn into a define_expand that
6153 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
6154 for operands 1 and 2 respectively. Force operand 2 into a
6155 register if operand 1 is a register. Fold old define_insn...
6156 (aarch64_sve_dup<mode>_const): ...and this define_insn...
6157 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
6158 floating-point constants that can be moved as integers. Add
6159 alternatives for MOV /M and FMOV /M.
6160 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
6161 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
6162 1 and 2 respectively.
6163 * config/aarch64/constraints.md (Ufc): Handle vectors as well
6165 (vss): New constraint.
6167 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6169 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
6170 (aarch64_sve_float_maxmin_operand): New predicates.
6171 * config/aarch64/constraints.md (vsB): New constraint.
6173 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
6174 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
6176 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
6177 Use aarch64_sve_float_maxmin_operand for operand 2.
6178 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
6179 Add alternatives for the constant forms.
6181 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6183 * config/aarch64/constraints.md (vsb): New constraint.
6184 (vsm): Generalize description.
6185 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
6187 (sve_imm_con): Handle smax, smin, umax and umin.
6188 (sve_imm_prefix): New code attribute.
6189 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
6190 (aarch64_sve_vsb_operand): New predicates.
6191 (aarch64_sve_mul_immediate): Rename to...
6192 (aarch64_sve_vsm_immediate): ...this.
6193 (aarch64_sve_mul_operand): Rename to...
6194 (aarch64_sve_vsm_operand): ...this.
6195 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
6196 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
6197 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
6198 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
6199 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
6200 add movprfx support for the immediate alternatives.
6201 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
6203 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
6206 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6208 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
6209 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
6210 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
6212 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6214 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
6215 (optab, sve_int_op): Handle them.
6216 * config/aarch64/aarch64-sve.md: Expand comment.
6218 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6220 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
6221 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
6222 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
6224 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6226 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
6227 (aarch64_expand_sve_const_pred_trn): New functions.
6228 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
6229 use the above functions when the parameter is true.
6230 (aarch64_expand_sve_const_pred): Update call accordingly.
6231 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
6233 (@aarch64_sve_<perm_insn><mode>): ...this.
6235 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6237 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
6239 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
6240 (aarch64_sve_emit_int_cmp): New functions.
6241 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
6242 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
6243 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
6244 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
6245 (UNSPEC_PRED_Z): New unspec.
6246 (set_clobber_cc_nzc): Delete.
6247 * config/aarch64/aarch64-sve.md: Add a block comment about
6249 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
6250 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
6251 the old pattern with that name. Use UNSPEC_PRED_Z instead of
6253 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
6254 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
6255 check for compatible predicates.
6256 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
6257 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
6258 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
6261 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6263 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
6264 * config/aarch64/aarch64-sve.md: Add a section describing it.
6265 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
6266 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
6267 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
6268 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
6269 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
6270 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
6271 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
6272 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
6273 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
6274 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
6275 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
6276 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
6277 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
6278 (aarch64_evpc_rev_local): Update accordingly.
6280 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6282 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
6284 (SVE_BHSI, SVE_SDI): Tweak comment.
6285 (SVE_HSDI): Likewise. Fix definition.
6286 (SVE_SDF): New mode iterator.
6287 (elem_bits): New mode attribute.
6288 (SVE_COND_FCVT): New int iterator.
6289 * config/aarch64/aarch64-sve.md
6290 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
6291 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
6292 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
6293 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
6294 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6295 ...these new patterns.
6296 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
6297 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
6298 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
6300 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
6301 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
6302 ...these new patterns.
6303 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
6304 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
6305 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
6306 ...this new pattern.
6307 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
6308 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
6309 ...this new pattern.
6310 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
6312 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6314 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
6315 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
6316 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
6318 (optab, su): Handle them.
6319 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
6320 * config/aarch64/aarch64-sve.md
6321 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
6322 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
6323 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
6324 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
6325 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
6326 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
6327 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
6328 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
6329 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
6331 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
6332 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
6333 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
6334 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
6335 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
6336 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
6337 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
6338 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
6339 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
6340 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
6341 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
6342 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
6343 of UNSPEC_FLOAT_CONVERT.
6344 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
6345 aarch64_sve_extend<mode><Vwide>2.
6347 2019-08-14 Richard Biener <rguenther@suse.de>
6350 * config/i386/i386-features.c
6351 (dimode_scalar_chain::compute_convert_gain): Compute and dump
6352 individual instruction gain. Fix reg-reg copy GRP cost. Use
6353 ix86_cost->sse_op for vector instruction costs.
6355 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6357 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
6358 (cmp_op): Handle it.
6359 (SVE_COND_FP_CMP): Rename to...
6360 (SVE_COND_FP_CMP_I0): ...this.
6361 (SVE_FP_CMP): Remove.
6362 * config/aarch64/aarch64-sve.md
6363 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
6364 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
6365 using unspecs to represent the comparison.
6366 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
6367 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
6369 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
6370 (aarch64_unspec_cond_code): Move after integer code. Handle
6372 (aarch64_emit_sve_predicated_cond): Replace with...
6373 (aarch64_emit_sve_fp_cond): ...this new function.
6374 (aarch64_emit_sve_or_conds): Replace with...
6375 (aarch64_emit_sve_or_fp_conds): ...this new function.
6376 (aarch64_emit_sve_inverted_cond): Replace with...
6377 (aarch64_emit_sve_invert_fp_cond): ...this new function.
6378 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
6380 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6382 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
6383 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
6384 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
6385 SVE_HSD instead of SVE_SD.
6387 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6388 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6390 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
6392 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
6394 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
6395 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
6396 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
6397 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
6398 (*div<SVE_F:mode>3): Generalize to...
6399 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
6401 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6402 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6404 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
6406 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
6408 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
6410 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
6412 * config/aarch64/aarch64-sve.md: Add a block comment about the
6413 handling of predicated FP operations.
6414 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
6415 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
6416 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6417 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
6418 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
6420 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
6421 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
6423 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
6424 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
6425 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
6426 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
6427 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
6428 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6429 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6430 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
6431 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
6432 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
6433 strictness operands. Use aarch64_sve_pred_dominates_p to check
6434 whether the predicate on the conditional operation is suitable
6435 for merging. Split patterns into the canonical equal-predicate form.
6436 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
6437 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
6439 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6440 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6442 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
6443 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
6444 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
6446 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
6447 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
6450 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6451 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6453 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
6454 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
6455 actually has, rather than relying on REG_EQUAL notes.
6456 Make the insn operand order match the SVE operand order.
6457 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
6458 the SVE operand order.
6460 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6462 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
6463 (aarch64_emit_set_immediate): Likewise.
6464 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
6465 (aarch64_pfalse_reg): Likewise.
6466 (aarch64_convert_sve_data_to_pred): New function.
6467 (aarch64_sve_move_pred_via_while): Take an optional target register
6468 and the required register mode.
6469 (aarch64_expand_sve_const_pred_1): New function.
6470 (aarch64_expand_sve_const_pred): Likewise.
6471 (aarch64_expand_mov_immediate): Build an all-true predicate
6472 if the significant bits of the immediate are all true. Use
6473 aarch64_expand_sve_const_pred for all compile-time predicate constants.
6474 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
6475 before register allocation.
6476 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
6477 a VNx16BI PTRUE when splitting the memory alternative.
6478 (vec_duplicate<mode>): Update accordingly.
6479 (*pred_cmp<cmp_op><mode>): Rename to...
6480 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
6482 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
6484 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
6485 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
6486 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
6487 (UNSPEC_PTEST): New unspec.
6488 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
6489 * config/aarch64/iterators.md (data_bytes): New mode attribute.
6490 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
6491 * config/aarch64/aarch64-sve.md: Add a new section describing the
6492 handling of UNSPEC_PTEST.
6493 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
6494 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
6495 (ptest_ptrue<mode>): Replace with...
6496 (aarch64_ptest<mode>): ...this new pattern.
6497 (cbranch<mode>4): Update after above changes.
6498 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
6500 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
6501 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
6502 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
6504 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
6507 * builtins.c (builtin_with_linkage_p): New function.
6508 * builtins.h (builtin_with_linkage_p): New function.
6509 * symtab.c (write_symbol): Remove redundant assert.
6510 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
6511 Remove FIXME and use builtin_with_linkage_p.
6513 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6516 * tree-core.h (function_decl::function_code): Change type to
6518 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
6519 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
6520 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
6521 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
6523 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
6524 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
6525 (fndecl_built_in_p): Change the type of the "name" argument to
6527 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
6528 after check for DECL_BUILT_IN_CLASS.
6529 * cgraphclones.c (build_function_decl_skip_args): Use
6530 set_decl_built_in_function.
6531 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
6532 * ipa-split.c (split_function): Likewise.
6533 * langhooks.c (add_builtin_function_common): Likewise.
6534 * omp-simd-clone.c (simd_clone_create): Likewise.
6535 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
6536 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
6537 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
6539 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
6540 instead of DECL_FUNCTION_CODE.
6541 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
6542 instead of DECL_FUNCTION_CODE.
6543 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
6544 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
6545 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
6546 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
6547 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
6548 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
6549 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
6550 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
6551 (alpha_gimple_fold_builtin): Likewise.
6552 * config/arc/arc.c (arc_expand_builtin): Likewise.
6553 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
6554 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
6555 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
6556 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
6557 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
6558 * config/frv/frv.c (frv_expand_builtin): Likewise.
6559 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
6560 (gcn_expand_builtin): Likewise.
6561 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
6562 (fold_builtin_cpu): Likewise.
6563 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
6564 * config/i386/i386.c (ix86_fold_builtin): Likewise.
6565 (ix86_gimple_fold_builtin): Likewise.
6566 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
6567 (ia64_expand_builtin): Likewise.
6568 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
6569 * config/mips/mips.c (mips_expand_builtin): Likewise.
6570 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
6571 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6572 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
6573 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
6574 * config/pa/pa.c (pa_expand_builtin): Likewise.
6575 * config/pru/pru.c (pru_expand_builtin): Likewise.
6576 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
6577 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6579 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
6580 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
6581 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
6582 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
6583 (rs6000_builtin_reciprocal): Likewise.
6584 * config/rx/rx.c (rx_expand_builtin): Likewise.
6585 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6586 * config/s390/s390.c (s390_expand_builtin): Likewise.
6587 * config/sh/sh.c (sh_expand_builtin): Likewise.
6588 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
6589 (sparc_fold_builtin): Likewise.
6590 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
6591 * config/spu/spu.c (spu_expand_builtin): Likewise.
6592 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
6593 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
6594 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
6595 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6596 (xtensa_expand_builtin): Likewise.
6598 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6601 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
6602 before the DECL_FUNCTION_CODE.
6603 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
6604 to check for a BUILT_IN_ALLOCA call.
6605 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
6606 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
6607 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
6608 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6609 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
6610 for BUILT_IN_NORMAL functions.
6611 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
6612 test for BUILT_IN_TM_ABORT.
6613 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
6614 to check for a BUILT_IN_STACK_RESTORE call.
6615 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
6616 * tree-ssa-threadedge.c
6617 (record_temporary_equivalences_from_stmts_at_dest): Check for a
6618 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
6619 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
6620 test for a BUILT_IN_NORMAL call instead of a negative test for
6621 an internal function call.
6623 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6625 * tree.h (build_vector_a_then_b): Declare.
6626 * tree.c (build_vector_a_then_b): New function.
6627 * fold-const-call.c (fold_while_ult): Likewise.
6628 (fold_const_call): Use it to handle IFN_WHILE_ULT.
6629 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
6630 (aarch64_svpattern): New enum.
6631 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
6632 constants through aarch64_expand_mov_immediate.
6633 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
6634 than general_operand as the predicate for operand 1.
6635 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
6636 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
6638 (simd_immediate_info::simd_immediate_info): New overload that
6639 takes a scalar_int_mode and an svpattern.
6640 (simd_immediate_info::u): Add a "pattern" field.
6641 (svpattern_token): New function.
6642 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
6643 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
6644 (aarch64_sve_move_pred_via_while): New functions.
6645 (aarch64_expand_mov_immediate): Try using
6646 aarch64_sve_move_pred_via_while for predicates that contain N ones
6647 followed by M zeros but that do not correspond to a VLnnn pattern.
6648 (aarch64_sve_pred_valid_immediate): New function.
6649 (aarch64_simd_valid_immediate): Use it instead of dealing directly
6650 with PTRUE and PFALSE.
6651 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
6654 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
6656 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
6658 (darwin_override_options): Likewise.
6659 * config/darwin.h: Likewise.
6660 * config/darwin.opt: Likewise.
6661 * config/i386/i386.c (output_pic_addr_const): Likewise.
6662 * config/rs6000/darwin.h: Likewise.
6663 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
6664 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
6665 ... this TARGET_MACHO_SYMBOL_STUBS.
6666 (FUNCTION_PROFILER):Likewise.
6667 * config/i386/i386.h: Likewise.
6669 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
6671 * config/i386/i386-expand.c (ix86_expand_vector_extract)
6672 <case E_V2SImode>: Use vec_extr path for
6673 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6674 <case E_V8QImode>: Ditto.
6675 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
6676 Use SWI48 mode iterator. Use %k to output operand 0.
6677 (*mmx_pextrw): New insn pattern.
6678 (*mmx_pextrb): Ditto.
6679 (*mmx_pextrb_zext): Ditto.
6681 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
6683 * target.def (libc_has_function, libc_has_fast_function): Improve
6684 documentation strings.
6685 * doc/tm.texi: Regenerate.
6687 2019-08-13 Caroline Tice <cmtice@google.com>
6690 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
6691 vtv_end.o or vtv_end_preinit.o files if !static.
6693 2019-08-13 Olivier Hainque <hainque@adacore.com>
6695 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
6697 2019-08-13 Olivier Hainque <hainque@adacore.com>
6699 * rtlanal.c (tablejump_casesi_pattern): New function, to
6700 determine if a tablejump insn is a casesi dispatcher. Extracted
6701 from patch_jump_insn.
6702 * rtl.h (tablejump_casesi_pattern): Declare.
6703 * cfgrtl.c (patch_jump_insn): Use it.
6704 * dwarf2cfi.c (create_trace_edges): Use it.
6706 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
6709 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
6710 operand is larger than a long int.
6712 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6714 * machmode.h (opt_mode::else_mode): New function.
6715 (opt_mode::else_blk): Use it.
6716 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
6717 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
6718 (aarch64_gen_stepped_int_parallel): Likewise.
6719 (aarch64_stepped_int_parallel_p): Likewise.
6720 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6722 * config/aarch64/aarch64.c
6723 (aarch64_expand_sve_widened_duplicate): Delete.
6724 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
6725 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
6726 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6727 argument. Use early returns in the !CONST_INT_P handling.
6728 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
6729 than handling some inline.
6730 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
6732 (aarch64_simd_container_mode): ...here.
6733 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
6734 (aarch64_sve_ld1rq_operand_p): New functions.
6735 * config/aarch64/predicates.md (descending_int_parallel)
6736 (aarch64_sve_ld1rq_operand): New predicates.
6737 * config/aarch64/constraints.md (UtQ): New constraint.
6738 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
6739 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
6740 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
6741 (@aarch64_sve_reinterpret<mode>): New expander.
6742 (*aarch64_sve_reinterpret<mode>): New pattern.
6743 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
6744 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
6745 (*sve_ld1rq<Vesize>): Replace with...
6746 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
6748 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
6750 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
6753 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6755 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
6756 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
6757 (msp430_check_path_for_devices): New.
6758 (parse_devices_csv_1): New.
6759 (parse_devices_csv): New.
6760 (msp430_extract_mcu_data): Try to find devices.csv and search for the
6761 MCU data in devices.csv before using the hard-coded data.
6762 Warn if devices.csv isn't found and the MCU wasn't found in the
6763 hard-coded data either.
6764 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
6765 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
6766 Search for devices.csv on -I and -L paths.
6767 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
6768 msp430_set_driver_var.
6769 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
6771 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
6772 searched for devices.csv.
6773 (mwarn-devices-csv): Document option.
6775 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6777 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
6778 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
6779 Use a single Dn alternative instead of separate Dz and Dm
6780 alternatives. Use aarch64_output_sve_move_immediate.
6781 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
6783 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
6785 (aarch64_output_sve_mov_immediate): Handle predicate modes.
6786 (aarch64_output_ptrue): Delete.
6788 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6790 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
6792 (simd_immediate_info::value, simd_immediate_info::step)
6793 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
6795 (simd_immediate_info::u): ...this new union.
6796 (simd_immediate_info::simd_immediate_info): Update accordingly.
6797 (aarch64_output_simd_mov_immediate): Likewise.
6798 (aarch64_output_sve_mov_immediate): Likewise.
6800 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6802 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
6804 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
6805 (msp430_select_cpu): New spec function.
6806 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
6808 * config/msp430/msp430-devices.c: New file.
6809 * config/msp430/msp430-devices.h: New file.
6810 * config/msp430/msp430.c: Remove msp430_mcu_data.
6811 (msp430_option_override): Use msp430_extract_mcu_data to extract
6813 (msp430_use_f5_series_hwmult): Likewise.
6814 (use_32bit_hwmult): Likewise.
6815 (msp430_no_hwmult): Likewise.
6816 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
6818 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
6820 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
6821 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
6822 Remove hard-coded MCU multilib data.
6824 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6826 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
6827 based on the mode instead of testing properties of it.
6829 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6831 * doc/md.texi: Document the x and y constraints for AArch64.
6832 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
6833 (FP_LO8_REGS): New reg_class.
6834 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
6835 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
6836 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
6837 * config/aarch64/predicates.md (aarch64_simd_register): Use
6838 FP_REGNUM_P instead of checking the classes manually.
6839 * config/aarch64/constraints.md (y): New constraint.
6841 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6843 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
6844 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
6845 * config/aarch64/aarch64-simd.md
6846 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
6847 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
6848 from the asm template.
6849 * config/aarch64/aarch64-sve.md
6850 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
6851 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
6852 from the asm template.
6853 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
6854 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
6855 from the asm template.
6856 * config/aarch64/aarch64-simd-builtins.def: Update comment.
6858 2019-08-13 Martin Liska <mliska@suse.cz>
6860 * value-prof.c (gimple_ic_transform): Add new line.
6861 Print details with MSG_NOTE.
6863 2019-08-13 Martin Liska <mliska@suse.cz>
6865 * doc/invoke.texi: Document automatic detection of jobserver.
6866 * lto-wrapper.c (run_gcc): Detect jobserver always.
6868 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
6870 * config/i386/i386-expand.c (ix86_expand_vector_set)
6871 <case E_V2SImode>: Use vec_merge path for
6872 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6873 <case E_V8QImode>: Ditto.
6874 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
6875 (*mmx_pinsrb): Ditto.
6877 2019-08-12 Jakub Jelinek <jakub@redhat.com>
6881 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
6882 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
6883 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
6884 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
6885 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
6887 2019-08-12 Richard Biener <rguenther@suse.de>
6890 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
6893 2019-08-12 Richard Biener <rguenther@suse.de>
6896 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
6897 lang_mask option, always use CL_DRIVER.
6898 (get_options_from_collect_gcc_options): Adjust.
6899 (find_and_merge_options): Likewise.
6900 (run_gcc): Likewise.
6902 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6904 * ipa-predicate.c (add_condition): Restore inverted test.
6906 2019-08-10 Jakub Jelinek <jakub@redhat.com>
6908 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
6909 (enum omp_clause_device_type_kind): New enum.
6910 (struct tree_omp_clause): Add subcode.device_type_kind.
6911 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
6912 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
6913 for device_type clause.
6914 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
6915 * tree-pretty-print.c (dump_omp_clause): Likewise.
6918 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
6921 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
6923 * reload1.c (finish_spills): Do not check ira_conflicts_p when
6924 handling spilled pseudos.
6926 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
6929 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
6930 to preserve the contents of the original insns.
6932 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
6934 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
6935 (addsi3_compare_op2): Likewise.
6937 2019-08-09 Martin Liska <mliska@suse.cz>
6939 * alias.c (alias_ptr_types_compatible_p): Strengten
6940 type comparison in LTO mode.
6942 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
6945 * tree-tailcall.c (find_tail_calls): Reject calls that might
6946 read from an escaped RESULT_DECL.
6948 2019-08-09 Martin Liska <mliska@suse.cz>
6950 * doc/invoke.texi: Document the option value.
6951 * lto-wrapper.c (run_gcc): Set auto_parallel
6952 only with -flto=auto.
6954 2019-08-09 Martin Liska <mliska@suse.cz>
6956 * opts.c (common_handle_option): Error for an invalid argument
6959 2019-08-09 Martin Liska <mliska@suse.cz>
6961 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
6962 use dump_printf to report optimization.
6963 (sem_variable::merge): Likwise.
6964 (sem_item_optimizer::merge_classes): Use dump_printf to report
6967 2019-08-09 Martin Liska <mliska@suse.cz>
6969 * value-prof.c (gimple_divmod_fixed_value_transform):
6970 Use dump_printf_loc.
6971 (gimple_mod_pow2_value_transform): Likewise.
6972 (gimple_mod_subtract_transform): Likewise.
6973 (init_node_map): Likewise.
6974 (gimple_ic_transform): Likewise.
6975 (gimple_stringops_transform): Likewise.
6977 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6979 * doc/extend.texi: Add const qualifier to ld intrinsics.
6981 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
6983 * config/rs6000/dfp.md (D64_D128): Rename to ...
6984 (DDTD): ... this, throughout.
6985 (dfp_suffix): Rename to ...
6986 (q): ... this, throughout.
6988 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
6990 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
6991 (dfp_suffix): Ditto.
6992 (adddd3, addtd3): Merge to ...
6993 (add<mode>3 for D64_D128): ... this.
6994 (subdd3, subtd3): Merge to ...
6995 (sub<mode>3 for D64_D128): ... this.
6996 (muldd3, multd3): Merge to ...
6997 (mul<mode>3 for D64_D128): ... this.
6998 (divdd3, divtd3): Merge to ...
6999 (div<mode>3 for D64_D128): ... this.
7000 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
7001 (*cmp<mode>_internal1 for D64_D128): ... this.
7002 (ftruncdd2, ftrunctd2): Merge to ...
7003 (ftrunc<mode>2 for D64_D128): ... this.
7004 (fixdddi2, fixtddi2): Merge to ...
7005 (fix<mode>di2 for D64_D128): ... this.
7007 2019-08-08 Jim Wilson <jimw@sifive.com>
7010 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
7011 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
7012 Pass into recursive call.
7013 (riscv_flatten_aggregate_argument): New arg. Pass to
7014 riscv_flatten_aggregate_field.
7015 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
7016 riscv_flatten_aggregate_argument twice, with false and true as last
7017 arg. Process result twice. Compare results and warn if different.
7018 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
7020 2019-08-08 Martin Liska <mliska@suse.cz>
7023 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
7024 * lto-wrapper.c (jobserver_active_p): Likewise.
7026 2019-08-08 Martin Liska <mliska@suse.cz>
7028 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
7029 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
7030 (create_version_clone_with_body): Likewise.
7032 2019-08-08 Jakub Jelinek <jakub@redhat.com>
7034 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
7035 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
7036 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
7037 GOVD_EXPLICIT flags.
7038 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
7039 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
7040 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
7041 call install_var_field with mask 11 instead of 3.
7042 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
7043 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
7045 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7047 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
7048 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
7050 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7052 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
7053 MOVPRFX alternatives. Make the GPR alternatives more expensive
7056 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7058 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
7059 Disparage the GPR alternative relative to the FPR one.
7060 Fix handling of 8-bit and 16-bit FPR values.
7062 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7064 * config/aarch64/iterators.md (BITWISEV): Delete.
7065 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
7066 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
7067 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
7068 UNSPEC_FMINNMV, UNSPEC_FMINV.
7069 (bit_reduc_op): Delete.
7070 (sve_int_op): New int attribute.
7071 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
7072 UNSPEC_FMINNMV, UNSPEC_FMINV.
7073 * config/aarch64/aarch64-sve.md
7074 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
7075 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
7076 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
7077 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
7078 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
7079 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
7081 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
7082 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
7083 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
7084 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
7085 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
7088 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7090 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
7091 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
7092 (fms<mode>4, *fms<mode>4): Replace with...
7093 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7094 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
7095 Use unspecs instead of rtx codes.
7096 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
7097 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
7099 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7101 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
7103 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
7104 * config/aarch64/aarch64-sve.md
7105 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
7106 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
7107 use a single unspec for the rhs.
7108 (*<su><maxmin><mode>3): Delete.
7109 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
7111 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7113 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
7114 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
7115 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
7116 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
7117 (optab, sve_fp_op): Handle them.
7118 (SVE_FP_UNARY): Delete.
7119 (optab): Remove sqrt entry.
7120 (sve_fp_op): Remove neg, abs and sqrt entries.
7121 (SVE_COND_FP_UNARY): New int iterator.
7122 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
7123 (*<frint_pattern><mode>2): Delete.
7124 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
7125 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
7126 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
7127 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
7129 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7131 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
7133 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7135 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
7136 (UNSPEC_COND_FADD): ...this.
7137 (UNSPEC_COND_SUB): Rename to...
7138 (UNSPEC_COND_FSUB): ...this.
7139 (UNSPEC_COND_MUL): Rename to...
7140 (UNSPEC_COND_FMUL): ...this.
7141 (UNSPEC_COND_DIV): Rename to...
7142 (UNSPEC_COND_FDIV): ...this.
7143 (UNSPEC_COND_MAX): Rename to...
7144 (UNSPEC_COND_FMAXNM): ...this.
7145 (UNSPEC_COND_MIN): Rename to...
7146 (UNSPEC_COND_FMINNM): ...this.
7147 (UNSPEC_COND_LT): Rename to...
7148 (UNSPEC_COND_FCMLT): ...this.
7149 (UNSPEC_COND_LE): Rename to...
7150 (UNSPEC_COND_FCMLE): ...this.
7151 (UNSPEC_COND_EQ): Rename to...
7152 (UNSPEC_COND_FCMEQ): ...this.
7153 (UNSPEC_COND_NE): Rename to...
7154 (UNSPEC_COND_FCMNE): ...this.
7155 (UNSPEC_COND_GE): Rename to...
7156 (UNSPEC_COND_FCMGE): ...this.
7157 (UNSPEC_COND_GT): Rename to...
7158 (UNSPEC_COND_FCMGT): ...this.
7159 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
7160 (sve_fp_op_rev): Update accordingly.
7161 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
7163 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7165 * config/aarch64/aarch64-sve.md: Reorganize contents and add
7167 * config/aarch64/check-sve-md.awk: New file.
7168 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
7169 (insn-conditions.md): Depend on it.
7171 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
7174 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
7175 (*negsi2_cmpz_zext): Ditto.
7177 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7179 * config/aarch64/iterators.md (commutative): Remove.
7181 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
7184 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
7185 processing COLLECT_GCC_OPTIONS.
7186 (run_gcc): Likewise.
7188 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
7190 PR tree-optimization/91109
7191 * lra-remat.c (update_scratch_ops): Remove assignment of the
7194 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
7196 * data-streamer.h (streamer_write_poly_uint64): Declare.
7197 (streamer_read_poly_uint64): Likewise.
7198 * data-streamer-in.c (streamer_read_poly_uint64): New function.
7199 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
7200 * ipa-predicate.h (condition::size): Turn into a poly_int64.
7201 (add_condition): Take a poly_int64 size.
7202 * ipa-predicate.c (add_condition): Likewise.
7203 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
7204 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
7205 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
7206 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
7207 condition::size as a poly_int64.
7208 (unmodified_parm_1): Take a poly_int64 size pointer.
7209 (unmodified_parm): Likewise.
7210 (unmodified_parm_or_parm_agg_item): Likewise.
7211 (set_cond_stmt_execution_predicate): Update accordingly.
7212 (set_switch_stmt_execution_predicate): Likewise.
7213 (will_be_nonconstant_expr_predicate): Likewise.
7214 (will_be_nonconstant_predicate): Likewise.
7215 (inline_read_section): Stream condition::size as a poly_int.
7216 (ipa_fn_summary_write): Likewise.
7218 2019-08-07 Martin Liska <mliska@suse.cz>
7220 * fold-const.c (twoval_comparison_p): Replace int
7221 with bool as a return type.
7222 (simple_operand_p): Likewise.
7223 (operand_equal_p): Replace int with bool as a return type.
7224 * fold-const.h (operand_equal_p): Likewise.
7226 2019-08-07 Jakub Jelinek <jakub@redhat.com>
7228 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
7229 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
7230 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
7231 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
7232 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
7233 * tree-pretty-print.c (dump_omp_clause): Likewise.
7234 * tree-nested.c (convert_nonlocal_omp_clauses,
7235 convert_local_omp_clauses): Likewise.
7236 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
7238 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
7239 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
7240 clause with array or reference to array types, no matter what type
7241 except for reference it has.
7243 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
7245 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
7247 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
7249 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
7250 (arch_canonicalize): Support rv32g and rv64g and fix error
7253 2019-08-06 Martin Liska <mliska@suse.cz>
7255 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
7256 and DECL_IS_OPERATOR_DELETE_P.
7258 2019-08-06 Jakub Jelinek <jakub@redhat.com>
7260 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
7261 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
7262 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
7263 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
7264 (gimplify_omp_for): Don't do C++ random access iterator clause
7265 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
7266 don't predetermine the artificial iterator in case of C++ random
7267 access iterators as lastprivate, but private. For OMP_LOOP, force
7268 bind expr around simd body and force for_pre_body before the
7269 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
7270 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
7271 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
7272 diff var of C++ random access iterators. Handle
7273 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
7274 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
7275 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
7276 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
7277 * omp-low.c (lower_rec_input_clauses): For
7278 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
7279 variables instead of default constructing them.
7280 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
7281 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
7282 is_taskloop_ctx check from the assert to the guarding condition.
7284 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
7286 * config/riscv/multilib-generator: (canonical_order): New.
7287 (arch_canonicalize): Dito.
7288 Apply arch_canonicalize for alts.
7290 2019-08-05 Martin Sebor <msebor@redhat.com>
7292 * doc/extend.texi (Common Variable Attributes): Document alias
7295 2019-08-05 Marek Polacek <polacek@redhat.com>
7297 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
7298 * doc/invoke.texi: Document -Wcomma-subscript.
7300 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
7302 * tree-core.h (tree_function_decl): Make function_code an
7303 independent field. Group the remaining bitfields into bytes
7304 and move decl_type so that it contines to be at a byte boundary.
7305 Leave 12 bits for future expansion.
7307 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
7309 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
7310 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
7311 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
7314 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
7316 * gimple.h (gimple_move_vops): Declare.
7317 * gimple.c (gimple_move_vops): New function
7318 * gimple-fold.c (replace_call_with_call_and_fold)
7319 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
7320 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
7321 (gimple_fold_call): Use it.
7322 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
7323 * tree-call-cdce.c (use_internal_fn): Likewise.
7324 * tree-if-conv.c (predicate_load_or_store): Likewise.
7325 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7326 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7327 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
7328 (update_call_from_tree): Likewise.
7329 * tree-vect-stmts.c (vectorizable_load): Likewise.
7330 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
7332 2019-08-05 Martin Liska <mliska@suse.cz>
7335 * tree-ssa-dce.c (propagate_necessity): Handle new operators
7337 (eliminate_unnecessary_stmts): Likewise.
7339 2019-08-05 Richard Biener <rguenther@suse.de>
7342 * fold-const.c (get_array_ctor_element_at_index): Create
7343 offset_ints according to the sign of the index type and treat
7344 that as signed if it is obviously so.
7346 2019-08-05 Jakub Jelinek <jakub@redhat.com>
7349 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
7350 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
7351 _mm256_storeu2_m128i): New function.
7353 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
7355 * config/riscv/riscv.c (riscv_promote_function_mode): New.
7356 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
7358 2019-08-05 Alan Modra <amodra@gmail.com>
7361 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
7362 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
7364 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
7366 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
7367 bug that was fixed in Tcl 8.6.1.
7369 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
7371 * config/rs6000/future.md: New file.
7372 * config/rs6000/rs6000.md: Include future.md.
7373 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
7375 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
7377 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
7378 check to use targetm.slow_unaligned_access instead.
7380 * function.c (assign_param_data_one): Remove unused data members.
7382 2019-08-02 Steve Ellcey <sellcey@marvell.com>
7384 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
7385 build_distinct_type_copy.
7386 (simd_clone_adjust_argument_types): Ditto.
7387 (simd_clone_adjust): Call build_distinct_type_copy here.
7388 (expand_simd_clones): Ditto.
7390 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
7393 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
7395 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
7397 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
7398 from 'const void *'.
7399 (sort_locs_in_loop_postorder_cmp): Likewise.
7401 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
7403 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
7404 (hot-bb-count-ws-permille): Likewise.
7405 (hot-bb-frequency-fraction): Likewise.
7406 (unlikely-bb-count-fraction): Likewise.
7407 * params.def (hot-bb-count-fraction): Rework description.
7408 (hot-bb-count-ws-permille): Likewise.
7409 (hot-bb-frequency-fraction): Likewise.
7410 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
7411 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
7413 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
7416 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
7419 2019-08-02 Richard Biener <rguenther@suse.de>
7421 * vec.h (vec::sort): Add gcc_qsort_r support.
7422 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
7423 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
7424 to gcc_qsort_r style callback.
7425 (sort_locs_in_loop_postorder_cmp): Likewise.
7426 (analyze_memory_references): Use gcc_sort_r interfaces.
7427 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
7429 2019-08-02 Martin Liska <mliska@suse.cz>
7432 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
7433 to detect working job server.
7434 (driver::detect_jobserver): Test whether jobserver
7435 is active from GCC driver. That will prevent situation where
7436 GCC is invoked from a LD plugin and the linker already uses
7437 file descriptors suggested by make. That leads to a wrong
7439 * gcc.h (driver): Add detect_jobserver.
7440 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
7441 not scanning for --jobserver-auth prefix.
7443 2019-08-02 Jakub Jelinek <jakub@redhat.com>
7445 PR tree-optimization/91201
7446 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
7447 V16QImode extraction without sse4.1 try to use V4SImode lowpart
7450 2019-08-01 Martin Sebor <msebor@redhat.com>
7453 * tree.c (type_initializer_zero_p): Define.
7454 * tree.h (type_initializer_zero_p): New function.
7456 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
7458 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
7460 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
7462 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
7463 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
7464 * predict.c (maybe_hot_count_p): Likewise.
7465 (maybe_hot_bb_p): Tweak comment.
7466 (maybe_hot_edge_p): Likewise.
7467 (probably_never_executed): Likewise. Minor tweak.
7468 (probably_never_executed_bb_p): Likewise.
7469 (unlikely_executed_edge_p): Likewise.
7470 (probably_never_executed_edge_p): Likewise.
7471 (optimize_function_for_size_p): Likewise.
7472 (optimize_function_for_speed_p): Likewise.
7473 (function_optimization_type): Likewise.
7474 (optimize_bb_for_size_p): Likewise.
7475 (optimize_bb_for_speed_p): Likewise.
7476 (bb_optimization_type): Likewise.
7477 (optimize_edge_for_size_p): Likewise.
7478 (optimize_edge_for_speed_p): Likewise.
7479 (optimize_insn_for_size_p): Likewise.
7480 (optimize_insn_for_speed_p): Likewise.
7481 (optimize_loop_for_size_p): Likewise.
7482 (optimize_loop_for_speed_p): Likewise.
7483 (optimize_loop_nest_for_speed_p): Likewise.
7484 (optimize_loop_nest_for_size_p): Likewise.
7485 (predictable_edge_p): Likewise.
7486 (handle_missing_profiles): Minor tweak.
7488 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
7490 * config/rs6000/predicates.md (pcrel_external_address): Update
7493 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
7496 * config/i386/mmx.md (usadv8qi): New expander.
7498 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
7501 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
7502 with reserved names that are in a system header.
7504 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
7506 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
7507 (*vec_extractv2si_0_zext_sse4): New insn pattern.
7508 (*vec_extractv2si_0_zext): Ditto.
7509 (*vec_extractv2si_1): Add (rm,x) alternative.
7510 (*vec_extractv2si_1_zext): New insn pattern.
7511 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
7514 2019-08-01 Richard Biener <rguenther@suse.de>
7516 * domwalk.c (bb_postorder): Remove static variable.
7517 (cmp_bb_postorder): Adjust.
7518 (sort_bbs_postorder): Adjust and use gcc_sort_r.
7519 (dom_walker::walk): Adjust.
7521 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
7523 * sort.cc (sort_r_ctx): New struct.
7524 (reorder23): Make templated on context type.
7526 (cmp1): Ditto. Adjust signature.
7529 [CHECKING_P] (cmp2to3): New static function. Use it...
7530 (gcc_qsort) [CHECKING_P]: ...here.
7531 (gcc_sort_r): New function.
7532 * system.h (sort_r_cmp_fn): New function typedef.
7533 (qsort_chk): Adjust signature.
7534 (gcc_sort_r): Declare.
7535 * vec.c (qsort_chk_error): Adjust.
7536 (qsort_chk): Adjust.
7538 2019-08-01 Richard Biener <rguenther@suse.de>
7540 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
7541 (compute_antic): Localize it here.
7543 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
7545 * common/config/riscv/riscv-common.c: Check -march string ends
7548 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
7550 * ipa-devirt.c (type_warning_cmp): Make static.
7551 (decl_warning_cmp): Ditto.
7553 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
7556 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
7557 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
7558 use of deleted rs6000_dejagnu_cpu_index variable.
7559 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
7560 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7561 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
7562 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
7563 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
7564 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7566 2019-07-31 Richard Biener <rguenther@suse.de>
7568 PR tree-optimization/91280
7569 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7570 Decompose MEM_REF manually for offset handling.
7572 2019-07-31 Richard Biener <rguenther@suse.de>
7574 PR tree-optimization/91293
7575 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
7578 2019-07-31 Matt Thomas <matt@3am-software.com>
7579 Nick Hudson <nick@nthcliff.demon.co.uk>
7580 Matthew Green <mrg@eterna.com.au>
7581 Maya Rashish <coypu@sdf.org>
7583 * config.gcc (hppa*-*-netbsd*): New target.
7584 * config/pa/pa-netbsd.h: New file.
7585 * config/pa/pa32-netbsd.h: New file.
7587 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7589 PR tree-optimization/91201
7590 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
7592 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
7594 * config/gcn/gcn-valu.md
7595 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
7596 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
7597 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
7598 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
7599 struct ilist. Add nops for delayeduse insns.
7600 * config/gcn/gcn.md (delayeduse): New attribute.
7601 (*movbi): Remove s_waitcnt from stores.
7602 (*mov<mode>_insn): Likewise.
7603 (*movti_insn): Likewise. Add delayeduse attribute.
7604 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
7605 (atomic_store<mode>): Remove or adjust s_waitcnt.
7607 2019-07-31 Richard Biener <rguenther@suse.de>
7609 * vr-values.h (vr_values::swap_vr_value): New.
7610 (vr_values::free_value_range): likewise.
7611 * vr-values.c (vr_values::swap_vr_value): Implement.
7612 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
7613 Do not return a range or take a var.
7614 (evrp_range_analyzer::stack): Change back to recording a non-const
7616 * gimple-ssa-evrp-analyze.c
7617 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
7619 (evrp_range_analyzer::pop_to_marker): Adjust.
7620 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
7621 (evrp_range_analyzer::pop_value_range): Likewise. Free the
7622 no longer needed value-range.
7624 2019-07-31 Martin Liska <mliska@suse.cz>
7626 * tree-ssa-dce.c (propagate_necessity): Delete operator can
7627 have size and (or) alignment as 2nd and later arguments.
7628 Mark all of them as necessary.
7630 2019-07-31 Richard Biener <rguenther@suse.de>
7632 PR tree-optimization/91178
7633 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7636 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7638 PR tree-optimization/91201
7639 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
7640 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
7642 (reduc_plus_scal_<mode>): Improve formatting by introducing
7645 2019-07-31 Sudakshina Das <sudi.das@arm.com>
7647 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
7648 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
7649 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
7650 (aarch64_init_tme_builtins): New.
7651 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
7652 (aarch64_expand_builtin_tme): New.
7653 (aarch64_expand_builtin): Handle TME builtins.
7654 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7655 __ARM_FEATURE_TME when enabled.
7656 * config/aarch64/aarch64-option-extensions.def: Add "tme".
7657 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
7659 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
7660 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
7662 (tstart, ttest, tcommit, tcancel): New instructions.
7663 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
7664 (__tcancel, __ttest): New.
7665 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
7666 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
7667 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
7668 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
7669 * config/arm/types.md: Add new tme type attr.
7670 * doc/invoke.texi: Document "tme".
7672 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
7674 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
7675 warn_unused_result attribute.
7676 (cmse_check_address_range): Add warn_unused_result attribute.
7678 2019-07-31 Richard Biener <rguenther@suse.de>
7680 PR tree-optimization/91257
7681 * tree-vrp.c (union_ranges): Unify equality and less tests
7682 by using compare_values. Re-order cheap tests first.
7684 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7687 * gimplify.c (gimplify_omp_for): If for class iterator on
7688 distribute parallel for there is no data sharing clause
7689 on inner_for_stmt, look for private clause on combined
7690 parallel too and if found, move it to inner_for_stmt.
7692 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
7694 * lra-int.h (lra_operand_data): Remove early_clobber field.
7695 (lra_insn_reg): Likewise.
7696 * lra.c (debug_operand_data): Update accordingly.
7697 (setup_operand_alternative): Likewise.
7698 (new_insn_reg): Likewise. Remove early_clobber parameter.
7699 (collect_non_operand_hard_regs): Update call accordingly.
7700 Don't assign to lra_insn_reg::early_clobber.
7701 (add_regs_to_insn_regno_info): Remove early_clobber parameter
7702 and update calls to new_insn_reg.
7703 (lra_update_insn_regno_info): Update calls accordingly.
7704 * lra-constraints.c (update_and_check_small_class_inputs): Take the
7705 alternative number as a parameter and test whether the operand
7706 is earlyclobbered in that particular alternative.
7707 (process_alt_operands): Update call accordingly. Use per-alternative
7708 checks for earyclobber here too.
7709 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
7710 against zero for IRA_UNKNOWN_ALT.
7712 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
7714 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
7716 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
7718 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
7719 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7721 2019-07-30 Martin Liska <mliska@suse.cz>
7724 * cgraph.c (cgraph_edge::make_direct): Use
7725 edge->indirect_unknown_callee as edge->resolve_speculation can
7726 deallocate edge which is this pointer.
7728 2019-07-30 Richard Biener <rguenther@suse.de>
7730 PR tree-optimization/91257
7731 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
7733 2019-07-30 Martin Liska <mliska@suse.cz>
7735 * doc/invoke.texi: Document new behavior.
7736 * lto-wrapper.c (cpuset_popcount): New function
7737 is a copy of libgomp/config/linux/proc.c.
7738 (init_num_threads): Likewise.
7739 (run_gcc): Automatically detect core count for -flto.
7740 (jobserver_active_p): New function.
7742 2019-07-30 Richard Biener <rguenther@suse.de>
7744 PR tree-optimization/91257
7745 * bitmap.h (bitmap_ior_into_and_free): Declare.
7746 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
7747 whether to add the unliked element to the freelist.
7748 (bitmap_list_insert_element_after): Add defaulted param for
7749 an already allocated element.
7750 (bitmap_ior_into_and_free): New function.
7751 * tree-ssa-structalias.c (condense_visit): Reduce the
7752 ponts-to and edge bitmaps of the SCC members in a
7753 logarithmic fashion rather than all to one.
7755 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
7757 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
7758 parameter. When nonnull, make sure that the addition or subtraction
7759 has the same condition.
7760 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
7761 for CFN_COND_MUL too.
7763 2019-07-30 Richard Biener <rguenther@suse.de>
7765 PR tree-optimization/91291
7766 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
7769 2019-07-30 Jakub Jelinek <jakub@redhat.com>
7772 * omp-low.c (global_nonaddressable_vars): New variable.
7773 (use_pointer_for_field): For global decls, if they are non-addressable,
7774 remember it in the global_nonaddressable_vars bitmap, if they are
7775 addressable and in the global_nonaddressable_vars bitmap, ignore their
7776 TREE_ADDRESSABLE bit.
7777 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
7778 vars in global_nonaddressable_vars bitmap.
7779 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
7782 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
7783 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
7784 comparison to unsigned HOST_WIDE_INT before shifting it left.
7786 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
7788 * config/i386/i386.md (movstrict<mode>): Use register_operand
7789 predicate for operand 0. Add expander condition. Assert that
7790 operand 0 is a SUBREG RTX.
7791 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
7792 Update operand constraints and insn condition.
7793 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
7794 (zero_extendqihi2_and): Do not call gen_movstrictqi.
7795 (*setcc_qi_slp): Use register_operand predicate for operand 0.
7796 Update operand 0 constraints.
7797 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
7799 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7801 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
7802 when -m{code,data}-region are used without -mlarge.
7803 * config/msp430/msp430.c (msp430_option_override): Error when a
7804 non-default code or data region is used without -mlarge.
7805 (msp430_section_attr): Emit a warning and do not add upper/lower/either
7806 attributes when they are used without -mlarge.
7808 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7811 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
7813 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7816 * wide-int.h (generic_wide_int::sext_elt): New function.
7817 * inchash.h (hash::add_wide_int): Use it instead of elt.
7819 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7821 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
7823 * config/arm/arm.md (<crc_variant>): Rename to...
7824 (arm_<crc_variant>): ... This.
7825 (<cdp>): Rename to...
7826 (arm_<cdp>): ... This.
7827 (<ldc>): Rename to...
7828 (arm_<ldc>): ... This.
7829 (<stc>): Rename to...
7830 (arm_<stc>): ... This.
7831 (<mcr>): Rename to...
7832 (arm_<mcr>): ... This.
7833 (<mrc>): Rename to...
7834 (arm_<mrc>): ... This.
7835 (<mcrr>): Rename to...
7836 (arm_<mcrr>): ... This.
7837 (<mrrc>): Rename to...
7838 (arm_<mrrc>): ... This.
7840 2019-07-29 Richard Biener <rguenther@suse.de>
7842 PR tree-optimization/91257
7843 * tree-ssa-sccvn.h (struct vn_avail): New.
7844 (struct vn_ssa_aux): Add avail member.
7845 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
7846 member, add m_avail_freelist one.
7847 (rpo_elim::~rpo_elim): Remove.
7848 (rpo_elim::eliminate_avail): Adjust to new avail tracking
7850 (rpo_elim::eliminate_push_avail): Likewise.
7851 (do_unwind): Likewise.
7852 (do_rpo_vn): Likewise.
7854 2019-07-29 Richard Biener <rguenther@suse.de>
7856 PR tree-optimization/91257
7857 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
7858 most cases, instead call compare_values which handles the
7859 symbolic ranges we handle specially.
7860 (compare_values_warnv): Do not call operand_less_p but open-code
7861 the effective fold calls. Avoid converting so much.
7863 2019-07-29 Martin Liska <mliska@suse.cz>
7865 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
7866 remove LHS of operator new call. It's handled latter.
7868 2019-07-29 Richard Biener <rguenther@suse.de>
7870 PR tree-optimization/91267
7871 * vr-values.c (vr_values::update_value_range): Add early return
7872 for effectively VARYING lattice entry.
7874 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7877 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
7878 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
7879 necessary if keep_all_vdefs_p is true.
7880 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
7881 that keep_all_vdefs_p is false.
7882 (mark_all_reaching_defs_necessary): Likewise.
7883 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
7885 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7887 * common.opt (Og): Change the initial value of flag_dse to 0.
7888 * opts.c (default_options_table): Move OPT_ftree_dse from
7889 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
7890 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
7891 entry before the OPT_ftree_sra entry.
7892 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
7893 of flags disabled by Og.
7895 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7897 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
7900 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7902 * doc/sourcebuild.texi (check-function-bodies): Document.
7904 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7906 * simplify-rtx.c (simplify_const_unary_operation): Fold a
7907 VEC_DUPLICATE of a fixed-length vector even if the result
7908 is variable-length. Likewise fold a duplicate of a
7909 variable-length vector if the variable-length vector is
7910 itself a duplicate of a fixed-length sequence.
7911 (test_vector_ops_duplicate): Test more cases.
7913 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7915 * vector-builder.h (vector_builder): Add a shape template parameter.
7916 (vector_builder::new_unary_operation): New function, generalizing
7917 the old tree_vector_builder function.
7918 (vector_builder::new_binary_operation): Likewise.
7919 (vector_builder::binary_encoded_nelts): Likewise.
7920 * int-vector-builder.h (int_vector_builder): Update template
7921 parameters to vector_builder.
7922 (int_vector_builder::shape_nelts): New function.
7923 * rtx-vector-builder.h (rtx_vector_builder): Update template
7924 parameters to vector_builder.
7925 (rtx_vector_builder::shape_nelts): New function.
7926 (rtx_vector_builder::nelts_of): Likewise.
7927 (rtx_vector_builder::npatterns_of): Likewise.
7928 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
7929 * tree-vector-builder.h (tree_vector_builder): Update template
7930 parameters to vector_builder.
7931 (tree_vector_builder::shape_nelts): New function.
7932 (tree_vector_builder::nelts_of): Likewise.
7933 (tree_vector_builder::npatterns_of): Likewise.
7934 (tree_vector_builder::nelts_per_pattern_of): Likewise.
7935 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
7936 (tree_vector_builder::new_binary_operation): Delete.
7937 (tree_vector_builder::binary_encoded_nelts): Likewise.
7938 * simplify-rtx.c: Include rtx-vector-builder.h.
7939 (distributes_over_addition_p): New function.
7940 (simplify_const_unary_operation)
7941 (simplify_const_binary_operation): Generalize handling of vector
7942 constants to include variable-length vectors.
7943 (test_vector_ops_series): Add more tests.
7945 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
7948 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
7949 than INDENTIFIER_POINTER.
7951 2019-07-28 Martin Liska <mliska@suse.cz>
7954 * cgraph.c (symbol_table::create_edge): Always allocate
7956 (symbol_table::free_edge): Store summary_id to
7957 edge_released_summary_ids if != -1;
7958 * cgraph.h (NEXT_FREE_NODE): Remove.
7959 (SET_NEXT_FREE_NODE): Likewise.
7960 (NEXT_FREE_EDGE): Likewise.
7961 (symbol_table::release_symbol): Store summary_id to
7962 cgraph_released_summary_ids if != -1;
7963 (symbol_table::allocate_cgraph_symbol): Always allocate
7966 2019-07-28 Alan Modra <amodra@gmail.com>
7968 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
7971 2019-07-28 Alan Modra <amodra@gmail.com>
7974 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
7976 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
7977 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
7978 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
7980 2019-07-28 Alan Modra <amodra@gmail.com>
7983 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
7984 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
7985 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
7986 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
7987 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
7988 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
7989 in asm_default spec.
7990 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
7991 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
7993 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
7995 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
7997 2019-07-26 Tamar Christina <tamar.christina@arm.com>
8000 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
8001 * config/aarch64/aarch64-option-extensions.def: Add new comments
8002 and restore easier to read options.
8004 2019-07-26 Tamar Christina <tamar.christina@arm.com>
8006 * convert.c (convert_to_real_1): Move part of conversion code...
8007 * match.pd: ...To here.
8009 2019-07-26 Martin Jambor <mjambor@suse.cz>
8012 * ipa-inline-transform.c (check_speculations_1): New function.
8013 (push_all_edges_in_set_to_vec): Likewise.
8014 (check_speculations): Use check_speculations_1, new parameter
8016 (inline_call): Pass new_edges to check_speculations.
8017 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
8019 (speculation_useful_p): Early return true if edge is inlined, remove
8020 later checks for inline_failed.
8022 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
8024 PR rtl-optimization/91223
8025 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
8026 matching with INOUT operand.
8028 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
8030 * stmt.c (expand_case): Try to narrow the index type if it's larger
8031 than a word. Tidy up.
8033 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
8035 * cif-code.def (NEVER_CALL): New code.
8036 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
8037 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
8039 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
8041 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
8042 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8044 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8046 * ipa-devirt.c (add_type_duplicate): Fix return value.
8048 2019-07-25 Richard Biener <rguenther@suse.de>
8050 * tree-vrp.c (extract_range_from_multiplicative_op): Add
8051 type parameter and use it instead of guessing expression
8052 type from the first operand.
8053 (extract_range_from_binary_expr): Pass expr_type down.
8055 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8057 * config/arm/arm.md (SATrev): Change to code attribute.
8058 (*satsi_<SAT:code>): Adjust for the above.
8059 (*satsi_<SAT:code>_shift): Likewise.
8061 2019-07-25 Richard Biener <rguenther@suse.de>
8063 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
8064 Make value_range * temporary const.
8065 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
8067 (evrp_range_analyzer::record_ranges_from_): Likewise.
8068 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
8069 deal with having recorded a const one.
8070 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
8071 Return a const value_range *.
8072 (evrp_range_analyzer::pop_value_range): Likewise.
8073 (evrp_range_analyzer::stack): Record const value_range *s.
8074 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
8076 * gimple-ssa-sprintf.c (get_int_range): Likewise.
8077 (format_integer): Likewise.
8078 (sprintf_dom_walker::handle_gimple_call): Likewise.
8079 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
8080 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
8081 (vrp_prop::get_value_range): Adjust.
8082 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
8083 modifying the lattice in-place.
8084 (vrp_prop::visit_stmt): Likewise.
8085 * vr-values.c (vr_values::get_lattice_entry): New private method.
8086 (vr_values::get_value_range): Wrap it and return a const
8088 (vr_values::set_def_to_varying): New.
8089 (vr_values::set_defs_to_varying): Use it.
8090 (vr_values::update_value_range): Likewise.
8091 (vr_values::vrp_stmt_computes_nonzero): Adjust.
8092 (values::op_with_constant_singleton_va): Likewise.
8093 (vr_values::extract_range_for_var_from_co): Likewise.
8094 (vr_values::extract_range_from_ssa_name): Likewise.
8095 (vr_values::extract_range_from_cond_expr): Likewise.
8096 (vr_values::extract_range_basic): Likewise.
8097 (compare_ranges): Take const value_range *, adjust.
8098 (compare_range_with_value): Likewise.
8099 (vrp_valueize): Adjust.
8100 (vrp_valueize_1): Likewise.
8101 (vr_values::get_vr_for_comparison): Return a const value_range *.
8102 (vr_values::compare_name_with_value): Adjust.
8103 (vr_values::compare_names): Likewise.
8104 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
8106 (vr_values::vrp_evaluate_conditional): Likewise.
8107 (find_case_label_ranges): Take a const value_range *.
8108 (vr_values::vrp_visit_switch_stmt): Adjust.
8109 (vr_values::extract_range_from_phi_node): Likewise.
8110 (vr_values::simplify_div_or_mod_using_ran): Likewise.
8111 (vr_values::simplify_abs_using_ranges): Likewise.
8112 (test_for_singularity): Take a const value_range *.
8113 (range_fits_type_p): Likewise.
8114 (vr_values::simplify_cond_using_ranges_1): Adjust.
8115 (vr_values::simplify_cond_using_ranges_2): Likewise.
8116 (vr_values::simplify_switch_using_ranges): Likewise.
8117 (vr_values::simplify_float_conversion_usi): Likewise.
8118 (vr_values::two_valued_val_range_p): Likewise.
8119 * vr-values.h (vr_values::get_value_range): Return a const
8121 (vr_values::set_def_to_varying): New.
8122 (vr_values::get_lattice_entry): New private method.
8123 (vr_values::get_vr_for_comparison): Return a const value_range *.
8125 2019-07-25 Martin Liska <mliska@suse.cz>
8126 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
8129 * common.opt: Add -fallocation-dce
8130 * gimple.c (gimple_call_operator_delete_p): New.
8131 * gimple.h (gimple_call_operator_delete_p): Likewise.
8132 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
8133 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
8134 DECL_IS_OPERATOR_DELETE_P.
8135 (mark_all_reaching_defs_necessary_1): Likewise.
8136 (propagate_necessity): Likewise.
8137 (eliminate_unnecessary_stmts): Handle
8138 gimple_call_operator_delete_p.
8139 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
8140 Add packing of OPERATOR_DELETE.
8141 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
8143 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
8144 (DECL_SET_IS_OPERATOR_DELETE): New.
8145 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
8147 2019-07-25 Martin Liska <mliska@suse.cz>
8149 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
8150 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
8151 * coverage.c (coverage_begin_function): Likewise.
8152 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
8153 * gimple.c (gimple_call_nonnull_result_p): Likewise.
8154 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
8155 (sem_item::hash_referenced_symbol_properties): Likewise.
8156 * lto-streamer-out.c (hash_tree): Likewise.
8157 * predict.c (expr_expected_value_1): Likewise.
8158 * tree-inline.c (expand_call_inline): Likewise.
8159 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8160 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8161 * tree-core.h (enum function_decl_type): New enum.
8162 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
8163 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
8164 (set_function_decl_type): Likewise.
8165 (DECL_IS_OPERATOR_NEW_P): New.
8166 (DECL_SET_IS_OPERATOR_NEW): Likewise.
8167 (DECL_LAMBDA_FUNCTION): Likewise.
8168 (DECL_LAMBDA_FUNCTION_P): Likewise.
8169 (DECL_IS_OPERATOR_NEW): Remove.
8170 (DECL_SET_LAMBDA_FUNCTION): Likewise.
8172 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
8174 * ipa-profile.c (get_most_common_single_value): Use
8175 get_nth_most_common_value.
8176 * profile.c (sort_hist_value): New function.
8177 (compute_value_histograms): Call sort_hist_value to sort the
8178 values after loading from disk.
8179 * value-prof.c (get_most_common_single_value): Rename to ...
8180 get_nth_most_common_value. Add input params n, return
8181 the n_th value and count.
8182 (gimple_divmod_fixed_value_transform): Use
8183 get_nth_most_common_value.
8184 (gimple_ic_transform): Likewise.
8185 (gimple_stringops_transform): Likewise.
8186 * value-prof.h (get_most_common_single_value): Add input params
8189 2019-07-25 Richard Biener <rguenther@suse.de>
8191 PR tree-optimization/91236
8192 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
8193 size of CONSTRUCTOR write. Fix buffer size we pass to
8196 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8198 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
8199 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
8202 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8204 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
8205 explicitly disabled with --disable-initfini-array.
8207 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8209 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
8212 2019-07-24 Martin Sebor <msebor@redhat.com>
8214 PR tree-optimization/91183
8215 PR tree-optimization/86688
8216 * builtins.c (compute_objsize): Handle MEM_REF.
8217 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
8218 (get_min_string_length): Remove.
8219 (count_nonzero_bytes): New function.
8220 (handle_char_store): Rename...
8221 (handle_store): to this. Handle multibyte stores via integer types.
8222 (strlen_check_and_optimize_stmt): Adjust conditional and the called
8225 2019-07-24 Martin Sebor <msebor@redhat.com>
8228 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
8229 (diagnostic_report_diagnostic): Same.
8230 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
8231 (diagnostic_context::lang_mask): New data member.
8232 * ipa-pure-const.c (suggest_attribute): Use
8233 lang_hooks.option_lang_mask ().
8234 * opts-common.c (option_enabled): Handle new argument.
8235 (get_option_state): Pass an additional argument.
8236 * opts.c (print_filtered_help): Print supported languages for
8237 unsupported options. Adjust printing of current state.
8238 * opts.h (option_enabled): Add argument.
8239 * toplev.c (print_switch_values): Use lang_mask.
8240 (general_init): Set global_dc->lang_mask.
8242 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
8245 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
8247 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
8249 * cgraphunit.c (symbol_table::compile): Start and stop
8250 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
8251 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
8253 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
8255 * gimplify.c (flag_instrument_functions_exclude_p): Include
8256 namespace/class information in the printable name.
8257 * opts.c (add_comma_separated_to_vector): Add NUL terminator
8258 to tokens entered into the vector.
8260 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
8262 * tree-nested.c (build_simple_mem_ref_notrap): New function.
8263 (get_static_chain): Call it instead of build_simple_mem_ref.
8264 (get_frame_field): Likewise.
8265 (get_nonlocal_debug_decl): Likewise.
8266 (convert_nonlocal_reference_op): Likewise.
8268 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
8270 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
8272 (arc_compute_frame_size): Millicode is disabled when compiling
8274 (arc_return_address_register): Likewise.
8275 (arc_compute_function_type): Likewise.
8276 (arc_compute_frame_size): Likewise.
8277 (secondary_reload_info): Likewise.
8278 (arc_get_unalign): Likewise.
8279 (arc_can_use_return_insn): Declare.
8280 * config/arc/arc.c (AUX_LP_START): Define
8281 (AUX_LP_END): Likewise.
8282 (arc_frame_info): Update gmask member to 64-bit datum.
8283 (GMASK_LEN): Update.
8284 (arc_compute_function_type): Make it static, move it forward.
8285 (arc_must_save_register): Update, consider the extra regs.
8286 (arc_compute_millicode_save_restore_regs): Update to use the 64
8288 (arc_compute_frame_size): Likewise.
8289 (arc_enter_leave_p): Likewise.
8290 (arc_save_callee_saves): Likewise.
8291 (arc_restore_callee_saves): Likewise.
8292 (arc_save_callee_enter): Likewise.
8293 (arc_restore_callee_leave): Likewise.
8294 (arc_save_callee_milli): Likewise.
8295 (arc_restore_callee_milli): Likewise.
8296 (arc_expand_prologue): Add new interrupt handling.
8297 (arc_return_address_register): Make it static, move it forward.
8298 (arc_expand_epilogue): Add new interrupt handling.
8299 (arc_get_unalign): Delete.
8300 (arc_epilogue_uses): Make sure we do not remove the extra
8301 saved/restored registers when interrupt.
8302 (arc_can_use_return_insn): New function.
8303 (push_reg): Likewise.
8304 (pop_reg): Likewise.
8305 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
8307 (arc_restore_callee_saves): Likewise, but restoring.
8308 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
8309 (R33_REG): Likewise.
8310 (R34_REG): Likewise.
8311 (R35_REG): Likewise.
8312 (R36_REG): Likewise.
8313 (R37_REG): Likewise.
8314 (R38_REG): Likewise.
8315 (R39_REG): Likewise.
8316 (R45_REG): Likewise.
8317 (R46_REG): Likewise.
8318 (R47_REG): Likewise.
8319 (R48_REG): Likewise.
8320 (R49_REG): Likewise.
8321 (R50_REG): Likewise.
8322 (R51_REG): Likewise.
8323 (R52_REG): Likewise.
8324 (R53_REG): Likewise.
8325 (R54_REG): Likewise.
8326 (R55_REG): Likewise.
8327 (R56_REG): Likewise.
8328 (R58_REG): Likewise.
8329 (type): Add rtie attribute.
8330 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
8331 (movsi_insn): Accept moves to lp_count.
8332 (rtie): Update pattern.
8333 (simple_return): Simplify it, don't use this pattern as a return
8335 (arc600_rtie): New pattern.
8336 (p_return_i): Clean up.
8338 * config/arc/builtins.def (rtie): Only available for non ARC6xx
8340 * config/arc/predicates.md (move_src_operand): Consider lp_count
8343 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
8345 * config/s390/predicates.md (addv_const_operand): New predicate.
8346 * config/s390/s390-modes.def (CCO): New condition code mode.
8347 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
8348 (s390_branch_condition_mask): Likewise.
8349 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
8350 ("mulv<mode>4"): New expanders.
8351 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
8352 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
8353 pattern definitions.
8355 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8358 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
8359 (define_predicates): Add entry for uniform_vector_p.
8360 (vec_same_elem_p): New match pattern.
8362 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
8365 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
8366 * config/i386/darwin32-biarch.h .. to here.
8367 * config/i386/darwin64-biarch.h: Adjust comments.
8368 * config/rs6000/darwin32-biarch.h: Likewise.
8369 * config/rs6000/darwin64-biarch.h: Likewise.
8370 * config.gcc: Missed commit from r273746
8371 (*-*-darwin*): Don't include CPU t-darwin here.
8372 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8373 an error message if i686-darwin configuration is attempted for
8376 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
8379 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
8380 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8381 an error message if i686-darwin configuration is attempted for
8383 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
8384 (powerpc-*-darwin*): Use biarch files where needed.
8385 (powerpc64-*-darwin*): Likewise.
8386 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
8387 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8389 * config/i386/darwin32-biarch.h: New.
8390 * config/i386/darwin64.h: Rename.
8391 * config/i386/darwin64-biarch.h: To this.
8392 * config/i386/t-darwin: Rename.
8393 * config/i386/t-darwin32-biarch: To this.
8394 * config/i386/t-darwin64: Rename.
8395 * config/i386/t-darwin64-biarch: To this.
8396 * config/rs6000/darwin32-biarch.h: New.
8397 * config/rs6000/darwin64.h: Rename.
8398 * config/rs6000/darwin64-biarch.h: To this.
8399 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8401 * config/rs6000/t-darwin8: Rename.
8402 * config/rs6000/t-darwin32-biarch: To this.
8403 * config/rs6000/t-darwin64 Rename.
8404 * config/rs6000/t-darwin64-biarch: To this.
8406 2019-07-23 Martin Sebor <msebor@redhat.com>
8408 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
8410 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
8412 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
8413 (rh): New alias for it.
8415 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
8417 * gdbhooks.py: Pass replace=True to
8418 gdb.printing.register_pretty_printer.
8420 2019-07-23 Richard Biener <rguenther@suse.de>
8423 * lto-streamer-in.c (input_function): Drop inline-entry markers
8424 that ended up with an unknown location block.
8426 2019-07-23 Richard Biener <rguenther@suse.de>
8428 PR tree-optimization/83518
8429 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
8430 init from a constant even when partial defs are already recorded.
8432 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8434 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
8435 * config/i386/znver1.md: Enable patterns for znver2 and add store
8436 variants which use extra AGU unit.
8438 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8440 * config/i386/i386-options.c (ix86_option_override_internal): Default
8441 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
8442 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
8445 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
8447 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
8448 (znver2_costs): Update 256 bit SSE costs and multiplication.
8450 2019-07-23 Jan Beulich <jbeulich@suse.com>
8452 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
8453 Require only AVX512F.
8454 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
8455 alternative expanding to vpternlog.
8457 2019-07-23 Martin Liska <mliska@suse.cz>
8459 * dwarf2out.c (gen_producer_string): Canonize -flto=N
8460 to -flto in dwarf producer string.
8462 2019-07-23 Richard Biener <rguenther@suse.de>
8464 * tree-cfg.c (label_for_bb): Remove global var.
8465 (main_block_label): Take label_for_bb as argument.
8466 (cleanup_dead_labels_eh): Likewise, adjust.
8467 (cleanup_dead_labels): Adjust.
8469 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
8471 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
8472 Configurations): Add documentation for __builtin_mtfsf.
8474 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
8476 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
8477 * config/riscv/riscv.c (riscv_constant_alignment): Use
8478 riscv_align_data_type.
8479 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
8480 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8481 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8482 * config/riscv/riscv.opt (malign-data): New.
8483 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
8485 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
8487 * cgraph.c (dump_graphviz): New function.
8488 * cgraph.h (dump_graphviz): New function.
8489 * symtab.c (dump_graphviz): New function.
8491 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
8493 * config/aarch64/aarch64-simd.md
8494 (*aarch64_simd_sra<mode>): New.
8495 * config/aarch64/iterators.md
8496 (SHIFTRT): New iterator.
8497 (sra_op): New attribute.
8499 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8501 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
8502 callee-saved regs R4->R10 in an interrupt function that calls another
8505 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
8507 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
8508 (_mm_blendv_epi8): New.
8510 2019-07-22 Richard Biener <rguenther@suse.de>
8512 PR tree-optimization/91221
8513 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
8514 restrict partial-def handling of empty constructors and
8515 memset to refs with known offset.
8517 2019-07-22 Jan Beulich <jbeulich@suse.com>
8519 * config/i386/sse.md (ternlogsuffix): New.
8520 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
8522 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
8524 2019-07-22 Martin Liska <mliska@suse.cz>
8526 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
8528 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
8530 2019-07-22 Martin Liska <mliska@suse.cz>
8532 * lto-section-in.c (lto_get_section_data):
8533 Use new function get_compression.
8534 * lto-streamer-out.c (produce_lto_section): Use
8535 set_compression to encode compression algorithm.
8536 * lto-streamer.h (struct lto_section): Do not
8537 use bitfields in the format.
8539 2019-07-22 Martin Liska <mliska@suse.cz>
8542 * opts-common.c (decode_cmdline_option): Decode
8543 argument of -Werror and check it for a wrong language.
8544 * opts-global.c (complain_wrong_lang): Remove such case.
8546 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
8548 * config/arc/arc.c (prepare_move_operands): Always use an
8549 intermediate register when storing a TLS symbols.
8551 2019-07-22 Stafford Horne <shorne@gmail.com>
8553 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
8556 2019-07-22 Stafford Horne <shorne@gmail.com>
8558 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
8559 and munordered-float validations.
8560 * config/or1k/constraints.md (d): New register constraint.
8561 * config/or1k/predicates.md (fp_comparison_operator): New.
8562 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
8564 (or1k_expand_compare): Normalize unordered comparisons.
8565 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
8566 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
8567 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
8568 * config/or1k/or1k.md (type): Add fpu.
8569 (fpu): New instruction reservation.
8570 (F, f, fr, fi, FI, FOP, fop): New.
8571 (<fop><F:mode>3): New ALU instruction definition.
8572 (float<fi><F:mode>2): New conversion instruction definition.
8573 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
8574 (fpcmpcc): New code iterator.
8575 (*sf_fp_insn): New instruction definition.
8576 (cstore<F:mode>4): New expand definition.
8577 (cbranch<F:mode>4): New expand definition.
8578 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
8579 munordered-float): New options.
8580 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
8583 2019-07-22 Stafford Horne <shorne@gmail.com>
8585 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
8586 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
8587 documenation to be more clear.
8588 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
8590 * config/or1k/or1k.opt (mrori): New option.
8591 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
8592 msfimm, mshftimm): Rewrite documentation to be more clear.
8593 * config/or1k/or1k.md (insn_support): Add ror and rori.
8594 (enabled): Add conditions for ror and rori.
8595 (rotrsi3): Replace condition for shftimm with ror and rori.
8597 2019-07-22 Stafford Horne <shorne@gmail.com>
8600 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
8601 (extend<mode>si2): Update predicate.
8602 * config/or1k/predicates.md (volatile_mem_operand): New.
8603 (reg_or_mem_operand): New.
8605 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
8607 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
8608 * config/rs6000/rs6000-call.c: ... to here.
8610 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8612 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
8615 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8617 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
8619 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8621 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
8623 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8625 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
8626 (any_memory_operand): New predicate.
8627 (reg_or_mem_operand): Use it.
8629 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8632 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
8634 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
8636 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
8637 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
8639 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8641 * tree.def (OMP_LOOP): New tree code.
8642 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
8643 (enum omp_clause_bind_kind): New enum.
8644 (struct tree_omp_clause): Add subcode.bind_kind.
8645 * tree.h (OMP_LOOP_CHECK): Rename to ...
8646 (OMP_LOOPING_CHECK): ... this.
8647 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8648 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
8649 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
8650 (OMP_CLAUSE_BIND_KIND): Define.
8651 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8652 bind clause entries.
8653 (walk_tree_1): Handle OMP_CLAUSE_BIND.
8654 * tree-pretty-print.c (dump_omp_clause): Likewise.
8655 (dump_generic_node): Handle OMP_LOOP.
8656 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
8657 (in_omp_construct): New variable.
8658 (is_gimple_stmt): Handle OMP_LOOP.
8659 (gimplify_scan_omp_clauses): For lastprivate don't set
8660 check_non_private if code == OMP_LOOP. For reduction clause
8661 on OMP_LOOP combined with parallel or teams propagate as shared
8662 on the combined construct. Handle OMP_CLAUSE_BIND.
8663 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
8664 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
8665 for constructs from a loop construct to gimplify_scan_omp_clauses.
8666 Don't predetermine iterator linear on OMP_SIMD from loop construct.
8667 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
8668 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
8669 to match the implicit ORT_TARGET construct around whole body.
8670 Temporarily clear in_omp_construct when processing body.
8671 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
8672 etc. temporarily set in_omp_construct when processing body.
8673 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
8674 * omp-low.c (struct omp_context): Add loop_p.
8675 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
8676 in that the original var might be private.
8677 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
8678 (check_omp_nesting_restrictions): Adjust nesting restrictions for
8679 addition of loop construct.
8680 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
8682 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
8683 lastprivate non-addressable iterator of a collapse(1) simd.
8685 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
8687 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
8690 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
8692 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
8693 refer to default conditions. Warn for the 'y' spec which is ignored
8696 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
8698 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
8699 cpu_supports_info, builtin_hash_struct, builtin_hasher,
8700 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8701 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8702 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8703 init_cumulative_args, rs6000_promote_function_mode,
8704 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8705 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8706 rs6000_function_arg_boundary, rs6000_parm_offset,
8707 rs6000_parm_start, rs6000_arg_size,
8708 rs6000_darwin64_record_arg_advance_flush,
8709 rs6000_darwin64_record_arg_advance_recurse,
8710 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8711 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8712 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8713 rs6000_mixed_function_arg, rs6000_psave_function_arg,
8714 rs6000_finish_function_arg, rs6000_function_arg,
8715 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8716 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8717 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8718 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8719 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8720 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8721 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8722 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8723 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8724 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8725 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8726 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8727 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8728 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8729 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8730 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8731 get_element_number, altivec_expand_vec_set_builtin,
8732 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8733 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8734 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8735 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8736 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8737 rs6000_expand_builtin, rs6000_vector_type,
8738 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8739 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8740 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
8742 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
8743 cpu_supports_info, builtin_hash_struct, builtin_hasher,
8744 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8745 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8746 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8747 init_cumulative_args, rs6000_promote_function_mode,
8748 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8749 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8750 rs6000_function_arg_boundary, rs6000_parm_offset,
8751 rs6000_parm_start, rs6000_arg_size,
8752 rs6000_darwin64_record_arg_advance_flush,
8753 rs6000_darwin64_record_arg_advance_recurse,
8754 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8755 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8756 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8757 rs6000_mixed_function_arg, rs6000_psave_function_arg,
8758 rs6000_finish_function_arg, rs6000_function_arg,
8759 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8760 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8761 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8762 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8763 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8764 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8765 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8766 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8767 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8768 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8769 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8770 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8771 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8772 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8773 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8774 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8775 get_element_number, altivec_expand_vec_set_builtin,
8776 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8777 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8778 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8779 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8780 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8781 rs6000_expand_builtin, rs6000_vector_type,
8782 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8783 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8784 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
8785 to here from rs6000.c.
8786 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
8787 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
8788 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
8789 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
8790 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
8791 rs6000_return_in_memory, rs6000_return_in_msb,
8792 rs6000_pass_by_reference, setup_incoming_varargs,
8793 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
8794 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
8795 rs6000_function_arg_padding, rs6000_function_arg,
8796 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
8797 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
8798 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
8799 rs6000_passes_long_double, rs6000_passes_vector,
8800 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
8801 altivec_builtin_mask_for_load) Add declarations.
8802 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
8803 * config/config.gcc: Add new source file rs6000-call.c to garbage
8804 collector and extra_objs.
8806 2019-07-19 Jeff Law <law@redhat.com>
8808 PR tree-optimization/86061
8809 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
8810 strncpy. Drop some trivial dead code.
8811 (maybe_trim_memstar_call): Handle strncpy.
8813 2019-07-19 Richard Biener <rguenther@suse.de>
8815 PR tree-optimization/91211
8816 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
8817 memset encoding size.
8819 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
8822 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
8824 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
8827 * ipa-inline.c (recursive_inlining): Fix limits check.
8829 2019-07-19 Richard Biener <rguenther@suse.de>
8831 PR tree-optimization/91200
8832 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
8833 no PHI nodes in middle-bb.
8835 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
8837 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
8839 * config/aarch64/aarch64-option-extensions.def: Likewise.
8841 2019-07-19 Jakub Jelinek <jakub@redhat.com>
8844 * function.c (insert_temp_slot_address): Store into the hash table
8845 a copy of address to avoid RTL sharing issues.
8847 2019-07-19 Richard Biener <rguenther@suse.de>
8849 PR tree-optimization/91207
8851 2019-07-17 Richard Biener <rguenther@suse.de>
8853 PR tree-optimization/91178
8854 * tree-vect-stmts.c (get_group_load_store_type): For SLP
8855 loads with a gap larger than the vector size always use
8857 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8858 avoid loading vectors that are only contained in the gap
8859 and thus are not needed.
8861 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
8863 * config/i386/i386.md (*addqi_2_slp): Remove.
8864 (*<code>qi_2_slp): Ditto.
8866 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
8868 * config/rs6000/predicates.md (prefixed_mem_operand): Call
8869 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
8870 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
8871 Rename function from rs6000_prefixed_address.
8872 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8874 (TARGET_TOC): Likewise.
8875 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8877 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8879 (TARGET_TOC): Likewise.
8880 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8882 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8884 (TARGET_TOC): Likewise.
8885 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8886 check to require -mcmodel=medium for pc-relative addressing.
8887 (create_TOC_reference): Add assertion for TARGET_TOC.
8888 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
8890 (rs6000_emit_move): Likewise.
8891 (TOC_alias_set): Rename TOC alias set static variable from 'set'
8893 (get_TOC_alias_set): Likewise.
8894 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
8896 (rs6000_can_eliminate): Likewise.
8897 (rs6000_prefixed_address_mode_p): Rename function from
8898 rs6000_prefixed_address.
8899 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
8900 TARGET_HAS_TOC and not pc-relative.
8901 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
8902 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8904 (TARGET_TOC): Likewise.
8905 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8908 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
8911 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
8912 for operand 0. Do not use (match_dup) to match operand 1 with
8913 operand 0. Add check in insn constraint that either input operand
8914 matches operand 0. Use SWI12 mode iterator to also handle
8916 (*and<mode>_1_slp): Ditto.
8917 (*<code>qi_1_slp): Ditto.
8918 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
8919 Do not use (match_dup) to match operand 1 with operand 0. Add
8920 check in insn constraint that operand 1 matches operand 0.
8921 Use SWI12 mode iterator to also handle HImode operands.
8922 (*ashl<mode>3_1_slp): Ditto.
8923 (*<shift_insn><mode>3_1_slp): Ditto.
8924 (*<rotate_insn><mode>3_1_slp): Ditto.
8926 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
8928 * config/arm/arm-builtins.c
8929 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
8930 (arm_expand_unop_builtin): Likewise.
8931 * config/arm/crypto.md
8932 (crypto_sha1h): Convert from define_insn to define_expand.
8933 (crypto_<crypto_pattern>): Likewise.
8934 (crypto_sha1h_lb): New define_insn.
8935 (crypto_<crypto_pattern>_lb): Likewise.
8937 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
8940 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
8941 (vsha1cq_u32): Likewise.
8942 (vsha1pq_u32): Likewise.
8943 (vsha1mq_u32): Likewise.
8944 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
8946 (crypto_sha1c): Correct vec select.
8947 (crypto_sha1m): Likewise.
8948 (crypto_sha1p): Likewise.
8950 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
8952 * config/arm/predicates.md (arm_borrow_operation): New predicate.
8953 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
8954 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
8955 (subdi_zesidi_zesidi): Likewise.
8956 (negdi2_compare, negdi2_insn): Likewise.
8957 (negdi_extensidi): Likewise.
8958 (negdi_zero_extendsidi): Likewise.
8959 (arm_cmpdi_insn): Likewise.
8960 (subsi3_carryin): Use arm_borrow_operation.
8961 (subsi3_carryin_const): Likewise.
8962 (subsi3_carryin_const0): Likewise.
8963 (subsi3_carryin_compare): Likewise.
8964 (subsi3_carryin_compare_const): Likewise.
8965 (subsi3_carryin_compare_const0): Likewise.
8966 (subsi3_carryin_shift): Likewise.
8967 (rsbsi3_carryin_shift): Likewise.
8968 (negsi2_carryin_compare): Likewise.
8970 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
8972 PR tree-optimization/91137
8973 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
8974 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
8975 Init, use and fini the above new field.
8976 (determine_base_object_1): New function.
8977 (determine_base_object): Reimplement using walk_tree.
8979 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
8981 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
8982 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
8983 CLEANUP_FORCE_FAST_DCE is set.
8984 * ifcvt.c (rest_of_handle_if_conversion): Pass
8985 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
8986 if-conversion succeeded.
8988 2019-07-18 Richard Biener <rguenther@suse.de>
8990 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
8991 branches to make code less indented.
8993 2019-07-17 Alexandre Oliva <oliva@adacore.com>
8996 * attribs.c (decls_mismatched_attributes): Simplify the logic
8997 that avoids duplicates and false positives.
8999 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
9001 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
9002 data into data section when generating PIC code.
9003 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
9004 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
9005 generating code for SOM targets earlier than HP-UX 11. Otherwise,
9006 return 2 for SOM and 0 for other targets.
9008 2019-07-17 Jeff Law <law@redhat.com>
9010 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
9011 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
9012 avoid unexpected switch statement fallthru.
9014 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
9016 * config/i386/i386.md (*add<dwi>3_doubleword):
9017 Remove redundant constraints.
9018 (*add<mode>_1): Ditto.
9021 (*addqi_1_slp): Ditto.
9022 (*add<mode>_2): Ditto.
9023 (*addv<mode>4): Ditto.
9024 (*sub<dwi>3_doubleword): Ditto.
9025 (*sub<mode>_1): Ditto.
9026 (*subqi_1_slp): Ditto.
9027 (*sub<mode>_2): Ditto.
9028 (*subv<mode>4): Ditto.
9029 (*sub<mode>_3): Ditto.
9030 (@add<mode>3_carry): Ditto.
9031 (@sub<mode>3_carry): Ditto.
9032 (*add<mode>3_cc_overflow_1): Ditto.
9033 (*add<mode>3_zext_cc_overflow_2): Ditto.
9035 (*and<mode>_1): Ditto.
9037 (*andqi_1_slp): Ditto.
9039 (*andqi_2_maybe_si): Ditto.
9040 (*and<mode>_2): Ditto.
9041 (*andqi_2_slp): Ditto.
9042 (*<code><mode>_1): Ditto.
9043 (*<code>qi_1): Ditto.
9044 (*<code>qi_1_slp): Ditto.
9045 (*<code><mode>_2): Ditto.
9046 (*<code>qi_2_slp): Ditto.
9048 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
9050 * alias.c (record_component_aliases): Do not simplify pointed-to
9053 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
9055 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
9056 partial reg stall on alternative 2.
9058 2019-07-17 Richard Biener <rguenther@suse.de>
9060 PR tree-optimization/91178
9061 * tree-ssa.c (release_defs_bitset): Iterate from higher to
9062 lower SSA names to avoid quadratic behavior in the common case.
9063 * tree-data-ref.c (split_constant_offset): Add limit argument
9064 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
9065 (split_constant_offset_1): Add limit argument and use it to
9066 limit SSA def walking. Optimize the common plus/minus case.
9068 2019-07-17 Richard Biener <rguenther@suse.de>
9070 PR tree-optimization/91178
9071 * tree-vect-stmts.c (get_group_load_store_type): For SLP
9072 loads with a gap larger than the vector size always use
9074 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
9075 avoid loading vectors that are only contained in the gap
9076 and thus are not needed.
9078 2019-07-17 Richard Biener <rguenther@suse.de>
9080 PR tree-optimization/91180
9081 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
9082 computation for memset partial defs.
9084 2019-07-17 Jakub Jelinek <jakub@redhat.com>
9086 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
9087 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
9088 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
9089 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
9090 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
9091 * omp-grid.c (grid_process_grid_body,
9092 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
9093 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
9094 == GF_OMP_FOR_KIND_SIMD.
9095 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
9096 check_omp_nesting_restrictions, scan_omp_1_stmt,
9097 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
9098 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
9099 omp_find_scan): Likewise.
9100 * omp-expand.c (expand_omp_for): Likewise.
9101 * omp-general.c (omp_extract_for_data): Likewise.
9103 PR tree-optimization/91157
9104 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
9105 a vector boolean with scalar mode.
9106 (expand_vector_condition): Handle first operand being a vector boolean
9108 (expand_vector_operations_1): For comparisons, don't bail out early
9109 if the return type is vector boolean with scalar mode, but comparison
9110 operand type is not.
9112 2019-07-17 Richard Biener <rguenther@suse.de>
9114 PR tree-optimization/91181
9115 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
9118 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
9120 * config/i386/i386.md (*testdi_1): Match CCZmode for
9121 constants that might have the SImode sign bit set.
9122 (*testqi_1_maybe_si): Remove "!" constraint modifier.
9123 Use correct constraints for pentium pairing.
9124 (*test<mode>_1): Ditto.
9126 2019-07-16 Jeff Law <law@redhat.com>
9128 PR rtl-optimization/91173
9129 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
9130 SSA_NAME with a constant value, fold its value into the offset
9131 and clear the base before calling gen_addr_rtx.
9133 2019-07-16 Jakub Jelinek <jakub@redhat.com>
9135 PR rtl-optimization/91164
9136 * dse.c (rest_of_handle_dse): If dead edges have been purged,
9137 invalidate dominance info.
9139 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
9141 * read-md.h (md_reader::record_potential_iterator_use): Add a
9142 file_location parameter.
9143 * read-rtl.c (attribute_use::loc): New field.
9144 (map_attr_string): Take a file_location parameter. Report cases
9145 in which attributes map to multiple distinct values.
9146 (apply_attribute_uses): Update call accordingly.
9147 (md_reader::handle_overloaded_name): Likewise.
9148 (md_reader::apply_iterator_to_string): Likewise. Skip empty
9150 (record_attribute_use): Take a file_location parameter.
9151 Initialize attribute_use::loc.
9152 (md_reader::record_potential_iterator_use): Take a file_location
9153 parameter. Update call to record_attribute_use.
9154 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
9155 (rtx_reader::read_rtx_code): Likewise.
9156 (rtx_reader::read_rtx_operand): Likewise. Record a location
9157 for implicitly-expanded empty strings.
9159 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
9161 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
9162 Use file_location instead of separate fields.
9163 (md_reader::set_md_ptr_loc): Take a file_location instead of a
9164 separate filename and line number.
9165 * read-md.c (ptr_loc): As above.
9166 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
9167 (md_reader::fprint_md_ptr_loc): Likewise.
9168 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
9169 instead of a separate filename and line number.
9170 (md_reader::read_string): Update call accordingly.
9172 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
9174 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
9175 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
9176 leaving the choice between SFDF and P implicit.
9177 (*mov<mode>_update2): Likewise.
9178 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
9179 rather than leaving the choice betweem IBM128 and GPR implicit.
9180 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
9181 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
9183 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
9184 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
9185 * config/rs6000/vsx.md
9186 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
9187 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
9188 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
9189 and VSX_EXTRACT_I implicit.
9191 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
9193 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
9194 Explicitly use <MOVEP1:MODE> for the mode attribute.
9196 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
9199 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
9201 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
9204 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
9207 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
9209 * config/i386/i386.md (@test<mode>_ccno_1):
9210 Rename from test<mode>_ccno_1.
9211 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
9212 (*testqi_1_maybe_si): Remove modrm attribute.
9213 (*test<mode>_1): Ditto.
9214 * config/i386/i386-expand.c (ix86_split_idivmod): Use
9215 gen_test_ccno_1 and gen_extend_insn.
9217 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
9219 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
9222 2019-07-15 Richard Biener <rguenther@suse.de>
9225 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
9226 node make sure to replace all uses with something valid.
9228 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
9230 PR tree-optimization/88497
9231 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
9232 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
9233 function undistribute_bitref_for_vector.
9234 (undistribute_bitref_for_vector): New function.
9235 (cleanup_vinfo_map): Likewise.
9236 (sort_by_mach_mode): Likewise.
9238 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
9240 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
9241 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
9242 and testdi_ccno_1 using SWI48 mode attribute.
9243 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
9244 x86_64_szext_general_operand.
9245 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
9246 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
9247 instead of genera_operand mode attribute.
9249 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
9251 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
9252 fopen and fclose to their respective types.
9253 (DotFn.invoke): Ditto.
9255 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
9257 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
9258 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
9259 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
9260 (array_index_predicate): Remove.
9261 (analyze_function_body): Account cost for variable ofsetted array
9263 (estimate_node_size_and_time): Do not compute array index hint.
9264 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
9265 (inline_read_section): Do not read array index hint.
9266 (ipa_fn_summary_write): Do not write array index hint.
9267 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
9268 * ipa-cp.c (hint_time_bonus): Remove.
9269 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
9270 (ipa_fnsummary): Remove array_index.
9271 * ipa-inline.c (want_inline_small_function_p): Do not use
9273 (edge_badness): Likewise.
9274 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
9276 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
9279 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
9280 superfluous "builtin function" phrasing.
9282 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
9284 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
9286 (aliasing_component_refs_walk): Break out from ...
9287 (aliasing_component_refs_p): ... here.
9289 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
9292 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
9293 "builtin function" phrasing.
9295 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9298 * recog.h (temporary_volatile_ok): New class.
9299 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
9300 volatile_ok temporarily to true using temporary_volatile_ok.
9301 * expr.c (emit_block_move_via_cpymem): Likewise.
9302 * optabs.c (maybe_legitimize_operand): Likewise.
9304 2019-07-13 Jakub Jelinek <jakub@redhat.com>
9306 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
9307 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
9308 uses inside of order(concurrent) constructs.
9309 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
9310 OMP_CLAUSE_ORDER is seen.
9311 * omp-low.c (struct omp_context): Add order_concurrent member.
9312 (scan_sharing_clauses): Set ctx->order_concurrent if
9313 OMP_CLAUSE_ORDER is seen.
9314 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
9315 of simd order(concurrent). Diagnose constructs not allowed inside of
9316 for order(concurrent).
9317 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
9318 complaining about static double setjmp (double); or class static
9319 methods or non-global namespace setjmps.
9320 (omp_runtime_api_call): New function.
9321 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
9322 order(concurrent) loops.
9324 2019-07-12 Martin Sebor <msebor@redhat.com>
9326 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
9327 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
9328 * tree-vrp.c (vrp_prop::check_mem_ref): Use
9329 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
9331 2019-07-12 Jan Hubicka <jh@suse.cz>
9333 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
9334 (indirect_refs_may_alias_p): ... here.
9335 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
9336 mem refs in the access paths.
9338 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
9340 PR tree-optimization/89430
9341 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
9342 store elimination for local variable without address escape.
9344 2019-07-12 Jeff Law <law@redhat.com>
9346 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
9347 for the ".far" section.
9349 2019-07-12 Richard Biener <rguenther@suse.de>
9351 PR tree-optimization/91145
9352 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
9355 2019-07-12 Alexandre Oliva <oliva@adacore.com>
9357 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
9358 rather than this_state as the lowering context for the ELSE
9359 seq in a GIMPLE_EH_ELSE.
9361 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9363 * vector-builder.h (vector_builder::elt): Allow already-supplied
9364 elements to be read back before building is complete.
9366 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
9368 PR rtl-optimization/91136
9369 * df-core.c (ACCESSING REFS): Fix typos in comment.
9370 * resource.c (mark_target_live_reg): Add artificial defs that occur at
9371 the beginning of the block to the initial set of live registers.
9373 2019-07-12 Richard Biener <rguenther@suse.de>
9375 * fold-const.h (get_array_ctor_element_at_index): Adjust.
9376 * fold-const.c (get_array_ctor_element_at_index): Add
9377 ctor_idx output parameter informing the caller where in
9378 the constructor the element was (not) found. Add early exit
9379 for when the ctor is sorted.
9380 * gimple-fold.c (fold_array_ctor_reference): Support constant
9381 folding across multiple array elements.
9383 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
9385 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
9386 doesn't have location, set the current location to the function's end.
9388 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9390 * config/aarch64/aarch64.md (*compare_condjump<mode>)
9391 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
9392 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
9393 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
9394 * config/aarch64/aarch64-simd.md
9395 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9396 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
9397 * config/aarch64/aarch64-sve.md
9398 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
9399 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
9401 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
9403 * doc/md.texi: Document that @ patterns can have different
9404 numbers of operands.
9405 * genemit.c (handle_overloaded_gen): Handle this case.
9406 * genopinit.c (handle_overloaded_gen): Likewise.
9407 * gensupport.c (replace_operands_with_dups): Iterate over
9408 the new rtx's format rather than the old one's.
9410 2019-07-12 Jakub Jelinek <jakub@redhat.com>
9412 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
9413 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9414 order clause entries.
9415 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
9416 * tree-pretty-print.c (dump_omp_clause): Likewise.
9417 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9419 * omp-low.c (scan_sharing_clauses): Likewise.
9420 * tree-nested.c (convert_nonlocal_omp_clauses,
9421 convert_local_omp_clauses): Likewise.
9423 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
9425 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
9426 fallthrough target of current basic block isn't the placed
9429 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
9432 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
9433 (_mm512_storeu_epi64): Likewise.
9434 (_mm512_loadu_epi32): Likewise.
9435 (_mm512_storeu_epi32): Likewise.
9436 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
9437 (_mm_storeu_epi64): Likewise.
9438 (_mm256_storeu_epi32): Likewise.
9439 (_mm_storeu_epi32): Likewise.
9441 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
9443 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
9445 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
9447 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
9450 2019-07-11 Jakub Jelinek <jakub@redhat.com>
9453 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
9454 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
9455 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
9456 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
9457 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
9458 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
9460 (ufix_truncv2dfv2si2<mask_name>): Change into ...
9461 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
9462 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
9464 (sse2_cvttpd2dq<mask_name>): Change into ...
9465 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
9466 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
9467 (*sse2_cvtpd2dq<mask_name>): Change into ...
9468 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
9469 Add "C" constraint to const0_operand.
9470 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
9471 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
9475 * config/i386/i386-builtin-types.def
9476 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
9477 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
9478 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
9479 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
9480 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
9481 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
9482 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
9483 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
9484 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
9485 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
9486 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
9487 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
9488 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
9489 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
9490 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
9491 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
9492 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
9493 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
9494 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
9495 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
9496 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
9497 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
9498 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
9499 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
9500 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
9501 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
9502 __builtin_ia32_vpdpbusd_v4si_maskz,
9503 __builtin_ia32_vpdpbusds_v16si_mask,
9504 __builtin_ia32_vpdpbusds_v16si_maskz,
9505 __builtin_ia32_vpdpbusds_v8si_mask,
9506 __builtin_ia32_vpdpbusds_v8si_maskz,
9507 __builtin_ia32_vpdpbusds_v4si_mask,
9508 __builtin_ia32_vpdpbusds_v4si_maskz,
9509 __builtin_ia32_vpdpwssd_v16si_mask,
9510 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
9511 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
9512 __builtin_ia32_vpdpwssd_v4si_maskz,
9513 __builtin_ia32_vpdpwssds_v16si_mask,
9514 __builtin_ia32_vpdpwssds_v16si_maskz,
9515 __builtin_ia32_vpdpwssds_v8si_mask,
9516 __builtin_ia32_vpdpwssds_v8si_maskz,
9517 __builtin_ia32_vpdpwssds_v4si_mask,
9518 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
9519 suffixed types rather than *_INT.
9520 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
9521 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
9522 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
9523 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
9524 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
9525 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
9527 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
9529 * tree-vrp.c (intersect_ranges): If we know the intersection is
9530 empty, there is no need to conservatively add anything else to
9533 2019-07-11 Richard Biener <rguenther@suse.de>
9536 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
9537 when the object is volatile and we have not cleared it even though
9538 there are no nonzero elements.
9540 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
9542 * config/rs6000/predicates.md (cint34_operand): Update
9543 SIGNED_34BIT_OFFSET_P call.
9544 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
9545 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
9546 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
9547 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
9548 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
9550 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
9551 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
9552 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
9553 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
9554 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
9556 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
9558 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
9559 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
9560 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
9561 (DEF_MIN_OSX_VERSION): New.
9563 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
9565 * fold-const.c (fold_relational_const): Fix folding of
9566 vector-to-scalar NE_EXPRs.
9567 (test_vector_folding): Add more tests.
9569 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
9572 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
9573 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
9574 (vec_setv2di_internal): Reexpress as...
9575 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
9576 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
9577 rather than gen_neon_vset_lane<mode>.
9579 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
9582 * lra-constraints.c (process_alt_operands): Don't match user
9583 defined regs only if they are early clobbers.
9585 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
9587 * wide-int.h (wi::lshift): Reject negative values for the fast path.
9589 2019-07-10 Richard Biener <rguenther@suse.de>
9591 PR tree-optimization/91126
9592 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
9593 native encoding offset for BYTES_BIG_ENDIAN.
9594 (vn_reference_lookup_3): Likewise.
9596 2019-07-10 Richard Biener <rguenther@suse.de>
9598 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
9599 LHS whenever possible.
9601 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
9603 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
9604 from ...; work also on duplicated types.
9605 (nonoverlapping_component_refs_since_match): ... here
9606 (ncr_type_uid): Break out from ...
9607 (ncr_compar): ... here; look for TYPE_UID of canonical type if
9609 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
9610 the types and nonoverlapping_component_refs_p_1 to disambiguate.
9612 2019-07-09 Martin Sebor <msebor@redhat.com>
9614 PR tree-optimization/90989
9615 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
9616 optimization to just single character stores.
9618 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
9620 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
9621 Swap operands only once.
9623 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9625 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
9626 for both call instructions.
9628 2019-07-09 John Darrington <john@darrington.wattle.id.au>
9630 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
9631 rather than GET_MODE_BITSIZE to better handle partial integer modes.
9633 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
9635 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
9636 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
9637 function from rs6000-logue.c back to rs6000.c.
9638 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
9640 2019-07-09 Martin Sebor <msebor@redhat.com>
9643 * auto-profile.c: Change class-key of PODs to struct and others
9645 * basic-block.h: Same.
9646 * bitmap.c (bitmap_alloc): Same.
9648 * builtins.c (expand_builtin_prefetch): Same.
9649 (expand_builtin_interclass_mathfn): Same.
9650 (expand_builtin_strlen): Same.
9651 (expand_builtin_mempcpy_args): Same.
9652 (expand_cmpstr): Same.
9653 (expand_builtin___clear_cache): Same.
9654 (expand_ifn_atomic_bit_test_and): Same.
9655 (expand_builtin_thread_pointer): Same.
9656 (expand_builtin_set_thread_pointer): Same.
9657 * caller-save.c (setup_save_areas): Same.
9658 (replace_reg_with_saved_mem): Same.
9659 (insert_restore): Same.
9660 (insert_save): Same.
9661 (add_used_regs): Same.
9662 * cfg.c (get_bb_copy): Same.
9663 (set_loop_copy): Same.
9666 * cfgexpand.c (alloc_stack_frame_space): Same.
9667 (add_stack_var): Same.
9668 (add_stack_var_conflict): Same.
9669 (add_scope_conflicts_1): Same.
9670 (update_alias_info_with_stack_vars): Same.
9671 (expand_used_vars): Same.
9672 * cfghooks.c (redirect_edge_and_branch_force): Same.
9673 (delete_basic_block): Same.
9675 (make_forwarder_block): Same.
9676 (force_nonfallthru): Same.
9677 (duplicate_block): Same.
9678 (lv_flush_pending_stmts): Same.
9680 * cfgloop.c (flow_loops_cfg_dump): Same.
9681 (flow_loop_nested_p): Same.
9682 (superloop_at_depth): Same.
9683 (get_loop_latch_edges): Same.
9684 (flow_loop_dump): Same.
9685 (flow_loops_dump): Same.
9686 (flow_loops_free): Same.
9687 (flow_loop_nodes_find): Same.
9688 (establish_preds): Same.
9689 (flow_loop_tree_node_add): Same.
9690 (flow_loop_tree_node_remove): Same.
9691 (flow_loops_find): Same.
9692 (find_subloop_latch_edge_by_profile): Same.
9693 (find_subloop_latch_edge_by_ivs): Same.
9694 (mfb_redirect_edges_in_set): Same.
9695 (form_subloop): Same.
9696 (merge_latch_edges): Same.
9697 (disambiguate_multiple_latches): Same.
9698 (disambiguate_loops_with_multiple_latches): Same.
9699 (flow_bb_inside_loop_p): Same.
9701 (get_loop_body_with_size): Same.
9702 (get_loop_body): Same.
9703 (fill_sons_in_loop): Same.
9704 (get_loop_body_in_dom_order): Same.
9705 (get_loop_body_in_custom_order): Same.
9706 (release_recorded_exits): Same.
9707 (get_loop_exit_edges): Same.
9708 (num_loop_branches): Same.
9709 (remove_bb_from_loops): Same.
9710 (find_common_loop): Same.
9711 (delete_loop): Same.
9712 (cancel_loop): Same.
9713 (verify_loop_structure): Same.
9714 (loop_preheader_edge): Same.
9715 (loop_exit_edge_p): Same.
9716 (single_exit): Same.
9717 (loop_exits_to_bb_p): Same.
9718 (loop_exits_from_bb_p): Same.
9719 (get_loop_location): Same.
9720 (record_niter_bound): Same.
9721 (get_estimated_loop_iterations_int): Same.
9722 (max_stmt_executions_int): Same.
9723 (likely_max_stmt_executions_int): Same.
9724 (get_estimated_loop_iterations): Same.
9725 (get_max_loop_iterations): Same.
9726 (get_max_loop_iterations_int): Same.
9727 (get_likely_max_loop_iterations): Same.
9728 * cfgloop.h (simple_loop_desc): Same.
9732 (loop_iterator::next): Same.
9733 (loop_outermost): Same.
9734 * cfgloopanal.c (mark_irreducible_loops): Same.
9735 (num_loop_insns): Same.
9736 (average_num_loop_insns): Same.
9737 (expected_loop_iterations_unbounded): Same.
9738 (expected_loop_iterations): Same.
9739 (mark_loop_exit_edges): Same.
9740 (single_likely_exit): Same.
9741 * cfgloopmanip.c (fix_bb_placement): Same.
9742 (fix_bb_placements): Same.
9743 (remove_path): Same.
9744 (place_new_loop): Same.
9746 (scale_loop_frequencies): Same.
9747 (scale_loop_profile): Same.
9748 (create_empty_if_region_on_edge): Same.
9749 (create_empty_loop_on_edge): Same.
9752 (fix_loop_placements): Same.
9753 (copy_loop_info): Same.
9754 (duplicate_loop): Same.
9755 (duplicate_subloops): Same.
9756 (loop_redirect_edge): Same.
9757 (can_duplicate_loop_p): Same.
9758 (duplicate_loop_to_header_edge): Same.
9759 (mfb_keep_just): Same.
9760 (has_preds_from_loop): Same.
9761 (create_preheader): Same.
9762 (create_preheaders): Same.
9763 (lv_adjust_loop_entry_edge): Same.
9764 (loop_version): Same.
9765 * cfgloopmanip.h: Same.
9767 * cgraphbuild.c: Same.
9768 * combine.c (make_extraction): Same.
9769 * config/i386/i386-features.c: Same.
9770 * config/i386/i386-features.h: Same.
9771 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
9772 (ix86_emit_outlined_ms2sysv_restore): Same.
9773 (ix86_noce_conversion_profitable_p): Same.
9774 (ix86_init_cost): Same.
9775 (ix86_simd_clone_usable): Same.
9776 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
9778 * coretypes.h: Same.
9779 * data-streamer-in.c (string_for_index): Change class-key of PODs
9780 to struct and others to class.
9781 (streamer_read_indexed_string): Same.
9782 (streamer_read_string): Same.
9783 (bp_unpack_indexed_string): Same.
9784 (bp_unpack_string): Same.
9785 (streamer_read_uhwi): Same.
9786 (streamer_read_hwi): Same.
9787 (streamer_read_gcov_count): Same.
9788 (streamer_read_wide_int): Same.
9789 * data-streamer.h (streamer_write_bitpack): Same.
9790 (bp_unpack_value): Same.
9791 (streamer_write_char_stream): Same.
9792 (streamer_write_hwi_in_range): Same.
9793 (streamer_write_record_start): Same.
9794 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
9795 (add_cross_iteration_register_deps): Same.
9796 (build_intra_loop_deps): Same.
9797 * df-core.c (df_analyze): Same.
9798 (loop_post_order_compute): Same.
9799 (loop_inverted_post_order_compute): Same.
9800 * df-problems.c (df_rd_alloc): Same.
9801 (df_rd_simulate_one_insn): Same.
9802 (df_rd_local_compute): Same.
9803 (df_rd_init_solution): Same.
9804 (df_rd_confluence_n): Same.
9805 (df_rd_transfer_function): Same.
9807 (df_rd_dump_defs_set): Same.
9808 (df_rd_top_dump): Same.
9809 (df_lr_alloc): Same.
9810 (df_lr_reset): Same.
9811 (df_lr_local_compute): Same.
9813 (df_lr_confluence_n): Same.
9815 (df_lr_top_dump): Same.
9816 (df_lr_verify_transfer_functions): Same.
9817 (df_live_alloc): Same.
9818 (df_live_reset): Same.
9819 (df_live_init): Same.
9820 (df_live_confluence_n): Same.
9821 (df_live_finalize): Same.
9822 (df_live_free): Same.
9823 (df_live_top_dump): Same.
9824 (df_live_verify_transfer_functions): Same.
9825 (df_mir_alloc): Same.
9826 (df_mir_reset): Same.
9827 (df_mir_init): Same.
9828 (df_mir_confluence_n): Same.
9829 (df_mir_free): Same.
9830 (df_mir_top_dump): Same.
9831 (df_word_lr_alloc): Same.
9832 (df_word_lr_reset): Same.
9833 (df_word_lr_init): Same.
9834 (df_word_lr_confluence_n): Same.
9835 (df_word_lr_free): Same.
9836 (df_word_lr_top_dump): Same.
9837 (df_md_alloc): Same.
9838 (df_md_simulate_one_insn): Same.
9839 (df_md_reset): Same.
9842 (df_md_top_dump): Same.
9843 * df-scan.c (df_insn_delete): Same.
9844 (df_insn_rescan): Same.
9845 (df_notes_rescan): Same.
9846 (df_sort_and_compress_mws): Same.
9847 (df_install_mws): Same.
9848 (df_refs_add_to_chains): Same.
9849 (df_ref_create_structure): Same.
9850 (df_ref_record): Same.
9851 (df_def_record_1): Same.
9852 (df_find_hard_reg_defs): Same.
9853 (df_uses_record): Same.
9854 (df_get_conditional_uses): Same.
9855 (df_get_call_refs): Same.
9856 (df_recompute_luids): Same.
9857 (df_get_entry_block_def_set): Same.
9858 (df_entry_block_defs_collect): Same.
9859 (df_get_exit_block_use_set): Same.
9860 (df_exit_block_uses_collect): Same.
9861 (df_mws_verify): Same.
9862 (df_bb_verify): Same.
9863 * df.h (df_scan_get_bb_info): Same.
9864 * doc/tm.texi: Same.
9865 * dse.c (record_store): Same.
9867 * emit-rtl.c (const_fixed_hasher::equal): Same.
9868 (set_mem_attributes_minus_bitpos): Same.
9869 (change_address): Same.
9870 (adjust_address_1): Same.
9871 (offset_address): Same.
9873 * except.c (dw2_build_landing_pads): Same.
9874 (sjlj_emit_dispatch_table): Same.
9875 * explow.c (allocate_dynamic_stack_space): Same.
9876 (emit_stack_probe): Same.
9877 (probe_stack_range): Same.
9878 * expmed.c (store_bit_field_using_insv): Same.
9879 (store_bit_field_1): Same.
9880 (store_integral_bit_field): Same.
9881 (extract_bit_field_using_extv): Same.
9882 (extract_bit_field_1): Same.
9883 (emit_cstore): Same.
9884 * expr.c (emit_block_move_via_cpymem): Same.
9885 (expand_cmpstrn_or_cmpmem): Same.
9886 (set_storage_via_setmem): Same.
9887 (emit_single_push_insn_1): Same.
9888 (expand_assignment): Same.
9889 (store_constructor): Same.
9890 (expand_expr_real_2): Same.
9891 (expand_expr_real_1): Same.
9894 * function.c (try_fit_stack_local): Same.
9895 (assign_stack_local_1): Same.
9896 (assign_stack_local): Same.
9897 (cut_slot_from_list): Same.
9898 (insert_slot_to_list): Same.
9899 (max_slot_level): Same.
9900 (move_slot_to_level): Same.
9901 (temp_address_hasher::equal): Same.
9902 (remove_unused_temp_slot_addresses): Same.
9903 (assign_temp): Same.
9904 (combine_temp_slots): Same.
9905 (update_temp_slot_address): Same.
9906 (preserve_temp_slots): Same.
9909 * gcc-rich-location.h: Same.
9911 * genattrtab.c (check_attr_test): Same.
9912 (check_attr_value): Same.
9913 (convert_set_attr_alternative): Same.
9914 (convert_set_attr): Same.
9916 (copy_boolean): Same.
9917 (get_attr_value): Same.
9918 (expand_delays): Same.
9919 (make_length_attrs): Same.
9921 (make_alternative_compare): Same.
9922 (simplify_test_exp): Same.
9923 (tests_attr_p): Same.
9924 (get_attr_order): Same.
9925 (clear_struct_flag): Same.
9927 (compares_alternatives_p): Same.
9930 (find_attrs_to_cache): Same.
9931 (write_test_expr): Same.
9932 (walk_attr_value): Same.
9933 (write_attr_get): Same.
9934 (eliminate_known_true): Same.
9935 (write_insn_cases): Same.
9936 (write_attr_case): Same.
9937 (write_attr_valueq): Same.
9938 (write_attr_value): Same.
9939 (write_dummy_eligible_delay): Same.
9940 (next_comma_elt): Same.
9942 (make_internal_attr): Same.
9943 (copy_rtx_unchanging): Same.
9944 (gen_insn_reserv): Same.
9945 (check_tune_attr): Same.
9946 (make_automaton_attrs): Same.
9948 * genextract.c (gen_insn): Same.
9949 (VEC_char_to_string): Same.
9950 * genmatch.c (print_operand): Same.
9952 (parser::parse_operation): Same.
9953 (parser::parse_capture): Same.
9954 (parser::parse_c_expr): Same.
9955 (parser::parse_simplify): Same.
9957 * genoutput.c (output_operand_data): Same.
9958 (output_get_insn_name): Same.
9959 (compare_operands): Same.
9960 (place_operands): Same.
9961 (process_template): Same.
9962 (validate_insn_alternatives): Same.
9963 (validate_insn_operands): Same.
9965 (note_constraint): Same.
9966 * genpreds.c (write_one_predicate_function): Same.
9967 (add_constraint): Same.
9968 (process_define_register_constraint): Same.
9969 (write_lookup_constraint_1): Same.
9970 (write_lookup_constraint_array): Same.
9971 (write_insn_constraint_len): Same.
9972 (write_reg_class_for_constraint_1): Same.
9973 (write_constraint_satisfied_p_array): Same.
9974 * genrecog.c (optimize_subroutine_group): Same.
9975 * gensupport.c (process_define_predicate): Same.
9976 (queue_pattern): Same.
9977 (remove_from_queue): Same.
9978 (process_rtx): Same.
9979 (is_predicable): Same.
9980 (change_subst_attribute): Same.
9981 (subst_pattern_match): Same.
9982 (alter_constraints): Same.
9983 (alter_attrs_for_insn): Same.
9984 (shift_output_template): Same.
9985 (alter_output_for_subst_insn): Same.
9986 (process_one_cond_exec): Same.
9988 (process_define_cond_exec): Same.
9989 (mnemonic_htab_callback): Same.
9990 (gen_mnemonic_attr): Same.
9991 (read_md_rtx): Same.
9993 * gimple-loop-interchange.cc (dump_reduction): Same.
9994 (dump_induction): Same.
9995 (loop_cand::~loop_cand): Same.
9996 (free_data_refs_with_aux): Same.
9997 (tree_loop_interchange::interchange_loops): Same.
9998 (tree_loop_interchange::map_inductions_to_loop): Same.
9999 (tree_loop_interchange::move_code_to_inner_loop): Same.
10000 (compute_access_stride): Same.
10001 (compute_access_strides): Same.
10002 (proper_loop_form_for_interchange): Same.
10003 (tree_loop_interchange_compute_ddrs): Same.
10004 (prune_datarefs_not_in_loop): Same.
10005 (prepare_data_references): Same.
10006 (pass_linterchange::execute): Same.
10007 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
10008 (unroll_jam_possible_p): Same.
10009 (fuse_loops): Same.
10010 (adjust_unroll_factor): Same.
10011 (tree_loop_unroll_and_jam): Same.
10012 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
10013 (loop_versioning::expensive_stmt_p): Same.
10014 (loop_versioning::version_for_unity): Same.
10015 (loop_versioning::dump_inner_likelihood): Same.
10016 (loop_versioning::find_per_loop_multiplication): Same.
10017 (loop_versioning::analyze_term_using_scevs): Same.
10018 (loop_versioning::record_address_fragment): Same.
10019 (loop_versioning::analyze_expr): Same.
10020 (loop_versioning::analyze_blocks): Same.
10021 (loop_versioning::prune_conditions): Same.
10022 (loop_versioning::merge_loop_info): Same.
10023 (loop_versioning::add_loop_to_queue): Same.
10024 (loop_versioning::decide_whether_loop_is_versionable): Same.
10025 (loop_versioning::make_versioning_decisions): Same.
10026 (loop_versioning::implement_versioning_decisions): Same.
10027 * gimple-ssa-evrp-analyze.c
10028 (evrp_range_analyzer::record_ranges_from_phis): Same.
10029 * gimple-ssa-store-merging.c (split_store::split_store): Same.
10030 (count_multiple_uses): Same.
10031 (split_group): Same.
10032 (imm_store_chain_info::output_merged_store): Same.
10033 (pass_store_merging::process_store): Same.
10034 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
10035 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
10037 (alloca_call_type): Same.
10038 (pass_walloca::execute): Same.
10039 * gimple-streamer-in.c (input_phi): Same.
10040 (input_gimple_stmt): Same.
10041 * gimple-streamer.h: Same.
10042 * godump.c (go_force_record_alignment): Same.
10043 (go_format_type): Same.
10044 (go_output_type): Same.
10045 (go_output_fndecl): Same.
10046 (go_output_typedef): Same.
10047 (keyword_hash_init): Same.
10048 (find_dummy_types): Same.
10049 * graph.c (draw_cfg_nodes_no_loops): Same.
10050 (draw_cfg_nodes_for_loop): Same.
10051 * hard-reg-set.h (hard_reg_set_iter_next): Same.
10052 * hsa-brig.c: Same.
10053 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
10054 * hsa-dump.c (dump_hsa_cfun): Same.
10055 * hsa-gen.c (gen_function_def_parameters): Same.
10056 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
10057 * input.c (dump_line_table_statistics): Same.
10058 (test_lexer): Same.
10060 * internal-fn.c (get_multi_vector_move): Same.
10061 (expand_load_lanes_optab_fn): Same.
10062 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
10063 (expand_GOMP_SIMT_EXIT): Same.
10064 (expand_GOMP_SIMT_LAST_LANE): Same.
10065 (expand_GOMP_SIMT_ORDERED_PRED): Same.
10066 (expand_GOMP_SIMT_VOTE_ANY): Same.
10067 (expand_GOMP_SIMT_XCHG_BFLY): Same.
10068 (expand_GOMP_SIMT_XCHG_IDX): Same.
10069 (expand_addsub_overflow): Same.
10070 (expand_neg_overflow): Same.
10071 (expand_mul_overflow): Same.
10072 (expand_call_mem_ref): Same.
10073 (expand_mask_load_optab_fn): Same.
10074 (expand_scatter_store_optab_fn): Same.
10075 (expand_gather_load_optab_fn): Same.
10076 * ipa-cp.c (ipa_get_parm_lattices): Same.
10077 (print_all_lattices): Same.
10078 (ignore_edge_p): Same.
10079 (build_toporder_info): Same.
10080 (free_toporder_info): Same.
10081 (push_node_to_stack): Same.
10082 (ipcp_lattice<valtype>::set_contains_variable): Same.
10083 (set_agg_lats_to_bottom): Same.
10084 (ipcp_bits_lattice::meet_with): Same.
10085 (set_single_call_flag): Same.
10086 (initialize_node_lattices): Same.
10087 (ipa_get_jf_ancestor_result): Same.
10088 (ipcp_verify_propagated_values): Same.
10089 (propagate_scalar_across_jump_function): Same.
10090 (propagate_context_across_jump_function): Same.
10091 (propagate_bits_across_jump_function): Same.
10092 (ipa_vr_operation_and_type_effects): Same.
10093 (propagate_vr_across_jump_function): Same.
10094 (set_check_aggs_by_ref): Same.
10095 (set_chain_of_aglats_contains_variable): Same.
10096 (merge_aggregate_lattices): Same.
10097 (agg_pass_through_permissible_p): Same.
10098 (propagate_aggs_across_jump_function): Same.
10099 (call_passes_through_thunk_p): Same.
10100 (propagate_constants_across_call): Same.
10101 (devirtualization_time_bonus): Same.
10102 (good_cloning_opportunity_p): Same.
10103 (context_independent_aggregate_values): Same.
10104 (gather_context_independent_values): Same.
10105 (perform_estimation_of_a_value): Same.
10106 (estimate_local_effects): Same.
10107 (value_topo_info<valtype>::add_val): Same.
10108 (add_all_node_vals_to_toposort): Same.
10109 (value_topo_info<valtype>::propagate_effects): Same.
10110 (ipcp_propagate_stage): Same.
10111 (ipcp_discover_new_direct_edges): Same.
10112 (same_node_or_its_all_contexts_clone_p): Same.
10113 (cgraph_edge_brings_value_p): Same.
10114 (gather_edges_for_value): Same.
10115 (create_specialized_node): Same.
10116 (find_more_scalar_values_for_callers_subset): Same.
10117 (find_more_contexts_for_caller_subset): Same.
10118 (copy_plats_to_inter): Same.
10119 (intersect_aggregates_with_edge): Same.
10120 (find_aggregate_values_for_callers_subset): Same.
10121 (cgraph_edge_brings_all_agg_vals_for_node): Same.
10122 (decide_about_value): Same.
10123 (decide_whether_version_node): Same.
10124 (spread_undeadness): Same.
10125 (identify_dead_nodes): Same.
10126 (ipcp_store_vr_results): Same.
10127 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
10128 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
10129 (redirect_to_unreachable): Same.
10130 (edge_set_predicate): Same.
10131 (evaluate_conditions_for_known_args): Same.
10132 (evaluate_properties_for_edge): Same.
10133 (ipa_fn_summary_t::duplicate): Same.
10134 (ipa_call_summary_t::duplicate): Same.
10135 (dump_ipa_call_summary): Same.
10136 (ipa_dump_fn_summary): Same.
10137 (eliminated_by_inlining_prob): Same.
10138 (set_cond_stmt_execution_predicate): Same.
10139 (set_switch_stmt_execution_predicate): Same.
10140 (compute_bb_predicates): Same.
10141 (will_be_nonconstant_expr_predicate): Same.
10142 (phi_result_unknown_predicate): Same.
10143 (analyze_function_body): Same.
10144 (compute_fn_summary): Same.
10145 (estimate_edge_devirt_benefit): Same.
10146 (estimate_edge_size_and_time): Same.
10147 (estimate_calls_size_and_time): Same.
10148 (estimate_node_size_and_time): Same.
10149 (remap_edge_change_prob): Same.
10150 (remap_edge_summaries): Same.
10151 (ipa_merge_fn_summary_after_inlining): Same.
10152 (ipa_fn_summary_generate): Same.
10153 (inline_read_section): Same.
10154 (ipa_fn_summary_read): Same.
10155 (ipa_fn_summary_write): Same.
10156 * ipa-fnsummary.h: Same.
10157 * ipa-hsa.c (ipa_hsa_read_section): Same.
10158 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
10159 * ipa-icf.c (sem_function::param_used_p): Same.
10160 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
10161 * ipa-inline.c (edge_badness): Same.
10162 (inline_small_functions): Same.
10163 * ipa-polymorphic-call.c
10164 (ipa_polymorphic_call_context::stream_out): Same.
10165 * ipa-predicate.c (predicate::remap_after_duplication): Same.
10166 (predicate::remap_after_inlining): Same.
10167 (predicate::stream_out): Same.
10168 * ipa-predicate.h: Same.
10169 * ipa-profile.c (ipa_profile_read_summary): Same.
10170 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
10171 (count_formal_params): Same.
10172 (ipa_dump_param): Same.
10173 (ipa_alloc_node_params): Same.
10174 (ipa_print_node_jump_functions_for_edge): Same.
10175 (ipa_print_node_jump_functions): Same.
10176 (ipa_load_from_parm_agg): Same.
10177 (get_ancestor_addr_info): Same.
10178 (ipa_compute_jump_functions_for_edge): Same.
10179 (ipa_analyze_virtual_call_uses): Same.
10180 (ipa_analyze_stmt_uses): Same.
10181 (ipa_analyze_params_uses_in_bb): Same.
10182 (update_jump_functions_after_inlining): Same.
10183 (try_decrement_rdesc_refcount): Same.
10184 (ipa_impossible_devirt_target): Same.
10185 (update_indirect_edges_after_inlining): Same.
10186 (combine_controlled_uses_counters): Same.
10187 (ipa_edge_args_sum_t::duplicate): Same.
10188 (ipa_write_jump_function): Same.
10189 (ipa_write_indirect_edge_info): Same.
10190 (ipa_write_node_info): Same.
10191 (ipa_read_edge_info): Same.
10192 (ipa_prop_read_section): Same.
10193 (read_replacements_section): Same.
10194 * ipa-prop.h (ipa_get_param_count): Same.
10195 (ipa_get_param): Same.
10196 (ipa_get_type): Same.
10197 (ipa_get_param_move_cost): Same.
10198 (ipa_set_param_used): Same.
10199 (ipa_get_controlled_uses): Same.
10200 (ipa_set_controlled_uses): Same.
10201 (ipa_get_cs_argument_count): Same.
10202 * ipa-pure-const.c (analyze_function): Same.
10203 (pure_const_read_summary): Same.
10205 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
10206 * ipa-split.c (test_nonssa_use): Same.
10207 (dump_split_point): Same.
10208 (dominated_by_forbidden): Same.
10209 (split_part_set_ssa_name_p): Same.
10210 (find_split_points): Same.
10211 * ira-build.c (finish_loop_tree_nodes): Same.
10212 (low_pressure_loop_node_p): Same.
10213 * ira-color.c (ira_reuse_stack_slot): Same.
10215 * ira.c (setup_reg_equiv): Same.
10216 (print_insn_chain): Same.
10218 * loop-doloop.c (doloop_condition_get): Same.
10220 (record_reg_sets): Same.
10221 (doloop_optimize): Same.
10222 * loop-init.c (loop_optimizer_init): Same.
10223 (fix_loop_structure): Same.
10224 * loop-invariant.c (merge_identical_invariants): Same.
10225 (compute_always_reached): Same.
10226 (find_exits): Same.
10227 (may_assign_reg_p): Same.
10228 (find_invariants_bb): Same.
10229 (find_invariants_body): Same.
10230 (replace_uses): Same.
10231 (can_move_invariant_reg): Same.
10232 (free_inv_motion_data): Same.
10233 (move_single_loop_invariants): Same.
10234 (change_pressure): Same.
10235 (mark_ref_regs): Same.
10236 (calculate_loop_reg_pressure): Same.
10237 * loop-iv.c (biv_entry_hasher::equal): Same.
10238 (iv_extend_to_rtx_code): Same.
10239 (check_iv_ref_table_size): Same.
10240 (clear_iv_info): Same.
10241 (latch_dominating_def): Same.
10242 (iv_get_reaching_def): Same.
10243 (iv_constant): Same.
10249 (get_biv_step): Same.
10251 (analyzed_for_bivness_p): Same.
10252 (record_biv): Same.
10253 (iv_analyze_biv): Same.
10254 (iv_analyze_expr): Same.
10255 (iv_analyze_def): Same.
10256 (iv_analyze_op): Same.
10257 (iv_analyze): Same.
10258 (iv_analyze_result): Same.
10260 (eliminate_implied_conditions): Same.
10261 (simplify_using_initial_values): Same.
10262 (shorten_into_mode): Same.
10263 (canonicalize_iv_subregs): Same.
10264 (determine_max_iter): Same.
10265 (check_simple_exit): Same.
10266 (find_simple_exit): Same.
10267 (get_simple_loop_desc): Same.
10268 * loop-unroll.c (report_unroll): Same.
10269 (decide_unrolling): Same.
10270 (unroll_loops): Same.
10271 (loop_exit_at_end_p): Same.
10272 (decide_unroll_constant_iterations): Same.
10273 (unroll_loop_constant_iterations): Same.
10274 (compare_and_jump_seq): Same.
10275 (unroll_loop_runtime_iterations): Same.
10276 (decide_unroll_stupid): Same.
10277 (unroll_loop_stupid): Same.
10278 (referenced_in_one_insn_in_loop_p): Same.
10279 (reset_debug_uses_in_loop): Same.
10280 (analyze_iv_to_split_insn): Same.
10281 * lra-eliminations.c (lra_debug_elim_table): Same.
10282 (setup_can_eliminate): Same.
10284 (lra_get_elimination_hard_regno): Same.
10285 (lra_eliminate_regs_1): Same.
10286 (eliminate_regs_in_insn): Same.
10287 (update_reg_eliminate): Same.
10288 (init_elimination): Same.
10289 (lra_eliminate): Same.
10291 * lra-lives.c (initiate_live_solver): Same.
10292 * lra-remat.c (create_remat_bb_data): Same.
10293 * lra-spills.c (lra_spill): Same.
10294 * lra.c (lra_set_insn_recog_data): Same.
10295 (lra_set_used_insn_alternative_by_uid): Same.
10296 (init_reg_info): Same.
10297 (expand_reg_info): Same.
10298 * lto-cgraph.c (output_symtab): Same.
10299 (read_identifier): Same.
10300 (get_alias_symbol): Same.
10301 (input_node): Same.
10302 (input_varpool_node): Same.
10304 (input_edge): Same.
10305 (input_cgraph_1): Same.
10306 (input_refs): Same.
10307 (input_symtab): Same.
10308 (input_offload_tables): Same.
10309 (output_cgraph_opt_summary): Same.
10310 (input_edge_opt_summary): Same.
10311 (input_cgraph_opt_section): Same.
10312 * lto-section-in.c (lto_free_raw_section_data): Same.
10313 (lto_create_simple_input_block): Same.
10314 (lto_free_function_in_decl_state_for_node): Same.
10315 * lto-streamer-in.c (lto_tag_check_set): Same.
10316 (lto_location_cache::revert_location_cache): Same.
10317 (lto_location_cache::input_location): Same.
10318 (lto_input_location): Same.
10319 (stream_input_location_now): Same.
10320 (lto_input_tree_ref): Same.
10321 (lto_input_eh_catch_list): Same.
10322 (input_eh_region): Same.
10323 (lto_init_eh): Same.
10324 (make_new_block): Same.
10326 (fixup_call_stmt_edges): Same.
10327 (input_struct_function_base): Same.
10328 (input_function): Same.
10329 (lto_read_body_or_constructor): Same.
10330 (lto_read_tree_1): Same.
10331 (lto_read_tree): Same.
10332 (lto_input_scc): Same.
10333 (lto_input_tree_1): Same.
10334 (lto_input_toplevel_asms): Same.
10335 (lto_input_mode_table): Same.
10336 (lto_reader_init): Same.
10337 (lto_data_in_create): Same.
10338 * lto-streamer-out.c (output_cfg): Same.
10339 * lto-streamer.h: Same.
10340 * modulo-sched.c (duplicate_insns_of_cycles): Same.
10341 (generate_prolog_epilog): Same.
10342 (mark_loop_unsched): Same.
10343 (dump_insn_location): Same.
10344 (loop_canon_p): Same.
10345 (sms_schedule): Same.
10346 * omp-expand.c (expand_omp_for_ordered_loops): Same.
10347 (expand_omp_for_generic): Same.
10348 (expand_omp_for_static_nochunk): Same.
10349 (expand_omp_for_static_chunk): Same.
10350 (expand_omp_simd): Same.
10351 (expand_omp_taskloop_for_inner): Same.
10352 (expand_oacc_for): Same.
10353 (expand_omp_atomic_pipeline): Same.
10354 (mark_loops_in_oacc_kernels_region): Same.
10355 * omp-offload.c (oacc_xform_loop): Same.
10356 * omp-simd-clone.c (simd_clone_adjust): Same.
10357 * optabs-query.c (get_traditional_extraction_insn): Same.
10358 * optabs.c (expand_vector_broadcast): Same.
10359 (expand_binop_directly): Same.
10360 (expand_twoval_unop): Same.
10361 (expand_twoval_binop): Same.
10362 (expand_unop_direct): Same.
10363 (emit_indirect_jump): Same.
10364 (emit_conditional_move): Same.
10365 (emit_conditional_neg_or_complement): Same.
10366 (emit_conditional_add): Same.
10367 (vector_compare_rtx): Same.
10368 (expand_vec_perm_1): Same.
10369 (expand_vec_perm_const): Same.
10370 (expand_vec_cond_expr): Same.
10371 (expand_vec_series_expr): Same.
10372 (maybe_emit_atomic_exchange): Same.
10373 (maybe_emit_sync_lock_test_and_set): Same.
10374 (expand_atomic_compare_and_swap): Same.
10375 (expand_atomic_load): Same.
10376 (expand_atomic_store): Same.
10377 (maybe_emit_op): Same.
10378 (valid_multiword_target_p): Same.
10379 (create_integer_operand): Same.
10380 (maybe_legitimize_operand_same_code): Same.
10381 (maybe_legitimize_operand): Same.
10382 (create_convert_operand_from_type): Same.
10383 (can_reuse_operands_p): Same.
10384 (maybe_legitimize_operands): Same.
10385 (maybe_gen_insn): Same.
10386 (maybe_expand_insn): Same.
10387 (maybe_expand_jump_insn): Same.
10388 (expand_insn): Same.
10389 * optabs.h (create_expand_operand): Same.
10390 (create_fixed_operand): Same.
10391 (create_output_operand): Same.
10392 (create_input_operand): Same.
10393 (create_convert_operand_to): Same.
10394 (create_convert_operand_from): Same.
10396 * poly-int.h: Same.
10397 * predict.c (optimize_insn_for_speed_p): Same.
10398 (optimize_loop_for_size_p): Same.
10399 (optimize_loop_for_speed_p): Same.
10400 (optimize_loop_nest_for_speed_p): Same.
10401 (get_base_value): Same.
10402 (predicted_by_loop_heuristics_p): Same.
10403 (predict_extra_loop_exits): Same.
10404 (predict_loops): Same.
10405 (predict_paths_for_bb): Same.
10406 (predict_paths_leading_to): Same.
10407 (propagate_freq): Same.
10408 (pass_profile::execute): Same.
10410 * profile-count.c (profile_count::differs_from_p): Same.
10411 (profile_probability::differs_lot_from_p): Same.
10412 * profile-count.h: Same.
10413 * profile.c (branch_prob): Same.
10414 * regrename.c (free_chain_data): Same.
10415 (mark_conflict): Same.
10416 (create_new_chain): Same.
10417 (merge_overlapping_regs): Same.
10418 (init_rename_info): Same.
10419 (merge_chains): Same.
10420 (regrename_analyze): Same.
10421 (regrename_do_replace): Same.
10422 (scan_rtx_reg): Same.
10423 (record_out_operands): Same.
10424 (build_def_use): Same.
10425 * regrename.h: Same.
10427 * reload1.c (init_reload): Same.
10428 (maybe_fix_stack_asms): Same.
10429 (copy_reloads): Same.
10430 (count_pseudo): Same.
10431 (count_spilled_pseudo): Same.
10433 (find_reload_regs): Same.
10434 (select_reload_regs): Same.
10435 (spill_hard_reg): Same.
10436 (fixup_eh_region_note): Same.
10437 (set_reload_reg): Same.
10438 (allocate_reload_reg): Same.
10439 (compute_reload_subreg_offset): Same.
10440 (reload_adjust_reg_for_icode): Same.
10441 (emit_input_reload_insns): Same.
10442 (emit_output_reload_insns): Same.
10443 (do_input_reload): Same.
10444 (inherit_piecemeal_p): Same.
10446 * sanopt.c (maybe_get_dominating_check): Same.
10447 (maybe_optimize_ubsan_ptr_ifn): Same.
10448 (can_remove_asan_check): Same.
10449 (maybe_optimize_asan_check_ifn): Same.
10450 (sanopt_optimize_walker): Same.
10451 * sched-deps.c (add_dependence_list): Same.
10452 (chain_to_prev_insn): Same.
10453 (add_insn_mem_dependence): Same.
10454 (create_insn_reg_set): Same.
10455 (maybe_extend_reg_info_p): Same.
10456 (sched_analyze_reg): Same.
10457 (sched_analyze_1): Same.
10458 (get_implicit_reg_pending_clobbers): Same.
10459 (chain_to_prev_insn_p): Same.
10460 (deps_analyze_insn): Same.
10461 (deps_start_bb): Same.
10462 (sched_free_deps): Same.
10464 (init_deps_reg_last): Same.
10466 * sched-ebb.c: Same.
10467 * sched-int.h: Same.
10468 * sched-rgn.c (add_branch_dependences): Same.
10469 (concat_insn_mem_list): Same.
10471 (sched_rgn_compute_dependencies): Same.
10472 * sel-sched-ir.c (reset_target_context): Same.
10473 (copy_deps_context): Same.
10474 (init_id_from_df): Same.
10475 (has_dependence_p): Same.
10476 (change_loops_latches): Same.
10477 (bb_top_order_comparator): Same.
10478 (make_region_from_loop_preheader): Same.
10479 (sel_init_pipelining): Same.
10480 (get_loop_nest_for_rgn): Same.
10481 (make_regions_from_the_rest): Same.
10482 (sel_is_loop_preheader_p): Same.
10483 * sel-sched-ir.h (inner_loop_header_p): Same.
10484 (get_all_loop_exits): Same.
10485 * selftest.h: Same.
10486 * sese.c (sese_build_liveouts): Same.
10487 (sese_insert_phis_for_liveouts): Same.
10488 * sese.h (defined_in_sese_p): Same.
10489 * sreal.c (sreal::stream_out): Same.
10491 * streamer-hooks.h: Same.
10492 * target-globals.c (save_target_globals): Same.
10493 * target-globals.h: Same.
10494 * target.def: Same.
10496 * targhooks.c (default_has_ifunc_p): Same.
10497 (default_empty_mask_is_expensive): Same.
10498 (default_init_cost): Same.
10499 * targhooks.h: Same.
10501 * tree-affine.c (aff_combination_mult): Same.
10502 (aff_combination_expand): Same.
10503 (aff_combination_constant_multiple_p): Same.
10504 * tree-affine.h: Same.
10505 * tree-cfg.c (build_gimple_cfg): Same.
10506 (replace_loop_annotate_in_block): Same.
10507 (replace_uses_by): Same.
10509 (dump_cfg_stats): Same.
10510 (gimple_duplicate_sese_region): Same.
10511 (gimple_duplicate_sese_tail): Same.
10512 (move_block_to_fn): Same.
10513 (replace_block_vars_by_duplicates): Same.
10514 (move_sese_region_to_fn): Same.
10515 (print_loops_bb): Same.
10516 (print_loop): Same.
10517 (print_loops): Same.
10519 (debug_loops): Same.
10520 * tree-cfg.h: Same.
10521 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
10522 (chrec_fold_multiply_poly_poly): Same.
10523 (chrec_evaluate): Same.
10524 (chrec_component_in_loop_num): Same.
10525 (reset_evolution_in_loop): Same.
10526 (is_multivariate_chrec): Same.
10527 (chrec_contains_symbols): Same.
10528 (nb_vars_in_chrec): Same.
10529 (chrec_convert_1): Same.
10530 (chrec_convert_aggressive): Same.
10531 * tree-chrec.h: Same.
10532 * tree-core.h: Same.
10533 * tree-data-ref.c (dump_data_dependence_relation): Same.
10534 (canonicalize_base_object_address): Same.
10535 (data_ref_compare_tree): Same.
10536 (prune_runtime_alias_test_list): Same.
10537 (get_segment_min_max): Same.
10538 (create_intersect_range_checks): Same.
10539 (conflict_fn_no_dependence): Same.
10540 (object_address_invariant_in_loop_p): Same.
10541 (analyze_ziv_subscript): Same.
10542 (analyze_siv_subscript_cst_affine): Same.
10543 (analyze_miv_subscript): Same.
10544 (analyze_overlapping_iterations): Same.
10545 (build_classic_dist_vector_1): Same.
10546 (add_other_self_distances): Same.
10547 (same_access_functions): Same.
10548 (build_classic_dir_vector): Same.
10549 (subscript_dependence_tester_1): Same.
10550 (subscript_dependence_tester): Same.
10551 (access_functions_are_affine_or_constant_p): Same.
10552 (get_references_in_stmt): Same.
10553 (loop_nest_has_data_refs): Same.
10554 (graphite_find_data_references_in_stmt): Same.
10555 (find_data_references_in_bb): Same.
10556 (get_base_for_alignment): Same.
10557 (find_loop_nest_1): Same.
10558 (find_loop_nest): Same.
10559 * tree-data-ref.h (dr_alignment): Same.
10560 (ddr_dependence_level): Same.
10561 * tree-if-conv.c (fold_build_cond_expr): Same.
10562 (add_to_predicate_list): Same.
10563 (add_to_dst_predicate_list): Same.
10564 (phi_convertible_by_degenerating_args): Same.
10565 (idx_within_array_bound): Same.
10566 (all_preds_critical_p): Same.
10567 (pred_blocks_visited_p): Same.
10568 (predicate_bbs): Same.
10569 (build_region): Same.
10570 (if_convertible_loop_p_1): Same.
10571 (is_cond_scalar_reduction): Same.
10572 (predicate_scalar_phi): Same.
10573 (remove_conditions_and_labels): Same.
10574 (combine_blocks): Same.
10575 (version_loop_for_if_conversion): Same.
10576 (versionable_outer_loop_p): Same.
10577 (ifcvt_local_dce): Same.
10578 (tree_if_conversion): Same.
10579 (pass_if_conversion::gate): Same.
10580 * tree-if-conv.h: Same.
10581 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
10582 * tree-loop-distribution.c (bb_top_order_cmp): Same.
10584 (stmt_has_scalar_dependences_outside_loop): Same.
10585 (copy_loop_before): Same.
10586 (create_bb_after_loop): Same.
10587 (const_with_all_bytes_same): Same.
10588 (generate_memset_builtin): Same.
10589 (generate_memcpy_builtin): Same.
10590 (destroy_loop): Same.
10591 (build_rdg_partition_for_vertex): Same.
10592 (compute_access_range): Same.
10593 (data_ref_segment_size): Same.
10594 (latch_dominated_by_data_ref): Same.
10595 (compute_alias_check_pairs): Same.
10596 (fuse_memset_builtins): Same.
10597 (finalize_partitions): Same.
10598 (find_seed_stmts_for_distribution): Same.
10599 (prepare_perfect_loop_nest): Same.
10600 * tree-parloops.c (lambda_transform_legal_p): Same.
10601 (loop_parallel_p): Same.
10602 (reduc_stmt_res): Same.
10603 (add_field_for_name): Same.
10604 (create_call_for_reduction_1): Same.
10605 (replace_uses_in_bb_by): Same.
10606 (transform_to_exit_first_loop_alt): Same.
10607 (try_transform_to_exit_first_loop_alt): Same.
10608 (transform_to_exit_first_loop): Same.
10610 (gen_parallel_loop): Same.
10611 (gather_scalar_reductions): Same.
10612 (get_omp_data_i_param): Same.
10613 (try_create_reduction_list): Same.
10614 (oacc_entry_exit_single_gang): Same.
10615 (parallelize_loops): Same.
10616 * tree-pass.h: Same.
10617 * tree-predcom.c (determine_offset): Same.
10618 (last_always_executed_block): Same.
10619 (split_data_refs_to_components): Same.
10620 (suitable_component_p): Same.
10621 (valid_initializer_p): Same.
10622 (find_looparound_phi): Same.
10623 (insert_looparound_copy): Same.
10624 (add_looparound_copies): Same.
10625 (determine_roots_comp): Same.
10626 (predcom_tmp_var): Same.
10627 (initialize_root_vars): Same.
10628 (initialize_root_vars_store_elim_1): Same.
10629 (initialize_root_vars_store_elim_2): Same.
10630 (finalize_eliminated_stores): Same.
10631 (initialize_root_vars_lm): Same.
10632 (remove_stmt): Same.
10633 (determine_unroll_factor): Same.
10634 (execute_pred_commoning_cbck): Same.
10635 (base_names_in_chain_on): Same.
10636 (combine_chains): Same.
10637 (pcom_stmt_dominates_stmt_p): Same.
10638 (try_combine_chains): Same.
10639 (prepare_initializers_chain_store_elim): Same.
10640 (prepare_initializers_chain): Same.
10641 (prepare_initializers): Same.
10642 (prepare_finalizers_chain): Same.
10643 (prepare_finalizers): Same.
10644 (insert_init_seqs): Same.
10645 * tree-scalar-evolution.c (loop_phi_node_p): Same.
10646 (compute_overall_effect_of_inner_loop): Same.
10647 (add_to_evolution_1): Same.
10648 (add_to_evolution): Same.
10649 (follow_ssa_edge_binary): Same.
10650 (follow_ssa_edge_expr): Same.
10651 (backedge_phi_arg_p): Same.
10652 (follow_ssa_edge_in_condition_phi_branch): Same.
10653 (follow_ssa_edge_in_condition_phi): Same.
10654 (follow_ssa_edge_inner_loop_phi): Same.
10655 (follow_ssa_edge): Same.
10656 (analyze_evolution_in_loop): Same.
10657 (analyze_initial_condition): Same.
10658 (interpret_loop_phi): Same.
10659 (interpret_condition_phi): Same.
10660 (interpret_rhs_expr): Same.
10661 (interpret_expr): Same.
10662 (interpret_gimple_assign): Same.
10663 (analyze_scalar_evolution_1): Same.
10664 (analyze_scalar_evolution): Same.
10665 (analyze_scalar_evolution_for_address_of): Same.
10666 (get_instantiated_value_entry): Same.
10667 (loop_closed_phi_def): Same.
10668 (instantiate_scev_name): Same.
10669 (instantiate_scev_poly): Same.
10670 (instantiate_scev_binary): Same.
10671 (instantiate_scev_convert): Same.
10672 (instantiate_scev_not): Same.
10673 (instantiate_scev_r): Same.
10674 (instantiate_scev): Same.
10675 (resolve_mixers): Same.
10676 (initialize_scalar_evolutions_analyzer): Same.
10677 (scev_reset_htab): Same.
10678 (scev_reset): Same.
10679 (derive_simple_iv_with_niters): Same.
10680 (simple_iv_with_niters): Same.
10681 (expression_expensive_p): Same.
10682 (final_value_replacement_loop): Same.
10683 * tree-scalar-evolution.h (block_before_loop): Same.
10684 * tree-ssa-address.h: Same.
10685 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
10686 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
10687 (record_edge_info): Same.
10688 * tree-ssa-live.c (var_map_base_fini): Same.
10689 (remove_unused_locals): Same.
10690 * tree-ssa-live.h: Same.
10691 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
10692 (pass_ch_vect::execute): Same.
10693 (pass_ch::process_loop_p): Same.
10694 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
10695 (movement_possibility): Same.
10696 (outermost_invariant_loop): Same.
10698 (determine_max_movement): Same.
10699 (invariantness_dom_walker::before_dom_children): Same.
10700 (move_computations): Same.
10701 (may_move_till): Same.
10702 (force_move_till_op): Same.
10703 (force_move_till): Same.
10704 (memref_free): Same.
10705 (record_mem_ref_loc): Same.
10706 (set_ref_stored_in_loop): Same.
10707 (mark_ref_stored): Same.
10708 (sort_bbs_in_loop_postorder_cmp): Same.
10709 (sort_locs_in_loop_postorder_cmp): Same.
10710 (analyze_memory_references): Same.
10711 (mem_refs_may_alias_p): Same.
10712 (find_ref_loc_in_loop_cmp): Same.
10713 (rewrite_mem_ref_loc::operator): Same.
10714 (first_mem_ref_loc_1::operator): Same.
10715 (sm_set_flag_if_changed::operator): Same.
10716 (execute_sm_if_changed_flag_set): Same.
10717 (execute_sm): Same.
10718 (hoist_memory_references): Same.
10719 (ref_always_accessed::operator): Same.
10720 (refs_independent_p): Same.
10721 (record_dep_loop): Same.
10722 (ref_indep_loop_p_1): Same.
10723 (ref_indep_loop_p): Same.
10724 (can_sm_ref_p): Same.
10725 (find_refs_for_sm): Same.
10726 (loop_suitable_for_sm): Same.
10727 (store_motion_loop): Same.
10728 (store_motion): Same.
10729 (fill_always_executed_in): Same.
10730 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
10731 (estimated_unrolled_size): Same.
10732 (loop_edge_to_cancel): Same.
10733 (remove_exits_and_undefined_stmts): Same.
10734 (remove_redundant_iv_tests): Same.
10735 (unloop_loops): Same.
10736 (estimated_peeled_sequence_size): Same.
10737 (try_peel_loop): Same.
10738 (canonicalize_loop_induction_variables): Same.
10739 (canonicalize_induction_variables): Same.
10740 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
10742 (stmt_after_inc_pos): Same.
10743 (contains_abnormal_ssa_name_p): Same.
10744 (niter_for_exit): Same.
10747 (find_givs_in_bb): Same.
10748 (find_induction_variables): Same.
10749 (find_interesting_uses_cond): Same.
10750 (outermost_invariant_loop_for_expr): Same.
10751 (idx_find_step): Same.
10752 (add_candidate_1): Same.
10753 (add_iv_candidate_derived_from_uses): Same.
10754 (alloc_use_cost_map): Same.
10755 (prepare_decl_rtl): Same.
10756 (generic_predict_doloop_p): Same.
10757 (computation_cost): Same.
10758 (determine_common_wider_type): Same.
10759 (get_computation_aff_1): Same.
10760 (get_use_type): Same.
10761 (determine_group_iv_cost_address): Same.
10763 (difference_cannot_overflow_p): Same.
10764 (may_eliminate_iv): Same.
10765 (determine_set_costs): Same.
10766 (cheaper_cost_pair): Same.
10767 (compare_cost_pair): Same.
10768 (iv_ca_cand_for_group): Same.
10769 (iv_ca_recount_cost): Same.
10770 (iv_ca_set_remove_invs): Same.
10771 (iv_ca_set_no_cp): Same.
10772 (iv_ca_set_add_invs): Same.
10773 (iv_ca_set_cp): Same.
10774 (iv_ca_add_group): Same.
10775 (iv_ca_cost): Same.
10776 (iv_ca_compare_deps): Same.
10777 (iv_ca_delta_reverse): Same.
10778 (iv_ca_delta_commit): Same.
10779 (iv_ca_cand_used_p): Same.
10780 (iv_ca_delta_free): Same.
10782 (iv_ca_free): Same.
10783 (iv_ca_dump): Same.
10784 (iv_ca_extend): Same.
10785 (iv_ca_narrow): Same.
10786 (iv_ca_prune): Same.
10787 (cheaper_cost_with_cand): Same.
10788 (iv_ca_replace): Same.
10789 (try_add_cand_for): Same.
10790 (get_initial_solution): Same.
10791 (try_improve_iv_set): Same.
10792 (find_optimal_iv_set_1): Same.
10793 (create_new_iv): Same.
10794 (rewrite_use_compare): Same.
10795 (remove_unused_ivs): Same.
10796 (determine_scaling_factor): Same.
10797 * tree-ssa-loop-ivopts.h: Same.
10798 * tree-ssa-loop-manip.c (create_iv): Same.
10799 (compute_live_loop_exits): Same.
10800 (add_exit_phi): Same.
10801 (add_exit_phis): Same.
10802 (find_uses_to_rename_use): Same.
10803 (find_uses_to_rename_def): Same.
10804 (find_uses_to_rename_in_loop): Same.
10805 (rewrite_into_loop_closed_ssa): Same.
10806 (check_loop_closed_ssa_bb): Same.
10807 (split_loop_exit_edge): Same.
10808 (ip_end_pos): Same.
10809 (ip_normal_pos): Same.
10810 (copy_phi_node_args): Same.
10811 (gimple_duplicate_loop_to_header_edge): Same.
10812 (can_unroll_loop_p): Same.
10813 (determine_exit_conditions): Same.
10814 (scale_dominated_blocks_in_loop): Same.
10815 (niter_for_unrolled_loop): Same.
10816 (tree_transform_and_unroll_loop): Same.
10817 (rewrite_all_phi_nodes_with_iv): Same.
10818 * tree-ssa-loop-manip.h: Same.
10819 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
10820 (number_of_iterations_ne): Same.
10821 (assert_no_overflow_lt): Same.
10822 (assert_loop_rolls_lt): Same.
10823 (number_of_iterations_lt): Same.
10824 (adjust_cond_for_loop_until_wrap): Same.
10825 (tree_simplify_using_condition): Same.
10826 (simplify_using_initial_conditions): Same.
10827 (simplify_using_outer_evolutions): Same.
10828 (loop_only_exit_p): Same.
10829 (ssa_defined_by_minus_one_stmt_p): Same.
10830 (number_of_iterations_popcount): Same.
10831 (number_of_iterations_exit): Same.
10832 (find_loop_niter): Same.
10833 (finite_loop_p): Same.
10834 (chain_of_csts_start): Same.
10835 (get_val_for): Same.
10836 (loop_niter_by_eval): Same.
10837 (derive_constant_upper_bound_ops): Same.
10838 (do_warn_aggressive_loop_optimizations): Same.
10839 (record_estimate): Same.
10840 (get_cst_init_from_scev): Same.
10841 (record_nonwrapping_iv): Same.
10842 (idx_infer_loop_bounds): Same.
10843 (infer_loop_bounds_from_ref): Same.
10844 (infer_loop_bounds_from_array): Same.
10845 (infer_loop_bounds_from_pointer_arith): Same.
10846 (infer_loop_bounds_from_signedness): Same.
10847 (bound_index): Same.
10848 (discover_iteration_bound_by_body_walk): Same.
10849 (maybe_lower_iteration_bound): Same.
10850 (estimate_numbers_of_iterations): Same.
10851 (estimated_loop_iterations): Same.
10852 (estimated_loop_iterations_int): Same.
10853 (max_loop_iterations): Same.
10854 (max_loop_iterations_int): Same.
10855 (likely_max_loop_iterations): Same.
10856 (likely_max_loop_iterations_int): Same.
10857 (estimated_stmt_executions_int): Same.
10858 (max_stmt_executions): Same.
10859 (likely_max_stmt_executions): Same.
10860 (estimated_stmt_executions): Same.
10861 (stmt_dominates_stmt_p): Same.
10862 (nowrap_type_p): Same.
10863 (loop_exits_before_overflow): Same.
10864 (scev_var_range_cant_overflow): Same.
10865 (scev_probably_wraps_p): Same.
10866 (free_numbers_of_iterations_estimates): Same.
10867 * tree-ssa-loop-niter.h: Same.
10868 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
10869 (idx_analyze_ref): Same.
10870 (analyze_ref): Same.
10871 (gather_memory_references_ref): Same.
10872 (mark_nontemporal_store): Same.
10873 (emit_mfence_after_loop): Same.
10874 (may_use_storent_in_loop_p): Same.
10875 (mark_nontemporal_stores): Same.
10876 (should_unroll_loop_p): Same.
10877 (volume_of_dist_vector): Same.
10878 (add_subscript_strides): Same.
10879 (self_reuse_distance): Same.
10880 (insn_to_prefetch_ratio_too_small_p): Same.
10881 * tree-ssa-loop-split.c (split_at_bb_p): Same.
10882 (patch_loop_exit): Same.
10883 (find_or_create_guard_phi): Same.
10884 (easy_exit_values): Same.
10885 (connect_loop_phis): Same.
10886 (connect_loops): Same.
10887 (compute_new_first_bound): Same.
10888 (split_loop): Same.
10889 (tree_ssa_split_loops): Same.
10890 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
10891 (is_maybe_undefined): Same.
10892 (tree_may_unswitch_on): Same.
10893 (simplify_using_entry_checks): Same.
10894 (tree_unswitch_single_loop): Same.
10895 (tree_unswitch_loop): Same.
10896 (tree_unswitch_outer_loop): Same.
10897 (empty_bb_without_guard_p): Same.
10898 (used_outside_loop_p): Same.
10899 (get_vop_from_header): Same.
10900 (hoist_guard): Same.
10901 * tree-ssa-loop.c (gate_oacc_kernels): Same.
10902 (get_lsm_tmp_name): Same.
10903 * tree-ssa-loop.h: Same.
10904 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
10905 (build_and_add_sum): Same.
10906 (no_side_effect_bb): Same.
10908 (linearize_expr): Same.
10909 (should_break_up_subtract): Same.
10910 (linearize_expr_tree): Same.
10911 * tree-ssa-scopedtables.c: Same.
10912 * tree-ssa-scopedtables.h: Same.
10913 * tree-ssa-structalias.c (condense_visit): Same.
10914 (label_visit): Same.
10915 (dump_pred_graph): Same.
10916 (perform_var_substitution): Same.
10917 (move_complex_constraints): Same.
10918 (remove_preds_and_fake_succs): Same.
10919 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
10920 (determine_bb_domination_status): Same.
10921 (duplicate_thread_path): Same.
10922 (thread_through_all_blocks): Same.
10923 * tree-ssa-threadupdate.h: Same.
10924 * tree-streamer-in.c (streamer_read_string_cst): Same.
10925 (input_identifier): Same.
10926 (unpack_ts_type_common_value_fields): Same.
10927 (unpack_ts_block_value_fields): Same.
10928 (unpack_ts_translation_unit_decl_value_fields): Same.
10929 (unpack_ts_omp_clause_value_fields): Same.
10930 (streamer_read_tree_bitfields): Same.
10931 (streamer_alloc_tree): Same.
10932 (lto_input_ts_common_tree_pointers): Same.
10933 (lto_input_ts_vector_tree_pointers): Same.
10934 (lto_input_ts_poly_tree_pointers): Same.
10935 (lto_input_ts_complex_tree_pointers): Same.
10936 (lto_input_ts_decl_minimal_tree_pointers): Same.
10937 (lto_input_ts_decl_common_tree_pointers): Same.
10938 (lto_input_ts_decl_non_common_tree_pointers): Same.
10939 (lto_input_ts_decl_with_vis_tree_pointers): Same.
10940 (lto_input_ts_field_decl_tree_pointers): Same.
10941 (lto_input_ts_function_decl_tree_pointers): Same.
10942 (lto_input_ts_type_common_tree_pointers): Same.
10943 (lto_input_ts_type_non_common_tree_pointers): Same.
10944 (lto_input_ts_list_tree_pointers): Same.
10945 (lto_input_ts_vec_tree_pointers): Same.
10946 (lto_input_ts_exp_tree_pointers): Same.
10947 (lto_input_ts_block_tree_pointers): Same.
10948 (lto_input_ts_binfo_tree_pointers): Same.
10949 (lto_input_ts_constructor_tree_pointers): Same.
10950 (lto_input_ts_omp_clause_tree_pointers): Same.
10951 (streamer_read_tree_body): Same.
10952 * tree-streamer.h: Same.
10953 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
10954 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
10955 (vect_analyze_possibly_independent_ddr): Same.
10956 (vect_analyze_data_ref_dependence): Same.
10957 (vect_compute_data_ref_alignment): Same.
10958 (vect_enhance_data_refs_alignment): Same.
10959 (vect_analyze_data_ref_access): Same.
10960 (vect_check_gather_scatter): Same.
10961 (vect_find_stmt_data_reference): Same.
10962 (vect_create_addr_base_for_vector_ref): Same.
10963 (vect_setup_realignment): Same.
10964 (vect_supportable_dr_alignment): Same.
10965 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
10966 (adjust_phi_and_debug_stmts): Same.
10967 (vect_set_loop_mask): Same.
10968 (add_preheader_seq): Same.
10969 (vect_maybe_permute_loop_masks): Same.
10970 (vect_set_loop_masks_directly): Same.
10971 (vect_set_loop_condition_masked): Same.
10972 (vect_set_loop_condition_unmasked): Same.
10973 (slpeel_duplicate_current_defs_from_edges): Same.
10974 (slpeel_add_loop_guard): Same.
10975 (slpeel_can_duplicate_loop_p): Same.
10976 (create_lcssa_for_virtual_phi): Same.
10978 (vect_update_ivs_after_vectorizer): Same.
10979 (vect_gen_vector_loop_niters_mult_vf): Same.
10980 (slpeel_update_phi_nodes_for_loops): Same.
10981 (slpeel_update_phi_nodes_for_guard1): Same.
10982 (find_guard_arg): Same.
10983 (slpeel_update_phi_nodes_for_guard2): Same.
10984 (slpeel_update_phi_nodes_for_lcssa): Same.
10985 (vect_do_peeling): Same.
10986 (vect_create_cond_for_alias_checks): Same.
10987 (vect_loop_versioning): Same.
10988 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
10989 (vect_inner_phi_in_double_reduction_p): Same.
10990 (vect_analyze_scalar_cycles_1): Same.
10991 (vect_fixup_scalar_cycles_with_patterns): Same.
10992 (vect_get_loop_niters): Same.
10993 (bb_in_loop_p): Same.
10994 (vect_get_max_nscalars_per_iter): Same.
10995 (vect_verify_full_masking): Same.
10996 (vect_compute_single_scalar_iteration_cost): Same.
10997 (vect_analyze_loop_form_1): Same.
10998 (vect_analyze_loop_form): Same.
10999 (vect_active_double_reduction_p): Same.
11000 (vect_analyze_loop_operations): Same.
11001 (neutral_op_for_slp_reduction): Same.
11002 (vect_is_simple_reduction): Same.
11003 (vect_model_reduction_cost): Same.
11004 (get_initial_def_for_reduction): Same.
11005 (get_initial_defs_for_reduction): Same.
11006 (vect_create_epilog_for_reduction): Same.
11007 (vectorize_fold_left_reduction): Same.
11008 (vectorizable_reduction): Same.
11009 (vectorizable_induction): Same.
11010 (vectorizable_live_operation): Same.
11011 (loop_niters_no_overflow): Same.
11012 (vect_get_loop_mask): Same.
11013 (vect_transform_loop_stmt): Same.
11014 (vect_transform_loop): Same.
11015 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
11016 (vect_determine_precisions): Same.
11017 (vect_pattern_recog_1): Same.
11018 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
11019 * tree-vect-stmts.c (stmt_vectype): Same.
11020 (process_use): Same.
11021 (vect_init_vector_1): Same.
11022 (vect_truncate_gather_scatter_offset): Same.
11023 (get_group_load_store_type): Same.
11024 (vect_build_gather_load_calls): Same.
11025 (vect_get_strided_load_store_ops): Same.
11026 (vectorizable_simd_clone_call): Same.
11027 (vectorizable_store): Same.
11028 (permute_vec_elements): Same.
11029 (vectorizable_load): Same.
11030 (vect_transform_stmt): Same.
11031 (supportable_widening_operation): Same.
11032 * tree-vectorizer.c (vec_info::replace_stmt): Same.
11033 (vec_info::free_stmt_vec_info): Same.
11034 (vect_free_loop_info_assumptions): Same.
11035 (vect_loop_vectorized_call): Same.
11036 (set_uid_loop_bbs): Same.
11037 (vectorize_loops): Same.
11038 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
11039 * tree.c (add_tree_to_fld_list): Same.
11040 (fld_type_variant_equal_p): Same.
11041 (fld_decl_context): Same.
11042 (fld_incomplete_type_of): Same.
11043 (free_lang_data_in_binfo): Same.
11044 (need_assembler_name_p): Same.
11045 (find_decls_types_r): Same.
11046 (get_eh_types_for_runtime): Same.
11047 (find_decls_types_in_eh_region): Same.
11048 (find_decls_types_in_node): Same.
11049 (assign_assembler_name_if_needed): Same.
11050 * value-prof.c (stream_out_histogram_value): Same.
11051 * value-prof.h: Same.
11052 * var-tracking.c (use_narrower_mode): Same.
11053 (prepare_call_arguments): Same.
11054 (vt_expand_loc_callback): Same.
11055 (resolve_expansions_pending_recursion): Same.
11056 (vt_expand_loc): Same.
11057 * varasm.c (const_hash_1): Same.
11058 (compare_constant): Same.
11059 (tree_output_constant_def): Same.
11060 (simplify_subtraction): Same.
11061 (get_pool_constant): Same.
11062 (output_constant_pool_2): Same.
11063 (output_constant_pool_1): Same.
11064 (mark_constants_in_pattern): Same.
11065 (mark_constant_pool): Same.
11066 (get_section_anchor): Same.
11067 * vr-values.c (compare_range_with_value): Same.
11068 (vr_values::extract_range_from_phi_node): Same.
11069 * vr-values.h: Same.
11070 * web.c (unionfind_union): Same.
11071 * wide-int.h: Same.
11073 2019-07-09 Martin Sebor <msebor@redhat.com>
11076 * align.h: Change class-key from class to struct and vice versa
11077 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
11078 * alloc-pool.h: Same.
11079 * asan.c (shadow_mem_size): Same.
11080 * auto-profile.c: Same.
11081 * basic-block.h: Same.
11083 * cfgexpand.c (set_rtl): Same.
11084 (expand_one_stack_var_at): Same.
11085 * cfghooks.h: Same.
11088 * config/i386/i386.h: Same.
11089 * df-problems.c (df_print_bb_index): Same.
11091 * df.h (df_single_use): Same.
11092 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
11093 (layout::annotation_line_showed_range_p): Same.
11094 (get_printed_columns): Same.
11095 (correction::ensure_terminated): Same.
11096 (line_corrections::~line_corrections): Same.
11099 * dump-context.h: Same.
11100 * dumpfile.h: Same.
11101 * dwarf2out.c: Same.
11102 * edit-context.c: Same.
11103 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
11105 * function.c (assign_stack_local): Same.
11106 * function.h: Same.
11108 * gcov.c (block_info::block_info): Same.
11109 * genattrtab.c: Same.
11110 * genextract.c: Same.
11111 * genmatch.c (comparison_code_p): Same.
11112 (id_base::id_base): Same.
11113 (decision_tree::print): Same.
11114 * genoutput.c: Same.
11115 * genpreds.c (write_one_predicate_function): Same.
11116 * genrecog.c (validate_pattern): Same.
11117 (find_operand_positions): Same.
11118 (optimize_subroutine_group): Same.
11119 (merge_pattern_transition::merge_pattern_transition): Same.
11120 (merge_pattern_info::merge_pattern_info): Same.
11121 (merge_state_result::merge_state_result): Same.
11122 (merge_into_state): Same.
11123 * gensupport.c: Same.
11124 * gensupport.h: Same.
11125 * ggc-common.c (init_ggc_heuristics): Same.
11126 * ggc-tests.c (test_union): Same.
11127 * gimple-loop-interchange.cc (dump_induction): Same.
11128 * gimple-loop-versioning.cc: Same.
11129 * gimple-match.h (gimple_match_cond::any_else): Same.
11130 * gimple-ssa-backprop.c: Same.
11131 * gimple-ssa-sprintf.c: Same.
11132 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
11134 (store_immediate_info::store_immediate_info): Same.
11135 (merged_store_group::apply_stores): Same.
11136 (get_location_for_stmts): Same.
11137 * gimple-ssa-strength-reduction.c: Same.
11138 * gimple-ssa-warn-alloca.c: Same.
11139 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
11140 * godump.c (go_type_decl): Same.
11141 * hash-map-tests.c (test_map_of_strings_to_int): Same.
11142 * hash-map.h: Same.
11143 * hash-set-tests.c (test_set_of_strings): Same.
11144 * hsa-brig.c: Same.
11145 * hsa-common.h: Same.
11146 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
11147 * input.c (assert_loceq): Same.
11150 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
11151 * ipa-fnsummary.h: Same.
11152 * ipa-inline.h: Same.
11153 * ipa-prop.h: Same.
11154 * ipa-split.c (visit_bb): Same.
11155 * ira-int.h (minmax_set_iter_next): Same.
11156 * loop-invariant.c: Same.
11158 * lra-eliminations.c: Same.
11160 * lra-lives.c (mark_regno_dead): Same.
11161 * lra-remat.c: Same.
11162 * lra-spills.c: Same.
11163 * lto-streamer.h: Same.
11164 * mem-stats.h: Same.
11165 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
11166 * omp-low.c (omp_clause_aligned_alignment): Same.
11167 * optabs-query.h (get_vcond_eq_icode): Same.
11169 * opts.c (wrap_help): Same.
11170 * poly-int.h: Same.
11171 * predict.c (predict_paths_leading_to_edge): Same.
11172 * pretty-print.h: Same.
11173 * profile-count.h: Same.
11175 * read-rtl-function.c: Same.
11178 * regrename.c: Same.
11179 * regrename.h: Same.
11181 * rtl-iter.h: Same.
11182 * rtl.h (costs_add_n_insns): Same.
11184 * sched-int.h: Same.
11185 * sel-sched-ir.h: Same.
11186 * selftest.h: Same.
11187 * sese.h (vec_find): Same.
11189 * target-globals.h: Same.
11190 * tree-affine.c (aff_combination_find_elt): Same.
11191 * tree-affine.h: Same.
11192 * tree-data-ref.h: Same.
11193 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
11194 * tree-predcom.c: Same.
11195 * tree-scalar-evolution.c (find_var_scev_info): Same.
11196 * tree-ssa-alias.h: Same.
11197 * tree-ssa-ccp.c: Same.
11198 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
11199 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
11200 (rewrite_mem_refs): Same.
11201 (execute_sm_if_changed): Same.
11202 (hoist_memory_references): Same.
11203 * tree-ssa-loop-ivopts.c (operator<=): Same.
11204 * tree-ssa-loop.h: Same.
11205 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
11206 * tree-ssa-structalias.c: Same.
11207 * tree-switch-conversion.h (cluster::cluster): Same.
11208 (simple_cluster::simple_cluster): Same.
11209 * tree-vect-patterns.c (type_conversion_p): Same.
11210 * tree-vectorizer.c (dump_stmt_cost): Same.
11211 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
11212 * tree.c (protected_set_expr_location): Same.
11213 * tree.h (desired_pro_or_demotion_p): Same.
11214 (fndecl_built_in_p): Same.
11215 * unique-ptr-tests.cc: Same.
11216 * var-tracking.c (delete_variable_part): Same.
11217 * varasm.c (assemble_real): Same.
11218 (tree_output_constant_def): Same.
11220 * wide-int-bitmask.h: Same.
11221 * wide-int.h (decompose): Same.
11223 2019-07-09 Richard Biener <rguenther@suse.de>
11225 PR tree-optimization/91114
11226 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
11227 find a vector type isn't fatal.
11229 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
11231 * config/aarch64/aarch64-simd.md
11232 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
11233 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
11234 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
11235 (*aarch64_crypto_aese_fused,
11236 *aarch64_crypto_aesd_fused): Update to new definition.
11237 * config/aarch64/aarch64.c
11238 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
11240 2019-07-09 Richard Biener <rguenther@suse.de>
11242 * gimple-match.h (gimple_match_op::resimplify): New.
11243 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
11244 gimple_resimplify4, gimple_resimplify5): Remove.
11245 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
11246 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
11248 (gimple_match_op::resimplify): New.
11249 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
11250 according to availability. Use gimple_match_op::resimplify.
11252 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
11254 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
11256 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
11258 * config/arm/crypto.md:
11259 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
11260 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
11261 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
11262 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
11264 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
11265 * config/arm/aarch-common-protos.h
11266 (aarch_crypto_can_dual_issue): Remove.
11267 * config/arm/aarch-common.c
11268 (aarch_crypto_can_dual_issue): Likewise.
11269 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
11270 * config/arm/cortex-a53.md: Likewise.
11271 * config/arm/cortex-a57.md: Likewise.
11272 * config/arm/iterators.md:
11273 (CRYPTO_BINARY): Redefine.
11274 (CRYPTO_UNARY): Removed.
11275 (CRYPTO_AES, CRYPTO_AESMC): New.
11277 2019-07-09 Richard Biener <rguenther@suse.de>
11279 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
11280 (vn_reference_lookup_3): If the main ref has no access path recorded
11281 but orig_ref has use it to do access-path based disambiguation.
11282 (vn_reference_lookup_pieces): Adjust.
11283 (vn_reference_lookup): Pass down original ref if we valueized.
11285 2019-07-09 Martin Liska <mliska@suse.cz>
11287 * doc/extend.texi: Document influence on loop
11290 2019-07-09 Martin Liska <mliska@suse.cz>
11292 * lto-compress.c (lto_normalized_zstd_level): Do not use
11293 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
11294 of libzstd. One can use 0 as a default compression level.
11296 2019-07-09 Martin Liska <mliska@suse.cz>
11298 * doc/invoke.texi: Add link from -fprofile-dir option.
11299 Use better wording for 'gcno filename'.
11301 2019-07-08 Martin Sebor <msebor@redhat.com>
11303 PR middle-end/71924
11304 PR middle-end/90549
11305 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
11307 (args_loc_t): New type.
11308 (args_loc_t, locmap_t): same.
11309 (diag_returned_locals): New function.
11310 (is_addr_local): Same.
11311 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
11312 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
11313 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
11315 2019-07-08 Jakub Jelinek <jakub@redhat.com>
11317 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
11318 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
11319 and casts in offset when different, both through gimple stmts
11320 and through trees. Rewritten using loops to minimize code duplication
11323 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
11325 * emit-rtl.c (set_insn_locations): New function moved from...
11326 * function.c (set_insn_locations): ...here.
11327 * ira-emit.c (emit_moves): Propagate location of the first instruction
11328 to the inserted move instructions.
11329 * reg-stack.c (compensate_edge): Set the location if the sequence is
11330 inserted on the edge.
11331 * rtl.h (set_insn_locations): Declare.
11333 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
11335 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
11336 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
11339 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
11341 PR rtl-optimization/88233
11342 * common.opt (fsplit-wide-types-early): New option.
11343 * common/config/rs6000/rs6000-common.c
11344 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
11346 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
11347 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
11348 flag_split_wide_types_early.
11349 (pass_data_lower_subreg3): New.
11350 (pass_lower_subreg3): New.
11351 (make_pass_lower_subreg3): New.
11352 * passes.def (pass_lower_subreg2): Move after the loop passes.
11353 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
11354 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
11355 the pass pipeline; its previous place is taken by ...
11356 (make_pass_lower_subreg3): ... this.
11358 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
11360 * config/s390/s390.c (s390_shift_truncation_mask): Define.
11361 (TARGET_SHIFT_TRUNCATION_MASK): Define.
11363 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
11365 * config/s390/constraints.md: Add new jsc constraint.
11366 * config/s390/predicates.md: New predicates.
11367 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
11368 * config/s390/s390.c (s390_valid_shift_count): New function.
11369 (print_shift_count_operand): Use s390_valid_shift_count.
11370 (print_operand): Likewise.
11371 * config/s390/s390.md: Use new predicate.
11372 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
11373 * config/s390/vector.md: Use new predicate.
11375 2019-07-08 Andrew Waterman <andrew@sifive.com>
11376 Jim Wilson <jimw@sifive.com>
11378 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
11379 bitsize instead of BITS_PER_WORD.
11381 2019-07-08 Martin Liska <mliska@suse.cz>
11383 * collect2.c (defined): Revert to before r254460.
11384 (scan_prog_file): Revert to before r254460.
11386 2019-07-08 Richard Biener <rguenther@suse.de>
11388 PR tree-optimization/83518
11389 * tree-ssa-sccvn.c: Include splay-tree.h.
11390 (struct pd_range, struct pd_data): New.
11391 (struct vn_walk_cb_data): Add data to track partial definitions.
11392 (vn_walk_cb_data::~vn_walk_cb_data): New.
11393 (vn_walk_cb_data::push_partial_def): New.
11394 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
11395 (vn_reference_lookup_2): When partial defs are registered give up.
11396 (vn_reference_lookup_3): Track partial defs for memset and
11397 constructor zeroing and for defs from constants.
11399 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
11401 * doc/install.texi (bootstrap-Og): Document.
11403 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
11405 * config/riscv/pic.md (*local_pic_load_s<mode>)
11406 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
11407 referenced by <mode>, giving...
11408 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
11409 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
11410 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
11411 use <X:MODE> for the mode attribute.
11413 2019-07-07 Jeff Law <law@redhat.com>
11415 PR tree-optimization/91090
11416 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
11417 in handling of ranges to simplify switch statements.
11419 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
11421 * config/darwin.c (darwin_override_options): Make a final check on PIC
11424 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
11426 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
11427 on for kernel code.
11429 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
11432 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
11433 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
11434 instead of matching them to "l" output operands.
11436 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
11438 * config/mips/mips.c (mips_split_move): Zero-initialize addr
11439 and check whether addr.reg is nonnull before using it.
11441 2019-07-06 Jakub Jelinek <jakub@redhat.com>
11443 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
11444 ctx->for_simd_scan_phase simd copy the outer var to the privatized
11445 variable(s). For conditional lastprivate look through outer
11446 GIMPLE_OMP_SCAN context.
11447 (lower_omp_1): For conditional lastprivate look through outer
11448 GIMPLE_OMP_SCAN context.
11450 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
11451 member to combined_into_simd_safelen1.
11452 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
11453 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
11454 clauses if ctx->combined_into_simd_safelen1 put statements after the
11455 predicate conditionalized block rather than into it.
11457 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11459 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
11461 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
11462 Make the choice of <mode> explicit, giving...
11463 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
11465 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11467 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
11468 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
11470 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
11471 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
11472 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
11473 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
11474 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
11475 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
11476 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
11477 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
11478 (*avx512f_scatterdi<mode>): Likewise.
11479 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
11481 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11483 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
11484 specify the mode iterator referenced by <mode>, giving...
11485 (*push1_h8300hs_<QHI:mode>): ...this.
11487 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11489 * config/gcn/gcn-valu.md
11490 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
11491 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
11492 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
11493 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
11494 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
11495 but using the _exec comparison patterns.
11496 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
11497 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
11498 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
11499 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
11500 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
11501 but using the _exec comparison patterns.
11503 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
11505 * config/arm/sync.md
11506 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
11507 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
11508 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
11509 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
11510 <SIDI:cas_cmp_str>.
11512 2019-07-06 Jakub Jelinek <jakub@redhat.com>
11514 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
11515 (maybe_lookup_ctx): Add forward declaration.
11516 (omp_find_scan): Likewise. Walk into body of simd if composited
11517 with worksharing loop.
11518 (scan_omp_simd_scan): New function.
11519 (scan_omp_1_stmt): Call it.
11520 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
11521 ctx->for_simd_scan_phase.
11522 (lower_rec_input_clauses): Do much less work for inscan reductions
11523 in ctx->for_simd_scan_phase is_simd regions.
11524 (lower_omp_scan): Set is_simd also on simd constructs composited
11525 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
11526 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
11527 emit their body after in simd constructs composited with worksharing
11529 (lower_omp_for_scan): Handle worksharing loop composited with simd.
11531 * omp-low.c (omp_find_scan): Make static.
11532 (lower_omp_for_scan): Fix order of merge arguments in input phase of
11533 the second loop, var2 represents the first partial sum and so needs
11534 to go before rprivb[ivar].
11536 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
11538 * config/rs6000/rs6000-logue.c: Remove unused code.
11540 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11542 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
11544 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
11547 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
11548 check with a frame laid out check.
11550 2019-07-05 Richard Biener <rguenther@suse.de>
11552 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
11553 when comparing against a store with possibly the same value.
11555 2019-07-05 Richard Biener <rguenther@suse.de>
11557 PR tree-optimization/91091
11558 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
11559 (walk_non_aliased_vuses): Likewise.
11560 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
11561 (get_continuation_for_phi): New tbaa_p parameter and pass
11563 (walk_non_aliased_vuses): Likewise.
11564 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
11565 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
11566 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
11568 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
11569 (adjust_offsets_for_equal_base_address): New function.
11570 (vn_reference_lookup_3): Use it to catch more base equivalences.
11571 Handle and pass down tbaa_p flag.
11572 (vn_reference_lookup_pieces): Adjust.
11573 (vn_reference_lookup): Remove alias-set altering, instead pass
11574 down false as tbaa_p.
11576 2019-07-05 Richard Biener <rguenther@suse.de>
11578 PR tree-optimization/91091
11579 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
11580 accesses can happen with -fno-strict-aliasing.
11582 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
11584 * tree-ssa-alias.c (alias_stats): Add
11585 nonoverlapping_component_refs_since_match_p_must_overlap.
11586 (dump_alias_stats): Print it.
11587 (nonoverlapping_component_refs_since_match_p): Add early exit.
11588 (nonoverlapping_component_refs_p): Do not account early exit.
11590 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11592 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
11593 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
11594 (emit_eh_dispatch): Delete.
11595 (lower_catch): Emit the eh_dispatch manually and set the location of
11596 the first catch statement onto it.
11597 (lower_eh_filter): Emit the eh_dispatch manually and set location.
11598 (lower_eh_dispatch): Propagate location.
11599 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
11600 (eliminate_build): Likewise.
11602 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11604 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
11605 phi nodes if possible.
11606 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
11607 location info on the newly created statement.
11608 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
11609 newly created increment if needed.
11611 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11613 PR middle-end/78884
11614 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
11615 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
11616 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
11617 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
11618 ctx->add_safelen1 is set.
11620 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
11621 GOMP_loop_start at the start of second worksharing loop in a scan.
11622 For nowait, don't emit GOMP_loop_end_nowait at the end of first
11623 worksharing loop in a scan even if there are conditional lastprivates,
11624 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
11626 2019-07-04 Jan Hubicka <jh@suse.cz>
11628 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11629 Fix check for match in the ref walk.
11631 2019-07-04 Martin Liska <mliska@suse.cz>
11633 * tree-ssa-loop-niter.c
11634 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
11635 (estimate_numbers_of_iterations):
11636 Support __builtin_expect_with_probability for analysis
11637 of # of loop iterations.
11639 2019-07-04 Alexandre Oliva <oliva@adacore.com>
11641 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
11642 * except.c: Likewise.
11643 * expr.c (expand_expr_real_1): Reject it.
11644 * gimplify.c (gimplify_expr): Gimplify it, within
11646 * tree-dump.c (dequeue_and_dump): Dump it.
11647 * tree-pretty-print.c (dump_generic_node): Likewise.
11648 * tree.c (block_may_fallthru): Handle it.
11649 * tree.def (EH_ELSE_EXPR): Introduce it.
11650 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
11651 with GIMPLE_EH_ELSE as try/finally/else.
11653 2019-07-04 Richard Biener <rguenther@suse.de>
11656 * tree-pass.h (execute_all_ipa_transforms): Add a flag
11657 parameter whether to disable GC collection.
11658 * passes.c (execute_one_ipa_transform_pass): Likewise, and
11660 (execute_all_ipa_transforms): Likewise and pass it down.
11661 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
11662 collection from applying IPA transforms.
11663 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
11664 from applying IPA transforms.
11666 2019-07-04 Richard Biener <rguenther@suse.de>
11668 PR tree-optimization/90911
11669 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
11670 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
11671 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11672 scalar_loop_scaling.
11673 (vect_transform_loop): Scale scalar loop profile if needed.
11674 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
11675 the loop copy from if-conversion adjust edge probabilities
11676 and scale the vectorized loop body profile, queue the scalar
11677 profile for updating after peeling.
11679 2019-07-04 Jan Hubicka <jh@suse.cz>
11681 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
11682 parameters; return early for must-alias.
11683 (indirect_ref_may_alias_decl_p): Likewise; when establishing
11684 outer types match, try nonoverlapping_component_refs
11685 if must-alias is not obvious.
11686 (indirect_refs_may_alias_p): Likewise.
11687 (refs_may_alias_p_2): Likewise.
11689 2019-07-04 Richard Biener <rguenther@suse.de>
11691 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
11693 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
11695 (struct vn_walk_cb_data): New callback data struct.
11696 (vn_reference_lookup_2): Adjust.
11697 (vn_reference_lookup_3): Likewise.
11698 (vn_reference_lookup_pieces): Likewise.
11699 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
11700 (visit_reference_op_load): Adjust.
11702 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11704 PR tree-optimization/91063
11705 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
11706 stmt from stmts sequence before calling vect_init_vector_1.
11709 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11712 * fwprop.c (reg_single_def_p): New function.
11713 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
11714 (forward_propagate_into): New parameter reg_prop_only
11715 with default value false.
11716 Propagate def's src into loop only if SET_SRC and SET_DEST
11717 of def_set have single definitions.
11718 Likewise if reg_prop_only is set to true.
11719 (fwprop): New param fwprop_addr_p.
11720 Integrate fwprop_addr into fwprop.
11721 (fwprop_addr): Remove.
11722 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
11724 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
11725 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
11726 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
11728 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11730 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
11731 in worksharing loop scans.
11733 PR tree-optimization/91074
11734 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
11737 PR rtl-optimization/90756
11738 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
11741 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
11743 * config/aarch64/aarch64.md: Remove redundant constraints from
11744 define_expand but keep some patterns untouched if they are
11745 specially selected by TARGET_SECONDARY_RELOAD hook.
11746 * config/aarch64/aarch64-sve.md: Likewise.
11747 * config/aarch64/atomics.md: Remove redundant constraints from
11749 * config/aarch64/aarch64-simd.md: Likewise.
11751 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
11753 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
11754 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
11755 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
11757 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
11760 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
11762 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
11763 (STARTFILE_SPEC): Split crt3 into a separate spec.
11764 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
11765 (DARWIN_CRT2_SPEC): New.
11766 (DARWIN_CRT3_SPEC): New.
11767 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
11768 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
11769 (DARWIN_CRT3_SPEC): New.
11771 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
11773 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
11774 Change the RTL attribute "length" from "4" to "*" to allow the
11775 length attribute to be adjusted automatically for prefixed load,
11776 store, and add immediate instructions.
11777 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
11779 (extendsi<mode>2, EXTSI iterator): Likewise.
11780 (movsi_internal1): Likewise.
11781 (movsi_from_sf): Likewise.
11782 (movdi_from_sf_zero_ext): Likewise.
11783 (mov<mode>_internal): Likewise.
11784 (movcc_internal1, QHI iterator): Likewise.
11785 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
11786 (movsf_from_si): Likewise.
11787 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
11788 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
11789 (mov<mode>, FMOVE128 iterator): Likewise.
11790 (movdi_internal64): Likewise.
11791 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
11793 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
11794 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
11795 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
11796 (vsx_splat_v4sf): Likewise.
11798 2019-07-03 Mark Wielaard <mark@klomp.org>
11801 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
11802 DW_AT_addr_base if there is actually a .debug_addr section with
11804 (output_addr_table): Add DWARF5 table header generation here after
11805 checking there are actually any addresses from...
11806 (dwarf2out_finish): ...here.
11808 2019-07-03 Richard Biener <rguenther@suse.de>
11810 PR middle-end/91069
11811 * match.pd (vec_perm -> bit_insert): Fix element read from
11814 2019-07-03 Martin Liska <mliska@suse.cz>
11816 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
11817 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
11819 * generic-match-head.c: Include dbgcnt.h.
11820 * gimple-match-head.c: Likewise.
11822 2019-07-03 Martin Liska <mliska@suse.cz>
11824 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
11825 (GCOV_COUNTER_V_TOPN): New.
11826 (GCOV_COUNTER_V_INDIR): Use _topn.
11827 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
11828 (GCOV_TOPN_VALUES): New.
11829 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
11830 (GCOV_TOPN_VALUES_COUNTERS): New.
11831 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
11833 (gimple_init_gcov_profiler): Rename variables from one_value
11835 (gimple_gen_one_value_profiler): Remove.
11836 (gimple_gen_topn_values_profiler): New function.
11837 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
11838 names instead of SINGLE_VALUE.
11839 (stream_out_histogram_value): Likewise.
11840 (stream_in_histogram_value): Likewise.
11841 (get_most_common_single_value): Likewise.
11842 (gimple_divmod_fixed_value_transform): Likewise.
11843 (gimple_stringops_transform): Likewise.
11844 (gimple_divmod_values_to_profile): Likewise.
11845 (gimple_stringops_values_to_profile): Likewise.
11846 (gimple_find_values_to_profile): Likewise.
11847 * value-prof.h (enum hist_type): Rename to TOPN.
11848 (gimple_gen_one_value_profiler): Remove.
11849 (gimple_gen_topn_values_profiler): New.
11851 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
11853 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
11854 if it has the DW_AT_data_member_location attribute.
11856 2019-07-03 Richard Biener <rguenther@suse.de>
11858 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
11861 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
11863 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
11864 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
11865 (tlsdesc_small_sve_<mode>): Likewise.
11867 2019-07-03 Martin Liska <mliska@suse.cz>
11869 * Makefile.in: Define ZSTD_LIB.
11870 * common.opt: Adjust compression level
11871 to support also zstd levels.
11872 * config.in: Regenerate.
11873 * configure: Likewise.
11874 * configure.ac: Add --with-zstd and --with-zstd-include options
11876 * doc/install.texi: Mention zstd dependency.
11877 * gcc.c: Print supported LTO compression algorithms.
11878 * lto-compress.c (lto_normalized_zstd_level): Likewise.
11879 (lto_compression_zstd): Likewise.
11880 (lto_uncompression_zstd): Likewise.
11881 (lto_end_compression): Dispatch in between zlib and zstd.
11882 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
11883 (lto_uncompression_zlib): Make it static.
11884 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
11885 * lto-section-in.c (lto_get_section_data): Pass info
11886 about used compression.
11887 * lto-streamer-out.c: By default use zstd when possible.
11888 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
11889 (TV_IPA_LTO_COMPRESS): Likewise for compression.
11891 2019-07-03 Martin Liska <mliska@suse.cz>
11893 * lto-section-in.c (lto_get_section_data): Add "lto" section.
11894 * lto-section-out.c (lto_destroy_simple_output_block): Never
11895 compress LTO_section_lto section.
11896 * lto-streamer-out.c (produce_asm): Do not set major_version
11898 (lto_output_toplevel_asms): Likewise.
11899 (produce_lto_section): New function.
11900 (lto_output): Call produce_lto_section.
11901 (lto_write_mode_table): Do not set major_version and
11903 (produce_asm_for_decls): Likewise.
11904 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
11906 (struct lto_header): Remove.
11907 (struct lto_section): New struct.
11908 (struct lto_simple_header): Do not inherit from lto_header.
11909 (struct lto_file_decl_data): Add lto_section_header field.
11911 2019-07-03 Martin Liska <mliska@suse.cz>
11913 * lra-eliminations.c (eliminate_regs_in_insn): Remove
11915 * reg-stack.c (check_asm_stack_operands): Likewise.
11916 * tree-ssa-structalias.c (create_function_info_for): Likewise.
11917 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
11918 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
11919 force_expand_binop.
11921 2019-07-03 Martin Liska <mliska@suse.cz>
11923 PR tree-optimization/90892
11924 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
11925 in string constants.
11927 2019-07-03 Martin Liska <mliska@suse.cz>
11929 PR middle-end/90899
11930 * multiple_target.c (create_dispatcher_calls): Add to comdat
11931 group only if set for ifunc.
11933 2019-07-03 Martin Liska <mliska@suse.cz>
11936 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
11937 Define local_object_name in outer scope in order to handle
11938 use-after-scope issue.
11940 2019-07-03 Martin Liska <mliska@suse.cz>
11942 * common.opt: Add fprofile-note.
11943 * coverage.c (coverage_init): Append the option
11945 * doc/invoke.texi: Document -fprofile-note.
11947 2019-07-03 Jakub Jelinek <jakub@redhat.com>
11949 PR tree-optimization/91033
11950 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
11951 vect_analyze_data_refs): Add bool * arguments.
11952 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
11953 if failure is due to scatter/gather, set *fatal to false if non-NULL.
11954 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11955 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
11956 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
11957 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
11958 vect_analyze_data_refs caller.
11960 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
11962 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
11963 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
11964 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
11965 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11966 OMP_CLAUSE__SCANTEMP_ entry.
11967 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
11968 * tree-pretty-print.c (dump_omp_clause): Likewise.
11969 * tree-nested.c (convert_nonlocal_omp_clauses,
11970 convert_local_omp_clauses): Likewise.
11971 * omp-general.h (struct omp_for_data): Add have_scantemp and
11972 have_nonctrl_scantemp members.
11973 * omp-general.c (omp_extract_for_data): Initialize them.
11974 * omp-low.c (struct omp_context): Add scan_exclusive member.
11975 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
11976 result again with GF_OMP_FOR_KIND_MASK. Initialize also
11977 ctx->scan_exclusive.
11978 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
11979 of !ctx->scan_inclusive.
11980 (lower_rec_input_clauses): Simplify gimplification of dtors using
11981 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
11982 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
11983 loops. Don't add barrier for reduction_omp_orig_ref if
11984 ctx->scan_??xclusive.
11985 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
11986 (lower_omp_scan): Use ctx->scan_exclusive instead
11987 of !ctx->scan_inclusive. Handle worksharing loops with inscan
11988 reductions. Use new_vard != new_var instead of repeated
11989 omp_is_reference calls.
11990 (omp_find_scan, lower_omp_for_scan): New functions.
11991 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
11993 * omp-expand.c (expand_omp_scantemp_alloc): New function.
11994 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
11995 and fd->have_scantemp.
11997 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
11998 on worksharing loop propagate it as shared clause to containing
12001 * omp-expand.c (expand_omp_for_static_nochunk,
12002 expand_omp_for_static_chunk): For nowait worksharing loop with
12003 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
12006 2019-07-02 qing zhao <qing.zhao@oracle.com>
12008 PR preprocessor/90581
12009 * doc/cppopts.texi: Add document for -fmax-include-depth.
12010 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
12012 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
12014 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
12015 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
12016 (mmx_packssdw): Ditto.
12017 (mmx_punpckhbw): Ditto.
12018 (mmx_punpcklbw): Ditto.
12019 (mmx_punpckhwd): Ditto.
12020 (mmx_punpcklwd): Ditto.
12021 (mmx_punpckhdq): Ditto.
12022 (mmx_punpckldq): Ditto.
12023 (*vec_dupv4hi): Ditto.
12024 (*vec_dupv2si): Ditto.
12025 (mmx_pmovmskb): Ditto.
12026 * config/i386/sse.md (sse_cvtpi2ps): Use
12027 TARGET_SSE2 && SSE_REG_P in split condition.
12028 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
12029 TARGET_SSSE3 && SSE_REGNO_P in split condition.
12030 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
12031 (ssse3_pshufbv8qi3): Ditto.
12032 (ssse3_palignrdi): Ditto.
12034 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
12036 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
12037 with inlined save and restore.
12039 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
12041 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
12042 to be inserted on single successor edge of the entry block. Then call
12043 commit_edge_insertions instead of inserting the instructions manually.
12044 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
12045 RTL expansion and rebuild jump labels chain.
12047 2019-07-02 Richard Biener <rguenther@suse.de>
12049 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
12051 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
12053 * tree.c (build_common_tree_nodes): Initialize them.
12054 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
12055 Make declarations comments.
12056 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
12057 chrec_known): Remove definitions.
12058 (initialize_scalar_evolutions_analyzer): Remove.
12059 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
12060 * tree-streamer.c (preload_common_nodes): Do not preload
12061 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
12063 2019-07-02 Jan Hubicka <jh@suse.cz>
12065 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
12068 2019-07-02 Jan Hubicka <jh@suse.cz>
12070 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
12072 (nonoverlapping_component_refs_since_match_p): ... this one;
12073 handle also non-decl bases; return -1 if search gave up.
12074 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
12075 nonoverlapping_component_refs_of_decl_p_no_alias to
12076 nonoverlapping_component_refs_since_match_p_may_alias,
12077 nonoverlapping_component_refs_since_match_p_no_alias.
12078 (dump_alias_stats): Update dumping.
12079 (aliasing_matching_component_refs_p): Break out from ...;
12080 dispatch to nonoverlapping_component_refs_for_decl_p
12081 and nonoverlapping_component_refs_since_match_p.
12082 (aliasing_component_refs_p): ... here; call
12083 nonoverlapping_component_refs_p in scenarios where we can not
12084 precisely determine base match.
12085 (decl_refs_may_alias_p): Use
12086 nonoverlapping_component_refs_since_match_p.
12087 (indirect_ref_may_alias_decl_p): Do not call
12088 nonoverlapping_component_refs_p.
12089 (indirect_refs_may_alias_p): Likewise.
12091 2019-07-02 Jan Hubicka <jh@suse.cz>
12093 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
12094 to clobber of return value.
12096 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12098 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
12099 for is_neon_type instructions that have not already been categorized.
12101 2019-07-02 Richard Biener <rguenther@suse.de>
12103 PR tree-optimization/58483
12104 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
12105 for MEM_REF base hashing.
12106 (equal_mem_array_ref_p): Likewise for base comparison.
12108 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12110 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
12111 parameterized name.
12112 (signbit<mode>2): Use that name. Simplify.
12114 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
12116 PR middle-end/66726
12117 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
12118 Tune heuristic from PR71016 to allow MIN / MAX.
12120 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12122 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
12123 parameterized name.
12124 (abs<mode>2): Use that name. Simplify.
12126 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12128 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
12129 parameterized name.
12130 (neg<mode>2): Use that name. Simplify.
12132 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12134 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
12136 (abs<mode>2): Use that name. Simplify.
12138 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12140 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
12142 (neg<mode>2): Use that name. Simplify.
12144 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
12146 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
12147 ("enabled" attribute): Handle sse_noavx isa attribute.
12148 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
12149 Use TARGET_SSE && SSE_REGNO_P in split condition.
12150 (*vec_dupv2sf): Ditto.
12152 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12154 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
12156 (floatsi<mode>2): Use that name. Simplify.
12158 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12160 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
12161 parameterized name.
12162 (extenddf<mode>2_vsx): Make this a parameterized name.
12163 (extenddf<mode>2): Use those names. Simplify.
12165 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12167 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
12169 (eh_return): Use that name. Simplify.
12171 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12173 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
12174 (doloop_end): Use that name. Simplify.
12176 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12178 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
12179 parameterized name.
12180 (indirect_jump): Use that name. Simplify.
12182 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12184 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
12185 parameterized name.
12186 (abs<mode>2): Use that name. Simplify.
12188 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12190 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
12191 parameterized name.
12192 (fix_trunc<mode>si2): Use that name. Simplify.
12194 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12196 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
12197 (allocate_stack): Use that name. Simplify.
12199 2019-07-01 Martin Sebor <msebor@redhat.com>
12201 PR middle-end/90923
12202 * hash-map.h (hash_map::put): On insertion invoke element ctor.
12203 (hash_map::get_or_insert): Same. Reformat comment.
12204 * hash-set.h (hash_set::add): On insertion invoke element ctor.
12205 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
12206 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
12207 * hash-table.h (hash_table::operator=): Prevent copy assignment.
12208 (hash_table::hash_table (const hash_table&)): Use copy ctor
12209 instead of assignment to copy elements.
12211 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
12212 John David Anglin <danglin@gcc.gnu.org>
12215 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
12216 using saved frame pointer.
12218 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
12220 PR middle-end/64242
12221 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
12222 Add frame clobber and schedule blockage.
12224 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
12226 * doc/invoke.texi (Link Options): Further editorial changes to
12227 -flinker-output docs.
12229 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
12231 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
12232 Load both operands of a PLUS into registers separately.
12234 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
12236 * config/s390/vector.md: Fix shift count operand printing.
12238 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12240 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
12242 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12244 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
12245 Use recog_data to test for an output operand.
12247 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12249 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
12250 exclude any others that are disparaged or that are bound to need
12252 (ira_get_dup_out_num): Expand comment.
12254 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12256 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
12257 constraint string for each operand/alternative combo. Only handle
12258 '%' at the start of constraint strings, and look for it outside
12261 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
12263 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
12264 alternative_mask instead of HARD_REG_SET to represent a
12265 bitmask of alternatives.
12266 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12267 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
12269 2019-07-01 Martin Liska <mliska@suse.cz>
12271 * edit-context.c (test_applying_fixits_unreadable_file): Do not
12272 use () for a constructor call.
12273 (test_applying_fixits_line_out_of_range): Likewise.
12274 * ggc-page.c (alloc_page): Use (void *) for %p printf format
12276 (free_page): Likewise.
12278 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
12280 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
12281 parameter names to match usage (no functional change).
12282 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
12284 2019-07-01 Richard Biener <rguenther@suse.de>
12286 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
12288 (pass_fre::execute): Honor it.
12289 * passes.def: Adjust pass_fre invocations to allow iterating,
12290 add non-iterating pass_fre before late threading/dom.
12292 2019-07-01 Richard Biener <rguenther@suse.de>
12294 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
12295 TARGET_MEM_REF handling to also handle address-taken ones.
12297 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
12299 * doc/sourcebuild.texi (Effective-Target Keywords, Other
12300 hardware attributes): Document avx512vp2intersect.
12302 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
12304 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
12305 (abs<mode>2): New expander.
12306 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
12307 Use CODE_FOR_ssse3_absv8qi2.
12308 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
12309 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
12311 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
12313 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
12314 to sse, sse_noavx and avx. Update all uses.
12316 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
12318 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
12319 (*mmx_<plusminus_insn><mode>3): Ditto.
12320 (*mmx_mulv4hi3"): Ditto.
12321 (*mmx_smulv4hi3_highpart): Ditto.
12322 (*mmx_umulv4hi3_highpart): Ditto.
12323 (*mmx_pmaddwd): Ditto.
12324 (*sse2_umulv1siv1di3): Ditto.
12325 (*mmx_<code>v4hi3): Ditto.
12326 (*mmx_<code>v8qi3): Ditto.
12327 (mmx_ashr<mode>3): Ditto.
12328 ("mmx_<shift_insn><mode>3): Ditto.
12329 (*mmx_eq<mode>3): Ditto.
12330 (mmx_gt<mode>3): Ditto.
12331 (mmx_andnot<mode>3): Ditto.
12332 (*mmx_<code><mode>3): Ditto.
12333 (*mmx_pinsrw): Ditto.
12334 (*mmx_pextrw): Ditto.
12335 (mmx_pshufw_1): Ditto.
12336 (*mmx_uavgv8qi3): Ditto.
12337 (*mmx_uavgv4hi3): Ditto.
12338 ("mmx_psadbw): Ditto.
12339 * config/i386/sse.md (sse_cvtps2pi): Ditto.
12340 (sse_cvttps2pi): Ditto.
12341 (ssse3_pmaddubsw): Ditto.
12342 (*ssse3_pmulhrswv4hi3): Ditto.
12343 (ssse3_psign<mode>3): Ditto.
12345 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
12347 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
12348 adjustment for bit-fields to all aggregate types.
12350 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
12352 * config/rs6000/predicates.md (pcrel_address): Use
12353 SYMBOL_REF_LOCAL_P to determine if a label is local.
12354 (pcrel_external_address): New predicate.
12355 (non_prefixed_mem_operand): Delete, predicate not used.
12356 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
12357 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
12359 (SYMBOL_REF_PCREL_P): Likewise.
12362 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
12364 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
12365 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
12366 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
12368 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
12370 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
12371 override on extra_headers.
12373 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
12375 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
12376 * config/darwin-driver.c (darwin_default_min_version): Remove newline
12378 (darwin_driver_init): Likewise.
12380 2019-06-28 Jan Beulich <jbeulich@suse.com>
12382 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12383 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
12384 Eliminate redundant alternative.
12386 2019-06-28 Jan Beulich <jbeulich@suse.com>
12388 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12389 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
12390 Use vector_operand.
12392 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
12394 * config/arc/arc.c (arc_rtx_costs): All short instructions are
12395 having a lower cost regardless of the speed option.
12397 2019-06-28 Jan Beulich <jbeulich@suse.com>
12399 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
12400 vector_operand plus, on both alternatives, "Bm" constraint.
12402 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
12404 * config/arm/arm.md: Remove redundant constraints from
12405 define_expand but leave reload_inm and reload_outm patterns
12406 untouched since they need special constraints to work.
12407 * config/arm/arm-fixed.md: Remove redundant constraints from
12409 * config/arm/iwmmxt.md: Likewise.
12410 * config/arm/neon.md: Likewise.
12411 * config/arm/sync.md: Likewise.
12412 * config/arm/thumb1.md: Likewise.
12413 * config/arm/vec-common.md: Likewise.
12415 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
12417 * doc/install.texi: Document --disable-tm-clone-registry.
12419 2019-06-27 Jakub Jelinek <jakub@redhat.com>
12422 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
12425 PR tree-optimization/91010
12426 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
12427 return true. Otherwise, don't call operand_equal_p if offset1 or
12428 offset2 is NULL and just return false.
12430 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12432 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
12433 user-specified float mode choice for kernel mode code.
12435 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12437 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
12440 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
12442 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
12443 use longcall for 64b code.
12445 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
12447 * builtins.c (get_memory_rtx): Fix comment.
12448 * optabs.def (movmem_optab): Change to cpymem_optab.
12449 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
12450 (emit_block_move_hints): Change movmem to cpymem.
12451 * defaults.h: Change movmem to cpymem.
12452 * targhooks.c (get_move_ratio): Change movmem to cpymem.
12453 (default_use_by_pieces_infrastructure_p): Ditto.
12454 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
12455 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
12457 * config/aarch64/aarch64.h: Change movmem to cpymem.
12458 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
12459 * config/alpha/alpha.h: Change movmem to cpymem in comment.
12460 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
12462 * config/arc/arc-protos.h: Change movmem to cpymem.
12463 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
12464 * config/arc/arc.h: Change movmem to cpymem in comment.
12465 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
12466 * config/arm/arm-protos.h: Change movmem to cpymem in names.
12467 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
12468 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
12469 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
12470 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
12471 * config/avr/avr-protos.h: Change movmem to cpymem.
12472 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
12473 avr_out_movmem): Change movmem to cpymem.
12474 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
12475 Change movmem to cpymem.
12476 * config/bfin/bfin-protos.h: Change movmem to cpymem.
12477 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
12478 Change movmem to cpymem.
12479 * config/bfin/bfin.h: Change movmem to cpymem in comment.
12480 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
12481 * config/c6x/c6x-protos.h: Change movmem to cpymem.
12482 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
12483 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
12484 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
12485 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
12486 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
12487 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
12488 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
12489 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
12490 expand_small_cpymem_or_setmem,
12491 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
12492 expand_set_or_cpymem_constant_prologue,
12493 ix86_expand_set_or_cpymem): Change movmem to cpymem.
12494 * config/i386/i386-protos.h: Change movmem to cpymem.
12495 * config/i386/i386.h: Change movmem to cpymem in comment.
12496 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
12497 (setmem<mode>): Change expansion function name.
12498 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
12499 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
12500 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
12501 * config/m32c/m32c-protos.h: Change movmem to cpymem.
12502 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
12503 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
12504 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
12506 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
12507 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
12508 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
12509 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
12510 Change movmem to cpymem.
12511 * config/mips/mips.h: Change movmem to cpymem.
12512 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
12513 * config/nds32/nds32-memory-manipulation.c
12514 (nds32_expand_movmemsi_loop_unknown_size,
12515 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
12516 nds32_expand_movmemsi_unroll,
12517 nds32_expand_movmemsi): Change movmem to cpymem.
12518 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
12519 * config/nds32/nds32-protos.h: Change movmem to cpymem.
12520 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
12521 (pa_adjust_insn_length): Change call to compute_movmem_length.
12522 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
12523 movmemdi, movmemdi_prereload,
12524 movmemdi_postreload): Change movmem to cpymem.
12525 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
12526 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
12527 * config/riscv/riscv.c: Change movmem to cpymem in comment.
12528 * config/riscv/riscv.h: Change movmem to cpymem.
12529 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
12530 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
12531 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
12533 * config/s390/s390-protos.h: Change movmem to cpymem.
12534 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
12535 s390_expand_insv): Change movmem to cpymem.
12536 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
12537 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
12538 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
12539 * config/sparc/sparc.h: Change movmem to cpymem in comment.
12540 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
12541 for nonexistent function.
12542 * config/vax/vax.h: Change movmem to cpymem in comment.
12543 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
12544 * config/visium/visium.h: Change movmem to cpymem in comment.
12545 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
12546 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
12547 * doc/md.texi: Change movmem to cpymem and update description to match.
12548 * doc/rtl.texi: Change movmem to cpymem.
12549 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
12550 * doc/tm.texi: Regenerate.
12552 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
12554 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
12555 -fvariable-expansion-in-unroller by default.
12556 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
12559 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
12562 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12563 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12565 * config.gcc(rs6000-*-*): Define target_gtfiles.
12567 2019-06-27 Jan Hubicka <jh@suse.cz>
12569 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
12570 (add_type_duplicate): When odr hash is not allocated, to nothing.
12571 (odr_based_tbaa_p): New function.
12572 (set_type_canonical_for_odr_type): New function.
12573 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
12574 set_type_canonical_for_odr_type): New.
12575 * tree.c (gimple_canonical_types_compatible_p): ODR types with
12576 ODR based TBAA are not equivalent to non-ODR types.
12578 2019-06-27 Martin Liska <mliska@suse.cz>
12580 PR tree-optimization/90974
12581 PR rtl-optimization/90975
12582 PR rtl-optimization/90976
12584 PR tree-optimization/91017
12585 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
12587 * lra.c (lra_set_insn_recog_data): Remove a leftover from
12588 initial commit of IRA.
12589 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
12591 * tree-vect-loop.c (vect_create_epilog_for_reduction):
12592 Remove unused mode1.
12593 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
12596 2019-06-27 Jakub Jelinek <jakub@redhat.com>
12599 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
12600 instead of register_operand for operands[1], add m to its constraints
12601 if operands[2] uses "C" constraint. Ensure in condition that if
12602 operands[2] is not 0, then operands[1] is not a MEM. For last two
12603 alternatives, use unaligned loads instead of aligned if operands[1] is
12604 misaligned_operand.
12606 2019-06-27 Martin Liska <mliska@suse.cz>
12608 * asan.c (asan_emit_allocas_unpoison): Remove obviously
12610 * bt-load.c (move_btr_def): Likewise.
12611 * builtins.c (expand_builtin_apply_args_1): Likewise.
12612 (expand_builtin_apply): Likewise.
12613 * cfgexpand.c (expand_asm_stmt): Likewise.
12614 (construct_init_block): Likewise.
12615 * cfghooks.c (verify_flow_info): Likewise.
12616 * cfgloopmanip.c (remove_path): Likewise.
12617 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
12618 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
12619 * combine.c (simplify_if_then_else): Likewise.
12620 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12621 (choose_basereg): Likewise.
12622 (ix86_expand_prologue): Likewise.
12623 (ix86_preferred_output_reload_class): Likewise.
12624 * cselib.c (cselib_record_sets): Likewise.
12625 * df-scan.c (df_scan_alloc): Likewise.
12626 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
12627 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
12628 * emit-rtl.c (try_split): Likewise.
12629 * graphite-scop-detection.c (assign_parameter_index_in_region):
12631 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
12632 * ira-color.c (setup_profitable_hard_regs): Likewise.
12633 * ira.c (rtx_moveable_p): Likewise.
12634 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
12635 * read-rtl.c (read_subst_mapping): Likewise.
12636 * regrename.c (scan_rtx): Likewise.
12637 * reorg.c (fill_slots_from_thread): Likewise.
12638 * tree-inline.c (tree_function_versioning): Likewise.
12639 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
12640 * tree-ssa-sink.c (statement_sink_location): Likewise.
12641 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
12642 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
12643 (vect_create_epilog_for_reduction): Likewise.
12644 * tree.c (build_nonstandard_integer_type): Likewise.
12646 2019-06-27 Richard Biener <rguenther@suse.de>
12648 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
12650 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
12652 PR tree-optimization/89772
12653 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
12654 out-of-bound accesses checking.
12656 2019-06-27 Martin Liska <mliska@suse.cz>
12658 PR tree-optimization/91014
12659 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
12660 when LHS is NULL_TREE.
12662 2019-06-27 Martin Liska <mliska@suse.cz>
12664 * symbol-summary.h (traverse): Pass
12665 argument a to the call of callback.
12666 (gt_ggc_mx): Mark arguments as unused.
12667 (gt_pch_nx): Likewise.
12669 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
12672 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
12675 2019-06-26 Jeff Law <law@redhat.com>
12677 PR tree-optimization/90883
12678 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
12679 (delete_dead_or_redundant_assignment): Likewise.
12681 PR tree-optimization/90883
12682 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
12683 * tree-ssa-dse.c: Update various comments to distinguish between
12684 dead and redundant stores.
12685 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
12686 (dse_optimize_redundant_stores): New function.
12687 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
12688 Distinguish between dead and redundant calls in dump output. All
12690 (delete_dead_or_redundant_assignment): Similarly for assignments.
12691 (dse_optimize_stmt): Handle _CHK variants. For statements which
12692 store 0 into multiple memory locations, try to prove a subsequent
12693 store is redundant.
12695 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
12698 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
12699 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
12701 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
12703 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
12704 (branch_islands): New extern.
12705 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
12706 * config/rs6000/rs6000.c: .. here.
12708 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
12710 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
12711 (powerpc*-*-*) ... to here.
12713 2019-06-26 Jeff Law <law@redhat.com>
12715 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
12716 memcpy, memmove and memset builtins.
12717 (maybe_trim_memstar_call): Likewise.
12719 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12721 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
12723 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12725 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12727 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12729 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
12731 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
12733 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
12736 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12738 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
12740 2019-06-26 Richard Biener <rguenther@suse.de>
12743 * tree-inline.c (remap_ssa_name): Copy SSA range info.
12745 2019-06-26 Richard Biener <rguenther@suse.de>
12747 * lto-streamer.h (lto_bitmap_alloc): Remove.
12748 (lto_bitmap_free): Likewise.
12749 * lto-streamer.c (lto_bitmap_alloc): Remove.
12750 (lto_bitmap_free): Likewise.
12751 (lto_obstack): Likewise.
12752 (lto_obstack_initialized): Likewise.
12753 * lto-streamer-out.c (lto_output): Use own obstack for local
12754 bitmap, free it consistently.
12756 2019-06-26 Jakub Jelinek <jakub@redhat.com>
12759 * config/i386/sse.md
12760 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
12761 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
12762 insns if operands[2] is misaligned_operand.
12764 2019-06-26 Li Jia He <helijia@linux.ibm.com>
12766 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
12768 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
12771 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12773 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
12775 2019-06-26 Martin Liska <mliska@suse.cz>
12777 PR tree-optimization/90973
12778 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
12779 epilogue_cost_vec instead of prologue_cost_vec for
12782 2019-06-26 Martin Liska <mliska@suse.cz>
12784 * bb-reorder.c (connect_better_edge_p): Add missing else
12785 statement in the middle of if-else statements.
12787 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
12788 H.J. Lu <hongjiu.lu@intel.com>
12789 Olga Makhotina <olga.makhotina@intel.com>
12791 * common/config/i386/i386-common.c
12792 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
12793 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
12794 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
12795 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
12796 (ix86_handle_option): Handle -mavx512vp2intersect.
12797 * config/i386/avx512vp2intersectintrin.h: New.
12798 * config/i386/avx512vp2intersectvlintrin.h: New.
12799 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
12800 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12801 AVX512VP2INTERSECT.
12802 * config/i386/i386-builtin-types.def: Add new types.
12803 * config/i386/i386-builtin.def: Add new builtins.
12804 * config/i386/i386-builtins.c: (enum processor_features): Add
12805 F_AVX512VP2INTERSECT.
12806 (static const _isa_names_table isa_names_table): Ditto.
12807 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12808 __AVX512VP2INTERSECT__.
12809 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
12810 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
12811 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
12812 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
12813 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
12814 * config/i386/i386-options.c (ix86_target_string): Add
12815 -mavx512vp2intersect.
12816 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
12817 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
12818 P2HImode and P2QImode.
12819 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
12820 number for P2QImode and P2HImode.
12821 (ix86_regmode_natural_size): New function.
12822 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
12823 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
12824 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
12825 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
12826 * config/i386/i386.opt: Add -mavx512vp2intersect.
12827 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
12828 avx512vp2intersectvlintrin.h.
12829 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
12830 (define_mode_iterator VI48_AVX512VP2VL): New.
12831 (avx512vp2intersect_2intersect<mode>,
12832 avx512vp2intersect_2intersectv16si): New define_insn patterns.
12833 * config.gcc: Add avx512vp2intersectvlintrin.h and
12834 avx512vp2intersectintrin.h to extra_headers.
12835 * doc/invoke.texi: Document -mavx512vp2intersect.
12837 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
12839 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
12841 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
12843 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
12844 savres_routine_syms, savres_routine_name, morestack_ref,
12845 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12846 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12847 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12848 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12849 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12850 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12851 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12852 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12853 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12854 get_stack_clash_protection_probe_interval,
12855 get_stack_clash_protection_guard_size,
12856 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12857 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12858 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12859 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12860 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12861 gen_frame_mem_offset, rs6000_savres_routine_name,
12862 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12863 ptr_regno_for_savres, rs6000_emit_savres_rtx,
12864 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12865 rs6000_global_entry_point_prologue_needed_p,
12866 rs6000_get_separate_components, rs6000_components_for_bb,
12867 rs6000_disqualify_components, rs6000_emit_prologue_components,
12868 rs6000_emit_epilogue_components, rs6000_set_handled_components,
12869 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12870 rs6000_output_savres_externs, rs6000_output_function_prologue,
12871 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12872 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12873 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12874 rs6000_output_function_epilogue, gen_add3_const,
12875 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12876 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12878 (machine_function): Moved to rs6000.h.
12879 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
12881 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
12882 savres_routine_syms, savres_routine_name, morestack_ref,
12883 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12884 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12885 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12886 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12887 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12888 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12889 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12890 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12891 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12892 get_stack_clash_protection_probe_interval,
12893 get_stack_clash_protection_guard_size,
12894 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12895 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12896 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12897 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12898 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12899 gen_frame_mem_offset, rs6000_savres_routine_name,
12900 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12901 ptr_regno_for_savres, rs6000_emit_savres_rtx,
12902 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12903 rs6000_global_entry_point_prologue_needed_p,
12904 rs6000_get_separate_components, rs6000_components_for_bb,
12905 rs6000_disqualify_components, rs6000_emit_prologue_components,
12906 rs6000_emit_epilogue_components, rs6000_set_handled_components,
12907 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12908 rs6000_output_savres_externs, rs6000_output_function_prologue,
12909 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12910 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12911 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12912 rs6000_output_function_epilogue, gen_add3_const,
12913 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12914 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12915 to here from rs6000.c.
12916 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
12917 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
12918 quad_address_offset_p) Moved to here from rs6000.c.
12919 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
12920 * config/config.gcc: Add new source file rs6000-logue.c to garbage
12923 2019-06-25 Martin Liska <mliska@suse.cz>
12925 * hash-table.c (hashtab_chk_error): Move here from ...
12926 * hash-table.h (hashtab_chk_error): ... here.
12928 2019-06-25 Martin Liska <mliska@suse.cz>
12930 PR tree-optimization/90978
12931 * df-scan.c (df_update_entry_block_defs): Remove dead else
12933 (df_update_exit_block_uses): Likewise.
12935 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
12936 Andrew Stubbs <ams@codesourcery.com>
12938 * config.gcc (thread_file): Set to gcn for AMD GCN.
12939 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
12940 (TARGET_EMUTLS_VAR_INIT): New hook.
12942 2019-06-25 Martin Jambor <mjambor@suse.cz>
12945 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
12947 2019-06-25 Richard Biener <rguenther@suse.de>
12949 PR tree-optimization/90930
12950 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
12951 into parallel form in the last pass instance.
12953 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
12955 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
12956 (arc_legitimize_pic_address): Simplify and cleanup the function.
12957 (SYMBOLIC_CONST): Remove.
12958 (prepare_pic_move): Likewise.
12959 (prepare_move_operands): Handle complex mov cases here.
12960 (arc_legitimize_address_0): Remove call to
12961 arc_legitimize_pic_address.
12962 (arc_legitimize_address): Remove call to
12963 arc_legitimize_tls_address.
12964 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
12965 (movhi_insn): Likewise.
12967 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12969 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
12971 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
12972 format of "__intN" types for UINTMAX_TYPE.
12973 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
12974 format of "__intN" types for SIZETYPE.
12975 * tree.c (build_common_tree_nodes): Accept "__intN__"
12976 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
12977 * doc/invoke.texi: Document that __intN__ disables pedantic
12980 2019-06-25 Jan Hubicka <jh@suse.cz>
12982 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
12983 base2_alias_set is non-zero before doing TBAA based disambiguation.
12985 2019-06-25 Martin Liska <mliska@suse.cz>
12987 PR tree-optimization/90973
12988 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
12989 of prologue and epilogue.
12991 2019-06-24 Jan Hubicka <jh@suse.cz>
12993 * ipa-utils.h (type_with_linkage_p): Verify that type is
12995 (odr_type_p): Remove extra return.
12996 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
12997 hash STRING_FLAG only for arrays and integers.
12998 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
12999 Update analogously.
13000 * tree-streamer-out.c (pack_ts_type_common_value_fields):
13002 * print-tree.c (print_node): Print cxx-odr-p
13004 * tree.c (need_assembler_name_p): Also check that type
13006 (verify_type_variant): Update verification of SRING_FLAG;
13007 also check CXX_ODR_P.
13008 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
13009 (TYPE_STRING_FLAG): Use it.
13010 (TYPE_CXX_ODR_P): New macro.
13011 * dwarf2out.c (gen_array_type_die): First check that type
13012 is an array and then test string flag.
13014 2019-06-24 Richard Biener <rguenther@suse.de>
13016 PR tree-optimization/90972
13017 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
13018 in common code, dealing with STRING_CST properly.
13020 2019-06-24 Richard Biener <rguenther@suse.de>
13022 PR tree-optimization/90930
13023 PR tree-optimization/90316
13024 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
13025 decrement of limit.
13027 2019-06-24 Martin Sebor <msebor@redhat.com>
13029 * tree-pretty-print.h: Remove unnecessary punctuation characters
13031 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
13033 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
13035 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
13036 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
13037 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
13039 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
13041 * config/rs6000/darwin.h: Handle GCC target pragma.
13043 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
13045 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
13047 2019-06-22 Jeff Law <law@redhat.com>
13049 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13051 2019-06-22 Jan Hubicka <jh@suse.cz>
13053 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
13054 give up on bitfields; continue searching for different refs
13057 2019-06-21 Jakub Jelinek <jakub@redhat.com>
13059 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
13060 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
13061 containing the offset as possible simd lane access. Look through
13062 widening conversion. Move the
13063 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
13065 2019-06-21 Richard Biener <rguenther@suse.de>
13067 PR tree-optimization/90930
13068 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
13069 flag on new stmts to avoid re-processing them.
13071 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
13073 PR c++/90875 - added -Wswitch-outside-range option
13074 * doc/invoke.texi (Wswitch-outside-range): Document.
13076 2019-06-21 Jeff Law <law@redhat.com>
13078 PR tree-optimization/90949
13079 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
13080 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
13082 2019-06-21 Richard Biener <rguenther@suse.de>
13085 * dwarf2out.c (prune_unused_types_walk): Always consider
13086 function-local extern declarations as used.
13088 2019-06-21 Richard Biener <rguenther@suse.de>
13090 PR tree-optimization/90913
13091 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
13092 the scalar variant of if-conversion versioning.
13094 2019-06-21 Jakub Jelinek <jakub@redhat.com>
13096 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
13097 create another "omp scan inscan exclusive" array if
13098 !ctx->scan_inclusive.
13099 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
13100 (lower_omp_scan): Likewise.
13101 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
13102 2-bit bitfield for simd_lane_access_p member.
13103 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
13104 aux == (void *)-4 as simd lane access.
13105 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
13106 comment with permutations to show the canonical permutation order.
13107 (vectorizable_scan_store): Handle exclusive scan.
13108 (vectorizable_store): Call vectorizable_scan_store even for
13109 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
13111 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
13112 "omp simd array" arrays with one byte elements.
13114 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
13116 * config/alpha/alpha.md (@unaligned_store<mode>):
13117 Rename from unaligned_store<mode>.
13118 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
13119 * config/alpha/sync.md (@load_locked_<mode>): Rename
13120 from load_locked_<mode>.
13121 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
13122 (@atomic_compare_and_swap<mode>_1): Rename
13123 from atomic_compare_and_swap<mode>_1.
13124 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
13125 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
13126 Use gen_reload_in_aligned and gen_unaligned_store.
13127 (emit_load_locked): Remove.
13128 (emit_store_conditional): Ditto.
13129 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
13130 (alpha_split_compare_and_swap): Ditto.
13131 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
13132 (alpha_split_compare_and_swap_12): Use gen_load_locked
13133 and gen_store_conditional.
13134 (alpha_split_atomic_exchange): Ditto.
13135 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
13136 (alpha_split_atomic_exchange_12): Use gen_load_locked
13137 and gen_store_conditional.
13139 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
13141 * config/aarch64/aarch64-errata.h: New file.
13142 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
13143 (CA53_ERR_843419_SPEC): Delete.
13144 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
13145 * config/aarch64/aarch64-linux.h: Likewise.
13146 * config/aarch64/aarch64-netbsd.h: Likewise.
13147 * config/aarch64/aarch64-freebsd.h: Likewise.
13149 2019-06-20 Marek Polacek <polacek@redhat.com>
13151 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
13153 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
13155 * config/rs6000/rs6000.md (isa attribute): Add support for
13156 for a future processor.
13158 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
13161 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
13162 standard scalar operation pattern for V2DF.
13163 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
13164 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
13165 (*ieee_<ieee_maxmin><mode>3): Likewise.
13166 (vec_setv2df_0): Likewise.
13168 2019-06-20 Jan Hubicka <jh@suse.cz>
13170 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
13171 parameter; it has no use in gimple memory model.
13172 (indirect_ref_may_alias_decl_p): Update.
13174 2019-06-20 Martin Liska <mliska@suse.cz>
13176 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
13179 2019-06-20 Jakub Jelinek <jakub@redhat.com>
13181 * tree-vect-stmts.c (enum scan_store_kind): New type.
13182 (scan_store_can_perm_p): Change last argument from int * to
13183 vec<enum scan_store_kind> *, record precisely which permutations
13184 need whole vector left shift or that plus VEC_COND_EXPR.
13185 (vectorizable_scan_store): Adjust caller, use whole vector left shift
13186 and additional VEC_COND_EXPR only for those iterations that need it.
13188 2019-06-20 Alexandre Oliva <oliva@adacore.com>
13190 * config.gcc: Fix ARM --with-fpu checking and error message.
13192 2019-06-19 Marek Polacek <polacek@redhat.com>
13194 PR c++/60364 - noreturn after first decl not diagnosed.
13195 * attribs.c (get_attribute_namespace): No longer static.
13196 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
13198 (attr_noreturn_exclusions): Make it extern.
13199 * attribs.h (get_attribute_namespace): Declare.
13200 * tree-inline.c (function_attribute_inlinable_p): Use
13201 get_attribute_name.
13203 2019-06-19 Martin Sebor <msebor@redhat.com>
13205 PR tree-optimization/90626
13206 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
13208 PR tree-optimization/90626
13209 * tree-ssa-strlen.c (strxcmp_unequal): New function.
13210 (handle_builtin_string_cmp): Call it.
13212 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
13214 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
13215 and DARWIN_NOPIE_SPEC.
13216 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
13217 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
13218 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
13219 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
13220 (DARWIN_EXPORT_DYNAMIC): Delete.
13221 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
13222 and pie options processing to darwin.h.
13223 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
13225 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
13227 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
13228 in computing the number of options to be moved.
13230 2019-06-19 Maya Rashish <coypu@sdf.org>
13232 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
13233 (CLEAR_INSN_CACHE) Use it.
13235 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
13237 * config/i386/i386.md (cmpstrnsi): Remove dead code.
13239 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
13241 PR middle-end/84521
13242 * builtins.c (expand_builtin_setjmp_setup): Save
13243 hard_frame_pointer_rtx.
13244 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
13246 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
13248 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
13250 (remove_reg_equal_offset_note): Remove unused function.
13251 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
13253 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13254 (arc_builtin_setjmp_frame_value): Remove function.
13255 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13256 (avr_builtin_setjmp_frame_value): Remove function.
13257 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13258 (ix86_builtin_setjmp_frame_value): Remove function.
13259 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
13260 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13261 (sparc_builtin_setjmp_frame_value): Remove function.
13262 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13263 (vax_builtin_setjmp_frame_value): Remove function.
13264 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
13265 pointer if has_nonlocal_label.
13267 2019-06-19 Jakub Jelinek <jakub@redhat.com>
13269 * doc/md.texi: Document vec_shl_<mode> pattern.
13270 * optabs.def (vec_shl_optab): New optab.
13271 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
13272 argument, if == vec_shl_optab, check for left whole vector shift
13273 pattern rather than right shift.
13274 (expand_vec_perm_const): Add vec_shl_optab support.
13275 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
13277 * tree-vect-generic.c (lower_vec_perm): Support permutations which
13278 can be handled by vec_shl_optab.
13279 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
13280 (check_scan_store): Use it.
13281 (vectorizable_scan_store): If target can't do normal permutations,
13282 try to use whole vector left shifts and if needed a VEC_COND_EXPR
13284 * config/i386/sse.md (vec_shl_<mode>): New expander.
13286 * omp-low.c (lower_rec_input_clauses): Handle references properly
13288 (lower_omp_scan): Likewise.
13290 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13292 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
13293 mem_mode is BLKmode.
13295 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
13298 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
13299 pointer adjustment for the case of no callee-saved registers and
13300 stack frame bigger than 128 bytes.
13302 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
13304 PR middle-end/90862
13305 * omp-low.c (check_omp_nesting_restrictions): Handle
13306 GF_OMP_TARGET_KIND_OACC_DECLARE.
13308 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
13310 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
13311 (@add<mode>3_carry): Rename from add<mode>3_carry.
13312 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
13313 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
13314 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
13315 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
13316 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
13317 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
13318 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
13319 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
13320 (cmpstrnsi): Use gen_cmp_1.
13321 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
13322 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
13323 (@umonitor_<mode>): Rename from umonitor_<mode>.
13324 * config/i386/i386-expand.c (ix86_expand_copysign):
13325 Use gen_copysign3_const and gen_copysign3_var.
13326 (ix86_expand_xorsign): Use gen_xorsign3_1.
13327 (ix86_expand_branch): Use gen_sub3_carry_ccc,
13328 gen_sub3_carry_ccgz and gen_cmp1.
13329 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
13330 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
13331 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
13332 (ix86_split_lshr): Ditto.
13333 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
13335 2019-06-18 Jason Merrill <jason@redhat.com>
13337 * tree.c (build_constructor): Add MEM_STAT_DECL.
13339 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13341 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
13342 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
13343 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
13344 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
13345 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
13346 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
13347 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
13348 Use CC_NZC instead of CC.
13349 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
13350 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
13351 (aarch64_print_operand): Handle E_CC_NZCmode.
13352 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
13353 of gen_set_clobber_cc.
13355 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13357 * config/aarch64/aarch64-sve.md: Tabify file.
13359 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13361 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
13362 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
13363 * config/aarch64/aarch64-sve.md: Use it.
13365 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13367 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
13368 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
13369 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
13370 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
13371 (aarch64_expand_sve_vec_cmp_int): Use it.
13372 (aarch64_expand_sve_vec_cmp_float): Likewise.
13373 * config/aarch64/aarch64-sve.md: Likewise throughout.
13375 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13376 Kugan Vivekanandarajah <kuganv@linaro.org>
13378 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
13379 (*cond_<optab><mode>_z): Fold into...
13380 (*cond_<optab><mode>_any): ...here. Also handle cases in which
13381 operand 4 can be tied to operand 0 (either inherently or via RA).
13383 2019-06-18 Richard Biener <rguenther@suse.de>
13386 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
13387 as if optimized away.
13389 2019-06-18 Tom de Vries <tdevries@suse.de>
13391 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
13392 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
13393 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
13395 (define_insn "@set_softstack_<mode>"): ... this.
13396 (define_insn "omp_simt_enter_<mode>"): Rename to ...
13397 (define_insn "@omp_simt_enter_<mode>"): ... this.
13398 (define_insn "omp_simt_exit_<mode>"): Rename to ...
13399 (define_insn "@omp_simt_exit_<mode>"): ... this.
13401 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
13403 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
13404 vf parameter. Restore the previous iv step of nscalars_step,
13405 but give it iv_type rather than compare_type. Tweak code order
13406 to match the comments.
13407 (vect_set_loop_condition_masked): Update accordingly.
13408 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
13409 for iv_precision. Tweak comment formatting.
13411 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
13413 * config/darwin.c: Strip trailing whitespace.
13415 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
13417 * config/darwin.c (darwin_emit_unwind_label): New default to false.
13418 (darwin_override_options): Set darwin_emit_unwind_label as needed.
13420 2019-06-18 Martin Jambor <mjambor@suse.cz>
13423 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
13424 caller does not have flag_ipa_cp set.
13426 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13428 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
13429 from "*fold_left_plus_<mode>", updated operands order.
13430 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
13431 * internal-fn.c (mask_fold_left_direct): New define.
13432 (expand_mask_fold_left_optab_fn): Likewise.
13433 (direct_mask_fold_left_optab_supported_p): Likewise.
13434 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
13435 * optabs.def (mask_fold_left_plus_optab): New optab.
13436 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
13437 masked internal_fn for a reduction ifn.
13438 (vectorize_fold_left_reduction): Add support for masking reductions.
13440 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
13442 PR middle-end/80791
13443 * target.def (predict_doloop_p): New hook.
13444 * targhooks.h (default_predict_doloop_p): New declaration.
13445 * targhooks.c (default_predict_doloop_p): New function.
13446 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
13447 * doc/tm.texi: Regenerate.
13448 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
13449 (TARGET_PREDICT_DOLOOP_P): New macro.
13450 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
13452 2019-06-17 Jakub Jelinek <jakub@redhat.com>
13454 * omp-low.c (struct omp_context): Add scan_inclusive field.
13455 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
13457 (struct omplow_simd_context): Add lastlane member.
13458 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
13459 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
13461 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
13462 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
13463 (lower_omp_scan): New function.
13464 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
13465 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
13466 check 3rd argument if present rather than 2nd.
13467 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
13468 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
13470 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13471 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
13473 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
13474 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
13475 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
13477 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
13478 IFN_GOMP_SIMD_LANE argument.
13479 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
13480 encoded ->aux value.
13481 * tree-vect-stmts.c: Include attribs.h.
13482 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
13483 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
13485 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
13486 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
13488 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
13491 * config/i386/i386.md (*nabstf2_1): New insn pattern.
13492 (*nabs<mode>2_1): Ditto.
13493 (nabs sse-reg splitter): New splitter.
13494 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
13496 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13498 PR bootstrap/90873.
13499 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13502 2019-06-17 Tom de Vries <tdevries@suse.de>
13504 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
13505 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
13506 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
13508 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
13510 (define_insn "omp_simt_enter_insn"): Rename to ...
13511 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
13512 match_operand 0, 1 and 2, as well as the unspec_volatile result.
13513 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
13514 gen_omp_simt_enter_si.
13515 (define_expand "omp_simt_exit"): New.
13516 (define_insn "omp_simt_exit"): Rename to ...
13517 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
13520 2019-06-17 Matthew Green <mrg@eterna.com.au>
13521 Maya Rashish <coypu@sdf.org>
13523 * config.gcc (aarch64*-*-netbsd*): New target.
13524 * config/aarch64/aarch64-netbsd.h: New file.
13525 * config/aarch64/t-aarch64-netbsd: Likewise.
13527 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13529 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
13530 the access path from base to first VIEW_CONVERT_EXPR or
13533 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13535 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
13536 access path on BIT_FIELD_REFs.
13538 2019-06-17 Martin Liska <mliska@suse.cz>
13541 * ipa-utils.h (odr_type_p): Remove dead code.
13543 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13545 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
13546 alternative Solaris 11.4 format.
13547 * configure: Regenerate.
13549 2019-06-17 Tom de Vries <tdevries@suse.de>
13551 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
13552 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
13554 (define_insn "call_value_insn"): Rename to ...
13555 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
13557 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
13560 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
13562 PR middle-end/64242
13563 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
13564 frame clobbers and schedule block.
13565 (builtin_longjmp): Likewise.
13567 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13569 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
13570 describe how to perform MSPABI compliant 64-bit shift.
13571 * config/msp430/msp430.md (ashldi3): New define_expand.
13572 (ashrdi3): New define_expand.
13573 (lshrdi3): New define_expand.
13575 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13577 * doc/sourcebuild.texi: Document new effective target keyword
13580 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
13582 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
13583 indirect_refs_may_alias_p): Revert accidental commits.
13585 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
13586 at the end of structures.
13588 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
13590 * config/darwin.c (machopic_indirect_call_target): Use renamed
13591 darwin_picsymbol_stubs to decide on output.
13592 (darwin_override_options): Handle darwin_picsymbol_stubs.
13593 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
13594 (LD64_VERSION): Revise default.
13595 * config/darwin.opt: (mpic-symbol-stubs): New option.
13596 (darwin_picsymbol_stubs): New variable.
13597 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
13598 rename to TARGET_MACHO_PICSYM_STUBS.
13599 * config/i386/i386.c (output_pic_addr_const): Likewise.
13600 * config/i386/i386.h Likewise.
13601 * config/rs6000/darwin.h: Likewise.
13602 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
13603 darwin_picsymbol_stubs.
13605 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
13607 * config/darwin.opt (prebind, noprebind, seglinkedit,
13608 noseglinkedit): Add RejectNegative.
13610 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
13612 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
13613 in my previous patch.
13615 2019-06-16 Tom de Vries <tdevries@suse.de>
13617 PR tree-optimization/89376
13618 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
13620 2019-06-15 Maya Rashish <coypu@sdf.org>
13622 * doc/invoke.texi (Spec Files): Update location of the
13625 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
13627 * doc/extend.texi (Common Function Attributes): Clarify
13628 no_sanitize. Fix grammar.
13630 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
13632 * tree-ssa-alias.c (alias_stats): Add
13633 nonoverlapping_component_refs_p_may_alias,
13634 nonoverlapping_component_refs_p_no_alias,
13635 nonoverlapping_component_refs_of_decl_p_may_alias,
13636 nonoverlapping_component_refs_of_decl_p_no_alias.
13637 (dump_alias_stats): Dump them.
13638 (nonoverlapping_component_refs_of_decl_p): Add stats.
13639 (nonoverlapping_component_refs_p): Add stats; do not stop on first
13642 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
13644 * config/i386/i386.md (and<mode>3): Generate zero-extends for
13645 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
13647 (*anddi3_doubleword): Split before reload. Merge with
13648 anddi->zext pre-reload splitter.
13649 (*andndi3_doubleword): Split before reload.
13650 (*<code>di3_doubleword): Ditto.
13651 (*one_cmpldi2_doubleword): Ditto.
13653 2019-06-15 Jakub Jelinek <jakub@redhat.com>
13655 PR middle-end/90779
13656 * gimplify.c: Include omp-offload.h and context.h.
13657 (gimplify_bind_expr): Add "omp declare target" attributes
13658 to static block scope variables inside of target region or target
13661 2019-06-15 Tom de Vries <tdevries@suse.de>
13663 PR tree-optimization/90009
13664 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
13665 Return NULL if bb contains IFN_UNIQUE.
13667 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
13669 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
13670 (un): New define_mode_attr.
13671 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
13672 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
13673 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
13675 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
13677 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
13679 * config/darwin.opt: Add RejectNegative where needed, reorder
13680 and add minimal functional descriptions.
13682 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
13684 PR rtl-optimization/90765
13685 * calls.c (update_stack_alignment_for_call): New function.
13686 (expand_call): Call update_stack_alignment_for_call when
13687 outgoing parameter is passed in the stack.
13688 (emit_library_call_value_1): Likewise.
13689 * function.c (locate_and_pad_parm): Don't update
13690 stack_alignment_needed and preferred_stack_boundary.
13692 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
13695 * config/i386/i386-features.c
13696 (dimode_scalar_chain::compute_convert_gain): Replace
13697 mmxsse_to_integer with sse_to_integer.
13698 * config/i386/i386.c (ix86_register_move_cost): Verify that
13699 moves between MMX and non-MMX units require secondary memory.
13700 Correct costs of moves between SSE and integer units.
13701 * config/i386/i386.h (processor_costs): Rename cost of moving
13702 SSE register to integer to sse_to_integer. Rename cost of
13704 2019-06-14 Matt Thomas <matt@3am-software.com>
13705 Matthew Green <mrg@eterna.com.au>
13706 Nick Hudson <skrll@netbsd.org>
13707 Maya Rashish <coypu@sdf.org>
13708 Richard Earnshaw <rearnsha@arm.com>
13710 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
13711 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
13712 * config/arm/netbsd-eabi.h: New file.
13713 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
13715 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
13716 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
13717 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
13718 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
13720 2019-06-14 Richard Biener <rguenther@suse.de>
13722 * tree-loop-distribution.c (classify_partition): Return
13723 whether a reduction appeared in all partitions and do not
13724 stop builtin detection because of this.
13725 (distribute_loop): Sort a non-builtin partition last if
13726 there's a reduction in all partitions and make sure the
13727 partition prevailing as last is not a builtin.
13729 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
13732 * ipa-prop.c (add_to_agg_contents_list): New function.
13733 (clobber_by_agg_contents_list_p): Likewise.
13734 (extract_mem_content): Likewise.
13735 (get_place_in_agg_contents_list): Delete.
13736 (determine_known_aggregate_parts): Renamed from
13737 determine_locally_known_aggregate_parts. New parameter
13740 2019-06-13 Martin Sebor <msebor@redhat.com>
13742 PR tree-optimization/90662
13743 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
13746 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
13749 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
13750 dbase is not TARGET_MEM_REF.
13752 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
13754 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
13756 (and<mode>3): Use gen_extend_insn instead of indirect functions.
13757 Do not generate DImode extends for 32bit targets.
13758 (and->zext post-reload splitter): Use gen_extend_insn
13759 instead of indirect functions.
13760 (anddi->zext pre-reload splitter): New.
13761 (*zext<mode>_doubleword_and): Remove.
13762 (*zext<mode>_doubleword): Ditto.
13763 (*zextsi_doubleword): Dittto.
13765 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
13767 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
13768 Use gen_sub3_insn instead of indirect function.
13769 (ix86_expand_ashl_const): Use gen_add2_insn instead of
13771 (ix86_adjust_counter): Ditto.
13773 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
13774 Lijia He <helijia@linux.ibm.com>
13776 PR tree-optimization/77820
13777 * tree-ssa-threadedge.c
13778 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
13780 (thread_across_edge): Add call to
13781 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
13783 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
13785 * config/darwin-driver.c (validate_macosx_version_min): New.
13786 (darwin_default_min_version): Cleanup and validate supplied version.
13787 (darwin_driver_init): Likewise and push cleaned version into opts.
13789 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
13791 PR tree-optimization/90869
13792 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
13793 converts in MEM_REF referencing decl rather than view converts
13794 from decl type to MEM_REF type.
13796 2019-06-13 Richard Biener <rguenther@suse.de>
13798 PR tree-optimization/90856
13799 * tree-sra.c (build_ref_for_model): Only use
13800 build_reconstructed_reference when address-spaces are the same.
13802 2019-06-13 Jakub Jelinek <jakub@redhat.com>
13804 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
13805 wrap ei variable name in the declaration in ()s.
13806 (nvptx_single): Actually use mode_label variable. Formatting fix.
13808 2019-06-13 Richard Biener <rguenther@suse.de>
13810 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
13811 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
13812 also return the condition stmt.
13813 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
13814 loop we can version and version that, reusing the loop version
13815 created by if-conversion instead of versioning again.
13817 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
13819 * gimple-loop-versioning.cc (prune_loop_conditions): Use
13821 * tree-vrp (value_range_base::may_contain_p): Call into
13822 value_inside_range.
13823 (value_inside_range): Make private inside value_range_base class.
13824 Take min/max from *this.
13825 (range_includes_p): Remove.
13826 * tree-vrp.h (value_range_base): Add value_inside_range.
13827 (range_includes_p): Remove.
13828 (range_includes_zero_p): Call may_contain_p.
13829 * vr-values.c (compare_range_with_value): Same.
13831 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
13833 * doc/extend.texi (ARC Function Attributes): Update info.
13835 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
13837 PR tree-optimization/89713
13838 * doc/invoke.texi (-ffinite-loops): Document new option.
13839 * common.opt (-ffinite-loops): New option.
13840 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
13841 IFN_GOACC_LOOP calls as necessary.
13842 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
13844 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
13845 IFN_GOACC_LOOP call is not used.
13846 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
13848 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13851 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
13852 compare_type is not with Pmode size, we will create an IV with
13853 Pmode size with truncated use (i.e. converted to the correct type).
13854 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
13855 (vect_iv_limit_for_full_masking): New. Factored out of
13856 vect_set_loop_condition_masked.
13857 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
13858 (vect_iv_limit_for_full_masking): Declare.
13860 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13863 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
13864 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
13865 (get_alias_ptr_type_for_ptr_address): Likewise.
13866 (add_iv_candidate_for_use): Add scaled index candidate if useful.
13867 * tree-ssa-address.c (preferred_mem_scale_factor): New.
13868 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
13871 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13873 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
13875 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
13877 * common/config/pru/pru-common.c: New file.
13878 * config.gcc: Add PRU target.
13879 * config/pru/alu-zext.md: New file.
13880 * config/pru/constraints.md: New file.
13881 * config/pru/predicates.md: New file.
13882 * config/pru/pru-opts.h: New file.
13883 * config/pru/pru-passes.c: New file.
13884 * config/pru/pru-pragma.c: New file.
13885 * config/pru/pru-protos.h: New file.
13886 * config/pru/pru.c: New file.
13887 * config/pru/pru.h: New file.
13888 * config/pru/pru.md: New file.
13889 * config/pru/pru.opt: New file.
13890 * config/pru/t-pru: New file.
13891 * doc/extend.texi: Document PRU pragmas.
13892 * doc/invoke.texi: Document PRU-specific options.
13893 * doc/md.texi: Document PRU asm constraints.
13895 2019-06-12 Martin Sebor <msebor@redhat.com>
13897 PR middle-end/90676
13898 * tree-pretty-print.c (dump_mem_ref): New function. Include
13899 MEM_REF type in output when different size than operand.
13900 (dump_generic_node): Move code to dump_mem_ref and call it.
13902 2019-06-12 Martin Sebor <msebor@redhat.com>
13904 PR tree-optimization/90662
13905 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
13908 2019-06-12 Tom de Vries <tdevries@suse.de>
13910 PR tree-optimization/90009
13911 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
13913 2019-06-12 Martin Liska <mliska@suse.cz>
13915 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
13917 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
13918 * mem-stats.h (mem_alloc_description::mem_alloc_description):
13919 Do not sanitize created maps.
13921 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
13923 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
13924 value_range::singleton_p.
13925 * tree-vrp.c (value_range_constant_singleton): Remove.
13926 * tree-vrp.h (value_range_constant_singleton): Remove.
13927 * vr-values.c (vr_values::singleton): Use
13928 value_range::singleton_p.
13930 2019-06-12 Jakub Jelinek <jakub@redhat.com>
13933 * cfgexpand.c (align_local_variable): Add really_expand argument,
13934 don't SET_DECL_ALIGN if it is false.
13935 (add_stack_var): Add really_expand argument, pass it through to
13936 align_local_variable.
13937 (expand_one_stack_var_1): Pass true as really_expand to
13938 align_local_variable.
13939 (expand_one_ssa_partition): Pass true as really_expand to
13941 (expand_one_var): Pass really_expand through to add_stack_var.
13943 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13945 * config/arm/iterators.md (VABAL): New int iterator.
13946 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
13947 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
13948 UNSPEC_VABAL_U values.
13950 2019-06-12 Martin Liska <mliska@suse.cz>
13952 * value-prof.c (stream_out_histogram_value): Only first value
13955 2019-06-12 Jakub Jelinek <jakub@redhat.com>
13958 * symtab.c (symtab_node::set_section): Allow being called on aliases
13959 as long as they aren't analyzed yet.
13961 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
13963 * config/mips/mips.c (mips_final_postscan_insn): Modify call
13964 to `mips_set_text_contents_type' to indicate whether a
13965 non-debug insn follows.
13967 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
13969 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
13970 enabling -mpcrel by default.
13971 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
13972 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
13973 that the test against -mcpu=future is done first. Then test if
13974 -mprefixed-addr is on for -mpcrel.
13975 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
13977 2019-06-11 Jakub Jelinek <jakub@redhat.com>
13980 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
13981 instead of and.u%d.
13983 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
13985 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
13987 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
13989 PR c++/90449 - add -Winaccessible-base option.
13990 * doc/invoke.texi (Winaccessible-base): Document.
13992 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
13994 PR tree-optimization/62041
13995 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
13997 2019-06-11 Jason Merrill <jason@redhat.com>
13999 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
14000 * tree.c (get_tree_code_name): Likewise.
14001 * print-tree.c (print_node): Only briefly print a node with an
14004 2019-06-11 Jakub Jelinek <jakub@redhat.com>
14007 * trans-mem.c (tm_memopt_compute_available): Add assertion
14008 that blocks is not empty. Formatting fix.
14010 2019-06-11 Martin Liska <mliska@suse.cz>
14013 * hash-table.h: Extend create_gcc, add one parameter
14014 that is passed into hash_table::hash_table.
14016 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
14018 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
14020 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
14021 Emit clobber also for non-sse operations.
14022 (ix86_split_fp_absneg_operator): New function.
14023 * config/i386/i386.md (SSEMODEF): New mode iterator.
14024 (ssevecmodef): New mode attribute.
14025 (<code>tf2): Use absneg code iterator.
14026 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
14027 Add three-operand AVX alternatives.
14028 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
14029 Use absneg code iterator and X87MODEF mode iterator.
14030 (absneg fp_reg non-sse splitter): Call absneg code iterator
14031 and X87MODEF mode iterator.
14032 (absneg general_reg non-sse splitter): Use absneg code iterator
14033 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
14034 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
14035 code iterator. Add three-operand AVX alternative.
14036 (absneg sse_reg splitter): Use absneg code iterator
14037 and SSEMODEF mode iterator. Handle AVX operands.
14038 (absneg fp_reg splitter): Use absneg code iterator
14039 and MODEF mode iterator.
14040 (absneg general_reg splitter): Merge splitters using MODEF mode
14041 iterator. Use absneg code iterator. Call
14042 ix86_split_fp_absneg_operator.
14043 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
14044 Do not enable for non-sse modes before reload.
14045 (CSGNMODE): Remove.
14046 (CSGNVMODE): Ditto.
14047 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
14048 ssevecmodef mode attribute instaed of CSGNVMODE.
14049 (copysign<mode>3_const): Ditto.
14050 (copysign<mode>3_var): Ditto.
14051 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
14052 Use absneg code iterator. Simplify code using std::swap.
14053 * config/i386/predicates.md (absneg_operator): Remove.
14055 2019-06-10 Martin Sebor <msebor@redhat.com>
14057 * gimple-fold.c (get_range_strlen): Update comment that didn't
14058 make it into r267503 or related commits.
14060 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
14062 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
14063 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
14065 2019-06-10 Jakub Jelinek <jakub@redhat.com>
14067 * tree.def (OMP_SCAN): New tree code.
14068 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
14069 OMP_CLAUSE_EXCLUSIVE.
14070 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
14071 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
14072 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
14073 OMP_CLAUSE_{IN,EX}CLUSIVE.
14074 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
14075 * tree-nested.c (convert_nonlocal_reference_stmt,
14076 convert_local_reference_stmt, convert_gimple_call): Handle
14078 * tree-pretty-print.c (dump_omp_clause): Handle
14079 OMP_CLAUSE_{IN,EX}CLUSIVE.
14080 (dump_generic_node): Handle OMP_SCAN.
14081 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
14082 * gimple.h (gomp_scan): New type.
14083 (is_a_helper <gomp_scan *>::test,
14084 is_a_helper <const gomp_scan *>::test): New templates.
14085 (gimple_build_omp_scan): Declare.
14086 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
14087 gimple_omp_scan_set_clauses): New inline functions.
14088 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
14089 * gimple.c (gimple_build_omp_scan): New function.
14090 (gimple_copy): Handle GIMPLE_OMP_SCAN.
14091 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
14092 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
14093 GIMPLE_OMP_TASKGROUP.
14094 (dump_gimple_omp_scan): New function.
14095 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
14096 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
14097 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
14098 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
14099 (is_gimple_stmt): Handle OMP_SCAN.
14100 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
14101 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
14102 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
14103 mentioned in nested #pragma omp scan. Handle
14104 OMP_CLAUSE_{IN,EX}CLUSIVE.
14105 (gimplify_expr): Handle OMP_SCAN.
14106 * omp-low.c (check_omp_nesting_restrictions): For parent context,
14107 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
14109 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
14112 2019-06-10 Martin Liska <mliska@suse.cz>
14114 * ipa-cp.c (ignore_edge_p): New function.
14115 (build_toporder_info): Use it.
14116 * ipa-inline.c (ignore_edge_p): New function.
14117 (inline_small_functions): Use it.
14118 * ipa-pure-const.c (ignore_edge_for_nothrow):
14119 Verify opt_for_fn for caller and callee.
14120 (ignore_edge_for_pure_const): Likewise.
14121 * ipa-reference.c (ignore_edge_p): Extend to check
14123 * ipa-utils.c (searchc): Refactor.
14124 * ipa-utils.h: Fix coding style.
14126 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
14128 * config/arc/arc.c (arc_rtx_costs): Update costs.
14130 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
14132 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
14133 (arc_split_ior): Likewise.
14134 (arc_check_mov_const): Likewise.
14135 (arc_split_mov_const): Likewise.
14136 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
14137 (arc_rtx_costs): Replace check Crr with Cax constraint.
14138 (prepare_move_operands): Cleanup, remove unused code.
14139 (arc_split_ior): New function.
14140 (arc_check_ior_const): Likewise.
14141 (arc_split_mov_const): Likewise.
14142 (arc_check_mov_const): Likewise.
14143 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
14144 in define_insn_and_split pattern.
14145 (iorsi3): Likewise.
14146 (mulsi3_v2): Add new matching variant.
14147 (andsi3_i): Cleanup pattern.
14148 (rotrsi3_cnt1): Update pattern.
14149 (rotrsi3_cnt8): New pattern.
14150 (ashlsi2_cnt8): Likewise.
14151 (ashlsi2_cnt16): Likewise.
14152 * config/arc/constraints.md (C0p): Update constraint.
14154 (C0x): New pattern.
14155 (Cax): New pattern.
14157 2019-06-10 Martin Liska <mliska@suse.cz>
14159 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
14160 Update coding style.
14161 (sem_item_optimizer::dump_cong_classes):
14162 Print how many items are in a non-singular class. Improve
14165 2019-06-10 Martin Liska <mliska@suse.cz>
14167 * value-prof.c (dump_histogram_value): Change dump format.
14168 (gimple_mod_subtract_transform): Remove legacy comment.
14170 2019-06-10 Martin Liska <mliska@suse.cz>
14172 * value-prof.c (dump_histogram_value): Print histogram values
14175 2019-06-10 Martin Liska <mliska@suse.cz>
14177 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
14178 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
14179 * ipa-profile.c (ipa_profile_generate_summary):
14180 Use get_most_common_single_value.
14181 * tree-profile.c (gimple_init_gcov_profiler):
14182 Instrument with __gcov_one_value_profiler_v2
14183 and __gcov_indirect_call_profiler_v4.
14184 * value-prof.c (dump_histogram_value):
14185 Print all values for HIST_TYPE_SINGLE_VALUE.
14186 (stream_out_histogram_value): Update assert for
14188 (stream_in_histogram_value): Set number of
14189 counters for HIST_TYPE_SINGLE_VALUE.
14190 (get_most_common_single_value): New.
14191 (gimple_divmod_fixed_value_transform):
14192 Use get_most_common_single_value.
14193 (gimple_ic_transform): Likewise.
14194 (gimple_stringops_transform): Likewise.
14195 (gimple_find_values_to_profile): Set number
14196 of counters for HIST_TYPE_SINGLE_VALUE.
14197 * value-prof.h (get_most_common_single_value): New.
14199 2019-06-10 Martin Liska <mliska@suse.cz>
14201 * hash-map.h: Pass default value to hash_table ctor.
14202 * hash-table.h: Add default value to call of a ctor.
14204 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
14206 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
14207 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
14209 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
14212 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
14213 Call pa_output_function_label.
14214 (TARGET_ASM_FUNCTION_PROLOGUE): define.
14215 * config/pa/pa-protos.h (pa_output_function_label): Declare.
14216 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
14218 (pa_linux_output_function_prologue): Declare.
14219 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
14220 (pa_output_function_label): New.
14221 (pa_output_function_prologue): Revise to use pa_output_function_label.
14222 (pa_linux_output_function_prologue): New.
14223 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
14225 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
14227 * tree-vrp.h (value_range_base::intersect): New.
14228 (value_range::intersect_helper): Move from here...
14229 (value_range_base::intersect_helper): ...to here.
14230 * tree-vrp.c (value_range::intersect_helper): Rename to...
14231 (value_range_base::intersect_helper): ...this, and rewrite to
14232 return a value instead of modifying THIS in place.
14233 Also, move equivalence handling...
14234 (value_range::intersect): ...here, while calling intersect_helper.
14235 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
14237 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
14239 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
14241 2019-06-07 Jakub Jelinek <jakub@redhat.com>
14243 * Makefile.in (genprogerr): Add condmd.
14244 (genprog): Remove it here.
14246 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
14248 * doc/invoke.texi (AMD GCN Options): Add gfx906.
14250 2019-06-07 Richard Biener <rguenther@suse.de>
14253 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
14254 that appear after user labels.
14256 2019-06-07 Martin Liska <mliska@suse.cz>
14258 * cselib.c (cselib_init): Disable hash table
14260 * hash-set.h: Pass new default argument to m_table.
14261 * hash-table.c: Add global variable with hash table
14262 sanitization limit.
14263 * hash-table.h (Allocator>::hash_table): Add new argument
14265 (hashtab_chk_error): New.
14266 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
14267 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
14268 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
14270 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
14272 * common.opt (flto-odr-type-merging): Ignore.
14273 * invoke.texi (-flto-odr-type-merging): Remove.
14274 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
14275 (can_be_vtable_hashed_p): Remove.
14276 (hash_odr_vtable): Remove.
14277 (odr_vtable_hasher::hash): Remove.
14278 (types_same_for_odr): Remove.
14279 (types_odr_comparable): Remove.
14280 (odr_vtable_hasher::equal): Remove.
14281 (odr_vtable_hash_type, odr_vtable_hash): Remove.
14282 (add_type_duplicate): Do not synchronize vtable and name hashtables.
14283 (get_odr_type): Do not use vtable hash.
14284 (dump_odr_type): Remove commented out code.
14285 (build_type_inheritance_graph): Do not allocate vtable hash.
14286 (rebuild_type_inheritance_graph): Do not delete vtable hash.
14287 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
14288 (odr_type_p): Likewise.
14289 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
14292 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
14294 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
14295 immediately after same_types_for_tbaa_p returns -1 and continue
14296 looking for possible exact match; if matching types are arrays
14297 watch for partial overlaps.
14298 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
14299 (indirect_refs_may_alias_p): Do type based disambiguation first;
14302 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
14304 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
14306 2019-06-07 Martin Liska <mliska@suse.cz>
14308 * doc/invoke.texi: Remove param.
14309 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
14311 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
14312 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
14313 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
14314 * profile.c (instrument_values): Remove
14315 HIST_TYPE_INDIR_CALL_TOPN.
14316 * tree-profile.c (init_ic_make_global_vars):
14317 Always build __gcov_indirect_call only.
14318 (gimple_init_gcov_profiler): Remove usage
14319 of PARAM_INDIR_CALL_TOPN_PROFILE.
14320 (gimple_gen_ic_profiler): Likewise.
14321 * value-prof.c (dump_histogram_value): Likewise.
14322 (stream_in_histogram_value): Likewise.
14323 (gimple_indirect_call_to_profile): Likewise.
14324 (gimple_find_values_to_profile): Likewise.
14325 * value-prof.h (enum hist_type): Likewise.
14327 2019-06-07 Martin Liska <mliska@suse.cz>
14329 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
14332 2019-06-07 Martin Liska <mliska@suse.cz>
14334 PR tree-optimization/78902
14335 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
14336 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
14337 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14338 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14339 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
14340 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14341 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
14342 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
14343 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14344 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14345 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14346 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
14347 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
14349 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
14350 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
14351 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
14352 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14353 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14354 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
14355 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14356 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14357 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
14358 warn_unused_result attribute.
14359 (BUILT_IN_STRDUP): Likewise.
14360 (BUILT_IN_STRNDUP): Likewise.
14361 (BUILT_IN_ALLOCA): Likewise.
14362 (BUILT_IN_CALLOC): Likewise.
14363 (BUILT_IN_MALLOC): Likewise.
14364 (BUILT_IN_REALLOC): Likewise.
14366 2019-06-06 Jim Wilson <jimw@sifive.com>
14369 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
14370 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
14371 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
14373 2019-06-06 Martin Sebor <msebor@redhat.com>
14375 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
14376 (handle_builtin_malloc): Remove trailing spaces.
14377 (handle_builtin_memset): Same.
14378 (handle_builtin_memcmp): Same.
14379 (compute_string_length): Same.
14380 (determine_min_objsize): Same.
14381 (handle_builtin_string_cmp): Same.
14382 (handle_char_store): Same. Break up excessively long line.
14384 2019-06-06 Martin Jambor <mjambor@suse.cz>
14386 * tree-sra.c (build_reconstructed_reference): Drop the alignment
14389 2019-06-06 Martin Jambor <mjambor@suse.cz>
14391 * tree-sra.c (struct access): New field grp_same_access_path.
14392 (dump_access): Dump it.
14393 (build_reconstructed_reference): New function.
14394 (build_ref_for_model): Use it if possible.
14395 (path_comparable_for_same_access): New function.
14396 (same_access_path_p): Likewise.
14397 (sort_and_splice_var_accesses): Set the new flag.
14398 (analyze_access_subtree): Likewise.
14399 (propagate_subaccesses_across_link): Propagate zero value of the new
14400 flag down the access tree.
14402 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
14404 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
14405 * config/gcn/gcn.opt (gpu_type): Add gfx906.
14406 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
14407 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
14410 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14412 PR tree-optimization/90332
14413 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
14414 Handle VALS containing two vectors.
14415 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
14417 (@aarch64_combinez<mode>): ... This.
14418 (*aarch64_combinez_be<mode>): Rename to...
14419 (@aarch64_combinez_be<mode>): ... This.
14420 (vec_init<mode><Vhalf>): New define_expand.
14421 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
14423 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14425 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
14426 library functions only when not optimizing for size.
14427 (ashlsi3): Likewise.
14428 (ashrhi3): Likewise.
14429 (ashrsi3): Likewise.
14430 (lshrhi3): Likewise.
14431 (lshrsi3): Likewise.
14433 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
14435 PR rtl-optimization/88751
14436 * ira.c (ira): Use the number of the actually referenced registers
14437 when calculating the threshold.
14439 2019-06-06 Jakub Jelinek <jakub@redhat.com>
14441 * configure: Regenerate.
14443 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14445 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
14446 register if it is in memory, so the shift can be emulated with a rotate
14448 (ashrhi3): Likewise.
14449 (lshrhi3): Likewise.
14451 2019-06-06 Martin Liska <mliska@suse.cz>
14453 PR tree-optimization/87954
14454 * match.pd: Simplify mult where both arguments are 0 or 1.
14456 2019-06-06 Richard Biener <rguenther@suse.de>
14458 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
14459 put equivalences on UNDEFINED ranges.
14460 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
14461 Make sure to drop defs of stmts added during simplification
14464 2019-06-06 Richard Biener <rguenther@suse.de>
14466 * tree-ssa-structalias.c: Include tree-cfg.h.
14467 (make_heapvar): Do not make heap vars artificial.
14468 (find_func_aliases_for_builtin_call): Handle stack allocation
14470 (find_func_aliases): Delay processing of simple enough returns
14472 (set_uids_in_ptset): Adjust.
14473 (find_what_var_points_to): Likewise.
14474 (solve_constraints): Do not dump points-to sets here.
14475 (compute_points_to_sets): Post-process return statements,
14476 amending the escaped solution. Dump points-to sets afterwards.
14477 (ipa_pta_execute): Dump points-to sets.
14479 2019-06-06 Martin Liska <mliska@suse.cz>
14482 * doc/install.texi: Fix HTML headers and
14483 titles for 'Installing GCC' pages.
14485 2019-06-06 Martin Liska <mliska@suse.cz>
14487 * ipa-icf-gimple.h (dump_message_1): Remove.
14488 (dump_message): Likewise.
14489 (return_false_with_message_1): Print also file.
14490 (return_false_with_msg): Likewise.
14491 (return_with_result): Likewise.
14492 (return_with_debug): Likewise.
14493 * ipa-icf.c (sem_function::equals_private): Remove call
14496 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
14498 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
14499 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
14500 memory operand for it.
14501 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
14503 2019-06-05 Martin Sebor <msebor@redhat.com>
14505 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
14506 Adjust quoting and hyphenation.
14507 * convert.c (convert_to_real_1): Same.
14508 * gcc.c (driver_wrong_lang_callback): Same.
14509 (driver::handle_unrecognized_options): Same.
14510 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
14511 * opts-common.c (cmdline_handle_error): Same.
14512 (read_cmdline_option): Same.
14513 * opts-global.c (complain_wrong_lang): Same.
14514 (print_ignored_options): Same.
14515 (handle_common_deferred_options): Same.
14516 * pretty-print.h: Same.
14517 * print-rtl.c (debug_bb_n_slim): Same.
14518 * sched-rgn.c (make_pass_sched_fusion): Same.
14519 * tree-cfg.c (verify_gimple_assign_unary): Same.
14520 (verify_gimple_label): Same.
14521 * tree-ssa-operands.c (verify_ssa_operands): Same.
14522 * varasm.c (do_assemble_alias): Same.
14523 (assemble_alias): Same.
14525 2019-06-05 Richard Henderson <rth@twiddle.net>
14527 * config/alpha/alpha.c (direct_return): Move down after
14528 struct machine_function definition; use saved frame_size;
14530 (struct machine_function): Add sa_mask, sa_size, frame_size.
14531 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
14532 (alpha_compute_frame_layout): ... new function.
14533 (TARGET_COMPUTE_FRAME_LAYOUT): New.
14534 (alpha_initial_elimination_offset): Use saved sa_size.
14535 (alpha_vms_initial_elimination_offset): Likewise.
14536 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
14537 (alpha_expand_prologue): Use saved frame data. Merge integer
14538 and fp register save loops.
14539 (alpha_expand_epilogue): Likewise.
14540 (alpha_start_function): Use saved frame data.
14541 * config/alpha/alpha-protos.h (direct_return): Update.
14542 (alpha_sa_size): Remove.
14544 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
14546 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
14547 multiplication by a power-of-two value.
14548 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
14549 and turn the modulo operation into a masking operation.
14551 2019-06-05 Jakub Jelinek <jakub@redhat.com>
14554 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
14555 with VOIDmode inner operands.
14557 2019-06-05 Richard Biener <rguenther@suse.de>
14559 PR middle-end/90726
14560 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14561 turn an expression graph into a tree.
14563 2019-06-05 Jakub Jelinek <jakub@redhat.com>
14565 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
14567 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
14568 treat it like explicit monotonic schedule modifier.
14569 (expand_omp_for): Initialize has_lastprivate_conditional.
14570 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
14573 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
14574 references, lookup in in hash map MEM_REF operand instead of the
14576 (lower_omp_1): When looking for lastprivate conditional assignments,
14577 handle MEM_REFs with REFERENCE_TYPE operands.
14579 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
14580 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
14581 and references a VLA. Handle references to non-VLAs if is_simd
14582 all privatization clauses like reductions.
14583 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
14584 If omp_is_reference, use always omp simd arrays and set
14585 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
14586 fails, emit reference initialization.
14588 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
14591 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
14592 _mm_mask_fpclass_sd_mask): New intrinsics.
14593 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
14594 * config/i386/i386-builtin.def
14595 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
14597 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
14598 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
14599 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
14600 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
14601 case QI_FTYPE_V2SF_INT): Ditto.
14602 * config/i386/sse.md
14603 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
14604 Extended to insnstructions with mask operands.
14606 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14608 * config/rs6000/constraints.md (define_register_constraint "wp"):
14610 (define_register_constraint "wq"): Delete.
14611 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14612 (rs6000_init_hard_regno_mode_ok): Adjust.
14613 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14614 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
14615 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
14616 (define_mode_attr VSa): Delete.
14617 (define_mode_attr VSisa): New.
14618 (rest of file): Adjust.
14619 * doc/md.texi (Machine Constraints): Adjust.
14621 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14623 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
14624 (define_attr "enabled"): Handle those new isa values.
14626 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14628 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
14629 (define_mode_attr VSr5): Delete.
14630 (define_mode_attr VStype_sqrt): Delete.
14631 (define_mode_iterator VSX_SPDP): Delete.
14632 (define_mode_attr VS_spdp_res): Delete.
14633 (define_mode_attr VS_spdp_insn): Delete.
14634 (define_mode_attr VS_spdp_type): Delete.
14635 (*vsx_sqrt<mode>2): Adjust.
14636 (vsx_<VS_spdp_insn>): Delete, split to...
14637 (vsx_xscvdpsp): ... this. New. And...
14638 (vsx_xvcvspdp): ... this. New. And...
14639 (vsx_xvcvdpsp): ... this. New.
14641 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14643 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
14645 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
14646 (rest of file): Adjust.
14648 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14650 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
14651 (vsx_extract_<mode>_var): Ditto.
14653 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14655 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
14658 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14660 * config/rs6000/constraints.md (define_register_constraint "ww"):
14662 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14663 (rs6000_init_hard_regno_mode_ok): Adjust.
14664 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14665 RS6000_CONSTRAINT_ww.
14666 * config/rs6000/rs6000.md: Adjust.
14667 * config/rs6000/vsx.md: Adjust.
14668 * doc/md.texi (Machine Constraints): Adjust.
14670 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14672 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
14673 (define_mode_attr sd): New.
14674 (define_mode_attr s): New.
14675 (define_mode_attr Ftrad): Delete.
14676 (define_mode_attr Fvsx): Delete.
14677 (define_mode_attr Fs): Delete.
14678 (rest of file): Use the new mode attributes.
14679 * config.rs6000/vsx.md: Use the new mode attributes.
14681 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14683 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
14686 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14688 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
14689 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
14690 used with VSX_B, VSX_D, or VSX_F, with just "wa".
14692 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
14695 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
14696 C++ with strict ANSI requirements.
14698 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
14700 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
14701 computations when step is 1.
14703 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14705 * config/rs6000/constraints.md (define_register_constraint "wf"):
14707 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14708 (rs6000_init_hard_regno_mode_ok): Adjust.
14709 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14710 RS6000_CONSTRAINT_wf.
14711 * config/rs6000/rs6000.md: Adjust.
14712 * config/rs6000/vsx.md: Adjust.
14713 * doc/md.texi (Machine Constraints): Adjust.
14715 2019-06-04 Andrew Pinski <apinski@marvell.com>
14717 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
14720 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14722 * config/rs6000/constraints.md (define_register_constraint "wd"):
14724 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14725 (rs6000_init_hard_regno_mode_ok): Adjust.
14726 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14727 RS6000_CONSTRAINT_wd.
14728 * config/rs6000/rs6000.md: Adjust.
14729 * config/rs6000/vsx.md: Adjust.
14730 * doc/md.texi (Machine Constraints): Adjust.
14732 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14734 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
14735 (rest of file): Adjust.
14737 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14739 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
14740 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
14741 (vsx_splat_<mode>_reg): Adjust.
14743 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14745 * config/rs6000/constraints.md (define_register_constraint "ws"):
14747 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14748 (rs6000_init_hard_regno_mode_ok): Adjust.
14749 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14750 RS6000_CONSTRAINT_ws.
14751 * config/rs6000/rs6000.md: Adjust.
14752 * config/rs6000/vsx.md: Adjust.
14753 * doc/md.texi (Machine Constraints): Adjust.
14755 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14757 * config/rs6000/constraints.md (define_register_constraint "wv"):
14759 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14760 (rs6000_init_hard_regno_mode_ok): Adjust.
14761 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14762 RS6000_CONSTRAINT_wv.
14763 * config/rs6000/rs6000.md: Adjust.
14764 * config/rs6000/vsx.md: Adjust.
14765 * doc/md.texi (Machine Constraints): Adjust.
14767 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14769 * config/rs6000/constraints.md (define_register_constraint "wi"):
14771 (define_register_constraint "wt"): Delete.
14772 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14773 (rs6000_init_hard_regno_mode_ok): Adjust.
14774 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14775 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
14776 * config/rs6000/rs6000.md: Adjust.
14777 * config/rs6000/vsx.md: Adjust.
14778 * doc/md.texi (Machine Constraints): Adjust.
14780 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
14782 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
14784 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
14785 default_elf_asm_output_external.
14787 2019-06-04 Martin Liska <mliska@suse.cz>
14789 * ipa-icf.c (INCLUDE_LIST): Remove.
14790 (sem_item_optimizer::execute): Remove call to init_wpa.
14791 * ipa-icf.h (init_wpa): Remove.
14793 2019-06-04 Jakub Jelinek <jakub@redhat.com>
14795 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
14796 conditional on combined for simd.
14797 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
14799 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
14800 constructs, don't remove lastprivate_conditional_map, but instead set
14801 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
14802 to parent construct temporaries.
14803 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
14804 like !ctx->lastprivate_conditional_map.
14805 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
14806 use up->outer context instead of up.
14807 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
14808 gimple_omp_for_combined_p.
14809 (expand_omp_for_static_nochunk): Likewise.
14810 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
14811 probably moved over into expand_omp_for_generic rather than being copied
14814 2019-06-04 Martin Liska <mliska@suse.cz>
14816 * value-prof.c (dump_histogram_value): Fix typo.
14817 (gimple_mod_subtract_transform): Likewise.
14819 2019-06-04 Richard Biener <rguenther@suse.de>
14821 PR middle-end/90726
14822 * tree-chrec.c (chrec_contains_symbols): Add to visited.
14823 (tree_contains_chrecs): Likewise.
14824 (chrec_contains_symbols_defined_in_loop): Move here and avoid
14825 exponential behaivor from ...
14826 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
14828 (expression_expensive_p): Avoid exponential behavior and compute
14829 expanded size, rejecting any expansion.
14830 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
14831 (idx_contains_abnormal_ssa_name_p): Likewise.
14832 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
14833 (contains_abnormal_ssa_name_p): Simplify and use
14834 walk_tree_without_duplicates.
14836 2019-06-04 Richard Biener <rguenther@suse.de>
14838 PR tree-optimization/90738
14840 2019-06-03 Richard Biener <rguenther@suse.de>
14842 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14843 full reference tree and record in ref->ref.
14844 (vn_reference_lookup_3): Pass in original ref to
14845 ao_ref_init_from_vn_reference.
14846 (vn_reference_lookup): Likewise.
14847 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14848 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14849 Handle non-decl bases in the original reference.
14851 2019-06-04 Martin Liska <mliska@suse.cz>
14853 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
14854 number of references.
14855 (sem_item_optimizer::do_congruence_step):
14856 (sem_item_optimizer::worklist_push): Dump how references
14858 (sem_item_optimizer::worklist_pop): Use heap.
14859 (sem_item_optimizer::process_cong_reduction): Likewise.
14860 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
14862 2019-06-04 Martin Liska <mliska@suse.cz>
14864 * ipa-icf.h (struct sem_usage_pair_hash): New.
14865 (sem_usage_pair_hash::hash): Likewise.
14866 (sem_usage_pair_hash::equal): Likewise.
14867 (struct sem_usage_hash): Likewise.
14868 * ipa-icf.c (sem_item::sem_item): Initialize
14869 referenced_by_count.
14870 (sem_item::add_reference): Register a reference
14871 in ref_map and not in target->usages.
14872 (sem_item::setup): Remove initialization of
14874 (sem_item::~sem_item): Remove usage of dead vectors.
14875 (sem_item::dump): Remove dump of references.
14876 (sem_item_optimizer::sem_item_optimizer): Initialize
14878 (sem_item_optimizer::read_section): Remove useless
14880 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
14881 (sem_item_optimizer::build_graph): Pass m_references
14882 to ::add_reference.
14883 (sem_item_optimizer::verify_classes): Remove usage of dead
14885 (sem_item_optimizer::traverse_congruence_split): Return true
14886 when a class is split.
14887 (sem_item_optimizer::do_congruence_step_for_index): Use
14888 hash_map for look up of (sem_item *, index). That brings
14889 significant speed up.
14890 (sem_item_optimizer::do_congruence_step): Return true
14891 when a split is done.
14892 (congruence_class::is_class_used): Use referenced_by_count.
14894 2019-06-04 Alan Modra <amodra@gmail.com>
14897 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
14900 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14902 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
14903 * config/rs6000/rs6000.c (direct_move_p): Adjust.
14904 (rs6000_secondary_reload_simple_move): Adjust.
14905 (rs6000_opt_masks): Neuter the "mfpgpr" option.
14906 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
14907 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
14910 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
14911 (floatunssi<mode>2_lfiwzx): Adjust.
14912 (fix_trunc<mode>si2_stfiwx): Adjust.
14913 (fixuns_trunc<mode>si2_stfiwx): Adjust.
14914 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
14915 (mfpgpr): Mark as deprecated.
14916 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
14917 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
14918 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
14920 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14922 * config/rs6000/constraints.md (define_register_constraint "wg"):
14924 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14925 RS6000_CONSTRAINT_wg.
14926 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14927 (rs6000_init_hard_regno_mode_ok): Adjust.
14928 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
14929 Delete "wg" alternatives.
14930 * doc/md.texi (Machine Constraints): Adjust.
14932 2019-06-03 Alan Modra <amodra@gmail.com>
14934 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
14935 (get_uncond_jump_length): Assert length less than INT_MAX and
14938 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
14940 PR middle-end/64242
14941 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
14943 (expand_builtin_nonlocal_goto): Likewise.
14945 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14947 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
14948 (aarch64_asm_output_external): Declare.
14949 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
14950 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
14951 (aarch64_asm_output_alias): New.
14952 (aarch64_asm_output_external): New.
14953 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
14954 (ASM_OUTPUT_EXTERNAL): Define.
14956 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
14957 * tree-vrp.h (value_range_base::nonzero_p): New.
14958 (value_range_base::set_nonnull): Rename to...
14959 (value_range_base::set_nonzero): ...this.
14960 (value_range_base::set_null): Rename to...
14961 (value_range_base::set_zero): ...this.
14962 (value_range::set_nonnull): Remove.
14963 (value_range::set_null): Remove.
14964 * tree-vrp.c (range_is_null): Remove.
14965 (range_is_nonnull): Remove.
14966 (extract_range_from_binary_expr): Use value_range_base::*zero_p
14967 instead of range_is_*null.
14968 (extract_range_from_unary_expr): Same.
14969 (value_range_base::set_nonnull): Rename to...
14970 (value_range_base::set_nonzero): ...this.
14971 (value_range::set_nonnull): Remove.
14972 (value_range_base::set_null): Rename to...
14973 (value_range_base::set_zero): ...this.
14974 (value_range::set_null): Remove.
14975 (extract_range_from_binary_expr): Rename set_*null uses to
14977 (extract_range_from_unary_expr): Same.
14978 (union_helper): Same.
14979 * vr-values.c (get_value_range): Use set_*zero instead of
14981 (vr_values::extract_range_from_binary_expr): Same.
14982 (vr_values::extract_range_basic): Same.
14984 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
14987 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
14989 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14991 * config/aarch64/iterators.md (MAX_OPP): New code attr.
14992 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
14994 (aarch64_<su>abd<mode>_3): ... This.
14995 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
14997 2019-06-03 Richard Biener <rguenther@suse.de>
14999 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
15000 full reference tree and record in ref->ref.
15001 (vn_reference_lookup_3): Pass in original ref to
15002 ao_ref_init_from_vn_reference.
15003 (vn_reference_lookup): Likewise.
15004 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
15005 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15006 Handle non-decl bases in the original reference.
15008 2019-06-03 Martin Liska <mliska@suse.cz>
15010 * doc/generic.texi: Remove Java Trees.
15012 2019-06-03 Martin Liska <mliska@suse.cz>
15014 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
15015 returns 0 when operands are equal.
15017 2019-06-03 Richard Biener <rguenther@suse.de>
15019 PR tree-optimization/90716
15020 * tree-loop-distribution.c (destroy_loop): Process blocks in
15023 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15026 * vector-builder.h (vector_builder::count_dups): New method.
15027 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
15029 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
15030 (vec_init<mode><Vel>): New pattern.
15031 * config/aarch64/aarch64.c (emit_insr): New function.
15032 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
15033 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
15034 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
15035 (aarch64_sve_expand_vector_init): Define two overloaded functions.
15037 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15039 PR tree-optimization/90681
15040 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
15041 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
15042 special case for SLP, but fail on non-groupped loads.
15044 2019-06-03 Martin Liska <mliska@suse.cz>
15046 * cfg.c (debug): Use TDF_DETAILS for debug and
15047 print edge info only once.
15049 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
15052 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
15054 2019-06-01 Martin Sebor <msebor@redhat.com>
15056 PR middle-end/90694
15057 * tree-pretty-print.c (dump_generic_node): Add parentheses.
15059 2019-05-31 Jan Hubicka <jh@suse.cz>
15061 * alias.c: Include ipa-utils.h.
15062 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
15063 * ipa-devirt.c (prevailing_odr_type): New.
15064 * ipa-utils.h (previaling_odr_type): Declare.
15066 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
15067 Hongtao Liu <hongtao.liu@intel.com>
15070 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
15071 NOTE_INSN_DELETED_LABEL check.
15073 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
15074 Robert Suchanek <robert.suchanek@mips.com>
15076 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
15077 and 3rd operands of the fmadd/fmsub/maddv builtin.
15079 2019-05-31 Jakub Jelinek <jakub@redhat.com>
15081 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
15082 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
15083 on OMP_SIMD if not nested inside of worksharing loop that also has
15084 lastprivate conditional clause for the same decl.
15085 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
15086 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
15088 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
15090 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
15092 (lower_lastprivate_clauses): Likewise.
15093 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
15094 calling lower_rec_input_clauses.
15095 (lower_omp_for): Likewise.
15096 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
15097 clause on simd construct.
15098 * omp-expand.c (expand_omp_simd): Initialize cond_var if
15099 OMP_CLAUSE__CONDTEMP_ clause is present.
15101 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
15104 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
15107 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
15108 TEX_D32, TEX_D64 or TEX_D128.
15110 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
15112 * match.pd (~(vec?cst1:cst2)): New transformation.
15114 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
15116 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
15117 ((size_t)(A /[ex] B) CMP C): New transformation.
15119 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
15121 * doc/md.texi: Document define_insn_and_rewrite.
15122 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
15123 * gensupport.c (queue_elem): Update comment.
15124 (replace_operands_with_dups): New function.
15125 (gen_rewrite_sequence): Likewise.
15126 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
15127 * read-rtl.c (apply_subst_iterator): Likewise.
15128 (add_condition_to_rtx, named_rtx_p): Likewise.
15129 (rtx_reader::read_rtx_operand): Likewise.
15130 * config/aarch64/aarch64-sve.md
15131 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
15132 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
15133 define_insn_and_rewrite.
15134 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
15135 Remove separate define_split.
15137 2019-05-31 Jan Hubicka <jh@suse.cz>
15139 * tree-ssa-alias.c (type_has_components_p): New function.
15140 (aliasing_component_refs_p): Use it.
15142 2019-05-31 Martin Liska <mliska@suse.cz>
15144 * gdbhooks.py: Add const_tree to TreePrinter.
15146 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
15149 * common.opt (feliminate-unused-debug-symbols): Enable by default.
15150 * doc/invoke.texi (Debugging Options): Document new default of
15151 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
15153 2019-05-31 Jakub Jelinek <jakub@redhat.com>
15155 PR tree-optimization/90671
15156 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
15157 template_block used to be empty on the first call, don't use
15158 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
15159 seq with bb_seq and set it with set_bb_seq.
15161 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
15163 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
15165 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
15166 Michael Meissner <meissner@linux.ibm.com>
15168 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
15169 (prefixed_mem_operand): Likewise.
15170 (non_prefixed_mem_operand): Likewise.
15171 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
15173 * config/rs6000/rs6000.c (print_operand_address): Handle
15174 PC-relative addresses.
15175 (mode_supports_prefixed_address_p): New function.
15176 (rs6000_prefixed_address): New function.
15177 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
15178 (SYMBOL_REF_PCREL_P): Likewise.
15180 2019-05-30 Jakub Jelinek <jakub@redhat.com>
15182 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
15183 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
15184 (gimplify_omp_for): If worksharing loop with lastprivate conditional
15185 is nested inside of parallel region, add _condtemp_ clause to both.
15186 * tree-nested.c (convert_nonlocal_omp_clauses,
15187 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
15189 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
15191 * omp-general.c (omp_extract_for_data): Compute it.
15192 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
15193 (lower_rec_input_clauses): Likewise.
15194 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
15195 clause is already present, just add one further one after it.
15196 (lower_lastprivate_clauses): Handle cond_ptr with array type.
15197 (lower_send_shared_vars): Clear _condtemp_ vars.
15198 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
15199 or section or taskgroup.
15200 * omp-expand.c (determine_parallel_type): Disallow combining only if
15201 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
15202 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
15203 (expand_omp_for_generic, expand_omp_for_static_nochunk,
15204 expand_omp_for_static_chunk, expand_omp_for): Use
15205 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
15206 determine if a special set of API routines are needed and if condtemp
15207 needs to be initialized, while always initialize cond_var if
15208 fd->lastprivate_conditional is non-zero.
15210 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
15211 Michael Meissner <meissner@linux.ibm.com>
15213 * config/rs6000/constraints.md (eI): New constraint.
15214 * config/rs6000/predicates.md (cint34_operand): New predicate.
15215 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
15216 (SIGNED_34BIT_OFFSET_P): Likewise.
15217 * doc/md.texi (eI): Document constraint.
15219 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
15221 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
15223 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
15224 Michael Meissner <meissner@linux.ibm.com>
15226 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
15227 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
15228 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
15229 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
15230 (OTHER_FUTURE_MASKS): Likewise.
15231 (POWERPC_MASKS): Likewise.
15232 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
15233 specified without -mprefixed-addr or -mcpu=future. Error if
15234 -mprefixed-addr is specified without -mcpu=future.
15235 (rs6000_opt_masks): Add entry for prefixed-addr.
15236 * rs6000.opt (mprefixed-addr): New option.
15238 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
15240 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
15241 cfun->is_thunk check.
15243 2019-05-30 Jakub Jelinek <jakub@redhat.com>
15245 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
15248 2019-05-30 Martin Liska <mliska@suse.cz>
15250 * gdbinit.in: Fix 'ptc' command. Add trt
15251 that prints TREE_TYPE($).
15253 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
15254 Alan Modra <amodra@gmail.com>
15256 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
15258 (rs6000_indirect_call_template_1): ...and here.
15259 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
15260 plt16_ha, plt16_lo, mtctr indirect calls. Use
15261 rs6000_pltseq_enum.
15262 (rs6000_decl_ok_for_sibcall): New function.
15263 (rs6000_function_ok_for_sibcall): Refactor.
15264 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
15265 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
15266 when pcrel. Reorganize.
15267 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
15268 * rs6000.h (rs6000_pltseq_enum): New enum.
15269 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
15270 (*pltseq_tocsave): Use rs6000_pltseq_enum.
15271 (*pltseq_plt16_ha): Likewise.
15272 (*pltseq_plt16_lo): Likewise.
15273 (*pltseq_mtctr): Likewise.
15274 (*pltseq_plt_pcrel): New insn.
15275 (*call_local_aix): Handle @notoc calls.
15276 (*call_value_local_aix): Likewise.
15277 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
15278 (*call_value_nonlocal_aix): Likewise.
15279 (*call_indirect_pcrel): New insn.
15280 (*call_value_indirect_pcrel): Likewise.
15282 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
15284 * config/i386/sse.md (*save_multiple<mode>): Rename from
15285 save_multiple<mode>.
15286 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
15287 (*restore_multiple_and_return<mode>): Rename from
15288 restore_multiple_and_return<mode>.
15289 (*restore_multiple_leave_return<mode>): Rename from
15290 restore_multiple_leave_return<mode>.
15292 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
15294 * config.gcc (rx-*-linux*): New target.
15295 * config/rx/elf.opt: New file.
15296 * config/rx/linux.h: Likewise.
15297 * config/rx/t-linux: Likewise.
15298 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
15300 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
15301 (ASM_APP_OFF): Likewise.
15302 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
15305 2019-05-29 Jan Hubicka <jh@suse.cz>
15307 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
15308 variants are pointer equivalent.
15310 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15312 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
15313 * config/aarch64/aarch64-sve2.md: New file.
15314 (<u>avg<mode>3_floor): New pattern.
15315 (<u>avg<mode>3_ceil): Likewise.
15316 (*<sur>h<addsub><mode>): Likewise.
15317 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
15318 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
15320 2019-05-29 Jakub Jelinek <jakub@redhat.com>
15323 * optc-save-gen.awk: In cl_optimization_print, use correct condition
15324 for var_opt_string printing. In cl_optimization_print_diff, print
15325 (null) instead of invoking undefined behavior if one of the
15326 var_opt_string pointers is NULL and use && instead of first || in the
15327 guarding condition. For var_target_other options, handle const char *
15328 target variables similarly to const char * optimize node variables.
15330 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
15332 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
15333 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
15334 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
15335 Add autib1716 and pacib1716 initialisation.
15336 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
15337 for autib1716 and pacib1716.
15338 * config/aarch64/aarch64-protos.h (aarch64_key_type,
15339 aarch64_post_cfi_startproc): Define.
15340 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
15341 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
15342 aarch64_handle_pac_ret_protection): Set default sign key to A.
15343 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
15344 aarch64_expand_prologue): Add check for b-key.
15345 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
15346 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
15347 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
15348 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
15349 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
15350 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
15351 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15352 * config/aarch64/aarch64.md (do_return): Add check for b-key.
15353 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
15354 pauth_hint_num_a with pauth_hint_num.
15355 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
15356 pauth_hint_num_a with pauth_hint_num.
15357 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
15358 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
15359 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15360 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
15361 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
15362 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
15363 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
15364 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15365 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
15366 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
15367 UNSPEC_AUTIA1716 respectively.
15368 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
15369 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
15370 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
15371 * doc/invoke.texi (-mbranch-protection): Add b-key type.
15372 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
15373 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
15375 2019-05-29 Jakub Jelinek <jakub@redhat.com>
15377 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
15378 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
15379 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
15380 explicit clause on combined parallel into implicit shared clause.
15381 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
15382 and firstprivate if the decl has one too from combined parallel to
15383 the worksharing construct.
15385 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
15386 Michael Meissner <meissner@linux.ibm.com>
15388 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
15390 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
15392 * rtl.h (LABEL_REF_P): New #define.
15394 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
15396 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
15398 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
15400 * internal-fn.c: Marked mask_load_direct as vectorizable.
15401 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
15402 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
15403 combined even if masks different with allow_slp_p param.
15404 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
15405 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
15406 dissolve SLP-only vectorizable groups when SLP has been discarded.
15407 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
15408 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
15410 (vect_build_slp_tree_1): Fixed comment typo.
15411 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
15412 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
15413 loads for SLP only.
15414 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
15416 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
15418 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15420 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
15421 Remove obsolete use_thunk reference.
15422 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
15423 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
15424 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
15425 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
15426 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
15427 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15428 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
15429 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
15430 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
15432 2019-05-28 Nathan Sidwell <nathan@acm.org>
15434 * tree.h (IDENTIFIER_ANON_P): New.
15435 (anon_aggrname_format, anon_aggname_p): Don't declare.
15436 (make_anon_name): Declare.
15437 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
15438 (hash_tree): Likewise.
15439 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
15440 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
15441 (anon_cnt, make_anon_name): New.
15443 2019-05-28 Martin Liska <mliska@suse.cz>
15446 * opts-global.c (decode_options): Print help for all
15447 help_option_arguments.
15448 * opts.c (print_help): Add new argument.
15449 (common_handle_option): Remember all values into
15450 help_option_arguments.
15451 * opts.h (print_help): Add new argument.
15453 2019-05-28 Martin Liska <mliska@suse.cz>
15456 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
15457 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
15458 (func_checker::compare_bb): Call compare_loops.
15460 2019-05-27 Jakub Jelinek <jakub@redhat.com>
15462 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
15463 on sections construct.
15464 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
15466 (lower_omp_sections): Handle lastprivate conditional.
15467 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
15468 lastprivate_conditional_map.
15469 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
15471 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
15472 critical, taskgroup and section regions when looking for a region
15473 with non-NULL lastprivate_conditional_map.
15475 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
15477 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
15478 (*ix86_gen_sub3): Ditto.
15479 (*ix86_gen_sub3_carry): Ditto.
15480 (*ix86_gen_one_cmpl2): Ditto.
15481 (*ix86_gen_andsp): Ditto.
15482 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
15483 (gen_and2_insn): New static function.
15484 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
15485 Use gen_add3_insn instead of ix86_gen_add3.
15486 (ix86_expand_split_stack_prologue): Use gen_add2_insn
15487 instead of ix86_gen_add3.
15488 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
15489 Use gen_sub3_insn instead of ix86_gen_sub3.
15490 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
15491 instead of ix86_gen_add3.
15492 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
15493 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
15494 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
15495 * config/i386/i386-options.c (ix86_option_override_internal):
15496 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
15497 ix86_gen_one_cmpl2 and ix86_gen_andsp.
15499 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
15501 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
15502 and DW_OP_GNU_const_index opcodes.
15504 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
15506 * config/i386/i386.h (STACK_SIZE_MODE): Define.
15508 2019-05-27 Richard Biener <rguenther@suse.de>
15510 PR tree-optimization/90637
15511 * tree-ssa-sink.c (statement_sink_location): Honor the
15512 computed sink location for single-uses.
15514 2019-05-27 Richard Biener <rguenther@suse.de>
15516 PR middle-end/90610
15517 * match.pd (vec_perm): Avoid clobbering op0 when not generating
15520 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15522 * config/i386/i386.md (@sub<mode>3_carry): Rename
15523 from sub<mode>3_carry.
15524 (@leave_<mode>): New expander.
15525 (*leave): Rename from leave.
15526 (*leave_rex64): Rename from leave_rex64.
15527 (@monitorx_<mode>): Rename from monitorx_<mode>.
15528 (@clzero_<mode>): Rename from clzero_<mode>.
15529 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
15530 from sse3_monitor_<mode>.
15531 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
15532 (*ix86_gen_leave): Ditto.
15533 (*ix86_gen_monitor): Ditto.
15534 (*ix86_gen_monitorx): Ditto.
15535 (*ix86_gen_clzero): Ditto.
15536 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
15537 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
15538 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
15539 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
15540 Use gen_sse3_monitor instead of ix86_gen_monitor.
15541 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
15542 instead of ix86_gen_monitorx.
15543 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
15544 instead of ix86_gen_clzero.
15545 * config/i386/i386-options.c (ix86_option_override_internal):
15546 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
15547 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
15549 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15551 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
15552 Rename from tls_global_dynamic_64_<mode>.
15553 (@tls_local_dynamic_base_64_<mode>): Rename from
15554 tls_local_dynamic_base_64_<mode>.
15555 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
15556 Remove indirect function.
15557 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
15558 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
15559 instead of ix86_gen_tls_global_dynamic_64.
15560 Use gen_tls_local_dynamic_base_64 instead of
15561 ix86_gen_tls_local_dynamic_base_64.
15562 * config/i386/i386-options.c (ix86_option_override_internal):
15563 Do not initialize ix86_gen_tls_global_dynamic_64 and
15564 ix86_gen_tls_local_dynamic_base_64.
15566 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15568 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
15569 Rename from pro_epilogue_adjust_stack_<mode>_add.
15570 (@pro_epilogue_adjust_stack_sub_<mode>)
15571 Rename from pro_epilogue_adjust_stack_<mode>_sub.
15572 (@allocate_stack_worker_probe_<mode>):
15573 Rename from allocate_stack_worker_probe_<mode>.
15574 (allocate_stack): Use gen_allocate_stack_worker_probe.
15575 (probe_stack): Use gen_probe_stack_1.
15576 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
15577 (@adjust_stack_and_probe_<mode>): Rename from
15578 adjust_stack_and_probe<mode>.
15579 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
15580 (stack_protect_set): Use gen_stack_protect_set_1.
15581 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
15582 (stack_protect_test): Use gen_stack_protect_test_1.
15583 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
15584 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
15585 Remove indirect function.
15586 (*ix86_gen_adjust_stack_and_probe): Ditto.
15587 (*ix86_gen_probe_stack_range): Ditto.
15588 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
15589 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
15590 (ix86_adjust_stack_and_probe_stack_clash): Use
15591 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
15592 (ix86_adjust_stack_and_probe): Ditto.
15593 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
15594 of ix86_gen_probe_stack_range.
15595 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
15596 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
15597 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
15598 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
15599 CODE_FOR_stack_protect_test_{si,di}.
15600 * config/i386/i386-options.c (ix86_option_override_internal):
15601 Do not initialize ix86_gen_allocate_stack_worker,
15602 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
15604 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
15606 * doc/invoke.texi (Link Options): Many editorial changes around
15609 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15611 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
15612 pre-Solaris 11 referene and most Studio compiler details.
15614 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
15617 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
15618 DImode to SImode in floating-point registers on 64-bit target.
15619 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
15620 register_operand in xmpyu patterns.
15622 2019-05-24 Jakub Jelinek <jakub@redhat.com>
15624 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
15625 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
15626 OMP_CLAUSE__REDUCTEMP_.
15627 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15628 OMP_CLAUSE__CONDTEMP_.
15629 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
15630 * tree-pretty-print.c (dump_omp_clause): Likewise.
15631 * tree-nested.c (convert_nonlocal_omp_clauses,
15632 convert_local_omp_clauses): Likewise.
15633 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
15634 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
15635 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
15637 (gimplify_omp_for): Warn and disable conditional modifier from
15638 lastprivate on loop iterators.
15639 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
15641 * omp-general.c (omp_extract_for_data): Initialize it.
15642 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
15644 (delete_omp_context): Delete it.
15645 (lower_lastprivate_conditional_clauses): New function.
15646 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
15647 handle lastprivate conditional clauses.
15648 (lower_reduction_clauses): Add CLIST argument, emit it into
15649 the critical section if any.
15650 (lower_omp_sections): Adjust lower_lastprivate_clauses and
15651 lower_reduction_clauses callers.
15652 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
15653 to lower_lastprivate_clauses.
15654 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
15655 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
15656 clist into a critical section if not emitted there already by
15657 lower_reduction_clauses.
15658 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
15660 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
15661 conditional variables.
15662 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
15664 (expand_omp_for_generic, expand_omp_for_static_nochunk,
15665 expand_omp_for_static_chunk): Handle lastprivate conditional.
15666 (expand_omp_for): Handle fd.lastprivate_conditional like
15669 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15671 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
15672 kernel does not exit cleanly.
15673 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
15675 2019-05-24 Jason Merrill <jason@redhat.com>
15678 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15680 2019-05-24 Richard Biener <rguenther@suse.de>
15683 * tree-loop-distribution.c (struct partition): Add location
15685 (partition_alloc): Initialize all fields.
15686 (generate_memset_builtin): Use the location recorded in the
15687 partition for the generated call.
15688 (generate_memcpy_builtin): Likewise.
15689 (classify_partition): Record the location of a single store
15690 as location for the partition.
15692 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15694 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
15697 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
15700 * common/config/aarch64/aarch64-common.c
15701 (aarch64_rewrite_selected_cpu): Change local temporary variable
15702 type from unsigned long to uint64_t.
15703 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
15704 aarch64_get_extension_string_for_isa_flags): Change declaration to
15705 match new definition by replacing unsigned long with uint64_t.
15707 2019-05-24 Jakub Jelinek <jakub@redhat.com>
15710 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
15711 gen_attr_type just once instead of 4-7 times. Formatting fixes.
15712 Handle stack_protect_test_<mode> codegen similarly to corresponding
15715 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
15717 * config/i386/darwin.h: Reject -mfentry*.
15718 * doc/sourcebuild.texi: Document mfentry target support.
15720 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15722 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
15723 Rename to rs6000_global_entry_point_prologue_needed_p. Return
15724 false for PC-relative functions.
15725 (rs6000_output_function_prologue): Change called function name to
15726 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
15727 name,1" for PC-relative functions.
15728 (rs6000_elf_declare_function_name): Change called function name to
15729 rs6000_global_entry_point_prologue_needed_p.
15731 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
15734 * config/i386/i386.c (gen_rtx_cost):
15735 Use ix86_tune_cost instead of ix86_cost.
15737 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15738 Michael Meissner <meissner@linux.ibm.com>
15739 Segher Boessenkool <segher@kernel.crashing.org>
15741 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
15743 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
15744 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
15745 (rs6000_fndecl_pcrel_p): Likewise.
15746 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
15747 error if -mpcrel is requested without -mcpu=future.
15748 (rs6000_opt_masks): Add entry for pcrel.
15749 (rs6000_fndecl_pcrel_p): New function.
15750 (rs6000_pcrel_p): Likewise.
15751 * config/rs6000/rs6000.opt (mpcrel): New option.
15752 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
15754 2019-05-23 Jan Hubicka <jh@suse.cz>
15755 Martin Liska <mliska@suse.cz>
15757 PR tree-optimization/90576
15758 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
15760 (aliasing_component_refs_p): Fix three way size compare conditional;
15761 give up earlier in case we can not decide on equivalence.
15763 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15764 Michael Meissner <meissner@linux.ibm.com>
15765 Segher Boessenkool <segher@kernel.crashing.org>
15767 * config.gcc: Add future cpu.
15768 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
15769 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
15771 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
15772 (RS6000_CPU): New instantiation for future cpu.
15773 * config/rs6000/rs6000-opts.h (enum processor_type): Add
15775 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
15776 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
15777 * config/rs6000/rs6000-tables.opt: Regenerate.
15778 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
15779 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
15780 (rs6000_machine_from_flags): Handle future cpu.
15781 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
15782 PROCESSOR_POWER9 for now.
15783 (rs6000_adjust_cost): Likewise.
15784 (rs6000_issue_rate): Likewise.
15785 (rs6000_register_move_cost): Likewise.
15786 (rs6000_opt_masks): Add entry for future.
15787 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
15788 (MASK_FUTURE): New #define.
15789 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
15790 * config/rs6000/rs6000.opt (mfuture): New target option.
15791 * doc/invoke.texi (mcpu): Add future cpu.
15793 2019-05-23 Martin Liska <mliska@suse.cz>
15796 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
15797 operation points to a temporary (pointed via tree_to_wide_ref)
15798 that is out of scope after the &.
15800 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
15803 * doc/extend.texi (Function Names): Add missing word.
15805 2019-05-23 Richard Biener <rguenther@suse.de>
15807 PR tree-optimization/88440
15808 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
15810 * tree-loop-distribution.c (generate_memset_builtin): Fold the
15812 (generate_memcpy_builtin): Likewise.
15813 (distribute_loop): Pass in whether to only distribute patterns.
15814 (prepare_perfect_loop_nest): Also allow size optimization.
15815 (pass_loop_distribution::execute): When optimizing a loop
15816 nest for size allow pattern replacement.
15818 2019-05-23 Jakub Jelinek <jakub@redhat.com>
15821 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
15824 2019-05-23 Martin Liska <mliska@suse.cz>
15827 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
15828 expression similarly to gimplify_decl_expr.
15830 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15832 * cse.c (cse_dump_path): s/dump_file/f.
15834 2019-05-22 David Malcolm <dmalcolm@redhat.com>
15837 * diagnostic-format-json.cc: Include "selftest.h".
15838 (json_from_expanded_location): Only add "file" key for non-NULL
15840 (json_from_location_range): Don't add "start" and "finish"
15841 children if they are UNKNOWN_LOCATION.
15842 (selftest::test_unknown_location): New selftest.
15843 (selftest::test_bad_endpoints): New selftest.
15844 (selftest::diagnostic_format_json_cc_tests): New function.
15845 * json.cc (json::object::get): New function.
15846 (selftest::test_object_get): New selftest.
15847 (selftest::json_cc_tests): Call it.
15848 * json.h (json::object::get): New decl.
15849 * selftest-run-tests.c (selftest::run_tests): Call
15850 selftest::diagnostic_format_json_cc_tests.
15851 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
15854 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15855 Andrew Stubbs <amd@codesourcery.com>
15857 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
15858 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
15859 (kernel): Rename to...
15860 (main_kernel): ... this.
15861 (load_image): Load _init_array and _fini_array kernels.
15862 (run): Add argument for kernel to run.
15863 (main): Run init_array_kernel before main_kernel, and
15864 fini_array_kernel after.
15865 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
15866 amdgpu_hsa_kernel attribute on functions.
15867 (gcn_disable_constructors): Delete.
15868 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
15869 * config/gcn/crt0.c (size_t): Define.
15870 (_init_array, _fini_array): New.
15871 (__preinit_array_start, __preinit_array_end,
15872 __init_array_start, __init_array_end,
15873 __fini_array_start, __fini_array_end): Declare weak references.
15875 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
15877 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
15879 2019-05-22 Jason Merrill <jason@redhat.com>
15881 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15883 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
15886 * config/i386/i386-options.c (ix86_init_machine_status): Set
15887 stack_frame_required to true.
15888 * config/i386/i386.c (ix86_get_frame_size): New function.
15889 (ix86_frame_pointer_required): Replace get_frame_size with
15890 ix86_get_frame_size.
15891 (ix86_compute_frame_layout): Likewise.
15892 (ix86_find_max_used_stack_alignment): Changed to void. Set
15893 stack_frame_required.
15894 (ix86_finalize_stack_frame_flags): Always call
15895 ix86_find_max_used_stack_alignment. Replace get_frame_size with
15896 ix86_get_frame_size.
15897 * config/i386/i386.h (machine_function): Add stack_frame_required.
15899 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
15901 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
15903 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
15905 * common/config/aarch64/aarch64-common.c
15906 (struct aarch64_option_extension, struct processor_name_to_arch,
15907 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
15908 aarch64_contains_opt,
15909 aarch64_get_extension_string_for_isa_flags): Change type of
15910 variables storing flags to uint64_t.
15911 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
15912 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
15913 * config/aarch64/aarch64.c (struct processor,
15914 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
15915 aarch64_validate_march, aarch64_override_options,
15916 aarch64_option_print, aarch64_handle_attr_isa_flags,
15917 aarch64_declare_function_name, aarch64_start_file): Make flag
15918 variables uint64_t.
15919 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
15920 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
15921 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
15922 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
15923 * config/aarch64/driver-aarch64.c
15924 (struct aarch64_arch_extension, struct aarch64_core_data,
15925 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
15926 flag variables uint64_t.
15927 * doc/invoke.texi: Add documentation for new arguments.
15929 2019-05-22 Richard Biener <rguenther@suse.de>
15931 * alias.c (ao_ref_from_mem): Move stack-slot sharing
15933 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
15935 2019-05-22 Martin Liska <mliska@suse.cz>
15938 * doc/extend.texi: Document the change.
15940 2019-05-22 Richard Biener <rguenther@suse.de>
15942 PR tree-optimization/90450
15943 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
15944 (mem_ref_hasher::equal): Check it.
15945 (mem_ref_alloc): Initialize it.
15946 (gather_mem_refs_stmt): Set it.
15948 2019-05-22 Richard Biener <rguenther@suse.de>
15950 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
15952 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
15955 2019-05-22 Alan Modra <amodra@gmail.com>
15957 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
15958 (ASM_CPU_SPEC): Conditionally add -many.
15959 * config/rs6000/rs6000.c (rs6000_machine): New static var.
15960 (rs6000_machine_from_flags, emit_asm_machine): New functions..
15961 (rs6000_file_start): ..extracted from here, and modified to
15963 (rs6000_output_function_prologue): Emit .machine as necessary.
15965 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
15967 PR middle-end/90553
15968 * ira-lives.c (process_bb_node_lives): Consider defs
15969 for a call insn to be die before the call, not after.
15971 * function.c (assign_parm_setup_block): Raise alignment of
15972 stacked parameter only for STRICT_ALIGNMENT targets.
15974 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15976 * config/rs6000/constraints.md (define_register_constraint "wz"):
15978 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15979 RS6000_CONSTRAINT_wz.
15980 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15981 (rs6000_init_hard_regno_mode_ok): Adjust.
15982 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
15983 * doc/md.texi (Machine Constraints): Adjust.
15985 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15987 * config/rs6000/constraints.md (define_register_constraint "wl"):
15989 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15990 RS6000_CONSTRAINT_wl.
15991 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15992 (rs6000_init_hard_regno_mode_ok): Adjust.
15993 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
15994 * doc/md.texi (Machine Constraints): Adjust.
15996 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15998 * config/rs6000/constraints.md (define_register_constraint "wm"):
16000 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16001 RS6000_CONSTRAINT_wm.
16002 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16003 (rs6000_init_hard_regno_mode_ok): Adjust.
16004 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
16005 * doc/md.texi (Machine Constraints): Adjust.
16007 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16009 * config/rs6000/constraints.md (define_register_constraint "wk"):
16011 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16012 RS6000_CONSTRAINT_wk.
16013 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16014 (rs6000_init_hard_regno_mode_ok): Adjust.
16015 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
16016 * doc/md.texi (Machine Constraints): Adjust.
16018 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16020 * config/rs6000/constraints.md (define_register_constraint "wj"):
16022 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16023 RS6000_CONSTRAINT_wj.
16024 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16025 (rs6000_init_hard_regno_mode_ok): Adjust.
16026 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
16028 * config/rs6000/vsx.md: Ditto.
16029 * doc/md.texi (Machine Constraints): Adjust.
16031 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
16033 * config/rs6000/constraints.md (define_register_constraint "wh"):
16035 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16036 RS6000_CONSTRAINT_wh.
16037 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16038 (rs6000_init_hard_regno_mode_ok): Adjust.
16039 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
16040 * doc/md.texi (Machine Constraints): Adjust.
16042 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
16045 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
16046 Avoid calling gen_lowpart with CONST operand.
16048 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
16050 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
16051 field template_last_to_copy.
16052 (ssa_create_duplicates): Set it, and use it. Attempt to
16053 preserve more debug stmts.
16055 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
16057 * config/i386/sse.md (VF1_AVX2): New mode iterator.
16058 (signbit<mode>2): New expander
16060 2019-05-21 James Clarke <jrtc27@jrtc27.com>
16063 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
16064 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
16066 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
16068 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
16069 %ebx and %ecx bafore calling cpuid with leaf 1 or
16070 non-constant leaf argument.
16072 2019-05-21 Alan Modra <amodra@gmail.com>
16075 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
16076 power9 direct move cost.
16078 2019-05-21 Richard Biener <rguenther@suse.de>
16080 PR middle-end/90510
16081 * fold-const.c (fold_read_from_vector): New function.
16082 * fold-const.h (fold_read_from_vector): Declare.
16083 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
16084 single-element insert permutations. Canonicalize selector
16085 further and fix issue with last commit.
16087 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
16089 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
16090 parameter with default value false to declaration.
16091 (split_edges_for_insertion): New inline function. Wrapper for
16092 split_critical_edges with for_edge_insertion_p = true.
16093 * tree-cfg.c (split_critical_edges): Don't split non-critical
16094 edges if for_edge_insertion_p is false. Fix whitespace.
16095 * tree-ssa-pre.c (pass_pre::execute): Call
16096 split_edges_for_insertion instead of split_critical_edges.
16097 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
16098 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
16099 (pass_data_sink_code): Update function name in the comment.
16101 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
16103 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
16104 around is_value_included_in that knows how to handle BIT_AND_EXPR.
16105 (is_pred_expr_subset_of): Use the new function. Handle more cases where
16106 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
16109 2019-05-21 Martin Liska <mliska@suse.cz>
16111 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
16113 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
16114 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
16116 * config/rs6000/rs6000.c (rs6000_option_override_internal):
16118 (rs6000_function_arg): Likewise.
16119 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
16120 (rs6000_expand_ternop_builtin): Use interval syntax.
16121 (get_element_number): Likewise.
16122 (altivec_expand_builtin): Likewise.
16123 (rs6000_get_function_versions_dispatcher): Quote target_clones.
16125 2019-05-20 Jakub Jelinek <jakub@redhat.com>
16129 * function.h (struct function): Add calls_eh_return member.
16130 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
16131 gimplifying __builtin_eh_return call.
16132 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
16134 (expand_call_inline): Or in src_cfun->calls_eh_return into
16135 dst_cfun->calls_eh_return.
16136 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
16137 cfun->calls_eh_return.
16138 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
16139 * lto-streamer-out.c (output_struct_function_base): Write
16142 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
16144 PR rtl-optimization/43147
16145 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
16146 IX86_BUILTIN_SHUFPD.
16148 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
16150 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
16151 (refs_may_alias_p_1): ... here; update stats.
16152 (refs_may_alias_p): Do not update stats here.
16154 2019-05-20 Richard Biener <rguenther@suse.de>
16156 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
16157 doesn't produce pointers.
16158 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
16159 the first operand points to.
16161 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
16163 * tree-ssa-alias.c (compare_sizes): New function.
16164 (sompare_type_sizes): New function
16165 (aliasing_component_refs_p): Use it.
16166 (indirect_ref_may_alias_decl_p): Likewise.
16168 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16170 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
16172 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16174 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
16175 (LIBLSAN_EARLY_SPEC): Likewise.
16176 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
16178 2019-05-20 Martin Liska <mliska@suse.cz>
16180 * config/i386/i386.c (ix86_libc_has_fast_function):
16181 Add ATTRIBUTE_UNUSED for the argument.
16183 2019-05-20 Richard Biener <rguenther@suse.de>
16185 * gimple-match-head.c: Include vec-perm-indices.h.
16186 * generic-match-head.c: Likewise.
16187 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
16189 * fold-const.c (fold_vec_perm): Export.
16190 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
16191 (match.pd): ...here.
16193 2019-05-20 Jakub Jelinek <jakub@redhat.com>
16195 * cfgloop.h (struct loop): Add simdlen member.
16196 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
16197 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
16198 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
16199 as new argument to autovectorize_vector_sizes target hook. If
16200 loop->simdlen, pick up vector size where the vectorization factor
16201 is equal to loop->simd, and if there is none, fall back to the first
16203 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
16205 * omp-low.c (omp_clause_aligned_alignment): Likewise.
16206 * omp-general.c (omp_max_vf): Likewise.
16207 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
16208 * tree-vect-slp.c (vect_slp_bb): Likewise.
16209 * target.def (autovectorize_vector_sizes): Add ALL argument and
16211 * doc/tm.texi: Adjust documentation.
16212 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
16213 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
16214 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
16216 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
16217 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
16218 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
16219 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
16220 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
16221 preferred vector size is not 512-bit or 256-bit, just put those
16222 unpreferred ones last.
16224 2019-05-20 Martin Liska <mliska@suse.cz>
16226 * targhooks.c (default_libc_has_fast_function): New function.
16227 * targhooks.h (default_libc_has_fast_function): Likewise.
16229 2019-05-20 Martin Liska <mliska@suse.cz>
16231 PR middle-end/90263
16232 * builtins.c (expand_builtin_memory_copy_args): When having a
16233 target with fast mempcpy implementation do now use memcpy.
16234 * config/i386/i386.c (ix86_libc_has_fast_function): New.
16235 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
16236 * doc/tm.texi: Likewise.
16237 * doc/tm.texi.in: Likewise.
16239 * expr.c (emit_block_move_hints): Add 2 new arguments.
16240 * expr.h (emit_block_move_hints): Bail out when libcall
16241 to memcpy would be used.
16243 2019-05-20 Martin Liska <mliska@suse.cz>
16245 * profile-count.c: Add vertical spacing in order
16246 to separate functions.
16247 * profile-count.h: Likewise.
16249 2019-05-20 Martin Liska <mliska@suse.cz>
16251 * profile-count.h: Do not use full qualified
16253 * profile-count.c (profile_count::to_frequency): Likewise.
16255 2019-05-20 Martin Liska <mliska@suse.cz>
16257 * profile-count.h (enum profile_quality): Use capital letters
16258 for enum value names. Use the adjusted names.
16259 * profile-count.c: Use the adjusted names.
16261 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16263 * config/rs6000/constraints.md (define_register_constraint "wH"):
16265 (define_register_constraint "wI"): Delete.
16266 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16267 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
16268 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16269 (rs6000_init_hard_regno_mode_ok): Adjust.
16270 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
16271 resp. "d", or with "wa" as appropriate, all with "p8v".
16272 * config/rs6000/vsx.md: Ditto.
16273 * doc/md.texi (Machine Constraints): Adjust.
16275 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16277 * config/rs6000/constraints.md (define_register_constraint "wy"):
16279 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16280 RS6000_CONSTRAINT_wy.
16281 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16282 (rs6000_init_hard_regno_mode_ok): Adjust.
16283 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
16284 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
16285 (define_mode_attr Fisa): New.
16286 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
16287 * doc/md.texi (Machine Constraints): Adjust.
16289 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16291 * config/rs6000/constraints.md (define_register_constraint "wu"):
16293 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16294 RS6000_CONSTRAINT_wu.
16295 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16296 (rs6000_init_hard_regno_mode_ok): Adjust.
16297 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
16299 (define_mode_attr Fa): Delete.
16300 * config/rs6000/vsx.md: Ditto.
16301 * doc/md.texi (Machine Constraints): Adjust.
16303 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16305 * config/rs6000/constraints.md (define_register_constraint "wJ"):
16307 (define_register_constraint "wK"): Delete.
16308 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16309 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
16310 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16311 (rs6000_init_hard_regno_mode_ok): Adjust.
16312 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
16313 Replace "wK" constraint by "wH" with "p9v".
16314 * config/rs6000/vsx.md: Ditto.
16315 * doc/md.texi (Machine Constraints): Adjust.
16317 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16319 * config/rs6000/constraints.md (define_register_constraint "wb"):
16321 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16322 RS6000_CONSTRAINT_wb.
16323 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16324 (rs6000_init_hard_regno_mode_ok): Adjust.
16325 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
16326 * config/rs6000/vsx.md: Ditto.
16327 * doc/md.texi (Machine Constraints): Adjust.
16329 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
16331 * config/rs6000/constraints.md (define_register_constraint "wo"):
16333 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16334 RS6000_CONSTRAINT_wo.
16335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16336 (rs6000_init_hard_regno_mode_ok): Adjust.
16337 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
16338 * config/rs6000/altivec.md: Ditto.
16339 * doc/md.texi (Machine Constraints): Adjust.
16341 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
16343 * config/darwin-c.c (darwin_register_objc_includes): Do not
16344 prepend the sysroot when building gnu-runtime header search
16347 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
16349 * config/darwin.c (darwin_file_end): Use switch_to_section ()
16350 instead of direct output of the asm.
16352 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
16354 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
16355 argument to be type bool (was int before).
16356 (rs6000_emit_epilogue): Simplify some code. Declare some variables
16357 at first use. Use type bool for some variables. Fix a theoretical
16358 eh_return bug for svr4.
16360 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
16362 * config/rs6000/rs6000.md (isa): New attribute.
16363 (enabled): New attribute.
16365 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
16367 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
16368 assemble_start_function and assemble_end_function.
16370 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
16372 PR middle-end/89433
16373 * omp-general.c (oacc_verify_routine_clauses): Change formal
16374 parameters. Add checking if already marked with an OpenACC
16375 'routine' directive. Adjust all users.
16377 PR middle-end/89433
16378 * omp-general.c (oacc_build_routine_dims): Move some of its
16380 (oacc_verify_routine_clauses): ... this new function.
16381 * omp-general.h (oacc_verify_routine_clauses): New prototype.
16383 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
16385 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
16386 formating of picbase labels to match other ports.
16388 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
16390 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
16391 in the generated code.
16393 2019-05-16 Martin Sebor <msebor@redhat.com>
16395 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
16396 identifiers, keywords, operators, and types in diagnostics. Correct
16397 quoting, spelling, and sentence capitalization issues.
16398 (expand_builtin_atomic_is_lock_free): Same.
16399 (fold_builtin_next_arg): Same.
16400 * cfgexpand.c (expand_one_var): Same.
16401 (tree_conflicts_with_clobbers_p): Same.
16402 (expand_asm_stmt): Same.
16403 (verify_loop_structure): Same.
16404 * cgraphunit.c (process_function_and_variable_attributes): Same.
16405 * collect-utils.c (collect_execute): Same.
16406 * collect2.c (maybe_run_lto_and_relink): Same.
16407 (is_lto_object_file): Same.
16408 (scan_prog_file): Same.
16409 * convert.c (convert_to_real_1): Same.
16410 * dwarf2out.c (dwarf2out_begin_prologue): Same.
16411 * except.c (verify_eh_tree): Same.
16412 * gcc.c (execute): Same.
16413 (eval_spec_function): Same.
16414 (run_attempt): Same.
16415 (driver::set_up_specs): Same.
16416 (compare_debug_auxbase_opt_spec_function): Same.
16417 * gcov-tool.c (unlink_gcda_file): Same.
16419 (do_rewrite): Same.
16420 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
16421 * gimplify.c (gimplify_asm_expr): Same.
16422 (gimplify_adjust_omp_clauses): Same.
16423 * hsa-gen.c (gen_hsa_addr_insns): Same.
16424 (gen_hsa_insns_for_load): Same.
16425 (gen_hsa_cmp_insn_from_gimple): Same.
16426 (gen_hsa_insns_for_operation_assignment): Same.
16427 (gen_get_level): Same.
16428 (gen_hsa_alloca): Same.
16429 (omp_simple_builtin::generate): Same.
16430 (gen_hsa_atomic_for_builtin): Same.
16431 (gen_hsa_insns_for_call): Same.
16432 * input.c (dump_location_info): Same.
16433 * ipa-devirt.c (compare_virtual_tables): Same.
16434 * ira.c (ira_setup_eliminable_regset): Same.
16435 * lra-assigns.c (lra_assign): Same.
16436 * lra-constraints.c (lra_constraints): Same.
16437 * lto-streamer-in.c (lto_input_mode_table): Same.
16438 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
16439 (merge_and_complain): Same.
16440 (compile_offload_image): Same.
16441 (compile_images_for_offload_targets): Same.
16442 (debug_objcopy): Same.
16445 * opts.c (print_specific_help): Same.
16446 (parse_no_sanitize_attribute): Same.
16447 (print_help): Same.
16448 (handle_param): Same.
16449 * plugin.c (add_new_plugin): Same.
16450 (parse_plugin_arg_opt): Same.
16451 (try_init_one_plugin): Same.
16452 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
16453 operators, and types in diagnostics. Correct quoting and spelling
16455 * read-rtl-function.c (parse_edge_flag_token): Same.
16456 (function_reader::parse_enum_value): Same.
16457 * reg-stack.c (check_asm_stack_operands): Same.
16458 * regcprop.c (validate_value_data): Same.
16459 * sched-rgn.c (make_pass_sched_fusion): Same.
16460 * stmt.c (check_unique_operand_names): Same.
16461 * targhooks.c (default_target_option_pragma_parse): Same.
16462 * tlink.c (recompile_files): Same.
16463 * toplev.c (process_options): Same.
16464 (do_compile): Same.
16465 * trans-mem.c (diagnose_tm_1): Same.
16466 (ipa_tm_scan_irr_block): Same.
16467 (ipa_tm_diagnose_transaction): Same.
16468 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
16469 format a tree code name in a diagnostic.
16470 (verify_types_in_gimple_min_lval): Same.
16471 (verify_types_in_gimple_reference): Same.
16472 (verify_gimple_call): Same.
16473 (verify_gimple_assign_unary): Same.
16474 (verify_gimple_assign_binary): Same.
16475 (verify_gimple_assign_ternary): Same.
16476 (verify_gimple_assign_single): Same.
16477 (verify_gimple_switch): Same.
16478 (verify_gimple_label): Same.
16479 (verify_gimple_phi): Same.
16480 (verify_gimple_in_seq): Same.
16481 (verify_eh_throw_stmt_node): Same.
16482 (collect_subblocks): Same.
16483 (gimple_verify_flow_info): Same.
16484 (do_warn_unused_result): Same.
16485 * tree-inline.c (expand_call_inline): Same.
16486 * tree-into-ssa.c (update_ssa): Same.
16487 * tree.c (tree_int_cst_elt_check_failed): Same.
16488 (tree_vec_elt_check_failed): Same.
16489 (omp_clause_operand_check_failed): Same.
16490 (verify_type_variant): Same.
16491 (verify_type): Same.
16492 * value-prof.c (verify_histograms): Same.
16493 * varasm.c (assemble_start_function): Same.
16495 2019-05-16 Martin Sebor <msebor@redhat.com>
16497 * config/i386/i386-expand.c (get_element_number): Quote keywords
16498 and other internal names in diagnostics. Adjust other diagnostic
16499 formatting issues noted by -Wformat-diag.
16500 * config/i386/i386-features.c
16501 (ix86_mangle_function_version_assembler_name): Same.
16502 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
16503 * config/i386/i386.c (ix86_function_type_abi): Same.
16504 (ix86_function_ms_hook_prologue): Same.
16505 (classify_argument): Same.
16506 (ix86_expand_prologue): Same.
16507 (ix86_md_asm_adjust): Same.
16508 (ix86_memmodel_check): Same.
16510 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
16512 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
16513 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
16516 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
16519 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
16520 intrinsics without SSE/SSE2/SSSE3.
16521 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
16523 (*mmx_uavgv8qi3): Likewise.
16525 2019-05-17 Richard Biener <rguenther@suse.de>
16527 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
16528 VEC_PERM_EXPR as __VEC_PERM with -gimple.
16530 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
16532 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
16533 vec_sldw insn pattern.
16535 2019-05-17 Richard Biener <rguenther@suse.de>
16537 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
16539 2019-05-17 Martin Liska <mliska@suse.cz>
16542 * toplev.c (output_stack_usage): With LTO and sanitizer it
16543 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
16544 has no file location.
16546 2019-05-16 Jakub Jelinek <jakub@redhat.com>
16549 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
16550 sz0 is equal to sz1, instead return false in that case.
16552 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
16553 has non-constant expression, force sctx.lane and use two
16554 argument IFN_GOMP_SIMD_LANE instead of single argument.
16555 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
16556 two argument IFN_GOMP_SIMD_LANE without lhs.
16557 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
16559 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
16561 (LOOP_REQUIRES_VERSIONING): Or in
16562 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
16563 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
16565 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
16566 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
16567 from simd if clause if needed.
16569 2019-05-16 Richard Biener <rguenther@suse.de>
16571 * tree-affine.c (expr_to_aff_combination): New function split
16573 (tree_to_aff_combination): ... here.
16574 (aff_combination_expand): Avoid building a GENERIC tree.
16576 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
16578 * cgraphunit.c (cgraph_node::expand_thunk): Remove
16579 assemble_start_function and assemble_end_function calls.
16580 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
16581 assemble_start_function and assemble_end_function.
16582 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
16583 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
16584 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
16585 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
16586 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
16587 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
16588 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
16589 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
16590 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16591 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16592 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16593 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
16595 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
16596 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
16597 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
16598 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
16599 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16600 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16601 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
16602 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
16603 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16604 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16605 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16606 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16607 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
16608 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
16610 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16611 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16612 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
16614 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
16616 * tree-ssa-alias.c (alias_stats): Add
16617 aliasing_component_refs_p_may_alias and
16618 aliasing_component_refs_p_no_alias.
16619 (dump_alias_stats): Print aliasing_component_refs_p stats.
16620 (aliasing_component_refs_p): Update stats.
16622 2019-05-16 Martin Liska <mliska@suse.cz>
16625 * multiple_target.c (expand_target_clones): Do not allow
16626 target_clones being used with a symbol that is an alias.
16628 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
16630 PR tree-optimization/90394
16631 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
16632 positives rather than ICE for cases where (code2 == NE_EXPR
16633 && code1 == BIT_AND_EXPR).
16635 2019-05-16 Jakub Jelinek <jakub@redhat.com>
16638 * tree-core.h (struct tree_decl_common): Document
16639 decl_nonshareable_flag for PARM_DECLs.
16640 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
16641 * calls.c (expand_call): Don't try tail call if caller
16642 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
16643 passed on the stack and callee needs to pass any arguments on the
16645 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16646 else if instead of series of mutually exclusive ifs. Handle
16647 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
16648 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16650 * lto-streamer.h (LTO_major_version): Bump to 9.
16652 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
16654 PR tree-optimization/90106
16655 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
16656 new parameter as new internal function call, also move it to new
16658 (use_internal_fn): Pass internal function call to
16659 shrink_wrap_one_built_in_call_with_conds.
16661 2019-05-15 Jakub Jelinek <jakub@redhat.com>
16663 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
16665 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
16666 safelen_int and set loop->dont_vectorize.
16668 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16671 * config/i386/i386-builtin.def: Enable MMX intrinsics with
16673 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
16675 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
16676 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
16677 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
16680 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16683 * config/i386/mmx.md (*vec_dupv2sf): Changed to
16684 define_insn_and_split to support SSE emulation.
16685 (*vec_extractv2sf_0): Likewise.
16686 (*vec_extractv2sf_1): Likewise.
16687 (*vec_extractv2si_0): Likewise.
16688 (*vec_extractv2si_1): Likewise.
16689 (*vec_extractv2si_zext_mem): Likewise.
16690 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
16691 (vec_extractv2sf_1 splitter): Likewise.
16692 (vec_extractv2sfsf): Likewise.
16693 (vec_setv2si): Likewise.
16694 (vec_extractv2si_1 splitter): Likewise.
16695 (vec_extractv2sisi): Likewise.
16696 (vec_setv4hi): Likewise.
16697 (vec_extractv4hihi): Likewise.
16698 (vec_setv8qi): Likewise.
16699 (vec_extractv8qiqi): Likewise.
16700 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
16701 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
16702 (vec_extractv2sisi): Likewise.
16703 (vec_extractv4hihi): Likewise.
16704 (vec_extractv8qiqi): Likewise.
16705 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
16706 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
16707 (vec_initv2sisi): Likewise.
16708 (vec_initv4hihi): Likewise.
16709 (vec_initv8qiqi): Likewise.
16710 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
16711 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
16712 (vec_setv4hi): Likewise.
16713 (vec_setv8qi): Likewise.
16715 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16718 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
16719 TARGET_MMX_WITH_SSE.
16720 (MMXMODE:*mov<mode>_internal): Likewise.
16721 (MMXMODE:movmisalign<mode>): Likewise.
16723 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
16726 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
16727 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
16728 (sse2_cvtpd2pi): Ditto.
16729 (sse2_cvttpd2pi): Ditto.
16730 (*vec_concatv2sf_sse4_1): Ditto.
16731 (*vec_concatv2sf_sse): Ditto.
16732 (*vec_concatv2si_sse4_1): Ditto.
16733 (*vec_concatv2si): Ditto.
16734 (*vec_concatv4si_0): Ditto.
16735 (*vec_concatv2di_0): Ditto.
16737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16740 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
16742 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16745 * config/i386/sse.md (ssse3_palignrdi): Changed to
16746 define_insn_and_split to support SSE emulation.
16748 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16751 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
16753 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16756 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
16757 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
16760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16763 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
16764 or TARGET_MMX_WITH_SSE.
16765 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
16767 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16770 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
16772 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16775 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
16776 Changed to define_insn_and_split to support SSE emulation.
16778 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16781 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
16782 Changed to define_insn_and_split to support SSE emulation.
16784 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16787 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
16788 (*mmx_<emms>): This.
16789 (mmx_<emms>): New expander.
16791 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16794 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
16796 (*sse2_umulv1siv1di3): Add SSE2 emulation.
16798 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16801 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
16803 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16806 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
16808 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16811 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
16812 TARGET_MMX_WITH_SSE.
16813 (*mmx_uavgv4hi3): Add SSE emulation.
16815 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16818 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
16819 and TARGET_MMX_WITH_SSE.
16820 (*mmx_uavgv8qi3): Add SSE emulation.
16822 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16825 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
16826 maskmovdqu for __MMX_WITH_SSE__.
16828 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16831 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
16832 TARGET_MMX and TARGET_MMX_WITH_SSE.
16833 (*mmx_umulv4hi3_highpart): Add SSE emulation.
16835 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16838 * config/i386/mmx.md (mmx_pmovmskb): Changed to
16839 define_insn_and_split to support SSE emulation.
16841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16844 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
16845 and TARGET_MMX_WITH_SSE.
16846 (mmx_<code>v8qi3): Likewise.
16847 (smaxmin:<code>v4hi3): New.
16848 (umaxmin:<code>v8qi3): Likewise.
16849 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
16850 (umaxmin:*mmx_<code>v8qi3): Likewise.
16852 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16855 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
16856 TARGET_MMX_WITH_SSE.
16857 (*mmx_pinsrw): Add SSE emulation.
16859 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16862 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
16864 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16867 * config/i386/sse.md (sse_cvtpi2ps): Changed to
16868 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
16871 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16874 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
16875 (sse_cvttps2pi): Likewise.
16877 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16880 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
16881 TARGET_MMX_WITH_SSE.
16882 (mmx_pshufw_1): Add SSE emulation.
16883 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
16884 TARGET_MMX_WITH_SSE to support SSE emulation.
16886 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16889 * config/i386/constraints.md (Yw): New constraint.
16890 * config/i386/mmx.md (*vec_dupv2si): Changed to
16891 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
16892 support SSE emulation.
16894 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16897 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
16898 TARGET_MMX_WITH_SSE.
16899 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
16901 (mmx_gt<mode>3): Likewise.
16903 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16906 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
16907 TARGET_MMX_WITH_SSE. Add SSE support.
16909 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16912 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
16913 TARGET_MMX_WITH_SSE.
16914 (any_logic:<code><mode>3): New.
16915 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
16918 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16921 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
16922 TARGET_MMX_WITH_SSE. Add SSE emulation.
16923 (mmx_<shift_insn><mode>3): Likewise.
16924 (ashr<mode>3): New.
16925 (<shift_insn><mode>3): Likewise.
16927 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16930 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
16931 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
16933 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16936 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
16937 TARGET_MMX_WITH_SSE.
16938 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
16941 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16944 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
16945 TARGET_MMX_WITH_SSE.
16947 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
16950 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16953 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
16954 (plusminus:mmx_<plusminus_insn><mode>3): Check
16955 TARGET_MMX_WITH_SSE.
16956 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
16957 (<plusminus_insn><mode>3): New.
16958 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
16959 (*mmx_<plusminus_insn><mode>3): Likewise.
16961 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16964 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
16965 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
16967 * config/i386/mmx.m (mmx_punpckhbw): Changed to
16968 define_insn_and_split to support SSE emulation.
16969 (mmx_punpcklbw): Likewise.
16970 (mmx_punpckhwd): Likewise.
16971 (mmx_punpcklwd): Likewise.
16972 (mmx_punpckhdq): Likewise.
16973 (mmx_punpckldq): Likewise.
16975 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16976 Uros Bizjak <ubizjak@gmail.com>
16979 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
16981 (ix86_split_mmx_pack): Likewise.
16982 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
16984 (ix86_split_mmx_pack): Likewise.
16985 * config/i386/i386.md (mmx_isa): New.
16986 (enabled): Also check mmx_isa.
16987 * config/i386/mmx.md (any_s_truncate): New code iterator.
16988 (s_trunsuffix): New code attr.
16989 (mmx_packsswb): Removed.
16990 (mmx_packssdw): Likewise.
16991 (mmx_packuswb): Likewise.
16992 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
16993 MMX packsswb/packuswb with SSE2.
16994 (mmx_packssdw): Likewise.
16995 * config/i386/predicates.md (register_mmxmem_operand): New.
16997 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
17000 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17001 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
17002 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
17003 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
17004 (ix86_vector_mode_supported_p): Likewise.
17005 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
17007 2019-05-15 Martin Liska <mliska@suse.cz>
17009 PR middle-end/90478
17010 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
17011 Check for overflow.
17013 2019-05-15 Richard Biener <rguenther@suse.de>
17015 * tree-into-ssa.c (pass_build_ssa::execute): Run
17016 update_address_taken before going into SSA.
17018 2019-05-15 Richard Biener <rguenther@suse.de>
17020 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
17021 as __BIT_FIELD_REF with type with -gimple.
17023 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
17025 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
17026 semantically equivalent branches (left over after prior refactorings).
17028 2019-05-15 Richard Biener <rguenther@suse.de>
17030 PR tree-optimization/88828
17031 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
17034 2019-05-14 Richard Biener <rguenther@suse.de>
17036 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
17037 as __VIEW_CONVERT with -gimple.
17039 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
17042 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
17045 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
17047 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
17048 define_split to become a define_insn_and_split.
17050 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
17052 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
17054 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
17055 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
17056 (sibcall_epilogue): Adjust.
17057 (epilogue): Adjust.
17059 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17061 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
17062 to unsupported ones.
17063 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
17064 * config.host: Likewise.
17065 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
17066 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
17067 __svr4__]: Remove "brand" fallback.
17068 [!KSTAT_DATA_STRING]: Remove.
17069 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
17071 (comdat_group): Likewise.
17072 (set_have_as_tls): Likewise.
17073 (gcc_cv_target_dl_iterate_phdr): Likewise.
17074 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
17075 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
17076 * configure: Regenerate.
17077 * doc/install.texi: Simplify Solaris target triplets.
17078 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
17079 (Specific, *-*-solaris2*): Document Solaris 10 removal.
17080 Remove Solaris 10 references.
17081 Remove obsolete Solaris bug reference.
17082 (Specific, sparc-sun-solaris2.10): Remove.
17084 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
17086 * config/i386/i386.md (any_div): New code iterator.
17087 (paired_mod): New code attribute.
17088 (sgnprefix): Handle DIV and UDIV RTXes.
17090 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
17091 and udivmod<mode>4 patterns using any_div code iterator.
17092 (divmod splitters): Macroize splitters using any_div code iterator.
17093 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
17094 (*udivmodsi4_pow2_zext_2): Ditto.
17095 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
17096 and *udivmod<mode>4_noext patterns using any_div code iterator.
17097 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
17098 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
17099 patterns using any_div code iterator.
17100 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
17101 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
17102 patterns using any_div code iterator.
17103 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
17104 udivmodhiqi3 patterns using any_extend code iterator.
17106 2019-05-14 Richard Biener <rguenther@suse.de>
17107 H.J. Lu <hongjiu.lu@intel.com>
17109 PR tree-optimization/88828
17110 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
17111 permuting in a single non-constant element not extracted
17114 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
17116 * internal-fn.def (SIGNBIT): New.
17117 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
17119 (signbitv4sf2): Likewise.
17121 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
17124 * config/mips/mips.c (mips_split_move): Skip forward SRC into
17125 next insn when the SRC reg is dead.
17127 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
17129 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
17130 (alloc_cand_and_find_basis): Ditto.
17131 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
17132 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
17133 (create_add_imm_cand, slsr_process_cast): Ditto.
17134 (slsr_process_copy, replace_mult_candidate): Ditto.
17135 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
17136 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
17137 (pass_strength_reduction::execute): Init the first NULL element.
17139 2019-05-13 Nathan Sidwell <nathan@acm.org>
17141 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
17142 (run_attempt): Reformat line break.
17144 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
17147 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
17148 data registers in sibcall epilogues.
17149 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
17151 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
17154 * configure.ac (--enable-frame-pointer):
17155 Disable by default for cygwin and mingw.
17156 * configure: Regenerate.
17158 2019-05-13 Nathan Sidwell <nathan@acm.org>
17160 * dwarf2out.c (breakout_comdat_types): Move comment to correct
17162 (const_ok_for_output_1): Balance parens around #if/#else/#endif
17163 (gen_member_die): Move abstract origin check earlier. Only VARs
17164 can be static_inline_p. Simplify splicing control flow.
17166 2019-05-13 Richard Biener <rguenther@suse.de>
17168 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
17170 (vect_build_slp_tree_1): Likewise.
17172 2019-05-13 Richard Biener <rguenther@suse.de>
17174 PR tree-optimization/90402
17175 * tree-if-conv.c (tree_if_conversion): Value number only
17176 the loop body by making the latch an exit of the region
17178 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
17180 (do_rpo_vn): Deal with multiple edges into the entry block
17181 that are not backedges inside the region by skipping PHIs
17182 of the entry block.
17184 2019-05-13 Richard Biener <rguenther@suse.de>
17186 PR tree-optimization/90316
17187 * tree-ssa-pre.c (insert_aux): Fold into ...
17188 (insert): ... this function. Use a RPO walk to reduce the
17189 number of required iterations.
17191 2019-05-13 Martin Liska <mliska@suse.cz>
17193 PR tree-optimization/90416
17194 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
17195 string instead of passing the second part as va_arg argument.
17197 2019-05-13 Martin Liska <mliska@suse.cz>
17199 PR gcov-profile/90380
17200 * gcov.c (handle_cycle): Do not support zero cycle count,
17201 it should not be possible.
17202 (path_contains_zero_cycle_arc): New function.
17203 (circuit): Ignore zero cycle arc counts.
17205 2019-05-13 Martin Liska <mliska@suse.cz>
17207 PR gcov-profile/90380
17208 * gcov.c (enum loop_type): Remove the enum and
17210 (handle_cycle): Assert that we should not reach
17212 (circuit): Use loop_found instead of a tri-state loop_type.
17213 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
17216 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
17219 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
17220 (ix86_output_indirect_branch_via_reg): Use output mechanism
17221 accounting for __USER_LABEL_PREFIX__.
17222 (ix86_output_indirect_branch_via_push): Likewise.
17223 (ix86_output_function_return): Likewise.
17224 (ix86_output_indirect_function_return): Likewise.
17226 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
17228 * doc/md.texi: Document use of code attributes in rtx patterns.
17229 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
17230 * read-rtl.c (find_code): Split out search loops into...
17231 (maybe_find_code): ...this new function.
17232 (check_code_iterator): Make the error message more informative.
17233 (check_code_attribute): New function.
17234 (rtx_reader::rtx_alloc_for_name): Likewise.
17235 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
17236 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
17237 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
17238 <max_opp> directly as an rtx code instead of via a match_operator.
17239 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
17240 (<su>abd<mode>_3): Update accordingly.
17242 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
17244 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
17245 is given, print the state of the EH "save world" computation for
17248 2019-05-11 Jakub Jelinek <jakub@redhat.com>
17251 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
17252 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
17254 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
17256 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
17257 Use pinsrd for TARGET_SSE4_1.
17258 * config/i386/sse.md (movdi_to_sse): Ditto.
17260 2019-05-10 Richard Biener <rguenther@suse.de>
17262 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
17263 (do_rpo_vn): Initialize next_value_id.
17265 2019-05-10 Martin Liska <mliska@suse.cz>
17267 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17270 2019-05-10 Jakub Jelinek <jakub@redhat.com>
17272 PR tree-optimization/90385
17273 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
17274 arguments of the exit phis.
17277 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
17278 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
17280 (copy_tree_body_r): Likewise.
17281 (copy_fn): Set id.do_not_fold to true.
17283 2019-05-10 Martin Liska <mliska@suse.cz>
17285 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
17286 Reapply changes from r269790.
17288 2019-05-10 Martin Liska <mliska@suse.cz>
17290 PR middle-end/90340
17291 * doc/invoke.texi: New params.
17292 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
17293 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
17294 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
17296 * tree-switch-conversion.h (struct jump_table_cluster):
17299 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
17301 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
17303 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
17305 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
17307 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
17309 PR rtl-optimization/88879
17310 * sel-sched.c (sel_target_adjust_priority): Remove assert.
17312 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
17315 * config/arm/arm.c (callee_saved_reg_p): Move before
17316 thumb_find_work_register.
17317 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
17318 thumb_find_work_register. Only call df_get_live_out once.
17319 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
17320 (thumb_find_work_register): Use
17321 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
17322 algorithms to locate a spare call clobbered reg.
17324 2019-05-09 Martin Liska <mliska@suse.cz>
17326 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
17327 and MAX_EXPR in GIMPLE FE format.
17329 2019-05-09 Martin Liska <mliska@suse.cz>
17331 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
17332 * gimple-pretty-print.c (dump_gimple_bb_header):
17334 (pp_cfg_jump): Dump edge probability.
17335 * profile-count.c (profile_quality_as_string): Simplify
17336 with a static array.
17337 (parse_profile_quality): New function.
17338 (profile_count::dump): Simplify with a static array.
17339 (profile_count::from_gcov_type): Add new argument.
17340 * profile-count.h (parse_profile_quality): Likewise.
17341 * predict.h (set_hot_bb_threshold): New.
17342 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17344 * predict.c (get_hot_bb_threshold): Set from the new param.
17345 (set_hot_bb_threshold): New.
17347 2019-05-09 Richard Biener <rguenther@suse.de>
17349 PR tree-optimization/90395
17350 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
17351 rewrite vector stores that throw internally.
17353 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
17355 * cif-code.def (CHKP): Remove.
17358 * configure.ac (--enable-frame-pointer): Disable by default for
17360 * configure: Regenerate.
17362 2019-05-09 Alan Modra <amodra@gmail.com>
17365 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
17366 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
17367 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
17368 cost for general <-> vsx when direct moves are available.
17369 Cost union classes at minimal cost for any reg in the class.
17370 Correct calculation for moves between vsx, float, and altivec.
17371 Don't return a low cost for moves between special regs. Don't
17372 use hard coded register numbers.
17373 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
17374 (rs6000_ira_change_pseudo_allocno_class): New function.
17375 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
17376 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
17378 (movsi_internal1): Don't disparage vector alternatives.
17379 (mov<mode>_internal): Likewise, excepting alternative that
17381 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
17382 we <- b alternative.
17384 2019-05-08 Jakub Jelinek <jakub@redhat.com>
17387 PR tree-optimization/89060
17388 * tree-ssa-live.h (live_vars_map): New typedef.
17389 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
17390 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
17391 (struct compute_live_vars_data): New type.
17392 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
17393 live_vars_at_stmt, destroy_live_vars): New functions.
17394 * tree-tailcall.c: Include tree-ssa-live.h.
17395 (live_vars, live_vars_vec): New global variables.
17396 (find_tail_calls): Perform variable life analysis before punting.
17397 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
17398 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
17400 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
17401 Perform variable life analysis to select variables that really need
17403 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
17404 instead set id->eh_landing_pad_dest and assert it is the same.
17405 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
17407 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
17408 Richard Earnshaw <rearnsha@arm.com>
17411 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
17413 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
17414 (thumb1_compute_save_core_reg_mask): Don't force a spare work
17415 register if both the epilogue and prologue can use call-clobbered
17417 (thumb1_unexpanded_epilogue): Use
17418 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
17419 picking temporaries for restoring high regs to match that of the
17420 prologue where possible.
17421 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
17422 the list of work registers. Detect if the return address is still live
17423 at the end of the prologue and avoid using it for a work register if so.
17424 If the return address is not live, add LR to the list of pushable regs
17425 after the first pass.
17427 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
17429 PR tree-optimization/90078
17430 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
17431 (INFTY): Increase the value for infinite cost.
17432 (struct comp_cost): Promote type of members to int64_t.
17433 (infinite_cost): Don't set complexity in initialization.
17434 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
17435 overflows to infinite_cost.
17436 (adjust_setup_cost): Promote type of parameter and cost computation
17438 (struct ainc_cost_data, struct iv_ca): Promote type of member to
17440 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
17441 cost computation to int64_t.
17442 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
17443 int64_t's format specifier in dump.
17445 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
17447 PR tree-optimization/90240
17448 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
17449 with respect to scaling factor pre-computed for each basic block.
17450 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
17451 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
17452 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
17453 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
17454 live range for array of loop's basic blocks. Cleanup aux field of
17455 loop's basic blocks.
17457 2019-05-08 Jakub Jelinek <jakub@redhat.com>
17459 PR tree-optimization/90356
17460 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
17462 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
17464 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
17465 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
17466 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
17467 (ix86_handle_option): Handle -mavx512bf16.
17468 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
17470 * config/i386/avx512bf16vlintrin.h: New.
17471 * config/i386/avx512bf16intrin.h: New.
17472 * config/i386/cpuid.h (bit_AVX512BF16): New.
17473 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
17474 * config/i386/i386-builtin-types.def: Add new types.
17475 * config/i386/i386-builtin.def: Add new builtins.
17476 * config/i386/i386-c.c (ix86_target_macros_internal): Define
17478 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
17479 (ix86_option_override_internal): Handle BF16.
17480 (ix86_valid_target_attribute_inner_p): Ditto.
17481 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
17482 * config/i386/i386-builtin.c (enum processor_features): Add
17484 (static const _isa_names_table isa_names_table): Ditto.
17485 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
17486 (PTA_AVX512BF16): Ditto.
17487 * config/i386/i386.opt: Add -mavx512bf16.
17488 * config/i386/immintrin.h: Include avx512bf16intrin.h
17489 and avx512bf16vlintrin.h.
17490 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
17491 avx512f_cvtneps2bf16_<mode><mask_name>,
17492 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
17493 * config/i386/subst.md (mask_half): Add new subst.
17494 * doc/invoke.texi: Document -mavx512bf16.
17496 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
17498 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
17499 Delete declaration.
17500 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
17501 (rs6000_debug_legitimize_reload_address): Delete.
17502 (rs6000_legitimize_reload_address_ptr): Delete.
17503 (rs6000_option_override_internal): Adjust.
17504 (mem_operand_gpr): Adjust comment.
17505 (legitimate_lo_sum_address_p): Ditto.
17506 (rs6000_legitimize_reload_address): Delete.
17507 (rs6000_debug_legitimize_reload_address): Delete.
17508 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
17510 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
17513 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17514 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
17515 to compute vector element selector for both constant and variable
17518 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
17520 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
17521 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
17522 ashrdi3_cvt using SWI48 mode iterator.
17524 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17526 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
17527 (aarch64_<su>abd<mode>_3): Likewise.
17528 (*aarch64_<su>abd<mode>_3): New define_insn.
17529 (<sur>sad<vsi2qi>): New define_expand.
17530 * config/aarch64/iterators.md: Added MAX_OPP attribute.
17531 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
17532 (build_vect_cond_expr): Likewise.
17534 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
17536 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
17537 clobbers outside of accessible_reg_set.
17538 * config/i386/i386.c (ix86_conditional_register_usage):
17539 Disable register sets by clearing corresponding bits in
17540 accessible_reg_set. Do not set corresponding bits in fixed_regs,
17541 call_used_regs and don't clear corresponding reg_names array members.
17543 2019-05-07 Richard Biener <rguenther@suse.de>
17545 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
17546 not specified still compute a comp_vectype for invariant
17549 2019-05-07 Richard Biener <rguenther@suse.de>
17551 PR tree-optimization/90316
17552 * tree-ssa-pre.c (translate_vuse_through_block): When
17553 same_valid is NULL do not bother to search for a virtual
17555 (phi_translate_1): When operands changed we cannot keep
17556 the same value-number so do not bother to ask whether
17557 that's possible from translate_vuse_through_block.
17559 2019-05-07 Martin Liska <mliska@suse.cz>
17561 * bitmap.c (bitmap_register): Come up with
17562 alloc_descriptor_max_uid and assign it for
17564 (register_overhead): Use get_descriptor as
17566 (release_overhead): New.
17567 (bitmap_elem_to_freelist): Call it.
17568 (bitmap_elt_clear_from): Likewise.
17569 (bitmap_obstack_free): Likewise.
17570 (bitmap_move): Sensitively release memory.
17571 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
17572 (bitmap_initialize): Initialize alloc_descriptor to zero.
17573 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
17575 2019-05-07 Richard Biener <rguenther@suse.de>
17577 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
17578 we build a SLP node. Remove max_size and limiting.
17579 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
17581 2019-05-07 Richard Biener <rguenther@suse.de>
17583 PR tree-optimization/90316
17584 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
17585 limit by reference.
17586 (walk_non_aliased_vuses): Take walking limit argument.
17587 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
17588 walking if it is reached instead of just counting.
17589 (get_continuation_for_phi): Likewise.
17590 (walk_non_aliased_vuses): Likewise, instead of leaving counter
17591 limiting to the callback.
17592 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
17593 (vn_reference_lookup_3): Likewise.
17594 (vn_reference_lookup_pieces): Likewise.
17595 (vn_reference_lookup): Likewise.
17596 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
17597 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
17598 (avail_exprs_stack::lookup_avail_expr): Likewise.
17600 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
17602 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
17603 for comparaible types in the second direction even if first one
17604 hits incomparable type.
17606 2019-05-07 Richard Biener <rguenther@suse.de>
17609 * lto-wrapper.c (debug_objcopy): Use the original filename
17610 including archive offset for the filename used for -save-temps.
17612 2019-05-07 Li Jia He <helijia@linux.ibm.com>
17614 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
17617 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
17618 Hongtao Liu <hongtao.liu@intel.com>
17622 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
17623 Modified, original implementation isn't correct.
17625 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17627 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
17628 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
17629 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
17630 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
17631 (FRAME_POINTER_REGNUM): Change numbering.
17632 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
17633 (alt_reg_names): Adjust.
17634 (rs6000_conditional_register_usage): Don't mark hard register 64 as
17636 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17637 (DWARF_FRAME_REGISTERS): Delete.
17638 (DWARF2_FRAME_REG_OUT): Fix whitespace.
17639 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17641 (REG_ALLOC_ORDER): Adjust.
17642 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
17643 (REG_CLASS_CONTENTS): Adjust.
17644 (RETURN_ADDR_RTX): Change comment.
17645 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
17647 (REGISTER_NAMES): Adjust.
17648 (ADDITIONAL_REGISTER_NAMES): Adjust.
17649 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17651 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17653 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
17655 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17656 (DWARF_FRAME_REGISTERS): Adjust.
17657 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17659 (REG_ALLOC_ORDER): Adjust.
17660 (enum reg_class): Delete SPR_REGS.
17661 (REG_CLASS_NAMES): Delete SPR_REGS.
17662 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
17663 (REGISTER_NAMES): Adjust.
17664 (ADDITIONAL_REGISTER_NAMES): Adjust.
17665 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17666 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
17667 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
17668 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
17669 (htm_spr_regno): Delete.
17670 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
17672 (rs6000_dbx_register_number): Adjust.
17674 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17676 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
17678 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17680 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
17681 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
17683 2019-05-06 Jakub Jelinek <jakub@redhat.com>
17685 PR tree-optimization/88709
17686 PR tree-optimization/90271
17687 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
17688 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
17689 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
17691 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
17692 of the store merging group is larger than
17693 PARAM_STORE_MERGING_MAX_SIZE parameter.
17694 (split_group): Add bzero_first argument. If set, always emit first
17695 the first store which must be = {} of the whole area and then for the
17696 rest of the stores consider all zero bytes as paddings.
17697 (imm_store_chain_info::output_merged_store): Check if first store
17698 is = {} of the whole area and if yes, determine which setting of
17699 bzero_first for split_group gives smaller number of stores. Adjust
17700 split_group callers.
17701 (lhs_valid_for_store_merging_p): Allow decls.
17702 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
17704 (pass_store_merging::process_store): Likewise.
17706 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
17709 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17710 handling of V1TImode.
17712 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
17715 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
17716 and enable_frame_pointer ...
17717 * configure.ac: ... here. Update help strings for
17718 --enable-frame-pointer.
17719 * configure: Regenerate.
17720 * config/i386/i386-options.c (ix86_option_override_internal): Remove
17721 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
17722 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
17723 (USE_X86_64_FRAME_POINTER): Ditto.
17725 2019-05-06 Martin Liska <mliska@suse.cz>
17727 * config.gcc: Append to target_gtfiles and fix indentation.
17729 2019-05-06 Richard Biener <rguenther@suse.de>
17731 PR tree-optimization/90358
17732 * tree-vect-stmts.c (get_group_load_store_type): Properly
17733 detect unused upper half of load.
17734 (vectorizable_load): Likewise.
17736 2019-05-06 Richard Biener <rguenther@suse.de>
17738 PR tree-optimization/88828
17739 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
17740 (simplify_vector_constructor): ...here. Handle constants in
17743 2019-05-06 Richard Biener <rguenther@suse.de>
17745 PR tree-optimization/90328
17746 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
17747 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
17748 is valid in the loop nest before using it.
17749 (initialize_data_dependence_relation): Adjust.
17750 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
17751 loop as loop-nest to dr_may_alias_p.
17753 2019-05-06 Richard Biener <rguenther@suse.de>
17755 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
17757 2019-05-06 Richard Biener <rguenther@suse.de>
17759 PR tree-optimization/90316
17760 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
17761 compute target on demand.
17762 (get_continuation_for_phi): Remove code walking stmts to
17763 get to a target virtual operand which could end up being
17766 2019-05-06 Martin Liska <mliska@suse.cz>
17769 * config/i386/i386-options.c (ix86_option_override_internal): Error only
17770 when -mabi is selected to a non-default version.
17772 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
17773 Martin Liska <mliska@suse.cz>
17775 * Makefile.in: Add lto-dump.texi.
17776 * cgraph.h: Add new functions get_visibility_string and
17777 get_symtab_type_string.
17778 * doc/gcc.texi: Include lto-dump section.
17779 * doc/lto-dump.texi: New file.
17780 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
17781 (parse_dump_option): Factor out this function.
17782 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
17783 (parse_dump_option): Export the function.
17784 * symtab.c (symtab_node::get_visibility_string): New function.
17785 (symtab_node::get_symtab_type_string): Likewise.
17787 2019-05-06 Martin Liska <mliska@suse.cz>
17789 * config/i386/i386-builtins.c: New file.
17790 * config/i386/i386-builtins.h: New file.
17791 * config/i386/i386-expand.c: New file.
17792 * config/i386/i386-expand.h: New file.
17793 * config/i386/i386-features.c: New file.
17794 * config/i386/i386-features.h: New file.
17795 * config/i386/i386-options.c: New file.
17796 * config/i386/i386-options.h: New file.
17797 * config.gcc: Add new files into extra_objs and
17799 * config/i386/i386.c: Split content of the file
17800 into newly introduced files.
17801 * config/i386/i386.h: Declare common variables
17803 * config/i386/t-i386: Define dependencies for new files.
17805 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
17808 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
17809 Restrict 'all' variant to 32-bit configurations.
17810 (unaligned_loadhiu): Likewise.
17811 (unaligned_storehi): Likewise.
17812 (unaligned_storesi): Likewise.
17813 (unaligned_loadhis): Disable when compiling for thumb1.
17815 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
17817 PR tree-optimization/90269
17818 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
17821 2019-05-03 Martin Liska <mliska@suse.cz>
17823 * hash-map.h: Add is_empty function.
17824 * hash-set.h: Likewise.
17825 * hash-table.h: Likewise.
17826 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
17827 elements () == 0 (and similar usages).
17828 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
17829 * gimplify.c (gimplify_bind_expr): Likewise.
17830 (gimplify_switch_expr): Likewise.
17831 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
17832 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
17833 * postreload-gcse.c (dump_hash_table): Likewise.
17834 (gcse_after_reload_main): Likewise.
17835 * predict.c (combine_predictions_for_bb): Likewise.
17836 * tree-parloops.c (reduction_phi): Likewise.
17837 (separate_decls_in_region): Likewise.
17838 (transform_to_exit_first_loop): Likewise.
17839 (gen_parallel_loop): Likewise.
17840 (gather_scalar_reductions): Likewise.
17841 (try_create_reduction_list): Likewise.
17842 * var-tracking.c (dump_vars): Likewise.
17843 (emit_notes_for_changes): Likewise.
17844 (vt_emit_notes): Likewise.
17846 2019-05-03 Richard Biener <rguenther@suse.de>
17848 PR tree-optimization/90316
17849 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
17852 2019-05-03 Richard Biener <rguenther@suse.de>
17854 * tree-vect-stmts.c (get_group_load_store_type): Avoid
17855 peeling for gaps by loading only lower halves of vectors
17857 (vectorizable_load): Likewise.
17859 2019-05-03 Richard Biener <rguenther@suse.de>
17861 PR middle-end/89518
17862 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
17864 2019-05-03 Richard Biener <rguenther@suse.de>
17866 PR middle-end/87314
17867 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
17868 Handle STRING_CST vs DECL or STRING_CST.
17870 2019-05-03 Richard Biener <rguenther@suse.de>
17872 PR tree-optimization/88963
17873 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
17874 vector loads feeding only BIT_FIELD_REFs to component
17875 loads. Rewrite stores fed by CONSTRUCTORs to component
17878 2019-05-03 Jakub Jelinek <jakub@redhat.com>
17880 * opts.h (finish_options): Remove lang_mask argument.
17881 (print_help, help_option_argument): Declare.
17882 * opts.c (print_help): Remove forward declaration, no longer static.
17883 (finish_options): Remove lang_mask argument, don't call print_help
17885 * opts-global.c (decode_options): Adjust finish_option caller, call
17888 PR tree-optimization/90303
17889 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
17890 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
17892 2019-05-03 Richard Biener <rguenther@suse.de>
17894 PR tree-optimization/89698
17895 * gimple-fold.c (canonicalize_constructor_val): Early out
17896 for constants, handle unfolded INTEGER_CSTs as they appear in
17897 C++ virtual table ctors.
17899 2019-05-03 Richard Biener <rguenther@suse.de>
17901 * passes.c (execute_function_todo): Remove dead code.
17903 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
17905 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
17906 the internal register number, for any "real" register.
17908 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
17910 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
17911 correct numbers for TFHAR, TFIAR, TEXASR.
17913 2019-05-02 Richard Biener <rguenther@suse.de>
17915 PR tree-optimization/89653
17916 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
17917 update-address-taken before the pass.
17918 * passes.def (pass_tree_loop_init): Put comment before it.
17920 2019-05-02 Richard Biener <rguenther@suse.de>
17922 PR tree-optimization/89509
17923 * tree-ssa-structalias.c (compute_dependence_clique): Look
17924 at the first subvar when determining whether it is restrict.
17926 2019-05-02 Richard Biener <rguenther@suse.de>
17928 PR tree-optimization/90273
17929 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
17930 useless debug stmts.
17932 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17934 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
17936 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
17938 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
17939 VEC_COND_EXPR be inserted to emulate a conditional internal function.
17940 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
17941 (vectorizable_reduction): Use the functions above to vectorize in a
17942 fully masked loop codes that don't have a conditional internal
17945 2019-05-02 Martin Liska <mliska@suse.cz>
17947 * cgraphclones.c: Call valid_attribute_p with 1 for
17949 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
17950 it's for target attribute.
17951 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
17952 Add new boolean argument.
17953 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
17955 (ix86_valid_target_attribute_tree): Pass target_clone_attr
17956 to ix86_valid_target_attribute_inner_p.
17957 (ix86_valid_target_attribute_p): Pass flags argument to
17958 ix86_valid_target_attribute_inner_p.
17959 (get_builtin_code_for_version): Use 0 as it's target attribute.
17961 2019-05-02 Martin Liska <mliska@suse.cz>
17963 * gcc.c (process_command): Add dummy file only
17965 * opts-global.c (decode_options): Pass lang_mask.
17966 * opts.c (print_help): New function.
17967 (finish_options): Print --help if help_option_argument
17969 (common_handle_option): Factor out content of OPT__help_
17971 * opts.h (finish_options): Add new argument.
17973 2019-05-02 Martin Liska <mliska@suse.cz>
17976 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
17977 With -minline-all-stringops use inline expansion using 4B loop.
17978 * doc/invoke.texi: Document the change of
17979 -minline-all-stringops.
17981 2019-05-01 Jeff Law <law@redhat.com>
17983 PR tree-optimization/88797
17984 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
17985 PHI feeds a conditional on the RHS of an assignment.
17987 2019-04-30 Andrew Waterman <andrew@sifive.com>
17988 Jim Wilson <jimw@sifive.com>
17990 * config/riscv/constraints.md (L): New.
17991 * config/riscv/predicates.md (lui_operand): New.
17992 (sfb_alu_operand): New.
17993 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
17994 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
17995 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
17996 * config/riscv/risc.md (type): Add sfb_alu.
17997 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
17998 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
17999 (branch_zero<mode>): Delete.
18000 (mov<mode>cc): New.
18001 (mov<GPR:mode><X:mode>cc): Likewise.
18002 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
18004 2019-04-30 Nathan Sidwell <nathan@acm.org>
18006 * tree.h (MARK_TS_EXP): New.
18008 2019-04-30 Martin Liska <mliska@suse.cz>
18010 * opts.c (enable_warning_as_error): Provide hints
18011 for unknown options.
18013 2019-04-30 Martin Liska <mliska@suse.cz>
18016 * doc/invoke.texi: Add missing dash for gas-locview-support
18017 and gno-as-locview-support.
18019 2019-04-30 Jakub Jelinek <jakub@redhat.com>
18022 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
18023 whitespace at the start of target attribute string.
18025 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18028 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
18029 Define __ARM_FEATURE_ATOMICS.
18031 2019-04-30 Martin Liska <mliska@suse.cz>
18033 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
18034 into built_in_function enum. Remove code for endp == 2 and
18035 use BUILT_IN_* constants.
18036 (gimple_fold_builtin): Call the function with fcode.
18038 2019-04-30 Martin Liska <mliska@suse.cz>
18040 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
18041 DECL_FUNCTION_CODE into ix86_builtins enum before
18042 the switch statement.
18044 2019-04-30 Jakub Jelinek <jakub@redhat.com>
18046 PR tree-optimization/89475
18047 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
18050 2019-04-30 Martin Liska <mliska@suse.cz>
18052 PR translation/90274
18053 * opts.c (print_filtered_help): Wrap string in _(...).
18055 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
18057 PR tree-optimization/90240
18059 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
18061 PR tree-optimization/90078
18062 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
18063 checks for infinite_cost overflow.
18065 2019-04-29 Jeff Law <law@redhat.com>
18067 * passes.def: Move -Wrestrict pass after copy propagation.
18069 2019-04-29 Maya Rashish <coypu@sdf.org>
18071 * config.gcc (default_gnu_indirect_function): Default to yes
18072 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
18073 sparc*-*-netbsd*, x86_64-*-netbsd*.
18075 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
18077 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
18078 where cond2 is NE_EXPR.
18079 (is_value_included_in): Update comment.
18081 2019-04-29 Richard Biener <rguenther@suse.de>
18083 PR tree-optimization/90278
18084 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
18085 EH on comparison simplification.
18087 2019-04-29 Jason Merrill <jason@redhat.com>
18089 PR c++/82081 - tail call optimization breaks noexcept
18090 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
18091 nothrow function to a might-throw function into a tail call.
18093 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
18095 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
18096 (DDR_INNER_LOOP): Likewise.
18097 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
18098 (initialize_data_dependence_relation): Likewise.
18099 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
18101 2019-04-29 Jakub Jelinek <jakub@redhat.com>
18103 PR rtl-optimization/90257
18104 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
18108 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
18112 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
18115 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
18118 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
18120 * lra-spills.c (lra_final_code_change): Remove useless move insns.
18122 2019-04-29 Richard Biener <rguenther@suse.de>
18124 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
18127 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
18129 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
18130 varasm.h, and netbsd-protos.h.
18132 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
18135 * config/i386/i386-protos.h (ix86_data_alignment): Change
18136 the second argument type to unsigned int.
18137 * config/i386/i386.c (ix86_data_alignment): Change "align"
18138 argument type to unsigned int.
18140 2019-04-27 Martin Liska <mliska@suse.cz>
18142 PR middle-end/90258
18143 * opt-suggestions.c (option_proposer::build_option_suggestions):
18144 When get_valid_option_values returns empty values, add the
18145 misspelling candidate.
18147 2019-04-26 Jim Wilson <jimw@sifive.com>
18149 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
18151 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
18152 Pass orig_mode to riscv_build_integer.
18153 (riscv_split_integer): Pass mode to riscv_move_integer.
18154 (riscv_legitimize_const_move): Likewise.
18155 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
18156 promoted_mode. Replace force_reg call with code to load constant into
18157 promoted reg and then subreg it for the store.
18158 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
18159 riscv_move_integer.
18161 2018-04-26 Eugene Sharygin <eush@ispras.ru>
18163 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
18166 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
18168 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
18169 commentary about the encoding of precision.
18171 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
18173 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
18174 * config/i386/t-freebsd64: New file.
18175 * config.gcc: Add the t-freebsd64 for multilib support.
18177 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
18179 * doc/extend.texi (vector_size): Add missing comma after @xref.
18181 2019-04-25 Jakub Jelinek <jakub@redhat.com>
18183 * BASE-VER: Set to 10.0.0.
18185 2019-04-25 Richard Biener <rguenther@suse.de>
18187 PR middle-end/89765
18188 * gimplify.c (gimplify_expr): Avoid turning a lvalue
18189 VIEW_CONVERT_EXPR into one operating on an rvalue.
18191 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
18194 * config/i386/i386.c (feature_priority): Moved to file scope.
18195 (processor_features): Likewise.
18196 (processor_model): Likewise.
18197 (_arch_names_table): Likewise.
18198 (arch_names_table): Likewise.
18199 (_feature_list): Removed.
18200 (feature_list): Likewise.
18201 (_isa_names_table): Moved to file scope. Add priority.
18202 (isa_names_table): Likewise.
18203 (get_builtin_code_for_version): Replace feature_list with
18204 isa_names_table. Update error message for P_ZERO priority.
18206 2019-04-25 Richard Biener <rguenther@suse.de>
18208 * tree-pass.h (make_pass_phi_only_cprop): Remove.
18209 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
18211 2019-04-24 Jeff Law <law@redhat.com>
18213 PR tree-optimization/90037
18214 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
18215 * passes.def: Replace all instance of phi-only cprop with the
18216 lattice propagator. Move propagation pass from after erroneous
18217 path isolation to before erroneous path isolation.
18218 * tree-ssa-phionlycprop.c: Remove.
18220 2019-04-24 Richard Biener <rguenther@suse.de>
18222 PR middle-end/90213
18223 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
18224 by size and BITS_PER_UNIT on poly-wide-ints.
18226 2019-04-25 Richard Biener <rguenther@suse.de>
18228 PR middle-end/90194
18229 * match.pd: Add pattern to simplify view-conversion of an
18232 2019-04-24 Clement Chigot <clement.chigot@atos.net>
18234 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
18235 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
18236 for Go on 32 bit AIX.
18237 * config/rs6000/aix72.h: Likewise.
18239 2019-04-24 Jakub Jelinek <jakub@redhat.com>
18242 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
18243 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
18245 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
18248 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
18249 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
18250 for restored hard frame pointer.
18251 (s390_sched_dependencies_evaluation): Implement new target hook.
18252 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
18254 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
18256 * config/arc/arc-options.def: Fix typos and spelling mistakes.
18257 * config/arc/arc.c (arc_init): Cleanup warning message.
18258 (arc_override_options): Likewise.
18260 2019-04-24 Jakub Jelinek <jakub@redhat.com>
18263 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
18264 a register if both if_true and if_false are MEMs.
18266 PR tree-optimization/90208
18267 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
18268 after labels of new_bb, not before them.
18270 PR tree-optimization/90211
18271 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
18272 which are not SSA_NAMEs.
18274 2018-04-23 Sudakshina Das <sudi.das@arm.com>
18276 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
18278 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
18280 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
18282 PR rtl-optimization/87979
18283 * modulo-sched.c (sms_schedule): Start ii value "mii" should
18286 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
18288 PR rtl-optimization/84032
18289 * modulo-sched.c (ps_insn_find_column): Change condition so that
18290 branch will always be the last insn in a row inside partial
18293 2019-04-23 Richard Biener <rguenther@suse.de>
18296 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
18297 dest_single_pred_p argument.
18298 (remove_forwarder_block): Adjust.
18299 (remove_forwarder_block_with_phi): Likewise.
18301 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18302 Bernd Edlinger <bernd.edlinger@hotmail.de>
18303 Jakub Jelinek <jakub@redhat.com>
18306 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
18307 if used with general-regs-only.
18308 (arm_conditional_register_usage): Don't add non-general regs if
18310 (arm_valid_target_attribute_rec): Handle general-regs-only.
18311 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
18313 (TARGET_HARD_FLOAT_SUB): Define.
18314 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
18315 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
18316 (TARGET_REALLY_IWMMXT2): Likewise.
18317 * config/arm/arm.opt: Add -mgeneral-regs-only.
18318 * doc/extend.texi: Document ARM general-regs-only target.
18319 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
18321 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
18323 PR tree-optimization/90078
18324 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
18325 checks for infinite_cost overflow.
18327 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
18329 PR tree-optimization/90021
18330 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
18331 and check univariate against it.
18332 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
18333 * tree-data-ref.c (add_other_self_distances): Pass new argument.
18335 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
18339 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
18342 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
18345 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
18347 * lra-spills.c (lra_final_code_change): Remove useless move insns.
18349 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
18351 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
18352 names using operand format, rather than hard-wired.
18353 (speculation_barrier): Likewise.
18355 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
18357 PR tree-optimization/88055
18358 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
18359 (gen_one_condition): Use it if !HONOR_NANS.
18361 2019-04-19 Jakub Jelinek <jakub@redhat.com>
18363 PR middle-end/90139
18364 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
18365 assign_temp instead of gen_reg_rtx.
18367 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
18369 PR translation/90118
18370 * config/aarch64/aarch64.c (aarch64_override_options_internal):
18371 Add missing space before %<.
18373 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
18375 PR rtl-optimization/87871
18376 * ira-lives.c (make_object_dead): Don't add conflicts to
18377 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
18379 2019-04-18 Martin Sebor <msebor@redhat.com>
18381 PR middle-end/89797
18382 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
18383 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
18384 assuming type size fits in SHWI.
18386 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
18389 * ipa-inline.c (flatten_function): New parameter UPDATE.
18390 (ipa_inline, early_inliner): Use it.
18392 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
18394 * fold-const.c (int_const_binop): Return early on failure.
18396 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
18398 PR middle-end/85164
18399 * combine.c (force_int_to_mode): Cast the argument rather than
18400 the result of known_alignment.
18401 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
18403 2019-04-18 Richard Biener <rguenther@suse.de>
18406 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
18408 (remove_forwarder_block): ... here.
18409 (remove_forwarder_block_with_phi): Also move debug stmts here.
18411 2019-04-18 Jakub Jelinek <jakub@redhat.com>
18413 PR translation/79183
18414 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
18415 inform where appropriate.
18417 2019-04-18 Richard Biener <rguenther@suse.de>
18419 * tree.c (get_qualified_type): Put found type variants at the
18420 head of the variant list.
18422 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18424 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
18426 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
18429 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
18430 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
18431 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
18432 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
18433 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
18435 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
18437 * ira-conflicts.c (print_allocno_conflicts): Always print something,
18438 even for allocno's with no conflicts.
18439 (print_conflicts): Print an extra newline.
18441 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18443 * auto-inc-dec.c (attempt_change): Set the alignment of the
18444 temporary memory to that of the original.
18446 2019-04-17 Joao Moreira <jmoreira@suse.de>
18448 * targhooks.c (default_print_patchable_function_entry): Emit
18449 __patchable_function_entries section with writable flags to allow
18450 relocation resolution.
18452 2019-04-17 Jonny Grant <jg@jguk.org>
18454 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
18456 2019-04-17 Jakub Jelinek <jakub@redhat.com>
18458 PR middle-end/90095
18459 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
18460 on lowpart SUBREGs.
18462 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
18464 * config/arc/arc.c (arc_init): Format diagnostic string.
18465 (arc_override_options): Likewise.
18466 (check_if_valid_regno_const): Likewise.
18467 (arc_reorg): Likewise.
18469 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
18472 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
18474 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
18476 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
18477 (*movdi_update1): Use Pmode.
18478 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
18479 (movdi_<mode>_update_stack): Rename to ...
18480 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
18482 (*movsi_update1): Use Pmode.
18483 (*movsi_update2): Use Pmode.
18484 (movsi_update): Rename to ...
18485 (movsi_<mode>_update): ... this. Use Pmode.
18486 (movsi_update_stack): Fix condition.
18487 (*movhi_update1): Use Pmode. Fix argument to
18488 avoiding_indexed_address_p.
18489 (*movhi_update2): Ditto.
18490 (*movhi_update3): Ditto.
18491 (*movhi_update4): Ditto.
18492 (*movqi_update1): Ditto.
18493 (*movqi_update2): Ditto.
18494 (*movqi_update3): Ditto.
18495 (*movsf_update1, *movdf_update1): Merge, rename to...
18496 (*mov<mode>_update1): This. Use Pmode. Fix argument to
18497 avoiding_indexed_address_p. Add "size" attribute.
18498 (*movsf_update2, *movdf_update2): Merge, rename to...
18499 (*mov<mode>_update2): This. Ditto.
18500 (*movsf_update3): Use Pmode. Fix argument to
18501 avoiding_indexed_address_p.
18502 (*movsf_update4): Ditto.
18503 (allocate_stack): Simplify condition. Adjust pattern names.
18505 2019-04-17 Jakub Jelinek <jakub@redhat.com>
18508 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
18509 whitespace at the start of target attribute string.
18511 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
18514 * config/rs6000/power9.md: Add store forwarding bypass.
18516 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
18519 * valtrack.c (dead_debug_insert_temp): Reset debug references
18520 to the return value of a call being removed.
18522 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18524 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
18525 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
18526 implement target hook.
18527 (arc_memory_move_cost): New function.
18528 (TARGET_REGISTER_MOVE_COST): Define.
18529 (TARGET_MEMORY_MOVE_COST): Likewise.
18530 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
18531 (MEMORY_MOVE_COST): Likewise.
18533 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18535 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
18536 (sibcall_value_insn): Likewise.
18537 * config/arc/constraints.md (Rs5): Remove.
18539 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18541 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
18542 for last two fake registers.
18543 (arc_conditional_register_usage): Make sure fake frame and arg
18544 pointer regs are in general regs class.
18545 (FRAME_POINTER_MASK): Remove.
18546 (RETURN_ADDR_MASK): Remove.
18547 (arc_must_save_register): Use hard frame regnum.
18548 (frame_restore_reg): Use hard_frame_pointer_rtx.
18549 (arc_save_callee_saves): Likewise.
18550 (arc_restore_callee_saves): Likewise.
18551 (arc_save_callee_enter): Likewise.
18552 (arc_restore_callee_leave): Likewise.
18553 (arc_save_callee_milli): Likewise.
18554 (arc_eh_return_address_location): Likewise.
18555 (arc_check_multi): Use hard frame regnum.
18556 (arc_can_eliminate): Likewise.
18557 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
18558 for register allocator.
18559 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
18560 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
18561 (FRAME_POINTER_REGNUM): Change it to a fake register.
18562 (HARD_FRAME_POINTER_REGNUM): Defined.
18563 (ARG_POINTER_REGNUM): Change it to a new fake register.
18564 (ELIMINABLE_REGS): Update.
18565 (REGISTER_NAMES): Update names.
18566 * config/arc/arc.md (LP_START): Remove.
18567 (LP_END): Likewise.
18568 (shift_si3_loop): Update pattern.
18570 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18572 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
18573 to avoid delay slot scheduling.
18574 (arc_must_save_register): Don't save SP.
18575 * config/arc/arc.md (stack_tie): Remove.
18576 (UNSPEC_ARC_STKTIE): Likewise.
18578 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
18579 Shiva Chen <shiva0217@gmail.com>
18581 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
18582 code gen with large shift amount.
18584 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
18586 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
18589 2019-04-16 Jakub Jelinek <jakub@redhat.com>
18592 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
18593 print -m64/-mx32/-m32 if it is true.
18594 (ix86_debug_options, ix86_function_specific_print): Pass true as
18595 ADD_ABI_P to ix86_target_string.
18596 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
18597 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
18598 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
18600 PR rtl-optimization/90082
18601 * dce.c (can_delete_call): New function.
18602 (deletable_insn_p, mark_insn): Use it.
18604 PR tree-optimization/90090
18605 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
18607 (is_division_by_square): Likewise. Formatting fix.
18609 2019-04-16 Richard Biener <rguenther@suse.de>
18611 PR tree-optimization/56049
18612 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
18613 equality check if alias-set zero will prevail.
18615 2019-04-15 Jeff Law <law@redhat.com>
18617 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
18618 size and alignment as unsigned.
18620 2019-04-15 Richard Biener <rguenther@suse.de>
18623 * tree-loop-distribution.c (destroy_loop): Preserve correct
18626 2019-04-15 Richard Biener <rguenther@suse.de>
18628 PR tree-optimization/90071
18629 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
18630 abnormal operands from def stmts.
18632 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
18634 PR rtl-optimization/89794
18635 * combine.c (count_auto_inc): New function.
18636 (try_combine): Count how many auto_inc expressions there were in the
18637 original instructions. Ensure we have the same number in the new
18638 instructions. Remove the code that tried to ensure auto_inc side
18639 effects on i1 and i0 are not lost.
18641 2019-04-15 Richard Biener <rguenther@suse.de>
18644 * tree.h (auto_var_p): Declare.
18645 * tree.c (auto_var_p): New function, split out from ...
18646 (auto_var_in_fn_p): ... here.
18647 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
18649 (new_var_info): Initialize it.
18650 (set_uids_in_ptset): Also set the shadow variable uid if required.
18651 (ipa_pta_execute): Postprocess points-to solutions assigning
18652 shadow variable uids for locals that may reach their containing
18653 function recursively.
18654 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
18655 assert but instead check whether the points-to solution is
18658 2019-04-15 Martin Jambor <mjambor@suse.cz>
18661 * cgraph.c (clone_of_p): Loop over clone chain for each step in
18664 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
18666 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
18668 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
18669 Kito Cheng <kito.cheng@gmail.com>
18670 Shiva Chen <shiva0217@gmail.com>
18672 * config/nds32/nds32-md-auxiliary.c
18673 (nds32_legitimize_pic_address): Use new PIC pattern.
18674 (nds32_legitimize_tls_address): Use new TLS pattern.
18675 (nds32_output_symrel): New.
18676 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
18677 (nds32_alloc_relax_group_id): Ditto.
18678 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
18679 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
18681 (nds32_group_tls_insn): Ditto.
18682 (nds32_group_float_insns): Ditto.
18683 * config/nds32/nds32.md (tls_le): New.
18686 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
18688 * configure: Add nds32 target for dwarf2 debug_line checking.
18689 * configure.ac: Regenerated.
18691 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
18694 * ipa-devirt.c (skip_in_fields_list_p): New.
18695 (odr_types_equivalent_p): Use it.
18697 2019-04-13 Jakub Jelinek <jakub@redhat.com>
18700 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
18701 instead of strncmp when checking for thumb and arm. Formatting fixes.
18703 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
18705 * doc/install.texi: Document --with-target-system-zlib.
18707 2019-04-12 Martin Sebor <msebor@redhat.com>
18713 * targhooks.c (default_vector_alignment): Avoid assuming
18714 argument fits in SHWI.
18715 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
18716 a shift expression.
18717 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
18719 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18721 PR rtl-optimization/89965
18722 * dce.c: Include rtl-iter.h.
18723 (struct check_argument_load_data): New type.
18724 (check_argument_load): New function.
18725 (find_call_stack_args): Check for loads from stack slots still tracked
18726 in sp_bytes and punt if any is found.
18728 * config/mips/loongson-mmiintrin.h: Fix up #error message.
18730 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
18732 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
18733 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
18735 2019-04-12 Martin Liska <mliska@suse.cz>
18737 PR middle-end/89970
18738 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
18740 (separate_attrs): Handle multiple 'default's.
18741 (expand_target_clones): Rework error handling code.
18743 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
18746 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
18747 mode of vector rather than mode of destination for move instruction.
18748 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
18749 Use QI inner mode with V16QI vector mode.
18751 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18754 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
18755 "invalid %%t operand" in output_operand_lossage message.
18757 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
18759 * config/s390/predicates.md (permute_pattern_operand): New
18761 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
18762 operand for the permute pattern.
18763 ("*vec_perm<mode>"): New insn definition.
18764 ("bswap<mode>"): Generate the permute pattern operand in the
18765 expander and perform the operand reloads for pre arch13 level
18767 ("*bswap<mode>_emu"): Rename to ...
18768 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
18769 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
18770 Add the USE operand for the permute pattern.
18771 ("*vec_set_bswap_vec<mode>"): Likewise.
18773 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18776 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
18777 and gcc_unreachable if it fails, just call tree_to_uhwi which
18778 verifies that too. Test TREE_CHAIN instead of list_length > 1.
18779 Start warning message with a lower-case letter. Formatting fixes.
18781 PR rtl-optimization/90026
18782 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
18783 successors, look for BARRIERs inside of the whole BB_FOOTER chain
18784 rather than just at the start of it. If e->src BB_FOOTER is not NULL
18785 in cfglayout mode, use emit_barrier_after_bb.
18787 2018-04-11 Steve Ellcey <sellcey@marvell.com>
18789 PR rtl-optimization/87763
18790 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
18793 2019-04-11 Tom de Vries <tdevries@suse.de>
18795 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
18796 max macro using statement expression.
18798 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
18800 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
18801 * xcoffout.c (xcoff_private_rodata_section_name): Define.
18802 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
18803 read_only_private_data_section using xcoff_private_rodata_section_name.
18804 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
18806 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
18809 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
18811 2019-04-11 Jakub Jelinek <jakub@redhat.com>
18813 PR rtl-optimization/89965
18814 * dce.c (sp_based_mem_offset): New function.
18815 (find_call_stack_args): Use sp_based_mem_offset.
18817 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
18819 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
18821 2019-04-11 Richard Biener <rguenther@suse.de>
18823 PR tree-optimization/90020
18824 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
18825 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
18826 * tree-ssa-pre.c (compute_avail): Use it to not put
18827 possibly trapping references after a call that might not
18828 return into EXP_GEN.
18829 * gcse.c (compute_hash_table_work): Do not elide
18830 marking a block containing a call if the call might not
18833 2019-04-11 Richard Biener <rguenther@suse.de>
18835 PR tree-optimization/90018
18836 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
18837 Test both SLP and interleaving variants.
18839 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
18841 * config/s390/8561.md: New file.
18842 * config/s390/driver-native.c (s390_host_detect_local_cpu):
18843 Add arch13 cpu model.
18844 * config/s390/s390-opts.h (enum processor_type): Likewise.
18845 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
18846 (s390_get_unit_mask): Likewise.
18847 (s390_is_fpd): Likewise.
18848 (s390_is_fxd): Likewise.
18849 * config/s390/s390.h (s390_tune_attr): Likewise.
18850 * config/s390/s390.md: Include arch13 pipeline description.
18851 * config/s390/s390.opt: Add arch13.
18853 2018-04-10 Steve Ellcey <sellcey@marvell.com>
18855 PR rtl-optimization/87763
18856 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
18858 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
18860 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
18862 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
18863 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
18864 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
18865 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
18867 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
18869 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
18870 "Although" in -fipa-icf documentation.
18872 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
18873 of using multiple -g options.
18875 2019-04-10 Martin Liska <mliska@suse.cz>
18877 PR gcov-profile/89959
18878 * doc/gcov.texi: Make documentation of -x option
18881 2019-04-10 Richard Biener <rguenther@suse.de>
18883 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
18885 (DR_GROUP_SAME_DR_STMT): Remove.
18886 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
18887 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
18888 replace with assert.
18889 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
18890 (vect_record_grouped_load_vectors): Remove unreachable code.
18892 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
18895 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
18896 obsolete reference to N.
18898 2019-04-10 Jakub Jelinek <jakub@redhat.com>
18900 PR middle-end/90025
18901 * expr.c (store_expr): Set properly size on the MEM passed to
18905 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
18906 with strlen in between hostsz-3 and hostsz-1 inclusive when no
18907 translation is needed, and when translation is needed, only append
18908 ... if the string length is hostsz or more bytes long. Avoid using
18911 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
18914 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
18915 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
18917 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
18918 differences directly.
18919 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
18921 2019-04-09 Jakub Jelinek <jakub@redhat.com>
18923 PR translation/90011
18924 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
18926 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
18928 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
18929 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
18930 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
18931 trailing space from -gsplit-dwarf diagnostics.
18933 PR tree-optimization/89998
18934 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
18935 instead of integer_type_node if possible, don't add ranges if return
18936 type is not compatible with int.
18937 * gimple-fold.c (gimple_fold_builtin_sprintf,
18938 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
18941 2019-04-09 Martin Liska <mliska@suse.cz>
18943 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
18944 * doc/install.texi: Document the new config.
18946 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
18948 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
18949 use gimple_expr_type for load and store calls. Skip over the
18950 condition argument in a conditional internal function.
18951 Protect use of TREE_INT_CST_LOW.
18953 2019-04-09 Jakub Jelinek <jakub@redhat.com>
18956 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
18957 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
18958 trailing period from it too.
18960 2019-04-08 wu yuan <wuyuan5@huawei.com>
18962 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
18963 * config/aarch64/aarch64.md : Add "tsv110.md"
18964 * config/aarch64/tsv110.md: New file.
18966 2019-04-08 Richard Biener <rguenther@suse.de>
18968 PR tree-optimization/90006
18969 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
18972 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
18975 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
18977 (fma_root_node): Likewise.
18978 (func_fma_steering): Likewise.
18980 2019-04-08 Jakub Jelinek <jakub@redhat.com>
18982 PR rtl-optimization/89865
18983 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
18985 PR rtl-optimization/89865
18986 * config/i386/i386.md
18987 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
18988 numbers not to clash with the additional operands[4].
18989 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
18990 with extra register copy in the middle.
18992 2019-04-08 Martin Liska <mliska@suse.cz>
18994 PR gcov-profile/89961
18995 * doc/gcov.texi: Document data_file.
18996 * gcov.c (generate_results): Add data_info into JSON output.
18998 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
19000 PR tree-optimization/89725
19001 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
19002 loop's chrec as invariant symbol.
19003 * tree-chrec.h (chrec_contains_symbols): New parameter.
19004 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
19005 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
19006 function of loops not in DDR's loop_nest.
19007 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
19009 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
19012 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
19015 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
19018 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
19019 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
19021 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
19023 * sched-deps.c (sched_macro_fuse_insns): Check return value of
19024 targetm.fixed_condition_code_regs.
19026 2019-04-05 Richard Biener <rguenther@suse.de>
19030 * tree-cfgcleanup.c (remove_forwarder_block): Always move
19031 debug bind stmts but reset them if they are not valid at the
19034 2019-04-05 Martin Liska <mliska@suse.cz>
19036 PR translation/89936
19037 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
19038 order to wrap keywords or arguments.
19039 * collect2.c (main): Likewise.
19040 (scan_prog_file): Likewise.
19041 (scan_libraries): Likewise.
19042 * common/config/riscv/riscv-common.c
19043 (riscv_subset_list::parsing_subset_version): Likewise.
19044 (riscv_subset_list::parse_std_ext): Likewise.
19045 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19047 * config/arm/arm.c (arm_option_override): Likewise.
19048 * config/cris/cris.c (cris_print_operand): Likewise.
19049 * config/darwin-c.c (darwin_pragma_options): Likewise.
19050 (darwin_pragma_unused): Likewise.
19051 (darwin_pragma_ms_struct): Likewise.
19052 * config/ft32/ft32.c (ft32_print_operand): Likewise.
19053 * config/i386/i386.c (print_reg): Likewise.
19054 (ix86_print_operand): Likewise.
19055 * config/i386/xm-djgpp.h: Likewise.
19056 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
19057 * config/m32c/m32c.c (m32c_option_override): Likewise.
19058 * config/msp430/msp430.c (msp430_option_override): Likewise.
19059 * config/nds32/nds32.c (nds32_option_override): Likewise.
19060 * config/nvptx/mkoffload.c (main): Likewise.
19061 * config/rx/rx.c (rx_print_operand): Likewise.
19062 (valid_psw_flag): Likewise.
19063 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
19064 (vms_pragma_nomember_alignment): Likewise.
19065 (vms_pragma_extern_model): Likewise.
19066 * lto-wrapper.c (compile_offload_image): Likewise.
19067 * omp-offload.c (oacc_parse_default_dims): Likewise.
19068 * symtab.c (symtab_node::verify_base): Likewise.
19069 * tlink.c (recompile_files): Likewise.
19070 (start_tweaking): Likewise.
19071 * tree-profile.c (parse_profile_filter): Likewise.
19073 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
19075 PR tree-optimization/89956
19076 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
19077 multiple negates of the same value.
19079 2019-04-04 Martin Sebor <msebor@redhat.com>
19081 PR middle-end/89957
19082 PR middle-end/89911
19083 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
19084 have the same precision since the function crashes otherwise.
19085 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
19086 has non-zero arguments.
19088 2019-04-04 Martin Sebor <msebor@redhat.com>
19090 PR middle-end/89934
19091 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
19092 out if the number of arguments is less than expected.
19094 2019-04-04 Jeff Law <law@redhat.com>
19096 PR rtl-optimization/89399
19097 * ree.c (combine_set_extension): Use single_set rather than
19098 digging into PATTERN for items on the candidate list.
19099 (combine_reaching_defs): Likewise.
19101 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
19103 PR rtl-optimization/46590
19104 * loop-invariant.c (find_defs): Move df_remove_problem and
19105 df_process_deferred_rescans to move_invariants.
19106 Move df_live_add_problem and df_live_set_all_dirty calls
19107 to move_invariants.
19108 (move_invariants): Likewise.
19109 (move_loop_invariants): Likewise, making the df_live calls
19110 conditional on -O. Remove the problem again if we added it
19113 2019-04-03 qing zhao <qing.zhao@oracle.com>
19115 PR tree-optimization/89730
19116 * ipa-inline.c (can_inline_edge_p): Delete the checking for
19117 -flive-patching=inline-only-static.
19118 (can_inline_edge_by_limits_p): Add the checking for
19119 -flive-patching=inline-only-static and grant always_inline
19120 even when -flive-patching=inline-only-static is specified.
19122 2019-04-03 Jeff Law <law@redhat.com>
19124 PR rtl-optimization/81025
19125 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
19127 2019-04-03 Richard Biener <rguenther@suse.de>
19129 PR tree-optimization/84101
19130 * tree-vect-stmts.c: Include explow.h for hard_function_value,
19131 regs.h for hard_regno_nregs.
19132 (cfun_returns): New helper.
19133 (vect_model_store_cost): When vectorizing a store to a decl
19134 we return and the function ABI returns in a multi-reg location
19135 account for the possible spilling that will happen.
19137 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
19139 * config/s390/s390.c (s390_legitimate_address_p): Reject long
19140 displacement addresses for vector mode operands.
19142 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
19144 * config/arc/arc.c (GMASK_LEN): Define.
19145 (arc_restore_callee_saves): Restore first blink when
19148 2019-04-03 Sudakshina Das <sudi.das@arm.com>
19150 * doc/extend.texi: Add deprecated comment on sign-return-address
19151 function attribute and add mbranch-protection.
19152 * doc/invoke.texi: Add bti to the options for mbranch-protection.
19154 2019-04-03 Richard Biener <rguenther@suse.de>
19157 * lto-wrapper.c (run_gcc): Avoid implicit rules making
19158 the all target phony.
19160 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
19164 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
19165 Return false for variable DImode shifts.
19166 (dimode_scalar_chain::compute_convert_gain): Do not handle
19167 register count operand in variable DImode shifts.
19168 (dimode_scalar_chain::make_vector_copies): Remove support to copy
19169 count argument of a variable shift instruction to a vector register.
19170 (dimode_scalar_chain::convert_reg): Remove support to convert
19171 count argument of a variable shift instruction.
19173 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
19175 PR rtl-optimization/84206
19176 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
19177 iterating over loop headers.
19179 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
19181 PR rtl-optimization/85876
19182 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
19183 beyond the original fence.
19185 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
19187 * config.gcc: Mark spu* targets as deprecated/obsolete.
19189 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19191 * config/s390/s390-builtin-types.def: New builtin function type
19192 definitions. Remove unused types.
19193 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
19194 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
19195 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
19196 overloaded builtins.
19197 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
19198 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
19199 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
19200 (vec_double, vec_signed, vec_unsigned): Define to use the new
19201 overloaded builtins.
19202 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
19205 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19207 * config/s390/s390-builtin-types.def: New builtin function type
19209 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
19210 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
19211 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
19212 (s390_vstrszh, s390_vstrszf): New low-level builtins.
19213 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
19214 constant definitions.
19215 * config/s390/vecintrin.h (vec_search_string_cc)
19216 (vec_search_string_until_zero_cc): New builtin name definitions.
19217 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
19219 ("vec_vstrs<mode>"): New insn definition.
19221 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19223 * config/s390/s390-builtin-types.def: Add new builtin function
19225 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
19226 New overloaded builtins.
19227 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
19229 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
19230 (UNSPEC_VEC_SLDBYTE): ... this.
19231 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
19232 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
19234 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
19235 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
19236 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
19238 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19240 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
19241 New insn definition.
19242 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
19243 * config/s390/vector.md (V_HW_HSD): ... here.
19245 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19247 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
19248 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
19249 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
19250 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
19251 New insn definitions.
19253 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19255 * config/s390/s390-builtin-types.def: Add new builtin function type.
19256 * config/s390/s390-builtins.def: Add overloaded builtin
19257 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
19258 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
19259 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
19260 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
19261 ("eltswap<mode>"): New expander.
19262 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
19265 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19267 * config/s390/s390-builtin-types.def: Add new builtin function types.
19268 * config/s390/s390-builtins.def: Add overloaded builtin
19269 s390_vec_revb. Add low-level builtins for vlbr and vstbr
19271 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
19272 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
19273 ("bswap<mode>"): New expander.
19274 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
19276 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19278 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
19279 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
19280 vector builtin version number in __VEC__.
19282 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19284 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
19286 (SFSI): New mode attribute.
19287 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
19288 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
19290 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
19291 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
19292 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
19293 ("floatsi<mode>2"): Add wcefb instruction.
19295 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19297 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
19298 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
19300 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
19301 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
19302 support 32 bit fp-int conversions. Rename to ...
19303 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
19304 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
19305 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
19306 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
19309 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19311 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
19312 if-then-else constructs if we can use the select instruction.
19313 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
19315 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19317 * config/s390/s390.md ("*popcountdi_arch13_cc")
19318 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
19320 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
19321 Append _z196 to make it ...
19322 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
19323 ("popcounthi2_z196"): ... this.
19324 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
19325 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
19327 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19329 * config/s390/s390.c (s390_canonicalize_comparison): Convert
19330 certain compares for arch13 in order to make use of the condition
19331 code result produced by the new instructions.
19332 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
19333 nxrk, and nxgrk instruction patterns.
19334 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
19335 (inv_no): Add new code iterator together with some attributes.
19336 ("*andc_split_<mode>"): Disable splitter for arch13.
19337 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
19338 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
19339 ("*<ANDOR:bitops_name>c<GPR:mode>")
19340 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
19341 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
19342 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
19343 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
19345 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
19347 * common/config/s390/s390-common.c (processor_flags_table): New
19349 * config.gcc: Support arch13 with the --with-arch= configure flag.
19350 * config/s390/driver-native.c (s390_host_detect_local_cpu):
19351 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
19352 * config/s390/s390.c (s390_get_sched_attrmask)
19353 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
19354 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
19355 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
19356 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
19357 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
19359 * config/s390/s390.opt: Support arch13 as processor type in
19360 command line options.
19362 2019-04-02 Martin Liska <mliska@suse.cz>
19364 PR translation/89912
19365 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
19366 Fix param description of graphite-max-arrays-per-scop.
19368 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
19370 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
19371 (ASAN_CC1_SPEC): Use it in 64-bit mode.
19372 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
19374 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19376 PR rtl-optimization/85412
19377 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
19378 sel_sched_region_1, not after.
19380 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19382 PR rtl-optimization/86928
19383 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
19384 compute_live if necessary.
19385 (sel_redirect_edge_and_branch): Likewise.
19387 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
19389 PR rtl-optimization/89865
19390 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
19391 register if it is a part of small class.
19393 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
19395 PR rtl-optimization/87273
19396 * sel-sched-ir.c (merge_fences): Remove assert.
19398 2019-04-01 Richard Biener <rguenther@suse.de>
19400 PR tree-optimization/46590
19401 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
19402 (dom_walker::m_reachability): Add in place of...
19403 (dom_walker::m_skip_unreachable_blocks): ...this.
19404 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
19405 Move complex initialization ...
19406 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
19407 lazily and initialize edge flags on each invocation.
19408 (dom_walker::bb_reachable): Use m_reachability.
19410 2019-04-01 Martin Liska <mliska@suse.cz>
19413 * opt-suggestions.c (option_proposer::build_option_suggestions):
19414 Add variant without any argument in order to provide better
19417 2019-04-01 Richard Biener <rguenther@suse.de>
19420 * gimple.c: Include langhooks.h.
19421 (gimple_get_alias_set): Treat enumeral types as the underlying
19424 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
19425 Eric Botcazou <ebotcazou@adacore.com>
19427 PR rtl-optimization/89862
19428 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
19429 that operates on the full registers for WORD_REGISTER_OPERATIONS
19432 2019-03-29 Jim Wilson <jimw@sifive.com>
19434 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
19435 Clear MASK_RVC and then set if C subset supported.
19437 2019-03-29 Jakub Jelinek <jakub@redhat.com>
19440 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
19441 non-addressable complit into its initializer if it is volatile.
19443 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
19445 * opts-common.c (integral_argument): Set errno properly in one case.
19447 2019-03-29 Martin Liska <mliska@suse.cz>
19449 * doc/invoke.texi: Remove -Wchkp from documentation.
19451 2019-03-29 Martin Liska <mliska@suse.cz>
19453 * dbgcnt.c (print_limit_reach): New function.
19456 2019-03-29 Martin Liska <mliska@suse.cz>
19458 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
19459 (dbg_cnt_process_opt): Parse first tokens aas
19460 dbg_cnt_process_single_pair is also using strtok.
19462 2019-03-29 Jakub Jelinek <jakub@redhat.com>
19464 PR rtl-optimization/87485
19465 * function.c (expand_function_end): Move stack_protect_epilogue
19466 before loading of return value into hard register(s).
19468 2019-03-28 Jakub Jelinek <jakub@redhat.com>
19470 PR middle-end/89621
19471 * tree-inline.h (struct copy_body_data): Add
19472 dont_remap_vla_if_no_change flag.
19473 * tree-inline.c (remap_type_3, remap_type_2): New functions.
19474 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
19475 and remap_type_2 returns false.
19476 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
19477 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
19478 only from where it is copied to nested contexts.
19480 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
19483 * config/i386/i386.md (RMW operation with LEA peephole):
19484 Use LEAMODE mode attribute instead of SWI mode iterator for
19487 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
19490 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
19491 Also process XEXP (src, 0) of a shift insn.
19493 2019-03-28 David Malcolm <dmalcolm@redhat.com>
19495 PR middle-end/89725
19496 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
19497 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
19499 2019-03-28 Jakub Jelinek <jakub@redhat.com>
19501 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
19503 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
19504 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
19505 immediately after first one with df_analyze in between, but rather
19506 process all bbs, queueing ones that need second pass in a worklist,
19507 df_analyze, process queued debug insn changes and if second pass is
19508 needed, process bbs from worklist, df_analyze, process queued debug
19511 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
19512 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
19513 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
19515 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
19518 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
19521 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
19524 * config/i386/i386.c (ix86_function_value_1): Call the newly added
19525 function for 32-bit MS_ABI.
19526 (function_value_ms_32): New function.
19528 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
19530 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
19531 (movdi): Call gen_movdi_symbol_save_scc.
19532 (gen_movdi_symbol_save_scc): New insn and split.
19534 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
19536 PR rtl-optimization/89313
19537 * function.c (matching_constraint_num): New static function.
19538 (match_asm_constraints_1): Use it. Fixup white space and comment.
19539 Don't replace inputs with non-matching constraints which conflict
19540 with early clobber outputs.
19542 2019-03-27 Jeff Law <law@redhat.com>
19544 PR rtl-optimization/87761
19545 PR rtl-optimization/89826
19546 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
19548 (pass_cprop_hardreg::execute): Call df_analyze after adding the
19549 note problem to get REG_DEAD/REG_UNUSED notes updated.
19551 2019-03-27 Richard Biener <rguenther@suse.de>
19553 PR tree-optimization/89463
19554 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
19555 queue edges to remove.
19556 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
19557 dead stmts. Delay edge removal until PHIs are removed to
19558 make debug-stmt creation not confused by seemingly degenerate
19561 2019-03-27 Alan Modra <amodra@gmail.com>
19563 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
19565 * config/rs6000/darwin.h: Likewise.
19566 * config/rs6000/rs6000.c: Likewise.
19568 2019-03-27 Alan Modra <amodra@gmail.com>
19570 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
19571 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
19573 2019-03-26 Andrew Waterman <andrew@sifive.com>
19574 Jim Wilson <jimw@sifive.com>
19576 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
19577 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
19578 (generic_idivdi, generic_fmul_single, generic_fmul_double)
19579 (generic_fdiv, generic_fsqrt): Add check for generic tune.
19580 (generic_alu): Add auipc to type list.
19581 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
19582 (riscv_microarchitecture): Declare.
19583 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
19584 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
19586 (riscv_microarchitecture): New.
19587 (sifive_7_tune_info): New.
19588 (riscv_cpu_info_table): Add microarchitecture value for rocket and
19589 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
19591 (riscv_store_data_bypass_p): New.
19592 (riscv_option_override): Set riscv_microarchitecture from
19593 cpu->microarchitecture.
19594 * config/riscv/riscv.md: Include sifive-7.md.
19597 (auipc<mode>): Change type to auipc.
19598 (restore_stack_nonlocal): New.
19599 * config/riscv/sifive-7.md: New.
19600 * doc/invoke.texi (RISC-V Options): Update mtune docs.
19602 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
19605 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19606 Also process XEXP (src, 0) of a shift insn.
19608 2019-03-26 Richard Biener <rguenther@suse.de>
19610 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
19611 (copy_debug_stmt): Likewise.
19612 (expand_call_inline): Likewise.
19613 (copy_bb): Avoid redundant lookup & set of gimple_block.
19614 * gimple-low.c (lower_gimple_return): Likewise.
19615 (lower_builtin_setjmp): Likewise.
19617 2019-03-26 Jakub Jelinek <jakub@redhat.com>
19619 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
19620 is constant 0, turn into static const data member initialized to false.
19621 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
19622 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
19624 2019-03-26 Jason Merrill <jason@redhat.com>
19625 Jakub Jelinek <jakub@redhat.com>
19627 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
19629 (mem_alloc_description::release_object_overhead): Fix comment typos.
19630 * hash-table.h (hash_table::~hash_table): Call
19631 release_instance_overhead only if m_entries is non-NULL, otherwise
19632 call unregister_descriptor.
19634 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
19636 PR tree-optimization/81740
19637 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19638 In case of outer loop vectorization, check for backward dependence
19639 at the inner loop if outer loop dependence is reversed.
19641 2019-03-26 Alan Modra <amodra@gmail.com>
19643 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
19644 rs6000_vector_mem init. Correct wI and wJ comment.
19646 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
19648 PR rtl-optimization/88347
19649 PR rtl-optimization/88423
19650 * sched-deps.c (sched_analyze_insn): Take into account that for
19651 tablejumps the barrier appears after a label and a jump_table_data.
19653 2019-03-25 Martin Sebor <msebor@redhat.com>
19656 * c-common.c (check_user_alignment): Rename local. Correct maximum
19657 alignment in diagnostic. Avoid assuming argument fits in SHWI,
19658 convert it to UHWI when it fits.
19660 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
19663 * dwarf2out.c (premark_used_variables): New function.
19664 (prune_unused_types_walk): Do not mark not premarked external
19666 (prune_unused_types): Call premark_used_variables.
19668 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
19670 PR rtl-optimization/89676
19671 * lra-constraints.c (curr_insn_transform): Do match reload for
19672 early clobbers when the match was successful only for different
19675 2019-03-25 Martin Sebor <msebor@redhat.com>
19677 * doc/extend.texi (Common Type Attributes): Document vector_size.
19678 (Common Variable Attributes): Mention size constraint. Correct
19680 (Vector Extensions): Use @dfn when defining bas type. Clarify
19681 base type and size constraints.
19683 2019-03-25 Richard Biener <rguenther@suse.de>
19685 PR tree-optimization/89789
19686 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
19687 changes from non-undefined back to undefined.
19689 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
19691 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
19692 heap string and a gc string, but since this variable is unknown to
19693 ggc the gc string might get reused and corrupted. Fixed by always
19694 using a heap string.
19696 2019-03-25 Richard Biener <rguenther@suse.de>
19698 PR tree-optimization/89779
19699 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
19700 to remove IV defs, delay actual removal.
19701 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
19702 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
19703 very end, properly also reset loop control IV information.
19705 2019-03-25 Richard Biener <rguenther@suse.de>
19707 PR tree-optimization/89802
19708 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
19709 move EH data to folded stmt.
19711 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
19713 * config/s390/s390-builtin-types.def: Remove few unused types and
19714 fix sort order for others.
19716 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
19718 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
19719 expected and found types with -mdebug during builtin matching.
19721 2019-03-25 Richard Biener <rguenther@suse.de>
19723 PR middle-end/89790
19724 * fold-const.c (operand_equal_p): Revert last change with
19727 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
19729 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
19730 notes for the result of the __tls_get_addr calls.
19731 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
19733 2019-03-24 Jeff Law <law@redhat.com>
19735 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
19737 PR rtl-optimization/87761
19738 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
19739 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
19741 (pass_cprop_hardreg::execute): Add df note problem and defer insn
19742 rescans. Reprocess blocks as needed, calling df_analyze before
19743 reprocessing. Always call df_analyze before fixing up debug bind
19746 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
19748 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
19751 2019-03-22 Andrew Pinski <apinski@marvell.com>
19753 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
19754 attrribute for uxtw.
19756 2019-03-26 Jeff Law <law@redhat.com>
19758 PR rtl-optimization/87761
19759 * config/mips/mips-protos.h (mips_split_move): Add new argument.
19760 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
19761 (mips_split_move): Accept new INSN argument. Try to forward SRC
19762 into the next instruction.
19763 (mips_split_move_insn): Pass INSN through to mips_split_move.
19765 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
19767 PR rtl-optimization/89676
19768 * lra-constraints.c (curr_insn_transform): Do match reload for
19769 early clobbers even if the match was successful.
19771 2019-03-22 Jakub Jelinek <jakub@redhat.com>
19774 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
19776 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
19778 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
19780 2019-03-22 Jakub Jelinek <jakub@redhat.com>
19782 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
19783 <avx512>_fmsub_<mode>_mask3<round_name>,
19784 <avx512>_fnmadd_<mode>_mask3<round_name>,
19785 <avx512>_fnmsub_<mode>_mask3<round_name>,
19786 avx512f_vmfmadd_<mode>_mask3<round_name>,
19787 avx512f_vmfmsub_<mode>_mask3<round_name>,
19788 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
19789 instead of register_operand and %v instead of v for match_operand 1.
19790 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
19791 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
19792 <round_nimm_predicate> instead of register_operand and %v instead of v
19793 for match_operand 1.
19795 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
19796 <avx512>_fmadd_<mode>_mask3<round_name>,
19797 <avx512>_fmsub_<mode>_mask<round_name>,
19798 <avx512>_fmsub_<mode>_mask3<round_name>,
19799 <avx512>_fnmadd_<mode>_mask<round_name>,
19800 <avx512>_fnmadd_<mode>_mask3<round_name>,
19801 <avx512>_fnmsub_<mode>_mask<round_name>,
19802 <avx512>_fnmsub_<mode>_mask3<round_name>,
19803 <avx512>_fmaddsub_<mode>_mask<round_name>,
19804 <avx512>_fmaddsub_<mode>_mask3<round_name>,
19805 <avx512>_fmsubadd_<mode>_mask<round_name>,
19806 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
19807 <round_nimm_predicate> instead of nonimmediate_operand.
19808 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
19809 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
19810 Use register_operand instead of <round_nimm_predicate> for the
19811 operand that needs to match output.
19812 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
19813 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
19814 Likewise. Formatting fixes.
19817 * config/i386/i386.c (enum ix86_builtins): Remove
19818 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
19819 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
19820 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
19821 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
19822 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
19823 __builtin_ia32_vfmsubss3_mask3): New builtins.
19824 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
19825 avx512f_vmfmadd_<mode>_mask3<round_name>,
19826 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
19827 *avx512f_vmfmsub_<mode>_mask<round_name>,
19828 avx512f_vmfmsub_<mode>_mask3<round_name>,
19829 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
19830 *avx512f_vmfnmadd_<mode>_mask<round_name>,
19831 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
19832 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
19833 *avx512f_vmfnmsub_<mode>_mask<round_name>,
19834 avx512f_vmfnmsub_<mode>_mask3<round_name>,
19835 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
19836 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
19837 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
19838 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
19839 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
19840 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
19841 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
19842 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
19843 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
19844 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
19845 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
19846 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
19847 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
19848 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
19849 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
19850 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
19851 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
19852 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
19853 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
19854 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
19855 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
19856 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
19858 2019-03-21 Martin Sebor <msebor@redhat.com>
19860 PR tree-optimization/89350
19861 * builtins.c (compute_objsize): Also ignore offsets whose upper
19863 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
19864 (builtin_memref::builtin_memref): Initialize new member.
19865 Allow EXPR to be null.
19866 (builtin_memref::extend_offset_range): Replace local with a member.
19867 Avoid assuming pointer offsets are unsigned.
19868 (builtin_memref::set_base_and_offset): Determine base object
19869 before computing offset range.
19870 (builtin_access::builtin_access): Handle memset.
19871 (builtin_access::generic_overlap): Replace local with a member.
19872 (builtin_access::strcat_overlap): Same.
19873 (builtin_access::overlap): Same.
19874 (maybe_diag_overlap): Same.
19875 (maybe_diag_access_bounds): Same.
19876 (wrestrict_dom_walker::check_call): Handle memset.
19877 (check_bounds_or_overlap): Same.
19879 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
19880 Jakub Jelinek <jakub@redhat.com>
19883 * tree.c (fld_type_variant, fld_incomplete_type_of,
19884 fld_process_array_type): Call fld->pset.add and don't call
19885 add_tree_to_fld_list if it returns true.
19886 (free_lang_data_in_type): Similarly with self-recursive call. Purge
19887 non-marked types from TYPE_NEXT_VARIANT list.
19888 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
19890 2019-03-21 Jakub Jelinek <jakub@redhat.com>
19892 * hash-table.h (hash_table): Add Lazy template parameter defaulted
19893 to false, if true, don't alloc_entries during construction, but defer
19894 it to the first method that needs m_entries allocated.
19895 (hash_table::hash_table, hash_table::~hash_table,
19896 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
19897 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
19898 hash_table::clear_slot, hash_table::traverse_noresize,
19899 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
19900 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
19902 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
19903 NO_INSERT instead of find_with_hash.
19904 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
19905 hash_set::m_table): Add Lazy to template params of hash_table.
19906 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
19907 * attribs.c (test_attribute_exclusions): Likewise.
19908 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
19909 hash_set. Add tests for hash_set with Lazy = true.
19911 2019-03-21 Richard Biener <rguenther@suse.de>
19913 PR tree-optimization/89779
19914 * tree.c (tree_nop_conversion): Consolidate and fix defensive
19915 checks with respect to released SSA names now having error_mark_node
19917 * fold-const.c (operand_equal_p): Likewise.
19919 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
19922 * config/s390/s390.c (global_not_special_regno_p): Move to make it
19924 (s390_optimize_register_info): Use global_not_special_regno_p to
19925 check for global regs.
19927 2019-03-20 Jakub Jelinek <jakub@redhat.com>
19930 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
19931 update this_alternative nor this_alternative_set.
19933 2019-03-19 Jim Wilson <jimw@sifive.com>
19936 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
19937 align, size, offset. Use them to handle a BLKmode reference. Update
19939 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
19941 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19943 PR rtl-optimization/89768
19944 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
19945 instead of GEN_INT.
19946 (unroll_loop_runtime_iterations): Likewise.
19948 2019-03-19 Martin Sebor <msebor@redhat.com>
19950 PR tree-optimization/89644
19951 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
19952 rather than endptr as an indicator of nul-termination.
19954 PR tree-optimization/89644
19955 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
19956 arrays in determining sequence sizes in strncpy and stpncpy.
19958 2019-03-19 Martin Liska <mliska@suse.cz>
19960 PR middle-end/89737
19961 * predict.c (combine_predictions_for_bb): Empty likely_edges and
19962 unlikely_edges if there's an edge that belongs to both these sets.
19964 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
19967 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
19968 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
19969 go via a stack temporary.
19971 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19974 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
19975 instead of gen_rtx_SUBREG.
19976 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
19978 2019-03-19 Richard Biener <rguenther@suse.de>
19981 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
19983 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
19987 * tree.c (free_lang_data_in_decl): Do not free context of C++
19990 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19993 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
19994 subs for the first alternative except when operands[3] is 1.
19997 * gimplify.c (gimplify_asm_expr): For output argument with
19998 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
20001 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
20003 PR rtl-optimization/89753
20004 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20005 explicit unrolling factor even more robust.
20007 2019-03-19 Jakub Jelinek <jakub@redhat.com>
20010 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
20011 compensation use x2 += 1 instead of x2 -= -1 and when honoring
20012 signed zeros, do another copysign after the compensation.
20014 2019-03-18 Martin Sebor <msebor@redhat.com>
20016 PR tree-optimization/89720
20017 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
20018 more conservatively, the same as anti-range.
20020 2019-03-18 Richard Biener <rguenther@suse.de>
20022 PR middle-end/88945
20023 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
20024 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
20025 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
20026 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
20028 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
20030 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
20031 Extend queue to 1024 entries.
20032 Add "consumed" field.
20033 (gomp_print_output): Remove print_index parameter.
20034 Add final parameter.
20035 Change limit to unsigned.
20036 Use consumed field to implement circular buffer.
20037 Detect interrupted print in final pass.
20038 Flush output at the end.
20039 (run): Update gomp_print_output usage.
20040 (main): Initialize kernargs->output_data.consumed.
20042 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
20044 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
20045 calculation of the minimum number of scalar iterations for
20046 fully-predicated loops.
20048 2019-03-18 Martin Jambor <mjambor@suse.cz>
20050 PR tree-optimization/89546
20051 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
20052 any propagation to its children took place.
20054 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
20057 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
20058 parameter, and make use of it.
20059 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
20061 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
20063 * config/arc/arc.opt (mcode-density-frame): Get the inital value
20064 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
20065 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
20066 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
20067 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
20068 match what the ops is doing.
20069 (push_multi_fp_blink): Likewise.
20070 * config/arc/arc.c (arc_override_options): Enable enter/leave when
20071 compiling for size and elf target.
20072 (arc_save_callee_enter): Adjust note to match what enter/leave
20075 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
20077 * config/arc/arc.md (tst_movb): Fix constraint.
20079 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
20081 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
20083 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
20085 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
20086 * config/arc/arc.c (arc_conditional_register_usage): Remove all
20087 reg_alloc_order references.
20088 (size_alloc_order): Define.
20089 (arc_adjust_reg_alloc_order): New function.
20090 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
20092 (ADJUST_REG_ALLOC_ORDER): Define.
20093 (HONOR_REG_ALLOC_ORDER): Likewise.
20095 2019-03-18 Richard Biener <rguenther@suse.de>
20098 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
20099 loads and stores a bit more.
20101 2019-03-18 Richard Biener <rguenther@suse.de>
20104 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
20105 load pessimization to stores as well.
20107 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
20109 PR middle-end/86979
20110 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
20111 successor, use NULL as its av set.
20113 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
20115 PR rtl-optimization/89721
20116 * lra-constraints (invariant_p): Return false if side_effects_p holds.
20118 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
20121 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20122 When handling vec_extract, use modular arithmetic to allow
20123 constant selectors greater than vector length.
20124 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
20125 V1TImode vectors to have constant selector values greater than 0.
20126 Use modular arithmetic to compute vector index.
20127 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
20128 index for in-memory vectors. Correct code generation for
20129 in-register vectors.
20130 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
20133 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
20137 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
20140 2019-03-15 Jakub Jelinek <jakub@redhat.com>
20143 * tree.c (inchash::add_expr): Strip any location wrappers.
20144 * fold-const.c (operand_equal_p): Move stripping of location wrapper
20145 after hash verification.
20148 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
20149 SIGN_EXTEND and ZERO_EXTEND.
20151 2019-03-14 Jason Merrill <jason@redhat.com>
20152 Jakub Jelinek <jakub@redhat.com>
20154 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
20155 than if is_empty (*slot).
20156 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
20157 existing elt and for elt removal.
20158 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
20159 of already removed elt.
20161 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
20164 * config/i386/i386.c (remove_partial_avx_dependency): Handle
20165 REG_EH_REGION note.
20167 2019-03-14 Martin Liska <mliska@suse.cz>
20170 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
20172 2019-03-14 Richard Biener <rguenther@suse.de>
20175 * config/i386/i386.c (make_resolver_func): Properly set
20176 DECL_CONTEXT on the RESULT_DECL.
20177 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
20179 2019-03-14 Richard Biener <rguenther@suse.de>
20181 * gimple-pretty-print.c: Include cfgloop.h.
20182 (dump_gimple_phi): Adjust.
20183 (dump_gimple_bb_header): Dump loop header for GIMPLE.
20184 (pp_cfg_jump): Adjust.
20185 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
20186 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
20187 (lower_phi_internal_fn): Remove.
20188 (verify_gimple_call): Remove IFN_PHI special-casing.
20189 (dump_function_to_file): Dump IL state.
20190 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
20191 done to deal with PHI nodes being present in non-SSA state.
20193 2019-03-14 Jakub Jelinek <jakub@redhat.com>
20196 * multiple_target.c (create_dispatcher_calls): Change
20197 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
20198 In the node->iterate_referring loop, push *ref rather than ref, call
20199 ref->remove_reference () and always pass 0 to iterate_referring.
20201 PR rtl-optimization/89679
20202 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
20203 would contain a paradoxical SUBREG.
20205 2019-03-14 Richard Biener <rguenther@suse.de>
20207 PR tree-optimization/89710
20208 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
20211 2019-03-14 Martin Liska <mliska@suse.cz>
20213 * coverage.c (coverage_begin_function): Stream also
20215 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
20216 documentation about function declaration location.
20217 * gcov-dump.c (tag_function): Print whole range
20218 of function declaration.
20219 * gcov.c (struct function_info): Add end_column field.
20220 (function_info::function_info): Initialize it.
20221 (output_json_intermediate_file): Output {start,end}_column
20223 (read_graph_file): Read end_column.
20225 2019-03-14 Richard Biener <rguenther@suse.de>
20227 PR middle-end/89698
20228 * fold-const.c (operand_equal_p): For INDIRECT_REF check
20229 that the access types are similar.
20231 2019-03-14 Jakub Jelinek <jakub@redhat.com>
20233 PR tree-optimization/89703
20234 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
20235 aren't compatible also with builtin_decl_explicit. Check pure
20236 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
20237 and BUILT_IN_STPNCPY{,_CHK}.
20239 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
20242 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
20243 addr32 prefix to VSIB address for X32.
20244 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
20246 (*avx512pf_gatherpf<mode>df_mask): Likewise.
20247 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
20248 (*avx512pf_scatterpf<mode>df_mask): Likewise.
20249 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
20250 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
20251 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
20252 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
20253 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
20254 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
20255 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
20256 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
20257 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
20258 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
20259 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
20260 (*avx512f_scatterdi<mode>): Likewise.
20262 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
20265 * lra-constraints.c (inherit_in_ebb): Update
20266 potential_reload_hard_regs along with live_hard_regs.
20268 2019-03-13 Jakub Jelinek <jakub@redhat.com>
20271 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
20273 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
20275 2019-03-13 Martin Sebor <msebor@redhat.com>
20277 PR tree-optimization/89662
20278 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
20281 2019-03-13 Richard Biener <rguenther@suse.de>
20283 PR middle-end/89677
20284 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
20285 throw FP expressions at tree-affine.
20287 2019-03-14 Richard Biener <rguenther@suse.de>
20289 * tree-pretty-print.c (dump_generic_node): For -gimple properly
20290 dump negative integer constants using _Literal (type) -num.
20292 2019-03-13 Jakub Jelinek <jakub@redhat.com>
20294 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
20295 nonlocal_value member.
20297 PR middle-end/88588
20298 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
20299 (ipa_simd_modify_function_body): Handle PHIs.
20301 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
20303 * config/s390/s390.c (s390_option_override_internal): Use more
20304 aggressive inlining parameters.
20306 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
20308 * config/s390/3906.md: New file.
20309 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
20310 (LONGRUNNING_THRESHOLD): Remove.
20311 (MAX_SCHED_MIX_SCORE): Decrease.
20312 (MAX_SCHED_MIX_DISTANCE): Decrease.
20313 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
20314 (struct s390_sched_state): New struct to hold scheduling state.
20315 (S390_SCHED_STATE_NORMAL): Remove.
20316 (S390_SCHED_STATE_CRACKED): Remove.
20317 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
20318 (s390_get_sched_attrmask): Use new attribute.
20319 (s390_get_unit_mask): Use new units.
20320 (s390_is_fpd): New function.
20321 (s390_is_fxd): New function.
20322 (s390_is_longrunning): New function.
20323 (s390_sched_score): Use new functions.
20324 (s390_sched_reorder): Likewise.
20325 (s390_sched_variable_issue): Rework and use new functions.
20326 (s390_sched_init): Use new functions.
20327 * config/s390/s390.h (s390_tune_attr): Add z14.
20328 * config/s390/s390.md: Add z14.
20330 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
20332 * config/s390/2964.md: Update pipeline description.
20333 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
20334 (LONGRUNNING_THRESHOLD): Remove.
20335 (LATENCY_FACTOR): Remove.
20336 (s390_get_unit_mask): Add unit.
20337 (s390_sched_score): Use fxd/fpd.
20338 (s390_sched_variable_issue): Use fxd/fpd.
20340 2019-03-12 Martin Liska <mliska@suse.cz>
20342 * config/i386/i386.c: Reword an error message.
20344 2019-03-12 Martin Jambor <mjambor@suse.cz>
20346 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
20347 terminate with newline.
20349 2019-03-12 Jakub Jelinek <jakub@redhat.com>
20352 * config/s390/s390.md (tabort): Use %wd instead of
20353 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
20354 letters and periods.
20355 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
20356 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
20359 PR middle-end/89663
20360 * builtins.c (expand_builtin_int_roundingfn,
20361 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
20362 gcc_unreachable if validate_arglist fails.
20364 2019-03-12 Richard Biener <rguenther@suse.de>
20366 PR tree-optimization/89664
20367 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
20368 free the occurance tree after the early out.
20370 2019-03-11 Jakub Jelinek <jakub@redhat.com>
20372 PR middle-end/89655
20374 * vr-values.c (vr_values::update_value_range): If
20375 old_vr->varying_p (), don't update it, make new_vr also VARYING
20378 2019-03-11 Martin Liska <mliska@suse.cz>
20380 * config/aarch64/aarch64.c (aarch64_override_options_internal):
20381 Fix double string quoting.
20383 2019-03-11 Martin Liska <mliska@suse.cz>
20385 * collect-utils.c (collect_wait): Wrap apostrophes
20386 in gcc internal format with %'.
20387 * collect2.c (main): Likewise.
20388 (scan_prog_file): Likewise.
20389 (scan_libraries): Likewise.
20390 * config/i386/i386.c (ix86_expand_call): Likewise.
20391 (ix86_handle_interrupt_attribute): Likewise.
20392 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
20393 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20394 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
20395 * lto-wrapper.c (find_crtoffloadtable): Likewise.
20396 * symtab.c (symtab_node::verify_base): Likewise.
20397 * tree-cfg.c (verify_gimple_label): Likewise.
20398 * tree.c (verify_type_variant): Likewise.
20400 2019-03-11 Martin Liska <mliska@suse.cz>
20402 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
20403 in a string format message and fix GNU coding style.
20404 (expand_builtin_set_thread_pointer): Likewise.
20405 * common/config/aarch64/aarch64-common.c
20406 (aarch64_rewrite_selected_cpu): Likewise.
20407 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
20408 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
20409 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
20410 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
20411 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
20412 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
20413 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
20414 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
20415 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
20416 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
20418 * common/config/riscv/riscv-common.c
20419 (riscv_subset_list::parsing_subset_version): Likewise.
20420 (riscv_subset_list::parse_std_ext): Likewise.
20421 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20422 (riscv_subset_list::parse): Likewise.
20423 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
20424 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
20425 (aarch64_override_options_internal): Likewise.
20426 (aarch64_validate_mcpu): Likewise.
20427 (aarch64_validate_march): Likewise.
20428 (aarch64_validate_mtune): Likewise.
20429 (aarch64_override_options): Likewise.
20430 * config/alpha/alpha.c (alpha_option_override): Likewise.
20431 * config/arc/arc.c (arc_init): Likewise.
20432 (parse_mrgf_banked_regs_option): Likewise.
20433 (arc_override_options): Likewise.
20434 (arc_expand_builtin_aligned): Likewise.
20435 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
20436 (arm_expand_builtin): Likewise.
20437 * config/arm/arm.c (arm_option_check_internal): Likewise.
20438 (arm_configure_build_target): Likewise.
20439 (arm_option_override): Likewise.
20440 (arm_options_perform_arch_sanity_checks): Likewise.
20441 (arm_handle_cmse_nonsecure_entry): Likewise.
20442 (arm_handle_cmse_nonsecure_call): Likewise.
20443 (arm_tls_referenced_p): Likewise.
20444 (thumb1_expand_prologue): Likewise.
20445 * config/avr/avr.c (avr_option_override): Likewise.
20446 * config/bfin/bfin.c (bfin_option_override): Likewise.
20447 * config/c6x/c6x.c (c6x_option_override): Likewise.
20448 * config/cr16/cr16.c (cr16_override_options): Likewise.
20449 * config/cris/cris.c (cris_option_override): Likewise.
20450 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
20451 * config/darwin-c.c (macosx_version_as_macro): Likewise.
20452 * config/darwin.c (darwin_override_options): Likewise.
20453 * config/frv/frv.c (frv_expand_builtin): Likewise.
20454 * config/h8300/h8300.c (h8300_option_override): Likewise.
20455 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
20456 (ix86_option_override_internal): Likewise.
20457 (warn_once_call_ms2sysv_xlogues): Likewise.
20458 (ix86_expand_prologue): Likewise.
20459 (split_stack_prologue_scratch_regno): Likewise.
20460 (ix86_warn_parameter_passing_abi): Likewise.
20461 * config/ia64/ia64.c (fix_range): Likewise.
20462 * config/m68k/m68k.c (m68k_option_override): Likewise.
20463 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
20464 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
20465 (mips_set_compression_mode): Likewise.
20466 * config/mmix/mmix.c (mmix_option_override): Likewise.
20467 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
20468 * config/msp430/msp430.c (msp430_option_override): Likewise.
20469 * config/nds32/nds32.c (nds32_option_override): Likewise.
20470 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
20471 (nios2_option_override): Likewise.
20472 (nios2_expand_custom_builtin): Likewise.
20473 * config/nvptx/mkoffload.c (main): Likewise.
20474 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
20475 * config/pa/pa.c (fix_range): Likewise.
20476 (pa_option_override): Likewise.
20477 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
20478 (riscv_option_override): Likewise.
20479 * config/rl78/rl78.c (rl78_option_override): Likewise.
20480 * config/rs6000/aix61.h: Likewise.
20481 * config/rs6000/aix71.h: Likewise.
20482 * config/rs6000/aix72.h: Likewise.
20483 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
20484 * config/rs6000/freebsd64.h: Likewise.
20485 * config/rs6000/linux64.h: Likewise.
20486 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
20487 (rs6000_expand_zeroop_builtin): Likewise.
20488 (rs6000_expand_mtfsb_builtin): Likewise.
20489 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
20490 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
20491 (rs6000_invalid_builtin): Likewise.
20492 (rs6000_expand_split_stack_prologue): Likewise.
20493 * config/rs6000/rtems.h: Likewise.
20494 * config/rx/rx.c (valid_psw_flag): Likewise.
20495 (rx_expand_builtin): Likewise.
20496 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
20497 * config/s390/s390.c (s390_expand_builtin): Likewise.
20498 (s390_function_profiler): Likewise.
20499 (s390_option_override_internal): Likewise.
20500 (s390_option_override): Likewise.
20501 * config/sh/sh.c (sh_option_override): Likewise.
20502 (sh_builtin_saveregs): Likewise.
20503 (sh_fix_range): Likewise.
20504 * config/sh/vxworks.h: Likewise.
20505 * config/sparc/sparc.c (sparc_option_override): Likewise.
20506 * config/spu/spu.c (spu_option_override): Likewise.
20507 (fix_range): Likewise.
20508 * config/visium/visium.c (visium_option_override): Likewise.
20509 (visium_handle_interrupt_attr): Likewise.
20510 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
20511 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
20512 (dbg_cnt_process_opt): Likewise.
20513 * dwarf2out.c (output_dwarf_version): Likewise.
20514 * except.c (expand_eh_return): Likewise.
20515 * gcc.c (defined): Likewise.
20516 (driver_handle_option): Likewise.
20517 (process_command): Likewise.
20518 (compare_files): Likewise.
20519 (driver::prepare_infiles): Likewise.
20520 (driver::do_spec_on_infiles): Likewise.
20521 (driver::maybe_run_linker): Likewise.
20522 * omp-offload.c (oacc_parse_default_dims): Likewise.
20523 * opts-global.c (handle_common_deferred_options): Likewise.
20524 * opts.c (parse_sanitizer_options): Likewise.
20525 (common_handle_option): Likewise.
20526 (enable_warning_as_error): Likewise.
20527 * passes.c (enable_disable_pass): Likewise.
20528 * plugin.c (parse_plugin_arg_opt): Likewise.
20529 (default_plugin_dir_name): Likewise.
20530 * targhooks.c (default_expand_builtin_saveregs): Likewise.
20531 (default_pch_valid_p): Likewise.
20532 * toplev.c (init_asm_output): Likewise.
20533 (process_options): Likewise.
20534 (toplev::run_self_tests): Likewise.
20535 * tree-cfg.c (verify_gimple_call): Likewise.
20536 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
20537 (tree_inlinable_function_p): Likewise.
20538 * var-tracking.c (vt_find_locations): Likewise.
20540 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
20542 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
20543 only on the else branch.
20545 2019-03-11 Martin Liska <mliska@suse.cz>
20547 * gcov.c (output_intermediate_json_line): Print function
20549 (output_json_intermediate_file): Add new argument.
20550 * doc/gcov.texi: Document the change.
20552 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
20554 PR rtl-optimization/89588
20555 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20556 explicit unrolling factor more robust.
20558 2019-03-11 Richard Biener <rguenther@suse.de>
20560 PR tree-optimization/89649
20561 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
20562 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
20563 on the prolog and epilog loops.
20564 (vect_loop_versioning): Return copy of loop.
20565 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
20566 on the non-vectorized version of the loop.
20568 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
20571 * config/i386/sse.md (*vec_extractv2di_0_sse):
20572 Add (=r,x) alternative and corresponding splitter.
20574 2019-03-10 Martin Jambor <mjambor@suse.cz>
20576 PR tree-optimization/85762
20577 PR tree-optimization/87008
20578 PR tree-optimization/85459
20579 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
20580 it points to if there is a type changing MEM_REF. Adjust all callers.
20581 (build_accesses_from_assign): Disable total scalarization if
20582 contains_vce_or_bfcref_p returns true through the new parameter, for
20585 2019-03-09 Jakub Jelinek <jakub@redhat.com>
20588 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
20589 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
20592 * common.opt (fdiagnostics-show-labels,
20593 fdiagnostics-show-line-numbers, fdiagnostics-format=,
20594 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
20595 gas-locview-support, ginline-points, ginternal-reset-location-views):
20596 Terminate description text with a dot.
20597 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
20598 * config/mcore/mcore.opt (m210, m340): Likewise.
20599 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
20600 mnops=): Start description text with a capital letter.
20601 * config/arc/arc.opt (msize-level=): Likewise.
20602 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
20603 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
20604 mnewlib): Likewise.
20605 * config/ft32/ft32.opt (msim): Likewise.
20606 (mft32b, mcompress): Likewise. Terminate description text with a dot.
20607 (mnodiv, mnopm): Terminate description text with a dot.
20608 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
20610 * config/i386/i386.opt (prefer_vector_width, instrument_return):
20612 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
20615 PR rtl-optimization/89634
20616 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
20617 are modified in BB_END (e->src) instruction.
20619 2019-03-08 David Malcolm <dmalcolm@redhat.com>
20622 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
20623 messages more amenable to translation, and improve wording.
20625 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
20627 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
20628 ud- and du-chains between phases.
20630 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
20633 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
20634 instead of POLY_INT_CST.
20636 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
20638 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
20641 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
20646 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
20647 (_mm_storeu_si64): Ditto.
20649 2019-03-08 Martin Liska <mliska@suse.cz>
20652 * config/i386/i386.c (ix86_option_override_internal): Disable
20653 jump tables when retpolines are used.
20655 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
20658 * ipa-split.c (execute_split_functions): Do not split
20659 'noinline' or 'section' function.
20661 2019-03-08 Jakub Jelinek <jakub@redhat.com>
20664 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
20665 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
20666 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
20669 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20670 from diagnostics. Formatting fixes.
20673 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
20674 warn_odr diagnostics.
20677 * lra-constraints.c (process_alt_operands): Avoid one space before
20678 " at the end of line and another after " on another line in a string
20680 * attribs.c (handle_dll_attribute): Likewise.
20681 * config/avr/avr-devices.c (avr_texinfo): Likewise.
20683 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
20684 warning_at or inform messages in G_() if there is no ?:.
20686 PR tree-optimization/89550
20687 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
20688 returned true. Formatting fixes.
20689 (expand_builtin_strnlen): Formatting fixes.
20690 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
20691 if warning_at returned true.
20692 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
20694 2019-03-08 Richard Biener <rguenther@suse.de>
20696 PR middle-end/89578
20697 * cfgloop.h (struct loop): Add owned_clique field.
20698 * cfgloopmanip.c (copy_loop_info): Copy it.
20699 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
20701 * tree-inline.c (copy_loops): Remap owned_clique.
20702 * lto-streamer-in.c (input_cfg): Stream owned_clique.
20703 * lto-streamer-out.c (output_cfg): Likewise.
20705 2019-03-08 Jakub Jelinek <jakub@redhat.com>
20708 * config/darwin.c: Include intl.h.
20709 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
20710 composing the message out of two separate parts.
20712 2019-03-07 Jakub Jelinek <jakub@redhat.com>
20715 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
20716 doesn't start with a capital letter and doesn't end with a dot.
20717 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
20718 with a capital letter.
20719 (ix86_mangle_function_version_assembler_name): Likewise.
20720 (ix86_generate_version_dispatcher_body): Likewise.
20721 (fold_builtin_cpu): Likewise.
20722 (get_builtin_code_for_version): Likewise. Remove extraneous space.
20723 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
20724 translators, wrap full type name in %qs.
20726 PR translation/79999
20727 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
20728 depend clause with source (or sink) modifier.
20729 * omp-expand.c (expand_omp_ordered_sink): Likewise.
20732 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
20733 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
20734 (avx512f_load<mode>_mask): New define_expand.
20735 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
20736 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
20737 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
20738 __builtin_ia32_movess_mask): New builtins.
20739 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
20740 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
20741 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
20742 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
20744 2019-03-07 Martin Jambor <mjambor@suse.cz>
20747 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
20748 for extern inline functions.
20750 2019-03-07 Martin Jambor <mjambor@suse.cz>
20753 * cgraph.h (cgraph_node): New inline method former_thunk_p.
20754 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
20755 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
20756 have multiple callees. At the end check if declarations match as
20757 opposed to cgraph_nodes.
20759 2019-03-07 Martin Liska <mliska@suse.cz>
20761 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
20762 which is equivalent to searching for this in clones chain.
20763 * symtab.c (symtab_node::verify_base): Similarly compare ASM
20764 names with a neighbour and special case first node in a chain.
20766 2019-01-25 Jason Merrill <jason@redhat.com>
20768 PR c++/80916 - spurious "static but not defined" warning.
20769 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
20770 for an internal symbol with DECL_EXTERNAL.
20772 2019-04-07 Richard Biener <rguenther@suse.de>
20774 PR middle-end/89618
20775 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
20776 * tree-inline.c (copy_loops): Simplify.
20778 2019-03-07 Martin Liska <mliska@suse.cz>
20780 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
20782 2019-03-07 Richard Biener <rguenther@suse.de>
20784 PR tree-optimization/89595
20785 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
20786 stmt iterator as reference, take boolean output parameter to
20787 indicate whether the stmt was removed and thus the iterator
20789 (dom_opt_dom_walker::before_dom_children): Re-iterate over
20790 stmts created by folding.
20792 2019-03-07 Jakub Jelinek <jakub@redhat.com>
20795 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
20798 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
20800 PR rtl-optimization/88845
20801 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
20803 * lra.c (remove_scratches_1): New function.
20804 (remove_scratches): Use it.
20805 (lra_emit_move): Likewise.
20807 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
20809 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
20810 unaligned_access variable.
20811 * config/arc/arc.c (arc_override_options): Set unaligned access
20812 default on for HS CPUs.
20813 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
20815 2019-03-06 Martin Liska <mliska@suse.cz>
20817 PR gcov-profile/89577
20818 * doc/gcov.texi: Prefer to use --coverage.
20819 * doc/sourcebuild.texi: Likewise.
20821 2019-03-02 Jason Merrill <jason@redhat.com>
20823 PR c++/86485 - -Wmaybe-unused with empty class ?:
20824 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
20826 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20829 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
20832 PR middle-end/89590
20833 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
20834 exactly one argument.
20836 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20837 Richard Sandiford <richard.sandiford@arm.com>
20839 PR tree-optimization/89570
20840 * match.pd (vec_cond into cond_op simplification): Don't use
20841 get_conditional_internal_fn, use as_internal_fn (cond_op).
20843 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
20846 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
20847 to decide when to split off a non-zero offset from a symbol.
20848 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
20849 in function symbols.
20851 2019-03-05 Richard Biener <rguenther@suse.de>
20853 PR tree-optimization/89594
20854 * tree-if-conv.c (pass_if_conversion::execute): Handle
20855 case where .LOOP_VECTORIZED_FUNCTION was removed.
20857 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20860 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
20861 instead alloca it only when needed with the needed size.
20863 PR tree-optimization/89570
20864 * match.pd (vec_cond into cond_op simplification): Guard with
20865 vectorized_internal_fn_supported_p test and #if GIMPLE.
20867 PR tree-optimization/89566
20868 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
20869 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
20870 Punt if get_user_idx_format succeeds, but idx_format argument is
20871 not provided or doesn't have pointer type, or if idx_args is above
20872 number of provided arguments.
20874 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
20876 PR tree-optimization/89437
20877 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
20879 2019-03-04 Richard Biener <rguenther@suse.de>
20881 PR middle-end/89572
20882 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
20885 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
20887 PR tree-optimization/89487
20888 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
20889 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
20890 (distribute_loop): Don't do runtime alias check if there is non-
20891 addressable data reference.
20892 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
20893 is a register variable.
20895 2019-03-02 Jakub Jelinek <jakub@redhat.com>
20898 * config/arm/arm.md (cmpsi2_addneg): Use
20899 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
20900 If operands[2] is 0 or INT_MIN, force use of subs.
20901 (*compare_scc splitter): Use gen_int_mode.
20902 (*negscc): Likewise.
20903 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
20905 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
20906 Monk Chiang <sh.chiang04@gmail.com>
20908 * common/config/riscv/riscv-common.c: Include sstream.
20909 (riscv_subset_list::to_string): New.
20910 (riscv_arch_str): Likewise.
20911 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
20912 * config.in: Regen.
20913 * config/riscv/riscv-protos.h (riscv_arch_str): New.
20914 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
20915 (riscv_emit_attribute): New.
20916 (riscv_file_start): Emit attribute if needed.
20917 (riscv_option_override): Init riscv_emit_attribute_p.
20918 * config/riscv/riscv.opt (mriscv-attribute): New option.
20919 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
20920 * configure: Regen.
20921 * doc/install.texi: Document --with-riscv-attribute.
20922 * doc/invoke.texi: Document -mriscv-attribute.
20924 * common/config/riscv/riscv-common.c:
20925 Include config/riscv/riscv-protos.h.
20926 (INCLUDE_STRING): Defined.
20927 (RISCV_DONT_CARE_VERSION): Defined.
20928 (riscv_subset_t): Declare.
20929 (riscv_subset_t::riscv_subset_t): New.
20930 (riscv_subset_list): Declare.
20931 (riscv_subset_list::riscv_subset_list): New.
20932 (riscv_subset_list::~riscv_subset_list): Likewise.
20933 (riscv_subset_list::parsing_subset_version): Likewise.
20934 (riscv_subset_list::parse_std_ext): Likewise.
20935 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20936 (riscv_subset_list::add): Likewise.
20937 (riscv_subset_list::lookup): Likewise.
20938 (riscv_subset_list::xlen): Likewise.
20939 (riscv_subset_list::parse): Likewise.
20940 (riscv_supported_std_ext): Likewise.
20941 (current_subset_list): Likewise.
20942 (riscv_parse_arch_string): Using riscv_subset_list::parse to
20945 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
20947 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20948 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
20949 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
20951 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
20953 PR rtl-optimization/85899
20954 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
20955 fallthru edges leading to the exit block.
20957 2019-03-01 Tamar Christina <tamar.christina@arm.com>
20960 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
20961 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
20963 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
20965 PR tree-optimization/89535
20966 * tree-vect-stmts.c (vectorizable_call): Record the vector types
20967 for each operand. Calculate the fallback choice for mask operands
20968 and pass it to vect_get_vec_def_for_operand.
20970 2019-03-01 Richard Biener <rguenther@suse.de>
20972 PR middle-end/89541
20973 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
20974 get virtual operands.
20975 (get_expr_operands): Handle CONST_DECL like other decls.
20977 2019-03-01 Jakub Jelinek <jakub@redhat.com>
20979 PR middle-end/89503
20980 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
20981 on DECL_P and EXPR_P.
20983 2019-03-01 Richard Biener <rguenther@suse.de>
20985 PR middle-end/89497
20986 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
20987 argument, defaulted to zero.
20988 * passes.c (execute_function_todo): Pass down SSA update flags
20989 to cleanup_tree_cfg.
20990 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
20991 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
20993 (cleanup_tree_cfg): Get and pass down SSA update flags.
20995 2019-03-01 Jakub Jelinek <jakub@redhat.com>
20998 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
20999 early_lto_debug argument.
21001 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
21003 PR tree-optimization/89536
21004 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
21005 only whether bit #0 of the value is 0 instead of the entire value.
21007 2019-02-28 Marek Polacek <polacek@redhat.com>
21009 PR c++/87068 - missing diagnostic with fallthrough statement.
21010 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
21011 at the end of a seq, save its location to walk_stmt_info.
21012 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
21015 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
21018 * tree.c (find_atomic_core_type): Move ahead in file.
21019 (check_base_type): Correctly compare alignments of atomic types.
21021 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
21024 * config/i386/i386.c (get_builtin_code_for_version): Identify
21025 Westmere from PCLMUL, instead of AES.
21027 2019-02-28 Jakub Jelinek <jakub@redhat.com>
21030 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
21031 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
21034 2019-02-28 Tamar Christina <tamar.christina@arm.com>
21037 * config/aarch64/aarch64-option-extensions.def: Document it.
21038 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
21041 2019-02-28 Jakub Jelinek <jakub@redhat.com>
21044 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
21045 builtins if they don't have a single scalar floating point argument.
21048 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
21050 PR rtl-optimization/89490
21051 * varasm.c (get_block_for_section): Bail out for mergeable sections.
21052 (default_use_anchors_for_symbol_p, output_object_block): Assert the
21053 block section is not mergeable.
21055 2019-02-27 Jakub Jelinek <jakub@redhat.com>
21058 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
21059 old define_insn to ...
21060 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
21061 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
21062 Rename old define_insn to ...
21063 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
21064 (thumb2_casesi_internal_pic): New define_expand. Rename old
21066 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
21067 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
21068 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
21070 2019-02-27 Richard Biener <rguenther@suse.de>
21073 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
21075 2019-02-27 Richard Biener <rguenther@suse.de>
21077 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
21080 2019-02-27 Richard Biener <rguenther@suse.de>
21083 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
21084 parameter, prefix section name with .gnu.debuglto_ if true.
21085 (dwarf2out_finish): Pass false to output_comdat_type_unit.
21086 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
21088 2019-02-27 Richard Biener <rguenther@suse.de>
21091 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
21092 rather than on use_debug_types, doing what output_die does.
21093 (value_format): Likewise.
21095 2019-02-27 Martin Jambor <mjambor@suse.cz>
21096 Martin Sebor <msebor@redhat.com>
21098 * doc/invoke.texi (Warning Options): Reword description of
21099 -Wno-absolute-value.
21101 2019-02-27 Jakub Jelinek <jakub@redhat.com>
21103 PR tree-optimization/89280
21104 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
21105 builtin_setjmp_setup_bb): New functions.
21106 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
21107 When visiting __builtin_setjmp_setup block, queue in special
21108 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
21109 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
21110 from visited after the loop if they don't have any visited successor
21113 2018-02-26 Steve Ellcey <sellcey@marvell.com>
21115 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
21117 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
21119 2019-02-26 Jakub Jelinek <jakub@redhat.com>
21122 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
21123 with types other than sizetype/ssizetype.
21125 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
21127 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
21128 (enum sparc_processor_type): ...this.
21129 (enum sparc_code_model_type): New enumeration type.
21130 (enum sparc_memory_model_type): Tweak comments.
21131 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
21133 (mcmodel): Use sparc_code_model enumeration and variable.
21134 (sparc_code_model): New enumeration.
21135 (mdebug): Add Undocumented marker.
21136 * config/sparc/sparc.h (enum cmodel): Delete.
21137 (sparc_cmodel): Likewise.
21138 (TARGET_CM_MEDLOW): Adjust to above renaming.
21139 (TARGET_CM_MEDMID): Likewise.
21140 (TARGET_CM_MEDANY): Likewise.
21141 (TARGET_CM_EMBMEDANY): Likewise.
21142 * config/sparc/sparc.c (sparc_cmodel): Delete.
21143 (sparc_option_override): Remove string/value mapping support for the
21144 code model. Move code and memory model support to after the handling
21145 of target flags. Do private machine setup last.
21146 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
21147 (sparc_legitimize_reload_address): Likewise.
21148 (sparc_output_mi_thunk): Likewise.
21149 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
21151 2019-02-26 Jakub Jelinek <jakub@redhat.com>
21153 PR tree-optimization/89500
21154 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
21155 (handle_builtin_strlen): Remove noncst_bound variable. Always
21156 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
21157 cst if the first cst bytes starting at x are known to be non-zero,
21158 even if the string is not zero terminated. Don't try to modify
21159 *si for strnlen. Update strlen_to_stridx only for strlen or if
21160 we can prove strnlen returns the same value as strlen would.
21162 2019-02-26 Martin Liska <mliska@suse.cz>
21164 * alloc-pool.h (struct pool_usage): Remove extra
21166 * bitmap.h (struct bitmap_usage): Likewise.
21167 * ggc-common.c (struct ggc_usage): Likewise.
21168 * mem-stats.h (struct mem_usage): Likewise.
21169 (mem_alloc_description::dump): Print dash lines
21170 here and repeat header at the end of a table report.
21171 It's then more readable.
21172 * tree-phinodes.c (phinodes_print_statistics): Make
21173 horizontal alignment.
21174 * tree-ssanames.c (ssanames_print_statistics): Likewise.
21175 * vec.c (struct vec_usage): Remove extra print_dash_line.
21176 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
21178 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
21180 * doc/extend.texi (__builtin_object_size):
21181 Use @pxref instead of @xref inside parenthesis.
21182 (__builtin_has_attribute): Add missing comma after @xref.
21183 (__builtin_object_size): Ditto.
21184 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
21186 2019-02-26 Jeff Law <law@redhat.com>
21188 PR rtl-optimization/87761
21189 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
21190 detect obviously dead insns and delete them.
21192 2019-02-26 Richard Biener <rguenther@suse.de>
21194 PR tree-optimization/89505
21195 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
21196 to handle restrict pointed-to vars with multiple subvars
21199 2019-02-26 Richard Biener <rguenther@suse.de>
21201 PR tree-optimization/89489
21202 * tree-parloops.c (create_loop_fn): Copy over last_clique.
21204 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
21206 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
21207 and move around comment.
21208 <BIT_AND_EXPR>: Likewise.
21209 <BIT_NOT_EXPR>: Add specific handling for boolean types.
21211 2019-02-26 Jakub Jelinek <jakub@redhat.com>
21214 * config/i386/i386.c (remove_partial_avx_dependency): Call
21215 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
21216 after changing possibly many instructions to use that pseudo. Fix up
21217 insertion of v4sf_const0 setter at the start of bb.
21219 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
21222 * doc/extend.texi (Variadic Pointer Args): New section.
21224 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
21225 Martin Sebor <msebor@gmail.com>
21227 * common.opt (Wattribute-alias): Likewise.
21228 * doc/invoke.texi (Option Summary): List general form of
21229 -Wattribute-alias=. List positive form of -Wmissing-attributes.
21230 (-Wmissing-attributes): Invert entry, rewrite and correct default.
21231 Add cross-references.
21232 (-Wattribute-alias): Rewrite and correct default. Mention
21233 considered attributes (same as for -Wmissing-attributes).
21235 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
21237 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
21238 (_mm_cvtpd_ps): Likewise.
21239 (_mm_cvttpd_epi32): Likewise.
21242 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
21243 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
21246 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
21248 2019-02-25 Tamar Christina <tamar.christina@arm.com>
21251 * common/config/aarch64/aarch64-common.c
21252 (struct aarch64_option_extension): Add is_synthetic.
21253 (all_extensions): Use it.
21254 (TARGET_OPTION_INIT_STRUCT): Define hook.
21255 (struct gcc_targetm_common): Moved to end.
21256 (all_extensions_by_on): New.
21257 (opt_ext_cmp, typedef opt_ext): New.
21258 (aarch64_option_init_struct): New.
21259 (aarch64_contains_opt): New.
21260 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
21261 * config/aarch64/aarch64-option-extensions.def
21262 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
21263 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
21264 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
21265 Set is_synthetic to false.
21266 (crypto): Set is_synthetic to true.
21267 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
21270 2019-02-25 Tamar Christina <tamar.christina@arm.com>
21272 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
21273 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
21274 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
21275 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
21276 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
21277 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
21278 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
21279 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
21281 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
21282 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
21283 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
21284 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
21285 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
21286 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
21287 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
21288 vfmlsl_laneq_high_f16): ... To this.
21289 * config/arm/neon.md: Update comments.
21291 2019-02-25 Tamar Christina <tamar.christina@arm.com>
21293 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
21294 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
21295 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
21296 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
21297 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
21298 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
21299 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
21300 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
21302 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
21303 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
21304 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
21305 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
21306 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
21307 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
21308 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
21309 vfmlslq_laneq_high_f16): ... To this.
21311 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
21313 PR rtl-optimization/86096
21314 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
21315 comparing mw_order values.
21317 2019-02-25 Jakub Jelinek <jakub@redhat.com>
21320 * config/arm/arm.md (*subsi3_carryin_const): Use
21321 arm_neg_immediate_operand predicate instead of
21322 arm_not_immediate_operand, "L" constraint instead of "K" and
21323 print it using %n2 instead of %B2.
21324 (*subsi3_carryin_const0): New define_insn.
21325 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
21326 instead of arm_not_operand and "I" constraint instead of "K" and
21327 print it using %n3 instead of %B2. Instead of using match_dup 2 add
21328 another match_operand and in the condition check that it is negation
21330 (*subsi3_carryin_compare_const0): New define_ins.
21331 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
21332 *subsi3_carryin_const.
21333 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
21334 split into *subsi3_carryin_compare_const0 if the highpart is zero.
21337 * config/arm.vfp.md (*negdf2_vfp): Use
21338 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
21339 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
21341 2019-02-24 Jakub Jelinek <jakub@redhat.com>
21343 PR rtl-optimization/89445
21344 * simplify-rtx.c (simplify_ternary_operation): Don't use
21345 simplify_merge_mask on operands that may trap.
21346 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
21347 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
21348 second operand is CONST_VECTOR, check if any element could be zero.
21349 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
21350 their operands can trap.
21352 2019-02-23 Martin Sebor <msebor@redhat.com>
21354 * gimple-ssa-sprintf.c (target_strtol): Rename...
21355 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
21356 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
21357 check for range error.
21359 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
21362 * opts-common.c (prune_options): Also prune joined switches
21363 with Negative and RejectNegative.
21364 * config/i386/i386.opt (march=): Add Negative(march=).
21365 (mtune=): Add Negative(mtune=).
21366 * doc/options.texi: Document Negative used together with Joined
21367 and RejectNegative.
21369 2019-02-22 Martin Sebor <msebor@redhat.com>
21371 * doc/extend.texi (Other Builtins): Add
21372 __builtin_is_constant_evaluated.
21374 2019-02-22 Richard Biener <rguenther@suse.de>
21376 PR tree-optimization/87609
21377 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
21379 2019-02-22 Jeff Law <law@redhat.com>
21381 PR rtl-optimization/87761
21382 * config/mips/mips.md: Add new combiner pattern to recognize
21383 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
21385 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
21388 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
21389 destination register in peepholes generating patterns for ADDS/SUBS.
21390 (add<mode>3_compare0,
21391 *addsi3_compare0_uxtw, add<mode>3_compareC,
21392 add<mode>3_compareV_imm, add<mode>3_compareV,
21393 *adds_<optab><ALLX:mode>_<GPI:mode>,
21394 *subs_<optab><ALLX:mode>_<GPI:mode>,
21395 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
21396 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
21397 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
21398 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
21399 sub<mode>3_compare1): Allow stack pointer for source register.
21400 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
21402 2019-02-22 Martin Sebor <msebor@redhat.com>
21404 PR tree-optimization/88993
21405 PR tree-optimization/88853
21406 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
21408 (sprintf_dom_walker::call_info::is_string_func): New helper.
21409 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
21410 for formatted string functions.
21411 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
21413 2019-02-22 Martin Sebor <msebor@redhat.com>
21416 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
21417 unreachable subexpressions.
21419 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
21420 Hongtao Liu <hongtao.liu@intel.com>
21421 Sunil K Pandey <sunil.k.pandey@intel.com>
21424 * config/i386/i386-passes.def: Add
21425 pass_remove_partial_avx_dependency.
21426 * config/i386/i386-protos.h
21427 (make_pass_remove_partial_avx_dependency): New.
21428 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
21430 (pass_data_remove_partial_avx_dependency): New.
21431 (pass_remove_partial_avx_dependency): Likewise.
21432 (make_pass_remove_partial_avx_dependency): Likewise.
21433 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
21434 (*extendsfdf2): Add avx_partial_xmm_update.
21435 (truncdfsf2): Likewise.
21436 (*float<SWI48:mode><MODEF:mode>2): Likewise.
21437 (SF/DF conversion splitters): Disabled for TARGET_AVX.
21439 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
21441 PR middle-end/85598
21442 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
21445 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
21448 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
21449 (PTA_SKYLAKE): Add PTA_AES.
21450 (PTA_GOLDMONT): Likewise.
21452 2019-02-22 Sudakshina Das <sudi.das@arm.com>
21454 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
21455 instruction if enabled.
21456 (aarch64_override_options): Remove reference to return address key.
21458 2019-02-22 Richard Biener <rguenther@suse.de>
21460 PR tree-optimization/89440
21461 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
21462 not necessary assert.
21464 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
21467 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
21468 (oacc_replace_fn_attrib_attr): ... this new function.
21469 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
21470 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
21472 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21474 * config/arm/arm-cpus.in (ares): Rename to...
21475 (neoverse-n1): ... This. Add ares as alias.
21476 * config/arm/arm-tables.opt: Regenerate.
21477 * config/arm/arm-tune.md: Likewise.
21478 * doc/invoke.txt (ARM Options): Document neoverse-n1.
21480 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21482 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
21483 * config/aarch64/aarch64-tune.md: Regenerate.
21484 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
21486 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21488 * config/aarch64/aarch64.c (ares_tunings): Rename to...
21489 (neoversen1_tunings): ... This.
21490 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
21491 (neoverse-n1): New CPU.
21492 * config/aarch64/aarch64-tune.md: Regenerate.
21493 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
21495 2019-02-22 Richard Biener <rguenther@suse.de>
21497 PR middle-end/87609
21498 * cfghooks.h (dependence_hash): New typedef.
21499 (struct copy_bb_data): New type.
21500 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
21501 (duplicate_block): Likewise.
21502 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
21503 (copy_bbs): Create and pass down copy_bb_data.
21504 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
21505 (rtl_duplicate_bb): Likewise.
21506 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
21507 remap dependence info.
21509 2019-02-22 Richard Biener <rguenther@suse.de>
21511 PR tree-optimization/87609
21512 * tree-core.h (tree_base): Document special clique values.
21513 * tree-inline.c (remap_dependence_clique): Do not use the
21514 special clique value of one.
21515 (maybe_set_dependence_info): Use clique one.
21516 (clear_dependence_clique): New callback.
21517 (compute_dependence_clique): Clear clique one from all refs
21518 before assigning it (again).
21520 2019-02-21 Martin Sebor <msebor@redhat.com>
21522 * doc/extend.texi (__clear_cache): Correct signature.
21524 2019-02-21 Ian Lance Taylor <iant@golang.org>
21527 * varasm.c (decode_addr_const): Call lookup_constant_def rather
21528 than output_constant_def.
21529 (add_constant_to_table): New static function.
21530 (output_constant_def): Call add_constant_to_table.
21531 (tree_output_constant_def): Likewise.
21533 2019-02-21 Jakub Jelinek <jakub@redhat.com>
21536 * builtins.c (fold_builtin_arith_overflow): If first two args are
21537 INTEGER_CSTs, set intres and ovfres to constants rather than calls
21540 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
21543 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
21544 error for -mindirect-branch/-mfunction-return with incompatible
21547 2019-02-21 Jakub Jelinek <jakub@redhat.com>
21550 * constraints.md (q): Remove.
21551 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
21554 2019-02-21 Martin Jambor <mjambor@suse.cz>
21557 * omp-general.c (omp_extract_for_data): Removed a duplicate call
21558 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
21559 (omp_adjust_for_condition): ...here. Added necessary parameters.
21560 * omp-general.h (omp_adjust_for_condition): Updated declaration.
21561 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
21562 proper values to new parameters of omp_adjust_for_condition.
21564 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21566 PR middle-end/89412
21567 * expr.c (expand_assignment): If result is a MEM, use change_address
21568 instead of simplify_gen_subreg.
21570 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21571 David Malcolm <dmalcolm@redhat.com>
21573 PR middle-end/89091
21574 * fold-const.c (decode_field_reference): Return NULL_TREE if
21575 lang_hooks.types.type_for_size returns NULL. Check it before
21576 overwriting *exp_. Use return NULL_TREE instead of return 0.
21578 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21580 PR middle-end/88074
21581 PR middle-end/89415
21582 * toplev.c (do_compile): Double the emin/emax exponents to workaround
21585 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
21588 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
21589 TARGET_SSE in addition to TARGET_SSE_MATH.
21591 (ix86_excess_precision): Ditto.
21592 (ix86_float_exceptions_rounding_supported_p): Ditto.
21593 (use_rsqrt_p): Ditto.
21594 * config/i386/sse.md (rsqrt<mode>2): Ditto.
21596 2019-02-20 David Malcolm <dmalcolm@redhat.com>
21599 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
21600 linenum_arith_t when determining if two adjacent line spans are
21601 close enough to merge.
21602 (diagnostic_show_locus): Use linenum_arith_t when iterating over
21603 lines within each line_span.
21605 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
21608 * lra-constraints.c(uses_hard_regs_p): Fix handling of
21609 paradoxical SUBREGS.
21611 2019-02-20 Li Jia He <helijia@linux.ibm.com>
21614 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
21615 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
21616 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
21619 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
21621 * config/gcn/gcn.c (print_operand): Fix typo.
21623 2019-02-19 Richard Biener <rguenther@suse.de>
21625 PR middle-end/88074
21626 * toplev.c (do_compile): Initialize mpfr's exponent range
21627 based on available float modes.
21629 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
21631 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
21632 as long as the epilogue isn't completed.
21634 2019-02-18 Martin Sebor <msebor@redhat.com>
21636 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
21637 __has_cpp_attribute, and __has_include.
21639 2019-02-18 Martin Sebor <msebor@redhat.com>
21641 * doc/invoke.texi (-Wreturn-type): Correct and expand.
21643 2019-02-18 Martin Sebor <msebor@redhat.com>
21645 PR middle-end/89294
21646 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
21648 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
21650 2019-02-18 Richard Biener <rguenther@suse.de>
21652 PR tree-optimization/89296
21653 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
21654 of no-warning flag to cases that might emit the bogus warning.
21656 2019-02-18 Jakub Jelinek <jakub@redhat.com>
21659 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
21661 * config/arm/vfp.md (*movdi_vfp): Likewise.
21662 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
21663 "q" constraint for operands[0].
21666 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
21667 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
21668 pattern in a temporary buffer.
21669 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
21670 than 64-operands[2].
21673 * config/s390/s390.c (s390_indirect_branch_attrvalue,
21674 s390_indirect_branch_settings): Define unconditionally.
21675 (s390_set_current_function): Likewise, but guard the whole body except
21676 the s390_indirect_branch_settings call with
21677 #if S390_USE_TARGET_ATTRIBUTE.
21678 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
21680 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
21681 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
21682 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
21683 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
21684 HOST_WIDE_INT_1U instead of 1ULL.
21685 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
21686 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
21687 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
21688 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
21690 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
21693 2019-02-18 Martin Jambor <mjambor@suse.cz>
21695 PR tree-optimization/89209
21696 * tree-sra.c (create_access_replacement): New optional parameter
21697 reg_tree. Use it as a type if non-NULL and access type is not of
21699 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
21700 to create_access_replacement.
21701 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
21702 Check lacc is non-NULL before attempting to re-create it on the RHS.
21704 2019-02-18 Martin Liska <mliska@suse.cz>
21707 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
21709 (symbol_table::free_edge): Recycle m_summary_id.
21710 * cgraph.h (get_summary_id): New.
21711 (symbol_table::release_symbol): Set m_summary_id to -1
21713 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
21714 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
21715 function_summary to fast_function_summary.
21716 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
21717 * ipa-pure-const.c (class funct_state_summary_t):
21718 Switch from function_summary to fast_function_summary.
21719 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
21720 (class ipa_ref_opt_summary_t): Switch from function_summary
21721 to fast_function_summary.
21722 * symbol-summary.h (class function_summary_base): New class
21723 that is created from base of former function_summary.
21724 (function_summary_base::unregister_hooks): New.
21725 (class function_summary): Inherit from function_summary_base.
21726 (class call_summary_base): New class
21727 that is created from base of former call_summary.
21728 (class call_summary): Inherit from call_summary_base.
21729 (struct is_same): New.
21730 (class fast_function_summary): New summary class.
21731 (class fast_call_summary): New summary class.
21732 * vec.h (vec_safe_grow_cleared): New function.
21734 2019-02-18 Martin Liska <mliska@suse.cz>
21736 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
21737 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
21738 * doc/tm.texi: Document new target hook.
21739 * doc/tm.texi.in: Likewise.
21740 * target.def: Add new target macro.
21741 * gcc.c (find_fortran_preinclude_file): Do not search multilib
21744 2019-02-17 Alan Modra <amodra@gmail.com>
21747 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
21748 output reg on add insn.
21749 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
21751 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
21754 * config/i386/sse.md (ssedoublemode): Remove V4HI.
21755 (PMULHRSW): Likewise.
21756 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
21758 (ssse3_pmulhrswv4hi3): New expander.
21760 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
21762 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
21763 MMX. Add isa attribute.
21765 2019-02-16 Jakub Jelinek <jakub@redhat.com>
21767 PR rtl-optimization/66152
21768 * builtins.h (c_readstr): Declare.
21769 * builtins.c (c_readstr): Remove forward declaration. Add
21770 null_terminated_p argument, if false, read all bytes from the
21771 string instead of stopping after '\0'.
21772 * expr.c (string_cst_read_str): New function.
21773 (store_expr): Use string_cst_read_str instead of
21774 builtin_strncpy_read_str. Try to store by pieces the whole
21775 exp_len first, and only if that fails, split it up into
21776 store by pieces followed by clear_storage. Formatting fix.
21778 * config/i386/i386.md (*movqi_internal): Remove static from
21779 buf variable. Use output_asm_insn (buf, operands); return "";
21780 instead of return buf;.
21781 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
21782 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
21783 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
21785 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21787 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
21788 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
21789 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
21790 (CC1_SPEC): Likewise.
21791 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
21793 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21795 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
21796 the base address on 64-bit strict-alignment platforms.
21798 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
21800 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
21802 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
21804 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
21806 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
21808 PR rtl-optimization/88308
21809 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
21810 on copied instruction.
21812 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21814 * final.c (insn_current_reference_address): Replace test on JUMP_P
21815 with test on jump_to_label_p.
21816 * config/visium/visium-passes.def: New file.
21817 * config/visium/t-visium (PASSES_EXTRA): Define.
21818 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
21819 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
21820 (TRAMPOLINE_ALIGNMENT): Define.
21821 * config/visium/visium.c (visium_option_override): Do not register
21822 the machine-specific reorg pass here.
21823 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
21825 (output_branch): Adjust threshold for long branch instruction.
21826 * config/visium/visium.md (cpu): Move around.
21827 (length): Adjust for the GR6.
21829 2019-02-15 Richard Biener <rguenther@suse.de>
21830 Jakub Jelinek <jakub@redhat.com>
21832 PR tree-optimization/89278
21833 * tree-loop-distribution.c: Include tree-eh.h.
21834 (generate_memset_builtin, generate_memcpy_builtin): Call
21835 rewrite_to_non_trapping_overflow on builtin->size before passing it
21836 to force_gimple_operand_gsi.
21838 2019-02-15 Jakub Jelinek <jakub@redhat.com>
21841 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
21843 * opth-gen.awk: Likewise.
21845 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
21847 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
21848 Enable MMX, SSE and SSE2 by default.
21849 * config/i386/i386.c (ix86_option_override_internal): Do not
21850 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
21852 2019-02-14 Jakub Jelinek <jakub@redhat.com>
21854 PR rtl-optimization/89354
21855 * combine.c (make_extraction): Punt if extraction_mode is narrower
21858 2019-02-14 Maya Rashish <coypu@sdf.org>
21860 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
21861 * config/netbsd-d.c: New file.
21862 * config/t-netbsd: Add netbsd-d.o
21864 2018-02-14 Steve Ellcey <sellcey@marvell.com>
21866 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
21867 affects_type_identity to true for aarch64_vector_pcs.
21868 (aarch64_comp_type_attributes): New function.
21869 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
21871 2019-02-14 Tamar Christina <tamar.christina@arm.com>
21874 * config/arm/iterators.md (ANY64): Add V4HF.
21876 2019-02-14 Martin Liska <mliska@suse.cz>
21878 PR rtl-optimization/89242
21879 * dce.c (delete_unmarked_insns): Call free_dominance_info we
21880 process a transformation.
21882 2019-02-14 Jakub Jelinek <jakub@redhat.com>
21884 PR tree-optimization/89314
21885 * fold-const.c (fold_binary_loc): Cast strlen argument to
21886 const char * before dereferencing it. Formatting fixes.
21888 PR middle-end/89284
21889 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
21891 2019-02-13 Ian Lance Taylor <iant@golang.org>
21893 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
21894 and set current index for other optimizations.
21896 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
21898 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
21899 nonimmediate_operand as operand 2 predicate.
21900 (vec_set<VF2_512_256:mode>_0): Ditto.
21901 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
21902 (*vec_concatv2si): Remove alternative 2.
21903 (*vec_concatv4si_0): Use vm constraint for alternative 0.
21904 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
21905 (vec_concatv2di): Split alternatives 4,5,6 to ...
21906 (*vec_concatv2di_0) ... new pattern.
21908 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
21911 * config/arm/arm.c (ldm_stm_operation_p) Set
21912 addr_reg_in_reglist correctly for first register.
21913 (load_multiple_sequence): Remove dead base check.
21914 (gen_ldm_seq): Correctly set write_back for Thumb-1.
21916 2019-02-13 Tamar Christina <tamar.christina@arm.com>
21919 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
21920 Expose as @aarch64_pred_mov.
21921 * config/aarch64/aarch64.c (aarch64_classify_address):
21922 Use expand_insn which legitimizes operands.
21924 2019-02-13 Martin Liska <mliska@suse.cz>
21926 * builtins.h (expand_builtin_with_bounds): Remove declaration.
21927 * calls.c (struct arg_data): Remove special_slot, pointer_arg
21928 and pointer_offset fields.
21929 (initialize_argument_information): Remove usage of dead
21931 * cgraph.h (struct cgraph_thunk_info): Remove
21932 add_pointer_bounds_args.
21933 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
21935 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
21937 * config/i386/i386.c (ix86_function_arg_advance): Remove
21939 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
21940 (def_builtin): Remove usage of dead fields.
21941 (ix86_add_new_builtins): Likewise.
21942 * ipa-fnsummary.c (compute_fn_summary): Likewise.
21943 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21944 (sem_function::init): Likewise.
21945 (sem_variable::merge): Likewise.
21946 * ipa-visibility.c (function_and_variable_visibility): Likewise.
21947 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
21948 * lto-cgraph.c (lto_output_node): Likewise.
21949 (lto_output_varpool_node): Likewise.
21950 (input_node): Likewise.
21951 (input_varpool_node): Likewise.
21952 * lto-streamer-out.c (lto_output): Likewise.
21953 * tree-inline.c (expand_call_inline): Remove usage of
21955 * tree-inline.h (struct copy_body_data): Likewise.
21956 * varpool.c (varpool_node::dump): Likewise.
21958 2019-02-13 Jakub Jelinek <jakub@redhat.com>
21960 PR middle-end/89303
21961 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
21962 into pt->vars_contains_escaped_heap instead of setting
21963 pt->vars_contains_escaped_heap to it.
21965 PR middle-end/89281
21966 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
21967 INTVAL (size), compare it to GET_MODE_MASK instead of
21968 1 << GET_MODE_BITSIZE.
21971 * config/i386/predicates.md (x86_64_immediate_operand): Allow
21972 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
21975 2019-02-13 Martin Liska <mliska@suse.cz>
21978 * cfgrtl.c (remove_barriers_from_footer): New function.
21979 (try_redirect_by_replacing_jump): Use it.
21980 (cfg_layout_redirect_edge_and_branch): Likewise.
21982 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
21984 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
21985 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
21986 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
21987 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
21988 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
21989 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
21991 * config/rs6000/rs6000.c (builtin_function_type)
21992 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
21993 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
21994 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
21995 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
21996 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
21998 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
22000 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
22001 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
22003 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
22006 * config/i386/i386.md (*movoi_internal_avx): Revert revision
22007 268678 and revision 268657.
22008 (*movti_internal): Likewise.
22010 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
22013 * config/s390/s390.c (s390_decompose_address): Update comment.
22014 (s390_check_qrst_address): Reject invalid address forms after
22017 2019-02-12 Martin Liska <mliska@suse.cz>
22020 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
22021 we need default values of funct_state for a function that
22024 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
22026 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
22027 the object to pick the size of stores on strict-alignment platforms.
22029 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
22030 (*movdi_insn_sp32): Likewise.
22031 (*movdi_insn_sp64): Likewise.
22033 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
22036 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
22037 types that needs constructiong.
22038 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
22040 2019-02-12 Richard Biener <rguenther@suse.de>
22042 PR tree-optimization/89253
22043 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
22044 duplicate the loop.
22046 2019-02-11 David Malcolm <dmalcolm@redhat.com>
22049 * input.c (selftest::test_line_offset_overflow): New selftest.
22050 (selftest::input_c_tests): Call it.
22052 2019-02-11 Martin Sebor <msebor@redhat.com>
22054 PR tree-optimization/88771
22055 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
22056 when -Wstringop-overflow is set.
22057 (builtin_memref::builtin_memref): Adjust excessive upper bound
22058 only when lower bound is not excessive.
22059 (maybe_diag_overlap): Detect and diagnose excessive bounds via
22060 -Wstringop-ovefflow.
22061 (maybe_diag_offset_bounds): Rename...
22062 (maybe_diag_access_bounds): ...to this.
22063 (check_bounds_or_overlap): Adjust for name change above.
22065 2019-02-11 Martin Sebor <msebor@redhat.com>
22068 * builtins.c (max_object_size): Move from here...
22069 * builtins.h (max_object_size): ...and here...
22070 * tree.c (max_object_size): ...to here...
22071 * tree.h (max_object_size): ...and here.
22073 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
22075 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
22076 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
22077 for correct semantics.
22079 2019-02-11 Alan Modra <amodra@gmail.com>
22081 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
22082 -mlongcall and -mpltseq.
22083 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
22084 (RS/6000 and PowerPC Options <-mpltseq>): Document.
22085 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
22086 * config/rs6000/sysv4.opt (mpltseq): New option.
22087 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
22088 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
22089 support is lacking. Don't allow -mpltseq with -mbss-plt.
22090 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
22091 -mpltseq given for ELFv1.
22092 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
22093 Only use UNSPEC_PLTSEQ for inline PLT calls.
22094 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
22095 use UNSPEC_PLTSEQ for inline PLT calls.
22096 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
22097 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
22098 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
22099 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
22100 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
22101 (pltseq_mtctr_<mode>): Likewise.
22103 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22105 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
22107 * configure: Regenerate.
22109 2019-02-11 Jakub Jelinek <jakub@redhat.com>
22112 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
22115 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
22117 * function.c (assign_parm_setup_block): Use the stored
22118 size, not the passed size, when allocating stack-space,
22119 also for a parameter with alignment larger than
22120 MAX_SUPPORTED_STACK_ALIGNMENT.
22122 2019-02-11 Martin Liska <mliska@suse.cz>
22125 * ipa-cp.c (build_toporder_info): Remove usage of a param.
22126 * ipa-inline.c (inline_small_functions): Likewise.
22127 * ipa-pure-const.c (propagate_pure_const): Likewise.
22128 (propagate_nothrow): Likewise.
22129 * ipa-reference.c (propagate): Likewise.
22130 * ipa-utils.c (struct searchc_env): Remove unused field.
22131 (searchc): Always search across AVAIL_INTERPOSABLE.
22132 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
22133 the only called IPA pure const can properly not propagate
22134 across interposable boundary.
22135 * ipa-utils.h (ipa_reduced_postorder): Remove param.
22137 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
22139 * config/nds32/nds32.md (call_internal, call_value_internal,
22140 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
22142 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
22144 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
22147 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
22149 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
22152 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
22154 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
22156 2019-02-10 Jakub Jelinek <jakub@redhat.com>
22158 PR tree-optimization/89268
22159 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
22160 if preds is non-NULL.
22162 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
22165 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
22168 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
22170 * config/nds32/nds32.md (trap): New pattern.
22172 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
22174 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
22177 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
22179 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
22182 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
22184 * ipa-visibility.c (localize_node): Also do not localize
22185 LDPR_PREVAILING_DEF_IRONLY_EXP.
22187 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
22190 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
22191 instead of type_with_linkage.
22193 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
22196 * params.def (uninlined-function-insns, uninlined-function-time,
22197 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
22198 bound so we don't get overflows.
22200 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
22202 * config/rs6000/rs6000-string.c (expand_compare_loop,
22203 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
22206 2019-02-09 Jakub Jelinek <jakub@redhat.com>
22208 PR middle-end/89246
22209 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22210 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
22211 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
22213 2019-02-09 Alan Modra <amodra@gmail.com>
22216 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
22217 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
22220 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
22222 PR middle-end/88560
22223 * lra-constraints.c (process_alt_operands): Don't increase reject
22224 for memory when offset memory is required.
22226 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
22228 * config/s390/vector.md: Implement vector copysign.
22230 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
22232 * expr.c (expand_constructor): Correct indentations.
22234 2019-02-08 Richard Biener <rguenther@suse.de>
22236 PR tree-optimization/89247
22237 * tree-if-conv.c: Include tree-cfgcleanup.h.
22238 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
22239 (tree_if_conversion): Pass through predicate vector.
22240 (pass_if_conversion::execute): Do CFG cleanup and SSA update
22241 inline, see if any if-converted loops we refrece in
22242 LOOP_VECTORIZED calls vanished and fixup.
22243 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
22245 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
22247 * config/s390/constraints.md (jdd): New constraint.
22249 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
22252 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
22253 upper 16 vector registers without TARGET_AVX512VL.
22254 (*movti_internal): Likewise.
22256 2019-02-08 Jakub Jelinek <jakub@redhat.com>
22258 PR rtl-optimization/89234
22259 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
22260 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
22261 (copy_reg_eh_region_note_backward): Likewise.
22263 2019-02-08 Richard Biener <rguenther@suse.de>
22265 PR middle-end/89223
22266 * tree-data-ref.c (initialize_matrix_A): Fail if constant
22267 doesn't fit in HWI.
22268 (analyze_subscript_affine_affine): Handle failure from
22269 initialize_matrix_A.
22271 2019-02-08 Jakub Jelinek <jakub@redhat.com>
22273 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
22276 2019-02-07 David Malcolm <dmalcolm@redhat.com>
22278 PR tree-optimization/86637
22279 PR tree-optimization/89235
22280 * tree-vect-loop.c (optimize_mask_stores): Add an
22281 auto_purge_vect_location sentinel to ensure that vect_location is
22283 * tree-vectorizer.c
22284 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
22285 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
22286 to ensure that vect_location is purged on exit.
22287 (pass_slp_vectorize::execute): Likewise, replacing the manual
22289 * tree-vectorizer.h (class auto_purge_vect_location): New class.
22291 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22293 * config/aarch64/iterators.md (max_opp): New code_attr.
22294 (USMAX): New code iterator.
22295 * config/aarch64/predicates.md (aarch64_smin): New predicate.
22296 (aarch64_smax): Likewise.
22297 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
22298 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
22301 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
22304 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
22305 for TARGET_AVX512VL.
22306 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
22308 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
22310 * config/s390/s390-builtin-types.def: Add new types.
22311 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
22312 (s390_vec_xlw4): Make the memory operand into a const pointer.
22313 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
22315 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
22316 a new vector type with the alignment of the scalar memory operand.
22318 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
22319 Jakub Jelinek <jakub@redhat.com>
22322 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
22323 arm_count_ldrdstrd_insns): New declarations.
22324 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
22326 (valid_operands_ldrd_strd): New function.
22327 (arm_count_ldrdstrd_insns): New function.
22328 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
22329 sets instead of single DImode set and define new insns to match this.
22331 2019-02-07 Tamar Christina <tamar.christina@arm.com>
22333 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
22334 Make it a C initializer.
22336 2019-02-07 Tamar Christina <tamar.christina@arm.com>
22339 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
22341 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22343 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
22344 Use neon_dot<q> for type.
22345 (neon_<sup>dot_lane<vsi2qi>): Likewise.
22347 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22349 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
22350 Use neon_dot<q> for type.
22351 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
22352 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
22354 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
22356 PR rtl-optimization/89225
22357 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
22360 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
22362 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
22363 after restoring registers saved to allocate the frame on Windows.
22365 2019-02-06 Richard Biener <rguenther@suse.de>
22367 PR tree-optimization/89182
22368 * graphite.h (cached_scalar_evolution_in_region): Declare.
22369 * graphite.c (struct seir_cache_key): New.
22370 (struct sese_scev_hash): Likewise.
22371 (seir_cache): New global.
22372 (cached_scalar_evolution_in_region): New function.
22373 (graphite_transform_loops): Allocate and release seir_cache.
22374 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
22375 cached_scalar_evolution_in_region.
22376 * graphite-scop-detection.c (scop_detection::can_represent_loop):
22378 (scop_detection::graphite_can_represent_expr: Use
22379 cached_scalar_evolution_in_region.
22380 (scop_detection::stmt_simple_for_scop_p): Likewise.
22381 (find_params_in_bb): Likewise.
22382 (gather_bbs::before_dom_children): Likewise.
22383 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
22384 (add_loop_constraints): Likewise.
22386 2019-02-06 Jakub Jelinek <jakub@redhat.com>
22388 PR middle-end/89210
22389 * fold-const-call.c (fold_const_vec_convert): Pass true as last
22390 operand to new_unary_operation only if both element types are integral
22391 and it isn't a widening conversion. Return NULL_TREE if
22392 new_unary_operation failed.
22394 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
22397 * config/s390/s390.md: Remove load and test FP splitter.
22399 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
22402 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
22403 expand_compare_loop, expand_block_compare_gpr,
22404 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
22405 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
22406 #include "profile-count.h" and "predict.h" for types and functions
22407 needed to work with REG_BR_PROB notes.
22409 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
22412 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
22413 for the long branch case.
22415 2019-02-05 Jakub Jelinek <jakub@redhat.com>
22418 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
22419 can throw, non-call exceptions are enabled and we can't delete
22420 dead exceptions or alter cfg. Set must_clean if
22421 delete_insn_and_edges returns true, don't set it blindly for calls.
22422 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
22424 PR rtl-optimization/89195
22425 * combine.c (make_extraction): For MEMs, don't extract bytes outside
22426 of the original MEM.
22428 2019-02-05 Martin Liska <mliska@suse.cz>
22430 PR gcov-profile/89000
22431 * gcov.c (function_summary): Remove argument.
22432 (file_summary): New function.
22433 (print_usage): Replace tabs with spaces.
22434 (generate_results): Use new function file_summary.
22436 2019-02-05 Jakub Jelinek <jakub@redhat.com>
22439 * optabs.c (prepare_cmp_insn): Pass x and y to
22440 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
22442 2019-02-05 Richard Biener <rguenther@suse.de>
22444 PR middle-end/89150
22445 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
22446 (struct bitmap_element): Drop chain_prev so we properly recurse on
22447 the prev member, supporting tree views.
22448 (struct bitmap_head): GTY skip the obstack member.
22450 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
22453 * doc/extend.texi (Vector Extensions): Add an example of using vector
22454 types together with x86 intrinsics.
22456 2019-02-04 Alan Modra <amodra@gmail.com>
22458 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
22459 str[] size to 160, and comment.
22461 2019-02-04 Alan Modra <amodra@gmail.com>
22463 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
22464 (rs6000_pltseq_template): Guard output of TLS markers with
22465 TARGET_TLS_MARKERS.
22466 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
22467 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
22468 to use inline PLT sequences.
22469 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
22470 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
22471 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
22473 2019-02-04 Martin Liska <mliska@suse.cz>
22476 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
22477 out when ipa_fn_summaries does not contain entry for callee.
22479 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
22481 * config/sparc/sparc.h: Remove superfluous blank lines.
22482 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
22483 (got_register_rtx): ...this.
22484 (sparc_got): Adjust to above renaming.
22485 (sparc_tls_got): Likewise.
22486 (sparc_delegitimize_address): Likewise.
22487 (sparc_output_mi_thunk): Likewise.
22488 (sparc_init_pic_reg): Likewise.
22489 (save_local_or_in_reg_p): Fix test on the GOT register.
22490 (USE_HIDDEN_LINKONCE): Move around.
22491 (get_pc_thunk_name): Likewise.
22492 (gen_load_pcrel_sym): Likewise.
22493 (load_got_register): Likewise.
22495 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
22497 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
22498 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
22500 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
22502 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
22503 into consideration.
22505 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
22507 * config.gcc (with_nds32_lib, glibc):
22508 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
22509 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
22510 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
22512 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
22515 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
22516 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
22517 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
22518 (*rcpsf2_sse): Ditto.
22519 (*rsqrtsf2_sse): Ditto.
22520 (sse4_1_round<mode<2): Ditto.
22522 2019-02-03 Richard Biener <rguenther@suse.de>
22525 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
22528 2019-02-02 Jakub Jelinek <jakub@redhat.com>
22530 PR middle-end/87887
22531 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22532 Punt with warning on aggregate return or argument types. Ignore
22533 type/mode checking for uniform arguments.
22535 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
22537 * combine.c (try_combine): Do not print "Can't combine" messages unless
22538 printing failed combination attempts.
22540 2019-02-01 Martin Jambor <mjambor@suse.cz>
22543 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
22544 segment and global segment variables before making them static.
22546 2019-02-01 Martin Jambor <mjambor@suse.cz>
22548 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
22549 missed optimization dump with dump_enabled_p.
22551 2019-02-01 Richard Biener <rguenther@suse.de>
22553 PR middle-end/88597
22554 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
22555 the instantiate cache.
22556 (instantiate_scev_binary): Elide second operand procesing
22557 if equal to the first.
22558 * tree-chrec.c (chrec_contains_symbols): Add visited set.
22559 (chrec_contains_undetermined): Likewise.
22560 (tree_contains_chrecs): Likewise.
22562 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
22564 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
22566 2019-02-01 Jakub Jelinek <jakub@redhat.com>
22568 PR tree-optimization/89143
22569 * wide-int-range.h (wide_int_range_absu): Declare.
22570 * wide-int-range.cc (wide_int_range_absu): New function.
22571 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
22573 PR tree-optimization/88107
22574 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
22575 instead of assertion that eh_region_outermost is non-NULL, if it
22576 is NULL, set *ALL to true and return NULL.
22577 (move_sese_region_to_fn): Adjust caller, if all is set, call
22578 duplicate_eh_regions with NULL region.
22580 2019-02-01 Richard Biener <rguenth@suse.de>
22582 PR rtl-optimization/88593
22583 * mode-switching.c (optimize_mode_switching): Free dominators before
22584 calling cleanup_cfg.
22586 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
22588 PR tree-optimization/88932
22589 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
22591 2019-01-31 Jakub Jelinek <jakub@redhat.com>
22593 PR middle-end/89137
22594 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
22595 bogus clang warning.
22597 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
22600 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
22601 alternative to avoid partial SSE register stall for TARGET_AVX.
22602 (truncdfsf2): Ditto.
22603 (sse4_1_round<mode>2): Ditto.
22605 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
22607 PR tree-optimization/89008
22608 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
22609 process anything of the form X * 0.
22611 2019-01-31 Richard Biener <rguenther@suse.de>
22613 PR tree-optimization/89135
22614 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
22615 with abnormal preds.
22617 2019-01-31 Jakub Jelinek <jakub@redhat.com>
22620 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
22621 always_inline callees into no_sanitize_address callers.
22623 2019-01-31 Richard Biener <rguenther@suse.de>
22625 PR rtl-optimization/89115
22626 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
22628 2019-01-30 Martin Sebor <msebor@redhat.com>
22631 * doc/extend.texi (cast to a union): Correct and expand.
22633 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
22635 PR rtl-optimization/87246
22636 * lra-constraints.c (simplify_operand_subreg): Reload memory
22637 in subreg if the address became invalid.
22639 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
22642 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
22643 Disable for little-endian.
22645 2019-01-30 Richard Biener <rguenther@suse.de>
22647 PR rtl-optimization/89115
22648 * opts.c (default_options_optimization): Reduce
22649 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
22650 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
22653 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
22655 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
22656 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
22657 type of vector element when vec_extract is implemented by direct
22660 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
22662 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
22664 2019-01-30 Richard Biener <rguenther@suse.de>
22666 PR tree-optimization/89111
22667 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
22668 canonicalization to appropriately sized access types.
22670 2019-01-30 Jakub Jelinek <jakub@redhat.com>
22673 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
22674 for arguments to functions that are TU-local and shouldn't be
22675 referenced by assembly.
22677 2019-01-30 Ulrich Drepper <drepper@redhat.com>
22679 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
22682 2019-01-29 Martin Sebor <msebor@redhat.com>
22685 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
22687 2019-01-29 Jakub Jelinek <jakub@redhat.com>
22691 * omp-simd-clone.c (simd_clone_clauses_extract)
22692 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
22693 OMP_CLAUSE_ALIGNED_ALIGNMENT.
22695 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
22697 * config.gcc: Force .init_array for ARC.
22699 2019-01-29 Richard Biener <rguenther@suse.de>
22702 * dwarf2out.c (collect_skeleton_dies): New helper.
22703 (copy_decls_for_unworthy_types): Call it.
22704 (build_abbrev_table): Assert we do not try to replace
22705 DW_AT_signature refs with local refs.
22707 2019-01-28 Jakub Jelinek <jakub@redhat.com>
22709 PR middle-end/89002
22710 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
22711 for lastprivate/linear IV, push gimplify context around gimplify_assign
22712 and, if it needed any temporaries, pop it into a gimple bind around the
22715 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22717 * common.opt (-Wattribute-alias): Remove "no-" from name.
22718 Make -Wattribute-alias command line option and
22719 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
22721 2019-01-28 Jakub Jelinek <jakub@redhat.com>
22724 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
22725 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
22727 (bmi2): Add missing @opindex.
22728 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
22729 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
22730 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
22731 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
22732 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
22733 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
22734 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
22735 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
22736 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
22737 xsavec, xsaveopt and xsaves options.
22739 2019-01-28 Richard Biener <rguenther@suse.de>
22742 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
22745 2019-01-28 Richard Biener <rguenther@suse.de>
22747 PR tree-optimization/88739
22748 * tree-cfg.c (verify_types_in_gimple_reference): Verify
22749 BIT_FIELD_REFs only are applied to mode-precision operands
22750 when they are integral.
22751 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
22752 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
22753 BIT_FIELD_REFs of non-mode-precision integral operands.
22755 2019-01-27 Jakub Jelinek <jakub@redhat.com>
22758 * config/i386/sse.md
22759 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
22760 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
22761 first constants in pairs are multiples of 2. Formatting fixes.
22762 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
22763 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
22764 first constants in each quadruple are multiples of 4. Formatting fixes.
22766 2019-01-26 Martin Jambor <mjambor@suse.cz>
22769 * tree-inline.c: Include tree-cfgcleanup.h.
22770 (delete_unreachable_blocks_update_callgraph): Move...
22771 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
22772 ...here, make externally visible, make second argument bool, adjust
22774 * tree-cfgcleanup.c: Include cgraph.h.
22775 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
22777 * ipa-prop.c: Include tree-cfgcleanup.h.
22778 (ipcp_transform_function): Call
22779 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
22781 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
22783 PR rtl-optimization/88846
22784 * ira.c (process_set_for_memref_referenced_p): New.
22785 (memref_referenced_p): Add new param. Use
22786 process_set_for_memref_referenced_p. Add new switch cases.
22787 (memref_used_between_p): Pass new arg to memref_referenced_p.
22789 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
22792 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
22793 argument ABI_BREAK. Set to true if the calculated alignment has
22794 changed in gcc-9. Check bit-fields for their base type alignment.
22795 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
22796 (aarch64_function_arg_boundary): Likewise.
22797 (aarch64_gimplify_va_arg_expr): Likewise.
22799 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
22801 PR middle-end/89037
22802 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
22803 instead of accessing TREE_INT_CST_ELT directly.
22805 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
22807 * doc/sourcebuild.texi (Environment attributes): Add fenv and
22808 fenv_exceptions description.
22810 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
22812 PR rtl-optimization/87763
22813 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
22814 Allow SUBREG when matching CC_NZmode compare.
22816 2019-01-25 Richard Biener <rguenther@suse.de>
22818 PR tree-optimization/89049
22819 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
22820 Look at the pattern stmt to determine if the stmt is vectorized.
22822 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
22824 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
22825 (pred_mov<mode>): Handle all-register forms using both a new
22826 alternative and a split.
22828 2019-01-25 Richard Biener <rguenther@suse.de>
22830 PR tree-optimization/86865
22831 * graphite-scop-detection.c (scop_detection::can_represent_loop):
22832 Reject non-do-while loops.
22834 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
22836 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
22837 * config/rs6000/constraints.md (Q constraint): Use REG_P.
22838 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
22839 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22840 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
22841 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22842 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
22843 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
22844 vlogical_operand, gpc_reg_operand, int_reg_operand,
22845 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
22846 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
22847 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
22848 (save_world_operation, restore_world_operation, lmw_operation,
22849 stmw_operation): Use MEM_P and REG_P.
22850 (tie_operand): Use MEM_P.
22851 (vrsave_operation, crsave_operation): Use REG_P.
22852 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
22853 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
22854 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
22855 (call_operand): Use HARD_REGISTER_P.
22856 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
22858 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
22859 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
22860 quad_aligned_load_p, replace_swapped_aligned_store,
22861 recombine_lvx_pattern, replace_swapped_aligned_load,
22862 recombine_stvx_pattern): Use MEM_P.
22863 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
22864 Use MEM_P and SYMBOL_REF_P.
22865 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
22866 (insn_is_swappable_p): Use REG_P and MEM_P.
22867 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
22868 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
22870 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
22871 Use CONST_DOUBLE_P.
22872 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
22874 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
22875 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
22876 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
22877 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
22879 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22880 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
22881 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
22882 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
22883 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
22884 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
22885 rs6000_split_logical_di): Use CONST_INT_P.
22886 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
22887 REG_P and SYMBOL_REF_P.
22888 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
22889 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
22890 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
22891 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
22892 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
22893 (small_data_operand, print_operand_address): Use CONST_INT_P and
22895 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
22896 (rs6000_init_hard_regno_mode_ok, direct_move_p):
22897 Use HARD_REGISTER_NUM_P.
22898 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
22899 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
22900 SUBREG_P and SYMBOL_REF_P.
22901 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
22902 and HARD_REGISTER_NUM_P.
22903 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
22905 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
22906 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
22908 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
22909 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
22910 find_addr_reg): Use REG_P.
22911 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
22912 (rs6000_emit_le_vsx_move): Use SUBREG_P.
22913 (offsettable_ok_by_alignment, constant_pool_expr_p,
22914 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
22915 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
22916 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
22917 rs6000_assemble_integer, create_TOC_reference,
22918 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
22919 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
22920 (rs6000_split_vec_extract_var): Use reg_or_subregno.
22921 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22922 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22923 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22924 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22925 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
22926 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
22927 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
22928 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
22929 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
22930 and cbranch<mode>4): Use CONST_INT_P.
22931 (multiple define_splits): Use REG_P and SUBREG_P.
22932 (define_expands call, call_value): Use MEM_P.
22933 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
22934 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
22935 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
22936 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
22937 and HARD_REGISTER_NUM_P.
22938 (multiple define_splits): Use HARD_REGISTER_NUM_P.
22940 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
22942 PR rtl-optimization/88948
22943 * rtl.h (prepare_copy_insn): New prototype.
22944 * gcse.c (prepare_copy_insn): New function, split out from
22945 process_insert_insn.
22946 (process_insert_insn): Use prepare_copy_insn.
22947 * store-motion.c (replace_store_insn): Use prepare_copy_insn
22948 instead of gen_move_insn.
22950 2019-01-24 Jakub Jelinek <jakub@redhat.com>
22953 * config/i386/i386.c (ix86_pic_register_p): Return true for
22954 UNSPEC_SET_GOT too.
22956 PR tree-optimization/88964
22957 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
22958 punt if HONOR_SNANS (chrec).
22960 PR middle-end/89015
22961 * tree-nested.c (convert_nonlocal_reference_stmt,
22962 convert_local_reference_stmt, convert_tramp_reference_stmt,
22963 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
22964 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
22965 or GIMPLE_OMP_TASK.
22967 PR tree-optimization/89027
22968 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
22969 for "omp simd array" variables.
22971 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
22974 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
22975 force the alignment of m_val.
22977 2019-01-24 Richard Biener <rguenther@suse.de>
22980 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
22981 When in "legacy" debug mode make sure to reset self-origins.
22983 2019-01-24 Martin Liska <mliska@suse.cz>
22985 PR gcov-profile/88994
22986 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
22987 result will be always smaller or equal to the original.
22988 * gcov.c (mangle_name): Fix else branch where we should
22989 also copy to PTR and shift the pointer.
22991 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
22993 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
22994 * vr-values.c (find_case_label_ranges): Fix a comment typo.
22996 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
22998 * common/config/i386/i386-common.c
22999 (OPTION_MASK_ISA_ENQCMD_SET,
23000 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
23001 (ix86_handle_option): Handle -menqcmd.
23002 * config.gcc (enqcmdintrin.h): New header file.
23003 * config/i386/cpuid.h (bit_ENQCMD): New bit.
23004 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
23006 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
23008 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
23009 __builtin_ia32_enqcmds): New builtins.
23010 * config/i386/i386-c.c (__ENQCMD__): New macro.
23011 * config/i386/i386-option.c (ix86_target_string): Add
23013 (ix86_valid_target_attribute_inner_p): Likewise.
23014 * config/i386/i386-expand.c
23015 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
23016 IX86_BUILTIN_ENQCMDS.
23017 * config/i386/i386.h (TARGET_ENQCMD): New.
23018 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
23019 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
23020 (movdir64b_<mode>): Parameterize to enable share expansion code
23021 with ENQCMD in function ix86_expand_builtin.
23022 * config/i386/i386.opt: Add -menqcmd.
23023 * config/i386/immintrin.h: Include enqcmdintrin.h.
23024 * config/i386/enqcmdintrin.h: New intrinsic file.
23025 * doc/invoke.texi: Add -menqcmd.
23027 2019-01-23 Bin Cheng <bin.cheng@arm.com>
23028 Steve Ellcey <sellcey@marvell.com>
23031 * recog.c (address_operand): Return false on wrong mode for address.
23032 (constrain_operands): Check for mode with 'p' constraint.
23034 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
23037 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
23038 Disparage MMX alternative.
23039 (sse2_cvtpd2pi): Ditto.
23040 (sse2_cvttpd2pi): Ditto.
23042 2019-01-23 David Malcolm <dmalcolm@redhat.com>
23045 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
23046 use-after-free of the result of
23047 aarch64_get_extension_string_for_isa_flags.
23049 2019-01-23 Jakub Jelinek <jakub@redhat.com>
23052 * doc/extend.texi: Document break and continue behavior in
23053 statement expressions.
23055 2019-01-23 Richard Biener <rguenther@suse.de>
23057 PR tree-optimization/89008
23058 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
23059 not leave another stray operand.
23061 2019-01-23 Jakub Jelinek <jakub@redhat.com>
23063 * BASE-VER: Bump to 9.0.1.
23065 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
23067 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
23068 thunk that returns by reference, use the type of the return object
23069 of the thunk instead of that of the alias to build the dereference.
23071 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
23073 * config/arc/atomic.md: Add operand to DMB instruction.
23075 2019-01-23 Jakub Jelinek <jakub@redhat.com>
23077 PR tree-optimization/88964
23078 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
23079 build_zero_cst instead of build_int_cst. Return false for loop
23080 invariants which honor signed zeros.
23082 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
23084 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
23086 2019-01-22 Jakub Jelinek <jakub@redhat.com>
23089 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
23090 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
23091 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
23093 PR middle-end/88968
23094 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
23095 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
23098 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
23099 Disable for little endian.
23101 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
23104 * config/arm/arm.c (arm_needs_double_word_align): Check
23105 DECL_BIT_FIELD_TYPE.
23107 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
23108 H.J. Lu <hongjiu.lu@intel.com>
23111 * config/i386/i386-builtin.def: Add mask2 to all builtin
23112 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
23114 * config/i386/i386.c (BDESC): Add mask2 to the definition.
23115 (BDESC_FIRST): Likewise.
23116 (define_builtin): Add an argument for mask2. Updated to handle
23117 both ix86_isa_flags and ix86_isa_flags2.
23118 (define_builtin_const): Likewise.
23119 (define_builtin_pure): Likewise.
23120 (define_builtin2): Deleted.
23121 (define_builtin_const2): Likewise.
23122 (builtin_description): Add a member, mask2.
23123 (bdesc_*): Add mask2 to builtin initializations.
23124 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
23125 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
23127 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
23129 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
23132 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
23135 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
23138 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
23139 alignment is dominated by a bitfield with 64-bit aligned base type.
23140 (arm_function_arg): Emit a warning if the alignment has changed since
23141 earlier GCC releases.
23142 (arm_function_arg_boundary): Likewise.
23143 (arm_setup_incoming_varargs): Likewise.
23145 2019-01-22 Richard Biener <rguenther@suse.de>
23147 PR tree-optimization/88862
23148 * graphite-scop-detection.c
23149 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
23151 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
23153 * doc/extend.tex (AMD GCN Function Attributes): New section.
23154 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
23155 * doc/invoke.texi (AMD GCN Options): New section.
23156 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
23158 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
23160 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
23161 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
23163 2019-01-22 Jakub Jelinek <jakub@redhat.com>
23165 PR tree-optimization/88044
23166 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
23167 is false in the first iteration, but !every_iteration, return false
23168 instead of true with niter->niter zero.
23170 PR rtl-optimization/88904
23171 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
23172 any nonequal registers before processing BB_END (b).
23175 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
23177 (expand_binop_directly, expand_doubleword_clz,
23178 expand_doubleword_popcount, expand_ctz, expand_ffs,
23179 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
23181 PR rtl-optimization/49429
23183 PR rtl-optimization/86334
23185 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
23186 addressable from here...
23187 (emit_block_op_via_libcall): ... to here.
23189 2019-01-22 Richard Biener <rguenther@suse.de>
23191 * tree-vect-loop.c (vect_analyze_loop_operations): Use
23192 auto_vec for cost vector to fix memleak.
23193 (vectorize_fold_left_reduction): Properly gather SLP defs.
23194 (vectorizable_comparison): Do not swap operands to properly
23197 2019-01-22 Alan Modra <amodra@gmail.com>
23200 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
23201 stays a reg. Allow a const_int.
23202 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
23203 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
23204 (IS_NOMARK_TLSGETADDR): Define.
23205 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
23206 (rs6000_output_tlsargs): New function.
23207 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
23208 __tls_get_addr call takes an arg.
23209 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
23210 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
23212 (call_value_nonlocal_sysv): ..or here, delete split.
23213 (tls_gdld_nomark): Delete.
23214 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
23215 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
23216 (call_value_nonlocal_sysv): Likewise.
23217 (call_value_nonlocal_sysv_secure): Likewise.
23218 (call_value_nonlocal_aix): Likewise.
23219 (call_value_indirect_aix): Likewise.
23220 (call_value_indirect_elfv2): Likewise.
23221 (call_value_local32, call_value_local64): Disable for no-mark tls.
23222 (call_value_local_aix): Likewise.
23224 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
23227 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
23228 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
23230 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
23232 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
23233 string contents as hash_map keys.
23235 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
23238 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
23239 for rvalue context. Handle rvalues correctly. Use min_align_of_type
23240 instead of TYPE_ALIGN.
23241 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
23242 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
23243 pointer from TYPE_STUB_DECL.
23245 2019-01-21 Richard Biener <rguenther@suse.de>
23247 PR tree-optimization/88934
23248 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
23249 at the possibly non-constant operand.
23250 (vect_get_constant_vectors): Adjust.
23252 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
23255 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
23256 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
23257 instead of _X86INTRIN_H_INCLUDED.
23258 * onfig/i386/clwbintrin.h: Likewise.
23259 * config/i386/pkuintrin.h: Likewise.
23260 * config/i386/prfchwintrin.h: Likewise.
23261 * config/i386/rdseedintrin.h: Likewise.
23262 * config/i386/wbnoinvdintrin.h: Likewise.
23263 * config/i386/xsavecintrin.h: Likewise.
23264 * config/i386/xsavesintrin.h: Likewise.
23265 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
23266 * config/i386/xsaveintrin.h: Likewise.
23267 * config/i386/xsaveoptintrin.h: Likewise.
23268 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
23269 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
23270 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
23271 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
23272 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
23273 * config/i386/immintrin.h: Here.
23275 2019-01-20 Martin Jambor <mjambor@suse.cz>
23278 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
23279 with aa_walk_budget.
23280 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
23281 aa_walk_budget_p parameter.
23282 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
23283 walk. Updated all callers.
23284 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
23285 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
23287 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
23288 parameter info. Extract info from fbi. Pass fbi to recursive calls
23289 and to unmodified_parm.
23290 (phi_result_unknown_predicate): New parameter fbi, removed parameter
23291 info, updated call to will_be_nonconstant_expr_predicate.
23292 (param_change_prob): New parameter fbi, limit AA walking.
23293 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
23294 calls to various above functions.
23295 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
23296 parameter. Use it to limit AA walking.
23297 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
23298 fbi, limit AA walk.
23299 (detect_type_change): New parameter fbi, pass it on to
23300 detect_type_change_from_memory_writes.
23301 (detect_type_change_ssa): Likewise.
23302 (aa_overwalked): Removed.
23303 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
23304 accordingly, adjust to the neew AA limiting scheme.
23305 (parm_ref_data_preserved_p): Likewise.
23306 (ipa_compute_jump_functions_for_edge): Adjust call to
23308 (ipa_analyze_call_uses): Likewise.
23309 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
23310 (ipa_analyze_node): Initialize aa_walk_budget.
23311 (ipcp_transform_function): Likewise.
23312 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
23313 to get_dynamic_type.
23315 2019-01-19 Jakub Jelinek <jakub@redhat.com>
23317 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
23318 outside of #if CHECKING_P code.
23320 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
23322 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
23323 New function, split out from...
23324 (loop_versioning::analyze_stride): ...here.
23325 (loop_versioning::find_per_loop_multiplication): Use gassign.
23326 (loop_versioning::analyze_term_using_scevs): Return a success code.
23327 (loop_versioning::analyze_arbitrary_term): New function.
23328 (loop_versioning::analyze_address_fragment): Use
23329 analyze_arbitrary_term if all else fails.
23331 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
23334 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
23337 2019-01-18 Richard Biener <rguenther@suse.de>
23339 PR tree-optimization/88903
23340 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
23341 scalar stmts a SLP shift amount is composed of when detecting
23344 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
23347 * config/arm/arm-cpus.in (mp): New feature.
23348 (sec): New feature.
23349 (fgroup ARMv7ve): Add mp and sec features.
23350 (arch armv7-a): Add options to allow mp and sec extensions.
23351 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
23352 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
23353 extenstions to the base architecture.
23354 (cpu cortex-a8): Add sec extension to the base architecture.
23355 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
23356 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
23357 variants down to the base v7-a varaint.
23358 * config/arm/t-multilib (v7_a_arch_variants): New variable.
23359 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
23360 of permitted extensions for -march=armv7-a and for
23361 -mcpu=generic-armv7-a.
23363 2019-01-18 Martin Liska <mliska@suse.cz>
23365 * params.def: Fix comment.
23366 * tree-profile.c (gimple_init_gcov_profiler): Bump function
23368 (gimple_gen_ic_func_profiler): Likewise.
23370 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23372 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
23373 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
23374 and put in error checks for stack protector guard options.
23375 (aarch64_stack_protect_guard): New.
23376 (TARGET_STACK_PROTECT_GUARD): Define.
23377 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
23378 (reg_stack_protect_address<mode>): New.
23379 (stack_protect_set): Adjust for SSP_GLOBAL.
23380 (stack_protect_test): Likewise.
23381 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
23382 (-mstack-protector-guard): Likewise.
23383 (-mstack-protector-guard-offset): Likewise.
23385 2019-01-18 Jakub Jelinek <jakub@redhat.com>
23387 PR tree-optimization/86214
23388 * tree-inline.h (struct copy_body_data): Add
23389 add_clobbers_to_eh_landing_pads member.
23390 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
23391 (copy_edges_for_bb): Call it if EH edge destination is <
23392 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
23393 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
23394 if flag_stack_reuse != SR_NONE and clear it afterwards.
23396 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
23399 * doc/install.texi (with-multilib-list): Document for aarch64.
23401 2019-01-18 Jakub Jelinek <jakub@redhat.com>
23404 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
23405 (("..."))) with ("...").
23407 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
23409 * doc/extend.texi (Built-in Functions for Memory Model Aware
23410 Atomic Operations): Document atomic fetch and nand.
23412 2019-01-18 Martin Liska <mliska@suse.cz>
23413 Richard Biener <rguenther@suse.de>
23415 PR middle-end/88587
23416 * cgraph.h (create_version_clone_with_body): Add new argument
23418 * cgraphclones.c (cgraph_node::create_version_clone): Add
23419 DECL_ATTRIBUTES to a newly created decl. And call
23420 valid_attribute_p so that proper cl_target_optimization_node
23421 is set for the newly created declaration.
23422 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
23424 (expand_target_clones): Do not call valid_attribute_p, it must
23426 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
23429 2019-01-17 Jakub Jelinek <jakub@redhat.com>
23432 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
23433 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
23434 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
23436 2019-01-17 Martin Sebor <msebor@redhat.com>
23438 PR middle-end/88273
23439 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
23440 Handle anti-ranges the same as no range at all.
23442 2018-01-17 Steve Ellcey <sellcey@cavium.com>
23444 * config/aarch64/aarch64.c (cgraph.h): New include.
23445 (intl.h): New include.
23446 (supported_simd_type): New function.
23447 (currently_supported_simd_type): Ditto.
23448 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
23449 (aarch64_simd_clone_adjust): Ditto.
23450 (aarch64_simd_clone_usable): Ditto.
23451 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
23452 (TARGET_SIMD_CLONE_ADJUST): Ditto.
23453 (TARGET_SIMD_CLONE_USABLE): Ditto.
23454 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
23455 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
23458 2019-01-17 Martin Sebor <msebor@redhat.com>
23460 PR tree-optimization/88800
23461 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
23462 NO_WARNING bit here. Avoid folding out-of-bounds calls.
23463 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
23464 redundant argument. Add new argument and issue diagnostics under
23465 its control. Detect out-of-bounds access even with warnings
23467 (check_bounds_or_overlap): Change return type. Add argument.
23468 (wrestrict_dom_walker::check_call): Adjust.
23469 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
23470 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
23471 check_bounds_or_overlap's return value.
23472 (handle_builtin_stxncpy): Same.
23473 (handle_builtin_strcat): Same.
23475 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23476 Kwok Cheung Yeung <kcy@codesourcery.com>
23477 Julian Brown <julian@codesourcery.com>
23478 Tom de Vries <tom@codesourcery.com>
23480 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
23482 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23484 * doc/sourcebuild.texi: Document dg-require-effective-target
23485 llvm_binutils and offload_gcn.
23487 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23488 Kwok Cheung Yeung <kcy@codesourcery.com>
23489 Julian Brown <julian@codesourcery.com>
23490 Tom de Vries <tom@codesourcery.com>
23492 * doc/sourcebuild.texi: Document dg-required-effective-target
23495 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23496 Kwok Cheung Yeung <kcy@codesourcery.com>
23497 Julian Brown <julian@codesourcery.com>
23498 Tom de Vries <tom@codesourcery.com>
23499 Jan Hubicka <hubicka@ucw.cz>
23500 Martin Jambor <mjambor@suse.cz>
23502 * config.gcc: Add amdgcn*-*-amdhsa configuration.
23503 * configure.ac: Check for dlopen.
23504 * configure: Regenerate.
23506 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23507 Kwok Cheung Yeung <kcy@codesourcery.com>
23508 Julian Brown <julian@codesourcery.com>
23509 Tom de Vries <tom@codesourcery.com>
23510 Jan Hubicka <hubicka@ucw.cz>
23511 Martin Jambor <mjambor@suse.cz>
23513 * common/config/gcn/gcn-common.c: New file.
23514 * config/gcn/driver-gcn.c: New file.
23515 * config/gcn/gcn-builtins.def: New file.
23516 * config/gcn/gcn-hsa.h: New file.
23517 * config/gcn/gcn-modes.def: New file.
23518 * config/gcn/gcn-opts.h: New file.
23519 * config/gcn/gcn-passes.def: New file.
23520 * config/gcn/gcn-protos.h: New file.
23521 * config/gcn/gcn-run.c: New file.
23522 * config/gcn/gcn-tree.c: New file.
23523 * config/gcn/gcn.c: New file.
23524 * config/gcn/gcn.h: New file.
23525 * config/gcn/gcn.opt: New file.
23526 * config/gcn/t-gcn-hsa: New file.
23528 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23529 Kwok Cheung Yeung <kcy@codesourcery.com>
23530 Julian Brown <julian@codesourcery.com>
23531 Tom de Vries <tom@codesourcery.com>
23532 Jan Hubicka <hubicka@ucw.cz>
23533 Martin Jambor <mjambor@suse.cz>
23535 * config/gcn/constraints.md: New file.
23536 * config/gcn/gcn-valu.md: New file.
23537 * config/gcn/gcn.md: New file.
23538 * config/gcn/predicates.md: New file.
23540 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
23542 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
23543 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
23544 (stmt_uses_0_or_null_in_undefined_way): Likewise.
23545 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
23547 2019-01-17 Tamar Christina <tamar.christina@arm.com>
23550 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
23551 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
23552 it and document registers.
23554 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23556 * config/aarch64/aarch64.c (ares_tunings): Define.
23557 * config/aarch64/aarch64-cores.def (ares): Use the above.
23559 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23563 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
23565 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
23566 (_mm512_fixupimm_round_pd): Update parameters and builtin.
23567 (_mm512_maskz_fixupimm_round_pd): Ditto.
23568 (_mm512_fixupimm_round_ps): Ditto.
23569 (_mm512_maskz_fixupimm_round_ps): Ditto.
23570 (_mm_fixupimm_round_sd): Ditto.
23571 (_mm_maskz_fixupimm_round_sd): Ditto.
23572 (_mm_fixupimm_round_ss): Ditto.
23573 (_mm_maskz_fixupimm_round_ss): Ditto.
23574 (_mm512_fixupimm_pd): Ditto.
23575 (_mm512_maskz_fixupimm_pd): Ditto.
23576 (_mm512_fixupimm_ps): Ditto.
23577 (_mm512_maskz_fixupimm_ps): Ditto.
23578 (_mm_fixupimm_sd): Ditto.
23579 (_mm_maskz_fixupimm_sd): Ditto.
23580 (_mm_fixupimm_ss): Ditto.
23581 (_mm_maskz_fixupimm_ss): Ditto.
23582 (_mm512_mask_fixupimm_round_pd): Update builtin.
23583 (_mm512_mask_fixupimm_round_ps): Ditto.
23584 (_mm_mask_fixupimm_round_sd): Ditto.
23585 (_mm_mask_fixupimm_round_ss): Ditto.
23586 (_mm512_mask_fixupimm_pd): Ditto.
23587 (_mm512_mask_fixupimm_ps): Ditto.
23588 (_mm_mask_fixupimm_sd): Ditto.
23589 (_mm_mask_fixupimm_ss): Ditto.
23590 * config/i386/avx512vlintrin.h:
23591 (_mm256_fixupimm_pd): Update parameters and builtin.
23592 (_mm256_maskz_fixupimm_pd): Ditto.
23593 (_mm256_fixupimm_ps): Ditto.
23594 (_mm256_maskz_fixupimm_ps): Ditto.
23595 (_mm_fixupimm_pd): Ditto.
23596 (_mm_maskz_fixupimm_pd): Ditto.
23597 (_mm_fixupimm_ps): Ditto.
23598 (_mm_maskz_fixupimm_ps): Ditto.
23599 (_mm256_mask_fixupimm_pd): Update builtin.
23600 (_mm256_mask_fixupimm_ps): Ditto.
23601 (_mm_mask_fixupimm_pd): Ditto.
23602 (_mm_mask_fixupimm_ps): Ditto.
23603 * config/i386/i386-builtin-types.def: Add new types and remove
23605 * config/i386/i386-builtin.def: Update builtin definitions.
23606 * config/i386/i386.c: Handle new builtin types and remove useless ones.
23607 * config/i386/sse.md: Update VFIXUPIMM* patterns.
23608 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23609 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23610 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
23611 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23612 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23613 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
23614 * config/i386/subst.md:
23615 (round_saeonly_sd_mask_operand4): Add new subst_attr.
23616 (round_saeonly_sd_mask_op4): Ditto.
23617 (round_saeonly_expand_operand5): Ditto.
23618 (round_saeonly_expand): Update.
23620 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23624 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
23626 * config/i386/sse.md: Combine VFIXUPIMM* patterns
23627 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23628 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23629 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
23630 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23631 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23632 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
23634 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23638 2018-12-15 Jakub Jelinek <jakub@redhat.com>
23641 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
23642 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
23643 instead of UNSPEC_FIXUPIMM.
23645 2019-01-17 Richard Biener <rguenther@suse.de>
23648 * dwarf2out.c (want_pubnames): Never generate pubnames sections
23649 and friends for the LTO part of debug info.
23651 2019-01-17 Jakub Jelinek <jakub@redhat.com>
23653 PR tree-optimization/86214
23654 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
23657 PR rtl-optimization/88870
23658 * dce.c (deletable_insn_p): Never delete const/pure calls that can
23659 throw if we can't alter the cfg or delete dead exceptions.
23660 (mark_insn): Don't call find_call_stack_args for such calls.
23662 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
23664 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
23665 prototypes for vec_st.
23666 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
23667 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
23668 mainly on signed/unsigned long long and double.
23670 2019-01-16 David Malcolm <dmalcolm@redhat.com>
23673 * combine.c (delete_noop_moves): Convert to "bool" return,
23674 returning true if any edges are eliminated.
23675 (combine_instructions): Also return true if delete_noop_moves
23678 2019-01-16 Tamar Christina <tamar.christina@arm.com>
23680 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
23681 correct max nunits for endian swap.
23682 (aarch64_expand_fcmla_builtin): Correct subreg code.
23683 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23684 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
23687 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
23689 * config/alpha/alpha.c (alpha_gimplify_va_arg):
23690 Handle split indirect COMPLEX_TYPE arguments.
23692 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
23695 * config/aarch64/aarch64-modes.def: Add comment about how the carry
23696 bit is set by add and compare.
23697 (CC_ADC): New CC_MODE.
23698 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
23699 to cache the code and mode of X. Adjust the shape of a CC_Cmode
23700 comparison. Add detection for CC_ADCmode.
23701 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
23703 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
23704 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
23705 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
23706 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
23707 to eliminate the need for zero-extending the operands.
23708 (add<mode>3_compareC_imm): Delete. Merge into ...
23709 (add<mode>3_compareC): ... this. Restructure the comparison to
23710 eliminate the need for zero-extending the operands.
23711 (add<mode>3_carryin): Use LTU for the overflow detection.
23712 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
23713 Reexpress comparison for overflow.
23714 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
23715 (add<mode>3_carryinC): Likewise.
23716 (add<mode>3_carryinV): Use LTU for carry between partials.
23717 * config/aarch64/predicates.md (aarch64_carry_operation): Update
23718 handling of CC_Cmode and add CC_ADCmode.
23719 (aarch64_borrow_operation): Likewise.
23721 2019-01-16 Tamar Christina <tamar.christina@arm.com>
23723 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
23724 Remove patternmode.
23725 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
23726 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23727 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
23728 Remove endianness conversion.
23730 2019-01-16 Martin Liska <mliska@suse.cz>
23732 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
23734 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
23736 * gcc.c (add_sysrooted_hdrs_prefix): New function.
23737 (path_prefix_reset): Move up in the source file.
23738 (find_fortran_preinclude_file): Make complex search for the
23739 fortran header files.
23741 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
23743 * godump.c (go_output_typedef): When outputting a typedef, refer
23744 to the underlying type by its name and not its structure.
23746 2019-01-15 David Malcolm <dmalcolm@redhat.com>
23749 * tree.c (build_function_type): Assert that arg_types is not
23752 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
23754 PR inline-asm/52813
23755 * doc/extend.texi: Document that listing the stack pointer in the
23756 clobber list of an asm is a deprecated feature.
23757 * common.opt (Wdeprecated): Moved from c-family/c.opt.
23758 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
23759 warning instead of an error for clobbers of the stack pointer.
23760 Add a note explaining why.
23762 2019-01-15 Richard Biener <rguenther@suse.de>
23765 * dwarf2out.c (gen_member_die): Do not generate inheritance
23768 2019-01-15 Richard Biener <rguenther@suse.de>
23770 PR tree-optimization/88855
23771 * tree-if-conv.c (combine_blocks): Collect
23772 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
23774 2019-01-15 Tom de Vries <tdevries@suse.de>
23777 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
23778 lhs == NULL_TREE for gang-level reduction.
23780 2019-01-15 Richard Biener <rguenther@suse.de>
23781 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23784 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
23785 return true if SSA_NAME is already marked in visited bitmap.
23786 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
23788 2019-01-15 Jakub Jelinek <jakub@redhat.com>
23790 PR tree-optimization/88775
23791 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
23792 equal == 0 equality pointer comparisons some more if compared in
23793 integral types and either one points to an automatic var and the
23794 other to a global, or we can prove at least one points to the middle
23795 or both point to start or both point to end.
23797 2019-01-14 Andi Kleen <ak@linux.intel.com>
23799 * Makefile.in: Lower autofdo sampling rate by 10x.
23800 * Makefile.tpl: Dito.
23802 2019-01-14 Tom Honermann <tom@honermann.net>
23804 * defaults.h: Define CHAR8_TYPE.
23806 2019-01-14 Martin Sebor <msebor@redhat.com>
23809 * doc/extend.texi (Darwin Format Checks): Clarify.
23811 2019-01-14 Richard Biener <rguenther@suse.de>
23813 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
23814 whether we are in (simplify ...) or (match ...) context.
23816 2019-01-14 Jakub Jelinek <jakub@redhat.com>
23818 PR rtl-optimization/88796
23819 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
23820 * cfgexpand.c (stack_protect_prologue): Initialize
23821 crtl->stack_protect_guard_decl.
23822 * function.c (stack_protect_epilogue): Use it instead of calling
23823 targetm.stack_protect_guard again.
23824 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
23825 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
23826 crtl->stack_protect_guard_decl.
23827 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
23828 on the returned MEM_EXPR.
23830 2019-01-12 Tom de Vries <tdevries@suse.de>
23832 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
23833 vector length using -fopenacc-dim.
23835 2019-01-12 Tom de Vries <tdevries@suse.de>
23837 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
23838 lengths into account.
23840 2019-01-12 Svante Signell <svante.signell@gmail.com>
23842 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
23843 (TARGET_CAN_SPLIT_STACK): Define.
23844 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
23846 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
23848 * params.def (inline-unit-growth): Set to 40.
23850 2019-01-12 Jakub Jelinek <jakub@redhat.com>
23852 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
23854 2019-01-12 Tom de Vries <tdevries@suse.de>
23856 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
23857 region calling vector-partitionable routine, set default_vector_length
23860 2019-01-12 Tom de Vries <tdevries@suse.de>
23862 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
23863 variable default_vector_length.
23865 2019-01-12 Tom de Vries <tdevries@suse.de>
23867 PR middle-end/88703
23868 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
23869 from oacc_default_dims, as oacc_validate_dims would do it, and apply
23872 2019-01-12 Tom de Vries <tdevries@suse.de>
23874 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
23875 (nvptx_goacc_validate_dims): Add used parameter.
23876 * doc/tm.texi: Regenerate.
23877 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
23878 argument to call to targetm.goacc.validate_dims.
23879 (default_goacc_validate_dims): Add used
23881 * target.def (validate_dims): Add used parameter in DEFHOOK.
23882 * targhooks.h (default_goacc_validate_dims): Add used parameter.
23884 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23886 PR middle-end/85956
23888 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
23890 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
23891 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
23892 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
23893 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
23895 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
23897 PR rtl-optimization/87305
23899 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
23900 for little endian pseudos used as paradoxical subreg.
23902 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23904 PR tree-optimization/88693
23905 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
23906 for STRING_CSTs that don't contain any NUL characters in the first
23907 TREE_STRING_LENGTH bytes.
23909 2019-01-11 Alan Modra <amodra@gmail.com>
23913 * genattrtab.c (min_fn): Don't translate values.
23914 (min_attr_value): Return INT_MAX when the value can't be calculated.
23915 Return minimum among any values that can be calculated.
23916 (max_attr_value): Adjust.
23918 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23920 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
23922 2019-01-11 Steve Ellcey <sellcey@marvell.com>
23924 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23925 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
23926 (aarch64_return_call_with_max_clobbers): New function.
23927 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
23928 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
23930 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
23931 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
23932 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
23933 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
23934 * cselib.c (cselib_process_insn): Add argument to
23935 targetm.hard_regno_call_part_clobbered call.
23936 * ira-conflicts.c (ira_build_conflicts): Ditto.
23937 * ira-costs.c (ira_tune_allocno_costs): Ditto.
23938 * lra-constraints.c (inherit_reload_reg): Ditto.
23939 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
23940 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
23941 argument. Call targetm.return_call_with_max_clobbers.
23942 Add argument to targetm.hard_regno_call_part_clobbered call.
23943 (calls_have_same_clobbers_p): New function.
23944 (process_bb_lives): Add call_insn and last_call_insn variables.
23945 Pass call_insn to check_pseudos_live_through_calls.
23946 Modify if stmt to check targetm.return_call_with_max_clobbers.
23947 Update setting of flush variable.
23948 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
23950 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
23951 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
23952 targetm.hard_regno_call_part_clobbered call.
23953 * reginfo.c (choose_hard_reg_mode): Ditto.
23954 * regrename.c (check_new_reg_p): Ditto.
23955 * reload.c (find_equiv_reg): Ditto.
23956 * reload1.c (emit_reload_insns): Ditto.
23957 * sched-deps.c (deps_analyze_insn): Ditto.
23958 * sel-sched.c (init_regs_for_mode): Ditto.
23959 (mark_unavailable_hard_regs): Ditto.
23960 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
23961 * target.def (hard_regno_call_part_clobbered): Add insn argument.
23962 (return_call_with_max_clobbers): New target function.
23963 * doc/tm.texi: Regenerate.
23964 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
23965 * hooks.c (hook_bool_uint_mode_false): Change to
23966 hook_bool_insn_uint_mode_false.
23967 * hooks.h (hook_bool_uint_mode_false): Ditto.
23969 2019-01-11 Steve Ellcey <sellcey@marvell.com>
23971 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23972 (aarch64_remove_extra_call_preserved_regs): New function.
23973 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
23974 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
23975 * doc/tm.texi: Regenerate.
23976 * final.c (get_call_reg_set_usage): Call new hook.
23977 * target.def (remove_extra_call_preserved_regs): New hook.
23978 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
23979 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
23981 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23984 * passes.c (finish_optimization_passes): Call print_combine_total_stats
23985 inside of pass_combine_1 dump rather than pass_profile_1.
23987 2019-01-11 Tom de Vries <tdevries@suse.de>
23989 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
23990 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
23991 (PTX_NUM_PER_WORKER_BARRIERS): Define.
23992 (nvptx_apply_dim_limits): Prevent vector_length 64 and
23995 2019-01-11 Tom de Vries <tdevries@suse.de>
23997 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
23999 2019-01-11 Jan Beulich <jbeulich@suse.com>
24001 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
24002 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
24003 sse2_cvtsi2sd): Add {l}.
24004 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
24007 2019-01-10 Jakub Jelinek <jakub@redhat.com>
24010 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
24012 (*float<floatunssuffix>v2div2sf2): New define_insn.
24013 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
24014 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
24015 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
24016 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
24017 match_operands with "const0_operand" "C".
24019 2019-01-10 Tamar Christina <tamar.christina@arm.com>
24021 * config/aarch64/aarch64-builtins.c
24022 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
24023 (aarch64_init_simd_builtins): ...Here
24025 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
24027 PR rtl-optimization/87305
24029 (setup_live_pseudos_and_spill_after_risky_transforms): Check
24030 allocation for big endian pseudos used as paradoxical subregs and
24031 spill them if it is wrong.
24032 * lra-constraints.c (lra_constraints): Add a comment.
24034 2019-01-10 Richard Biener <rguenther@suse.de>
24036 PR tree-optimization/88792
24037 * tree-ssa-pre.c (get_representative_for): Do not return a
24040 2019-01-10 Jakub Jelinek <jakub@redhat.com>
24042 PR middle-end/84877
24044 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
24045 (assign_parm_setup_block): Do the argument slot realignment here
24048 2019-01-10 Stefan Agner <stefan@agner.ch>
24051 * config/arm/arm.c (arm_option_override_internal): Force
24052 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
24054 2019-01-10 Jakub Jelinek <jakub@redhat.com>
24057 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
24060 2019-01-10 Tamar Christina <tamar.christina@arm.com>
24062 * config/arm/arm-builtins.c
24063 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
24064 (MAC_LANE_PAIR_QUALIFIERS): New.
24065 (arm_expand_builtin_args): Use it.
24066 (arm_expand_builtin_1): Likewise.
24067 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
24068 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
24069 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
24070 * config/arm/arm_neon.h:
24071 (vcadd_rot90_f16): New.
24072 (vcaddq_rot90_f16): New.
24073 (vcadd_rot270_f16): New.
24074 (vcaddq_rot270_f16): New.
24077 (vcmla_lane_f16): New.
24078 (vcmla_laneq_f16): New.
24079 (vcmlaq_lane_f16): New.
24080 (vcmlaq_laneq_f16): New.
24081 (vcmla_rot90_f16): New.
24082 (vcmlaq_rot90_f16): New.
24083 (vcmla_rot90_lane_f16): New.
24084 (vcmla_rot90_laneq_f16): New.
24085 (vcmlaq_rot90_lane_f16): New.
24086 (vcmlaq_rot90_laneq_f16): New.
24087 (vcmla_rot180_f16): New.
24088 (vcmlaq_rot180_f16): New.
24089 (vcmla_rot180_lane_f16): New.
24090 (vcmla_rot180_laneq_f16): New.
24091 (vcmlaq_rot180_lane_f16): New.
24092 (vcmlaq_rot180_laneq_f16): New.
24093 (vcmla_rot270_f16): New.
24094 (vcmlaq_rot270_f16): New.
24095 (vcmla_rot270_lane_f16): New.
24096 (vcmla_rot270_laneq_f16): New.
24097 (vcmlaq_rot270_lane_f16): New.
24098 (vcmlaq_rot270_laneq_f16): New.
24099 (vcadd_rot90_f32): New.
24100 (vcaddq_rot90_f32): New.
24101 (vcadd_rot270_f32): New.
24102 (vcaddq_rot270_f32): New.
24105 (vcmla_lane_f32): New.
24106 (vcmla_laneq_f32): New.
24107 (vcmlaq_lane_f32): New.
24108 (vcmlaq_laneq_f32): New.
24109 (vcmla_rot90_f32): New.
24110 (vcmlaq_rot90_f32): New.
24111 (vcmla_rot90_lane_f32): New.
24112 (vcmla_rot90_laneq_f32): New.
24113 (vcmlaq_rot90_lane_f32): New.
24114 (vcmlaq_rot90_laneq_f32): New.
24115 (vcmla_rot180_f32): New.
24116 (vcmlaq_rot180_f32): New.
24117 (vcmla_rot180_lane_f32): New.
24118 (vcmla_rot180_laneq_f32): New.
24119 (vcmlaq_rot180_lane_f32): New.
24120 (vcmlaq_rot180_laneq_f32): New.
24121 (vcmla_rot270_f32): New.
24122 (vcmlaq_rot270_f32): New.
24123 (vcmla_rot270_lane_f32): New.
24124 (vcmla_rot270_laneq_f32): New.
24125 (vcmlaq_rot270_lane_f32): New.
24126 (vcmlaq_rot270_laneq_f32): New.
24127 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
24128 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
24129 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
24130 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
24131 vcmlaq_lane270): New.
24132 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
24133 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
24134 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
24135 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
24136 (arm_option_reconfigure_globals): Use them.
24137 * config/arm/iterators.md (VDF, VQ_HSF): New.
24138 (VCADD, VCMLA): New.
24139 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
24140 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
24142 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
24143 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
24145 2019-01-10 Tamar Christina <tamar.christina@arm.com>
24147 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
24148 Add qualifier_lane_pair_index.
24149 (emit-rtl.h): Include.
24150 (TYPES_QUADOP_LANE_PAIR): New.
24151 (aarch64_simd_expand_args): Use it.
24152 (aarch64_simd_expand_builtin): Likewise.
24153 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
24155 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
24156 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
24157 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
24158 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
24159 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
24160 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
24161 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
24162 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
24163 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
24164 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
24165 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
24166 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
24167 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
24168 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
24169 Add __ARM_FEATURE_COMPLEX.
24170 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
24171 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
24172 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
24173 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
24174 fcmlaq_lane270): New.
24175 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
24176 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
24177 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
24178 * config/aarch64/arm_neon.h:
24179 (vcadd_rot90_f16): New.
24180 (vcaddq_rot90_f16): New.
24181 (vcadd_rot270_f16): New.
24182 (vcaddq_rot270_f16): New.
24185 (vcmla_lane_f16): New.
24186 (vcmla_laneq_f16): New.
24187 (vcmlaq_lane_f16): New.
24188 (vcmlaq_rot90_lane_f16): New.
24189 (vcmla_rot90_laneq_f16): New.
24190 (vcmla_rot90_lane_f16): New.
24191 (vcmlaq_rot90_f16): New.
24192 (vcmla_rot90_f16): New.
24193 (vcmlaq_laneq_f16): New.
24194 (vcmla_rot180_laneq_f16): New.
24195 (vcmla_rot180_lane_f16): New.
24196 (vcmlaq_rot180_f16): New.
24197 (vcmla_rot180_f16): New.
24198 (vcmlaq_rot90_laneq_f16): New.
24199 (vcmlaq_rot270_laneq_f16): New.
24200 (vcmlaq_rot270_lane_f16): New.
24201 (vcmla_rot270_laneq_f16): New.
24202 (vcmlaq_rot270_f16): New.
24203 (vcmla_rot270_f16): New.
24204 (vcmlaq_rot180_laneq_f16): New.
24205 (vcmlaq_rot180_lane_f16): New.
24206 (vcmla_rot270_lane_f16): New.
24207 (vcadd_rot90_f32): New.
24208 (vcaddq_rot90_f32): New.
24209 (vcaddq_rot90_f64): New.
24210 (vcadd_rot270_f32): New.
24211 (vcaddq_rot270_f32): New.
24212 (vcaddq_rot270_f64): New.
24216 (vcmla_lane_f32): New.
24217 (vcmla_laneq_f32): New.
24218 (vcmlaq_lane_f32): New.
24219 (vcmlaq_laneq_f32): New.
24220 (vcmla_rot90_f32): New.
24221 (vcmlaq_rot90_f32): New.
24222 (vcmlaq_rot90_f64): New.
24223 (vcmla_rot90_lane_f32): New.
24224 (vcmla_rot90_laneq_f32): New.
24225 (vcmlaq_rot90_lane_f32): New.
24226 (vcmlaq_rot90_laneq_f32): New.
24227 (vcmla_rot180_f32): New.
24228 (vcmlaq_rot180_f32): New.
24229 (vcmlaq_rot180_f64): New.
24230 (vcmla_rot180_lane_f32): New.
24231 (vcmla_rot180_laneq_f32): New.
24232 (vcmlaq_rot180_lane_f32): New.
24233 (vcmlaq_rot180_laneq_f32): New.
24234 (vcmla_rot270_f32): New.
24235 (vcmlaq_rot270_f32): New.
24236 (vcmlaq_rot270_f64): New.
24237 (vcmla_rot270_lane_f32): New.
24238 (vcmla_rot270_laneq_f32): New.
24239 (vcmlaq_rot270_lane_f32): New.
24240 (vcmlaq_rot270_laneq_f32): New.
24241 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
24242 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
24243 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
24244 (FCADD, FCMLA): New.
24246 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
24248 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
24252 * config/pa/pa.c: Change "can not" to "cannot".
24253 * gimple-ssa-evrp-analyze.c: Likewise.
24254 * ipa-icf.c: Likewise.
24255 * ipa-polymorphic-call.c: Likewise.
24256 * ipa-pure-const.c: Likewise.
24257 * lra-constraints.c: Likewise.
24258 * lra-remat.c: Likewise.
24259 * reload1.c: Likewise.
24260 * reorg.c: Likewise.
24261 * tree-ssa-uninit.c: Likewise.
24263 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
24267 * Makefile.in: Mechanically replace "can not" with "cannot".
24268 * alias.c: Likewise.
24269 * builtins.c: Likewise.
24270 * calls.c: Likewise.
24271 * cgraph.c: Likewise.
24272 * cgraph.h: Likewise.
24273 * cgraphclones.c: Likewise.
24274 * cgraphunit.c: Likewise.
24275 * combine-stack-adj.c: Likewise.
24276 * combine.c: Likewise.
24277 * common/config/i386/i386-common.c: Likewise.
24278 * config/aarch64/aarch64.c: Likewise.
24279 * config/alpha/sync.md: Likewise.
24280 * config/arc/arc.c: Likewise.
24281 * config/arc/predicates.md: Likewise.
24282 * config/arm/arm-c.c: Likewise.
24283 * config/arm/arm.c: Likewise.
24284 * config/arm/arm.h: Likewise.
24285 * config/arm/arm.md: Likewise.
24286 * config/arm/cortex-r4f.md: Likewise.
24287 * config/csky/csky.c: Likewise.
24288 * config/csky/csky.h: Likewise.
24289 * config/darwin-f.c: Likewise.
24290 * config/epiphany/epiphany.md: Likewise.
24291 * config/i386/i386.c: Likewise.
24292 * config/i386/sol2.h: Likewise.
24293 * config/m68k/m68k.c: Likewise.
24294 * config/mcore/mcore.h: Likewise.
24295 * config/microblaze/microblaze.md: Likewise.
24296 * config/mips/20kc.md: Likewise.
24297 * config/mips/sb1.md: Likewise.
24298 * config/nds32/nds32.c: Likewise.
24299 * config/nds32/predicates.md: Likewise.
24300 * config/pa/pa.c: Likewise.
24301 * config/rs6000/e300c2c3.md: Likewise.
24302 * config/rs6000/rs6000.c: Likewise.
24303 * config/s390/s390.h: Likewise.
24304 * config/sh/sh.c: Likewise.
24305 * config/sh/sh.md: Likewise.
24306 * config/spu/vmx2spu.h: Likewise.
24307 * cprop.c: Likewise.
24308 * dbxout.c: Likewise.
24309 * df-scan.c: Likewise.
24310 * doc/cfg.texi: Likewise.
24311 * doc/extend.texi: Likewise.
24312 * doc/fragments.texi: Likewise.
24313 * doc/gty.texi: Likewise.
24314 * doc/invoke.texi: Likewise.
24315 * doc/lto.texi: Likewise.
24316 * doc/md.texi: Likewise.
24317 * doc/objc.texi: Likewise.
24318 * doc/rtl.texi: Likewise.
24319 * doc/tm.texi: Likewise.
24321 * emit-rtl.c: Likewise.
24322 * emit-rtl.h: Likewise.
24323 * except.c: Likewise.
24324 * expmed.c: Likewise.
24325 * expr.c: Likewise.
24326 * fold-const.c: Likewise.
24327 * genautomata.c: Likewise.
24328 * gimple-fold.c: Likewise.
24329 * hard-reg-set.h: Likewise.
24330 * ifcvt.c: Likewise.
24331 * ipa-comdats.c: Likewise.
24332 * ipa-cp.c: Likewise.
24333 * ipa-devirt.c: Likewise.
24334 * ipa-fnsummary.c: Likewise.
24335 * ipa-icf.c: Likewise.
24336 * ipa-inline-transform.c: Likewise.
24337 * ipa-inline.c: Likewise.
24338 * ipa-polymorphic-call.c: Likewise.
24339 * ipa-profile.c: Likewise.
24340 * ipa-prop.c: Likewise.
24341 * ipa-pure-const.c: Likewise.
24342 * ipa-reference.c: Likewise.
24343 * ipa-split.c: Likewise.
24344 * ipa-visibility.c: Likewise.
24346 * ira-build.c: Likewise.
24347 * ira-color.c: Likewise.
24348 * ira-conflicts.c: Likewise.
24349 * ira-costs.c: Likewise.
24350 * ira-int.h: Likewise.
24351 * ira-lives.c: Likewise.
24354 * loop-invariant.c: Likewise.
24355 * loop-unroll.c: Likewise.
24356 * lower-subreg.c: Likewise.
24357 * lra-assigns.c: Likewise.
24358 * lra-constraints.c: Likewise.
24359 * lra-eliminations.c: Likewise.
24360 * lra-lives.c: Likewise.
24361 * lra-remat.c: Likewise.
24362 * lra-spills.c: Likewise.
24364 * lto-cgraph.c: Likewise.
24365 * lto-streamer-out.c: Likewise.
24366 * postreload-gcse.c: Likewise.
24367 * predict.c: Likewise.
24368 * profile-count.h: Likewise.
24369 * profile.c: Likewise.
24370 * recog.c: Likewise.
24372 * reload.c: Likewise.
24373 * reload1.c: Likewise.
24374 * reorg.c: Likewise.
24375 * resource.c: Likewise.
24376 * rtl.def: Likewise.
24378 * rtlanal.c: Likewise.
24379 * sched-deps.c: Likewise.
24380 * sched-ebb.c: Likewise.
24381 * sched-rgn.c: Likewise.
24382 * sel-sched-ir.c: Likewise.
24383 * sel-sched.c: Likewise.
24384 * shrink-wrap.c: Likewise.
24385 * simplify-rtx.c: Likewise.
24386 * symtab.c: Likewise.
24387 * target.def: Likewise.
24388 * toplev.c: Likewise.
24389 * tree-call-cdce.c: Likewise.
24390 * tree-cfg.c: Likewise.
24391 * tree-complex.c: Likewise.
24392 * tree-core.h: Likewise.
24393 * tree-eh.c: Likewise.
24394 * tree-inline.c: Likewise.
24395 * tree-loop-distribution.c: Likewise.
24396 * tree-nrv.c: Likewise.
24397 * tree-profile.c: Likewise.
24398 * tree-sra.c: Likewise.
24399 * tree-ssa-alias.c: Likewise.
24400 * tree-ssa-dce.c: Likewise.
24401 * tree-ssa-dom.c: Likewise.
24402 * tree-ssa-forwprop.c: Likewise.
24403 * tree-ssa-loop-im.c: Likewise.
24404 * tree-ssa-loop-ivcanon.c: Likewise.
24405 * tree-ssa-loop-ivopts.c: Likewise.
24406 * tree-ssa-loop-niter.c: Likewise.
24407 * tree-ssa-phionlycprop.c: Likewise.
24408 * tree-ssa-phiopt.c: Likewise.
24409 * tree-ssa-propagate.c: Likewise.
24410 * tree-ssa-threadedge.c: Likewise.
24411 * tree-ssa-threadupdate.c: Likewise.
24412 * tree-ssa-uninit.c: Likewise.
24413 * tree-ssanames.c: Likewise.
24414 * tree-streamer-out.c: Likewise.
24415 * tree.c: Likewise.
24416 * tree.h: Likewise.
24417 * vr-values.c: Likewise.
24419 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
24421 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
24422 (ix86_split_xorsign): Ditto.
24423 * config/i386/i386.c (ix86_expand_xorsign): New function.
24424 (ix86_split_xorsign): Ditto.
24425 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
24426 (xorsign<mode>3): New expander.
24427 (xorsign<mode>3_1): New insn_and_split pattern.
24428 * config/i386/sse.md (xorsign<mode>3): New expander.
24430 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24432 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
24433 (*tablejump_sp64): Likewise.
24434 (*tablejump<P:mode>): ...this.
24435 (*call_address_sp32): Merge into...
24436 (*call_address_sp64): Likewise.
24437 (*call_address<P:mode>): ...this.
24438 (*call_symbolic_sp32): Merge into...
24439 (*call_symbolic_sp64): Likewise.
24440 (*call_symbolic<P:mode>): ...this.
24441 (call_value): Remove constraint and add predicate.
24442 (*call_value_address_sp32): Merge into...
24443 (*call_value_address_sp64): Likewise.
24444 (*call_value_address<P:mode>): ...this.
24445 (*call_value_symbolic_sp32): Merge into...
24446 (*call_value_symbolic_sp64): Likewise.
24447 (*call_value_symbolic<P:mode>): ...this.
24448 (*sibcall_symbolic_sp32): Merge into...
24449 (*sibcall_symbolic_sp64): Likewise.
24450 (*sibcall_symbolic<P:mode>): ...this.
24451 (sibcall_value): Remove constraint and add predicate.
24452 (*sibcall_value_symbolic_sp32): Merge into...
24453 (*sibcall_value_symbolic_sp64): Likewise.
24454 (*sibcall_value_symbolic<P:mode>): ...this.
24455 (window_save): Minor tweak.
24456 (*branch_sp32): Merge into...
24457 (*branch_sp64): Likewise.
24458 (*branch<P:mode>): ...this.
24460 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24461 James Clarke <jrtc27@jrtc27.com>
24464 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
24465 consistently in TLS address generation and adjust code to the renaming
24466 of patterns. Mark calls to __tls_get_addr as const.
24467 * config/sparc/sparc.md (tgd_hi22): Turn into...
24468 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
24469 (tgd_lo10): Turn into...
24470 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
24471 (tgd_add32): Merge into...
24472 (tgd_add64): Likewise.
24473 (tgd_add<P:mode>): ...this and use Pmode throughout.
24474 (tldm_hi22): Turn into...
24475 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
24476 (tldm_lo10): Turn into...
24477 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
24478 (tldm_add32): Merge into...
24479 (tldm_add64): Likewise.
24480 (tldm_add<P:mode>): ...this and use Pmode throughout.
24481 (tldm_call32): Merge into...
24482 (tldm_call64): Likewise.
24483 (tldm_call<P:mode>): ...this and use Pmode throughout.
24484 (tldo_hix22): Turn into...
24485 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
24486 (tldo_lox10): Turn into...
24487 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
24488 (tldo_add32): Merge into...
24489 (tldo_add64): Likewise.
24490 (tldo_add<P:mode>): ...this and use Pmode throughout.
24491 (tie_hi22): Turn into...
24492 (tie_hi22<P:mode>): ...this and use Pmode throughout.
24493 (tie_lo10): Turn into...
24494 (tie_lo10<P:mode>): ...this and use Pmode throughout.
24495 (tie_ld64): Use DImode throughout.
24496 (tie_add32): Merge into...
24497 (tie_add64): Likewise.
24498 (tie_add<P:mode>): ...this and use Pmode throughout.
24499 (tle_hix22_sp32): Merge into...
24500 (tle_hix22_sp64): Likewise.
24501 (tle_hix22<P:mode>): ...this and use Pmode throughout.
24502 (tle_lox22_sp32): Merge into...
24503 (tle_lox22_sp64): Likewise.
24504 (tle_lox22<P:mode>): ...this and use Pmode throughout.
24505 (*tldo_ldub_sp32): Merge into...
24506 (*tldo_ldub_sp64): Likewise.
24507 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
24508 (*tldo_ldub1_sp32): Merge into...
24509 (*tldo_ldub1_sp64): Likewise.
24510 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
24511 (*tldo_ldub2_sp32): Merge into...
24512 (*tldo_ldub2_sp64): Likewise.
24513 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
24514 (*tldo_ldsb1_sp32): Merge into...
24515 (*tldo_ldsb1_sp64): Likewise.
24516 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
24517 (*tldo_ldsb2_sp32): Merge into...
24518 (*tldo_ldsb2_sp64): Likewise.
24519 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
24520 (*tldo_ldub3_sp64): Use DImode throughout.
24521 (*tldo_ldsb3_sp64): Likewise.
24522 (*tldo_lduh_sp32): Merge into...
24523 (*tldo_lduh_sp64): Likewise.
24524 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
24525 (*tldo_lduh1_sp32): Merge into...
24526 (*tldo_lduh1_sp64): Likewise.
24527 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
24528 (*tldo_ldsh1_sp32): Merge into...
24529 (*tldo_ldsh1_sp64): Likewise.
24530 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
24531 (*tldo_lduh2_sp64): Use DImode throughout.
24532 (*tldo_ldsh2_sp64): Likewise.
24533 (*tldo_lduw_sp32): Merge into...
24534 (*tldo_lduw_sp64): Likewise.
24535 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
24536 (*tldo_lduw1_sp64): Use DImode throughout.
24537 (*tldo_ldsw1_sp64): Likewise.
24538 (*tldo_ldx_sp64): Likewise.
24539 (*tldo_stb_sp32): Merge into...
24540 (*tldo_stb_sp64): Likewise.
24541 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
24542 (*tldo_sth_sp32): Merge into...
24543 (*tldo_sth_sp64): Likewise.
24544 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
24545 (*tldo_stw_sp32): Merge into...
24546 (*tldo_stw_sp64): Likewise.
24547 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
24548 (*tldo_stx_sp64): Use DImode throughout.
24550 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24552 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
24553 check configure option to set BTI and Return Address Signing.
24554 * configure.ac: Add --enable-standard-branch-protection and
24555 --disable-standard-branch-protection.
24556 * configure: Regenerated.
24557 * doc/install.texi: Document the same.
24559 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24560 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24562 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
24563 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
24564 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
24566 * config/aarch64/aarch64-bti-insert.c: New file.
24567 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
24569 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
24571 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
24572 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
24573 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
24574 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
24576 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24578 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
24579 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
24580 Disable bti for -mbranch-protection=none.
24581 (aarch64_handle_standard_branch_protection): Enable bti for
24582 -mbranch-protection=standard.
24583 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
24584 -mbranch-protection.
24585 (aarch64_bti_enabled): Check if bti is enabled.
24586 * config/aarch64/aarch64.opt: Declare target variable.
24587 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
24589 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24591 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
24592 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
24593 (aarch64_expand_epilogue): Likewise.
24594 (aarch64_output_mi_thunk): Likewise.
24595 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
24596 TAILCALL_ADDR_REGS to x16 and x17.
24597 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
24599 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24601 * config/aarch64/aarch64-option-extensions.def: Define
24602 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
24603 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
24604 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
24605 (AARCH64_FL_PREDRES): New.
24606 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
24607 AARCH64_FL_PREDRES by default.
24608 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
24610 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24612 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
24614 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
24615 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
24616 * doc/invoke.texi: Document ARMv8.5-A.
24618 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24620 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
24621 (xorsign<mode>3): Likewise.
24623 2019-01-09 Jelinek <jakub@redhat.com>
24625 PR middle-end/88758
24626 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
24627 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
24629 PR rtl-optimization/88331
24630 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
24631 not currently_expanding_to_rtl.
24633 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24635 * doc/invoke.texi (-Os): Remove trailing spaces.
24636 (-finline-functions): Remove reference to -O2.
24638 2019-01-08 Jakub Jelinek <jakub@redhat.com>
24640 PR rtl-optimization/79593
24641 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
24643 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
24644 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
24646 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
24649 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
24653 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
24654 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
24656 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
24659 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
24660 ix86_avx_u128_mode_entry.
24662 2019-01-08 Martin Liska <mliska@suse.cz>
24664 PR tree-optimization/88753
24665 * tree-switch-conversion.c (switch_conversion::build_one_array):
24666 Come up with local variable constructor. Convert first to
24667 type of constructor values.
24669 2019-01-08 Richard Biener <rguenther@suse.de>
24671 PR tree-optimization/86554
24672 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
24673 rpo_avail): Move earlier.
24674 (visit_nary_op): When value-numbering to expressions
24675 with different overflow behavior make sure there's an
24676 available expression on the path.
24678 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
24680 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
24681 aarch64_parse_branch_protection,
24682 struct aarch64_branch_protect_type,
24683 aarch64_handle_no_branch_protection,
24684 aarch64_handle_standard_branch_protection,
24685 aarch64_validate_mbranch_protection,
24686 aarch64_handle_pac_ret_protection,
24687 aarch64_handle_attr_branch_protection,
24688 accepted_branch_protection_string,
24689 aarch64_pac_ret_subtypes,
24690 aarch64_branch_protect_types,
24691 aarch64_handle_pac_ret_leaf): Define.
24692 (aarch64_override_options_after_change_1, aarch64_override_options):
24693 Add check for accepted_branch_protection_string.
24694 (aarch64_option_save): Save accepted_branch_protection_string.
24695 (aarch64_option_restore): Save accepted_branch_protection_string.
24696 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
24697 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
24698 msign-return-address.
24699 * doc/invoke.texi: Add mbranch-protection.
24701 2019-01-08 Alan Modra <amodra@gmail.com>
24704 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
24705 Delete "unknownp" parameter. Adjust callers. Handle
24706 CONST_INT, PLUS, MINUS, and MULT.
24707 (attr_value_aligned): Renamed from or_attr_value.
24708 (min_attr_value): Return INT_MIN for unhandled rtl case..
24709 (min_fn): ..and translate to INT_MAX here.
24710 (write_length_unit_log): Modify to cope without "unknown".
24711 (write_attr_value): Handle IF_THEN_ELSE.
24713 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24715 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
24716 optimization for masked stores.
24718 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24720 PR middle-end/88567
24721 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
24722 output vector directly to duplicate_and_interleave instead of
24723 going through a temporary. Postpone insertion of ctor_seq to
24724 the end of the loop.
24726 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
24729 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
24730 unsigned_p. Handle signed and unsigned overflow correction as
24732 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
24734 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
24736 (add<mode>3_compareV_imm): Make this callable for expanding.
24737 (subv<GPI:mode>4): Use register_operand for operand 1. Use
24738 aarch64_plus_operand for operand 2.
24739 (subv<GPI:mode>_insn): New insn pattern.
24740 (subv<GPI:mode>_imm): Likewise.
24741 (negv<GPI:mode>3): New expand pattern.
24742 (negv<GPI:mode>_insn): New insn pattern.
24743 (negv<GPI:mode>_cmp_only): Likewise.
24744 (cmpv<GPI:mode>_insn): Likewise.
24745 (subvti4): Use register_operand for operand 1. Update call to
24746 aarch64_expand_subvti.
24747 (usubvti4): Likewise.
24748 (negvti3): New expand pattern.
24749 (negdi_carryout): New insn pattern.
24750 (negvdi_carryinV): New insn pattern.
24751 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
24752 version the named version.
24753 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
24755 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
24757 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
24759 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
24760 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
24761 (sub<mode>3_carryinCV): Delete.
24762 (sub<GPI:mode>3_carryinV): New expand pattern.
24763 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
24765 2019-01-07 Richard Biener <rguenther@suse.de>
24767 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
24768 of tree_operand_hash.
24770 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24772 PR tree-optimization/88598
24773 * tree.h (single_nonzero_element): Declare.
24774 * tree.c (single_nonzero_element): New function.
24775 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
24776 if I is the only nonzero element of CST.
24778 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24780 PR tree-optimization/88598
24781 * tree.h (initializer_each_zero_or_onep): Declare.
24782 * tree.c (initializer_each_zero_or_onep): New function.
24783 (signed_or_unsigned_type_for): Handle float types too.
24784 (unsigned_type_for, signed_type_for): Update comments accordingly.
24785 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
24786 x & { 0 or -1, 0 or -1, ... }.
24788 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
24790 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
24791 with x86_64-pc-linux-gnu.
24793 2019-01-07 Tom de Vries <tdevries@suse.de>
24796 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
24798 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
24801 2019-01-07 Jakub Jelinek <jakub@redhat.com>
24803 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
24804 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
24805 TARGET_AVX512F as condition.
24808 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
24809 const_not_ok_for_debug_p target hook.
24810 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
24811 on UNSPEC and subexpressions thereof if all subexpressions of the
24812 UNSPEC are CONSTANT_P.
24814 PR tree-optimization/88676
24815 * tree-ssa-phiopt.c (two_value_replacement): New function.
24816 (tree_ssa_phiopt_worker): Call it.
24819 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
24820 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
24823 * tree-vect-generic.c: Include insn-config.h and recog.h.
24824 (expand_vector_piecewise): Add defaulted ret_type argument,
24825 if non-NULL, use that in preference to type for the result type.
24826 (expand_vector_parallel): Formatting fix.
24827 (do_vec_conversion, do_vec_narrowing_conversion,
24828 expand_vector_conversion): New functions.
24829 (expand_vector_operations_1): Call expand_vector_conversion
24830 for VEC_CONVERT ifn calls.
24831 * internal-fn.def (VEC_CONVERT): New internal function.
24832 * internal-fn.c (expand_VEC_CONVERT): New function.
24833 * fold-const-call.c (fold_const_vec_convert): New function.
24834 (fold_const_call): Use it for CFN_VEC_CONVERT.
24835 * doc/extend.texi (__builtin_convertvector): Document.
24837 2019-01-07 Tom de Vries <tdevries@suse.de>
24839 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
24840 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
24841 vector_red_partition, vector_red_sym): New global variables.
24842 (nvptx_option_override): Initialize vector_red_sym.
24843 (nvptx_declare_function_name): Restore red_partition register.
24844 (nvptx_file_end): Emit code to declare the vector reduction variables.
24845 (nvptx_output_red_partition): New function.
24846 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
24847 large vector reductions.
24848 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
24849 (nvptx_init_builtins): Add VECTOR_ADDR.
24850 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
24851 Handle nvptx_expand_shared_addr.
24852 (nvptx_get_shared_red_addr): Add vector argument and handle large
24854 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
24856 (nvptx_goacc_reduction_init): Likewise.
24857 (nvptx_goacc_reduction_fini): Likewise.
24858 (nvptx_goacc_reduction_teardown): Likewise.
24859 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
24860 init,fini,teardown}.
24861 (nvptx_init_axis_predicate): Initialize vector_red_partition.
24862 (nvptx_set_current_function): Init vector_red_partition.
24863 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
24864 (nvptx_red_partition): New insn.
24865 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
24867 2019-01-07 Tom de Vries <tdevries@suse.de>
24870 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
24873 2019-01-07 Tom de Vries <tdevries@suse.de>
24875 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
24876 (nvptx_option_override): Init oacc_bcast_partition.
24877 (nvptx_init_oacc_workers): New function.
24878 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
24879 (nvptx_needs_shared_bcast): New function.
24880 (nvptx_find_par): Generalize to enable vectors to use shared-memory
24881 to propagate state.
24882 (nvptx_shared_propagate): Initialize vector bcast partition and
24883 synchronization state.
24884 (nvptx_single): Generalize to enable vectors to use shared-memory
24885 to propagate state.
24886 (nvptx_process_pars): Likewise.
24887 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
24888 * config/nvptx/nvptx.h (struct machine_function): Add
24889 bcast_partition and sync_bar members.
24891 2019-01-07 Tom de Vries <tdevries@suse.de>
24893 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
24894 (nvptx_apply_dim_limits): New function.
24895 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
24898 2019-01-07 Tom de Vries <tdevries@suse.de>
24900 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
24901 as late as possible.
24903 2019-01-07 Tom de Vries <tdevries@suse.de>
24905 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
24906 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
24907 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
24908 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
24909 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
24911 2019-01-07 Tom de Vries <tdevries@suse.de>
24913 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
24915 2019-01-07 Tom de Vries <tdevries@suse.de>
24917 * omp-offload.c (oacc_get_min_dim): New function.
24918 * omp-offload.h (oacc_get_min_dim): Declare.
24920 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
24923 * config/i386/i386.c (function_value_ms_64): Return small sturct in
24924 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
24926 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24930 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
24932 * ipa-inline.c (edge_badness): Use inlined_time instead of
24933 inline_summaries->get.
24935 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24937 * opts.c (enable_fdo_optimizations): Enable
24938 version-loops-for-strides, loop-interchange, unrol-and-jam
24939 and tree-loop-distribution.
24940 * invoke.texi: Document newly enabled options.
24942 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24944 * doc/invoke.texi (max-inline-insns-small): New parameters.
24945 * ipa-inline.c (want_early_inline_function_p): simplify.
24946 (want_inline_small_function_p): Fix pasto from previous patch;
24947 use max-inline-insns-small bound.
24948 * params.def (max-inline-insns-small): New param.
24949 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
24950 variables correctly.
24952 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24954 * doc/invoke.texi: Document max-inline-insns-size,
24955 uninlined-function-insns, uninlined-function-time,
24956 uninlined-thunk-insns and uninlined-thunk-time.
24957 * params.def: Add max-inline-insns-size,
24958 uninlined-function-insns, uninlined-function-time,
24959 uninlined-thunk-insns and uninlined-thunk-time.
24960 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
24962 * ipa-inline.c (can_inline_edge_by_limits_p,
24963 want_inline_small_function_p): Use new parameters.
24965 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24967 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
24969 2019-01-05 Jakub Jelinek <jakub@redhat.com>
24971 PR middle-end/82564
24973 * expr.c (expand_assignment): For calls returning VLA structures
24974 if to_rtx is not a MEM, force it into a stack temporary.
24977 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
24978 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
24979 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
24980 subexpressions of both operands.
24981 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
24982 subrtxes are CONSTANT_P.
24983 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
24984 2018-11-09 changes.
24986 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
24988 * params.def (hot-bb-count-ws-permille): Set to 990.
24990 2019-01-04 Martin Sebor <msebor@redhat.com>
24993 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
24996 2019-01-04 Martin Sebor <msebor@redhat.com>
24999 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
25001 2019-01-04 Jakub Jelinek <jakub@redhat.com>
25003 * gdbinit.in: Turn off pagination for the skip commands, restore
25004 it to previous state afterwards.
25006 2019-01-04 Jakub Jelinek <jakub@redhat.com>
25009 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
25010 of GET_MODE (opN) as modes of the libcall arguments.
25012 2019-01-04 Jan Beulich <jbeulich@suse.com>
25014 * config/i386/sse.md
25015 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
25016 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
25017 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
25018 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
25019 avx512f_vmcmp<mode>3<round_saeonly_name>,
25020 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
25021 avx512f_maskcmp<mode>3,
25022 <avx512>_cvt<ssemodesuffix>2mask<mode>,
25023 <avx512>_cvt<ssemodesuffix>2mask<mode>,
25024 *<avx512>_cvtmask2<ssemodesuffix><mode>,
25025 *<avx512>_cvtmask2<ssemodesuffix><mode>,
25026 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
25027 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
25028 <avx512>_gt<mode>3<mask_scalar_merge_name>,
25029 <avx512>_gt<mode>3<mask_scalar_merge_name>,
25030 <avx512>_testm<mode>3<mask_scalar_merge_name>,
25031 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
25032 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
25033 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
25034 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
25035 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
25036 avx512cd_maskb_vec_dup<mode>,
25037 avx512cd_maskw_vec_dup<mode>,
25038 avx512dq_fpclass<mode><mask_scalar_merge_name>,
25039 avx512dq_vmfpclass<mode>,
25040 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
25043 2019-01-03 Martin Sebor <msebor@redhat.com>
25045 PR tree-optimization/88659
25046 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
25048 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
25050 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
25051 unaligned vsx and avoid lxvd2x/stxvd2x.
25052 (gen_lvx_v4si_move): New function.
25054 2019-01-03 Tom de Vries <tdevries@suse.de>
25056 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
25057 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
25059 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
25061 2019-01-03 Tom de Vries <tdevries@suse.de>
25063 * config/nvptx/nvptx.c (struct offload_attrs): New.
25064 (populate_offload_attrs): New function. Factor mask extraction out of
25065 nvptx_reorg. Add extraction of dimensions.
25066 (nvptx_reorg): Use populate_offload_attrs.
25068 2019-01-03 Tom de Vries <tdevries@suse.de>
25070 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
25071 cases for oacc_min_dims_p and routine_p. Add asserts for
25072 oacc_default_dims_p and offload_region_p.
25074 2019-01-03 Tom de Vries <tdevries@suse.de>
25076 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
25077 factored out of ...
25078 (nvptx_goacc_validate_dims): ... here.
25080 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
25082 PR tree-optimization/85574
25083 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
25085 (struct ssa_equip_hash_traits): Declare.
25086 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
25088 2019-01-03 Jakub Jelinek <jakub@redhat.com>
25091 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
25092 change it to qualified_type.
25094 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
25096 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
25097 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
25099 2019-01-02 Martin Sebor <msebor@redhat.com>
25100 Jeff Law <law@redhat.com>
25102 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
25103 (get_range_strlen_tree): Update appropriately.
25105 * gimple-fold.h (get_range_strlen): Drop unused last argument.
25107 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
25108 rather than set_range_info.
25109 * tree-ssa-strlen.c (set_strlen_range): Extracted from
25110 maybe_set_strlen_range. Handle potentially boundary crossing
25111 cases more conservatively.
25112 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
25113 Call set_strlen_range.
25114 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
25116 PR middle-end/88663
25117 * gimple-fold.c (get_range_strlen): Update prototype to no longer
25118 need the flexp argument.
25119 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
25120 from calls to get_range_strlen. Update comments. Just update
25121 VAL for an unterminated const char array and let the reset of the
25122 code handle it normally. No longer try to set *flexp. Adjust
25124 (get_range_strlen): Update for the new get_range_strlen API.
25125 (get_maxval_strlen): Similarly.
25126 (gimple_fold_builtin_strlen): Handle update meaning of return value
25127 from get_range_strlen.
25128 * gimple-ssa-sprintf.c (get_string_length): Update for the new
25129 get_range_strlen API.
25131 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
25134 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
25135 false at WPA time when body was removed.
25137 2019-01-02 Martin Liska <mliska@suse.cz>
25139 PR tree-optimization/88650
25140 * predict.c (set_even_probabilities): Calculate probability
25141 remainer only when really used.
25143 2019-01-02 Richard Biener <rguenther@suse.de>
25145 PR middle-end/88651
25146 * tree-data-ref.c (analyze_subscript_affine_affine): Use
25147 widest_ints when mangling max_stmt_execution results.
25149 2019-01-02 Richard Biener <rguenther@suse.de>
25151 PR tree-optimization/88621
25152 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
25153 bitfields when canoncalizing.
25155 2019-01-02 Richard Biener <rguenther@suse.de>
25158 * config/i386/x86-tune-costs.h (intel_cost): Adjust
25159 cost of cheap SSE instruction.
25161 2019-01-02 Richard Biener <rguenther@suse.de>
25164 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
25165 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
25167 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
25168 set after UIDs before splitting them.
25170 2019-01-01 Martin Sebor <msebor@redhat.com>
25171 Jeff Law <law@redhat.com>
25173 * gimple-fold.c (get_range_strlen_tree): Record if the computed
25174 length is optimistic. If it is, then arrange to compute the
25175 conservative length as well.
25177 * gimple-fold.h (get_range_strlen): Update prototype.
25178 * builtins.c (check_access): Update call to get_range_strlen to use
25179 c_strlen_data pointer. Change various variable accesses to instead
25180 pull data from the c_strlen_data structure.
25181 (check_strncat_sizes, expand_builtin_strncat): Likewise.
25182 * calls.c (maybe_warn_nonstring_arg): Likewise.
25183 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
25184 minimum length if maximum lengh is unknown.
25185 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
25186 that used c_strlen, it's no longer needed. Restructure slightly.
25187 (format_string): Set unlikely range appropriately.
25188 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
25190 (get_range_strlen): Accept c_strlen_data pointer for external
25191 call sites as well. Pass through to call to internal get_range_strlen.
25192 Adjust minlen, maxlen and maxbound as needed.
25193 (get_maxval_strlen): Update comments.
25194 (gimple_fold_builtin_strlen): Update call to get_range_strlen
25195 to use c_strlen_data pointer. Change variable accesses to instead
25196 use c_strlen_data data members.
25198 * gimple-fold.c (get_range_strlen): Update prototype.
25199 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
25200 local variables. Use pdata to return information to caller.
25201 Update calls to get_range_strlen. Update pdata->maxbound.
25202 (get_range_strlen -- static version): Similarly.
25203 (get_range_strlen -- extern version): Update for internal
25204 get_range_strlen API change. Convert to external data format.
25205 (get_maxval_strlen): Similarly.
25207 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
25209 * coverage.c (get_coverage_counts): Use current_function_decl.
25210 * profile.c (read_thunk_profile): New function.
25211 (branch_prob): Add THUNK parameter.
25212 * tree-profile.c (tree_profiling): Handle thunks.
25213 * value-prof.c (init_node_map): Handle thunks.
25214 * value-prof.h (branch_prob): Upate prototype.
25215 (read_thunk_profile): Declare.
25217 2019-01-01 Jakub Jelinek <jakub@redhat.com>
25219 Update copyright years.
25221 * gcc.c (process_command): Update copyright notice dates.
25222 * gcov-dump.c (print_version): Ditto.
25223 * gcov.c (print_version): Ditto.
25224 * gcov-tool.c (print_version): Ditto.
25225 * gengtype.c (create_file): Ditto.
25226 * doc/cpp.texi: Bump @copying's copyright year.
25227 * doc/cppinternals.texi: Ditto.
25228 * doc/gcc.texi: Ditto.
25229 * doc/gccint.texi: Ditto.
25230 * doc/gcov.texi: Ditto.
25231 * doc/install.texi: Ditto.
25232 * doc/invoke.texi: Ditto.
25234 Copyright (C) 2019 Free Software Foundation, Inc.
25236 Copying and distribution of this file, with or without modification,
25237 are permitted in any medium without royalty provided the copyright
25238 notice and this notice are preserved.