Fix typo in my last commit's ChangeLog entry
[official-gcc.git] / gcc / ChangeLog
blob0d90ef4d5b1fe073e0b5849a8e85c86cb098c439
1 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
3         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
4         New pattern for ASRD.
5         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
6         * internal-fn.def (IFN_DIV_POW2): New internal function.
7         * optabs.def (sdiv_pow2_optab): New optab.
8         * tree-vect-patterns.c (vect_recog_divmod_pattern):
9         Modify pattern to support new operation.
10         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
11         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
12         Document new target selector.
14 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
16         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
17         to test whether we're compiling a vector PCS function and to test
18         whether the function needs to save a particular register.
19         Remove the vector PCS handling of df_set_regs_ever_live.
20         (aarch64_components_for_bb): Use crtl->abi to test whether
21         the function needs to save a particular register.
22         (aarch64_process_components): Use crtl->abi to test whether
23         we're compiling a vector PCS function.
24         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
25         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
27 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
29         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
30         Delete.
31         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
32         whether the block calls a function that clobbers more registers
33         than the current function is allowed to.
34         (aarch64_use_simple_return_insn_p): Delete.
35         * config/aarch64/aarch64.md (simple_return): Remove condition.
37 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
39         * function-abi.h (function_abi_aggregator): New class.
40         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
41         function.
42         * ira.c (update_equiv_regs_prescan): New function.  Call
43         set_paradoxical_subreg here rather than...
44         (update_equiv_regs): ...here.
45         (ira): Call update_equiv_regs_prescan.
47 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
49         * hard-reg-set.h (regs_invalidated_by_call): Only define if
50         IN_TARGET_CODE.
51         (call_used_or_fixed_regs): Likewise.
52         (call_used_or_fixed_reg_p): Likewise.
53         * reginfo.c (regs_invalidated_by_call): New macro.
55 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
57         * shrink-wrap.c: Include function-abi.h.
58         (requires_stack_frame_p): Use crtl->abi to test whether the
59         current function can use a register without saving it first.
61 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
63         * sel-sched-ir.h (_def::crosses_call): Replace with...
64         (_def::crossed_call_abis): ..this new field.
65         (def_list_add): Take a mask of ABIs instead of a crosses_call
66         boolean.
67         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
68         of _def accordingly.
69         * sel-sched.c: Include function-abi.h.
70         (hard_regs_data::regs_for_call_clobbered): Delete.
71         (reg_rename::crosses_call): Replace with...
72         (reg_rename::crossed_call_abis): ...this new field.
73         (fur_static_params::crosses_call): Replace with...
74         (fur_static_params::crossed_call_abis): ...this new field.
75         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
76         (init_hard_regs_data): Use crtl->abi to test which registers the
77         current function would need to save before it uses them.
78         (mark_unavailable_hard_regs): Update handling of call-clobbered
79         registers, using call_clobbers_in_region to find out which registers
80         might be call-clobbered (but without taking -fipa-ra into account
81         for now).  Remove separate handling of partially call-clobbered
82         registers.
83         (verify_target_availability): Use crossed_call_abis instead of
84         crosses_call.
85         (get_spec_check_type_for_insn, find_used_regs): Likewise.
86         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
88 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
90         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
91         function to test whether a register is fully or partly clobbered.
93 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
95         * rtlanal.c: Include function-abi.h.
96         (reg_set_p): Use insn_callee_abi to get the ABI of the called
97         function and clobbers_reg_p to test whether the register
98         is call-clobbered.
99         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
100         to get the ABI of the called function and full_reg_clobbers to
101         get the set of fully call-clobbered registers.  Warn about the
102         pitfalls of using this mode.
104 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
106         * reload.c: Include function-abi.h.
107         (find_equiv_reg): Use clobbers_reg_p to test whether either
108         of the equivalent registers is clobbered by a call.
109         * reload1.c: Include function-abi.h.
110         (reg_reloaded_call_part_clobbered): Delete.
111         (reload): Use crtl->abi to test which registers would need
112         saving in the prologue before use.
113         (find_reg): Likewise.
114         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
115         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
116         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
118 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
120         * regrename.h (du_head::call_clobber_mask): New field.
121         (du_head::need_caller_save_reg): Replace with...
122         (du_head::call_abis): ...this new field.
123         * regrename.c: Include function-abi.h.
124         (call_clobbered_in_chain_p): New function.
125         (check_new_reg_p): Use crtl->abi when deciding whether a register
126         is free for use after RA.  Use call_clobbered_in_chain_p to test
127         whether a candidate register would be clobbered by a call.
128         (find_rename_reg): Don't add call-clobber conflicts here.
129         (rename_chains): Check call_abis instead of need_caller_save_reg.
130         (merge_chains): Update for changes to du_head.
131         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
132         target.  Record the ABI identifier in call_abis and the set of
133         fully or partially clobbered registers in call_clobber_mask.
134         Add fully-clobbered registers to hard_conflicts here rather
135         than in find_rename_reg.
136         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
137         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
138         * config/aarch64/falkor-tag-collision-avoidance.c: Include
139         function-abi.h.
140         * config/c6x/c6x.c: Likewise.
142 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
144         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
145         mode of the register when deciding whether it is no longer
146         available after a call.
148 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
150         * recog.c: Include function-abi.h.
151         (peep2_find_free_register): Use crtl->abi when deciding whether
152         a register is free for use after RA.
154 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
156         * postreload-gcse.c: Include regs.h and function-abi.h.
157         (record_opr_changes): Use insn_callee_abi to get the ABI of the
158         call insn target.  Conservatively assume that partially-clobbered
159         registers are altered.
161 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
163         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
164         when deciding whether a register is free for use after RA.
165         (reload_combine): Remove unnecessary use of fixed_reg_set.
166         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
167         call insn target.  Use reg_mode when testing whether a register
168         is no longer available.
170 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
172         * target.def (return_call_with_max_clobbers): Delete.
173         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
174         * doc/tm.texi: Regenerate.
175         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
176         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
177         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
178         (lra_reg::call_insn): Delete.
179         * lra.c: Include function-abi.h.
180         (initialize_lra_reg_info_element): Don't initialize the fields above.
181         (lra): Use crtl->abi to test whether the current function needs to
182         save a register in the prologue.  Remove special pre-inheritance
183         lra_create_live_ranges pass for flag_ipa_ra.
184         * lra-assigns.c: Include function-abi.h
185         (find_hard_regno_for_1): Use crtl->abi to test whether the current
186         function needs to save a register in the prologue.
187         (lra_assign): Assert that registers aren't allocated to a
188         conflicting register, rather than checking only for overlaps
189         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
190         and for registers that are not live across a call.
191         * lra-constraints.c (last_call_for_abi): New variable.
192         (full_and_partial_call_clobbers): Likewise.
193         (setup_next_usage_insn): Remove the register from
194         full_and_partial_call_clobbers.
195         (need_for_call_save_p): Use call_clobbered_in_region_p to test
196         whether the register needs a caller save.
197         (need_for_split_p): Use full_and_partial_reg_clobbers instead
198         of call_used_or_fixed_regs.
199         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
200         full_and_partial_call_clobbers.
201         * lra-lives.c (check_pseudos_live_through_calls): Replace
202         last_call_used_reg_set and call_insn arguments with an abi argument.
203         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
204         as the set of conflicting registers.
205         (calls_have_same_clobbers_p): Delete.
206         (process_bb_lives): Track the ABI of the last call instead of an
207         insn/HARD_REG_SET pair.  Update calls to
208         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
209         the set of registers that could be clobbered by an EH edge.
210         Include partially-clobbered as well as fully-clobbered registers.
211         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
212         * lra-remat.c: Include function-abi.h.
213         (call_used_regs_arr_len, call_used_regs_arr): Delete.
214         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
215         registers and bitmap_view to combine them into dead_regs.
216         (call_used_input_regno_present_p): Take a function_abi argument
217         and use it to test whether a register is call-clobbered.
218         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
219         call insn target.  Update tje call to call_used_input_regno_present_p.
220         (do_remat): Likewise.
221         (lra_remat): Remove the initialization of call_used_regs_arr_len
222         and call_used_regs_arr.
224 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
226         * loop-iv.c: Include regs.h and function-abi.h.
227         (simplify_using_initial_values): Use insn_callee_abi to get the
228         ABI of the call insn target.  Conservatively assume that
229         partially-clobbered registers are altered.
231 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
233         * function-abi.h (call_clobbers_in_region): Declare.
234         (call_clobbered_in_region_p): New function.
235         * function-abi.cc (call_clobbers_in_region): Likewise.
236         * ira-int.h: Include function-abi.h.
237         (ira_allocno::crossed_calls_abis): New field.
238         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
239         (ira_need_caller_save_regs): New function.
240         (ira_need_caller_save_p): Likewise.
241         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
242         of call_used_or_fixed_regs.
243         (do_reload): Use crtl->abi to test whether the current function
244         needs to save a register in the prologue.  Count registers that
245         need to be saved rather than registers that don't.
246         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
247         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
248         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
249         (propagate_some_info_from_allocno): Likewise.
250         (copy_info_to_removed_store_destinations): Likewise.
251         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
252         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
253         (ira_build): Use ira_need_caller_save_regs instead of
254         call_used_or_fixed_regs.
255         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
256         whether the current function would need to save a register
257         before using it.
258         (calculate_spill_cost): Likewise.
259         (allocno_reload_assign): Use ira_need_caller_save_regs and
260         ira_need_caller_save_p instead of call_used_or_fixed_regs.
261         * ira-conflicts.c (ira_build_conflicts): Use
262         ira_need_caller_save_regs rather than call_used_or_fixed_regs
263         as the set of call-clobbered registers.  Remove the
264         call_used_or_fixed_regs mask from the calculation of
265         temp_hard_reg_set and mask its use instead.  Remove special
266         handling of partially-clobbered registers.
267         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
268         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
269         calculate the set of conflicting registers for calls that
270         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
271         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
272         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
273         Use eh_edge_abi to calculate the set of registers that could
274         be clobbered by an EH edge.  Include partially-clobbered as
275         well as fully-clobbered registers.
277 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
279         * haifa-sched.c: Include function-abi.h.
280         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
281         the function would need to save a register before using it.
283 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
285         * gcse.c: Include function-abi.h.
286         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
287         the call insn target.  Invalidate partially call-clobbered
288         registers as well as fully call-clobbered ones.
290 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
292         * function.c (aggregate_value_p): Work out which ABI the
293         function is using before testing which registers are at least
294         partly preserved by a call.
296 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
298         * early-remat.c: Include regs.h and function-abi.h.
299         (early_remat::maybe_add_candidate): Don't check for call-clobbered
300         registers here.
301         (early_remat::restrict_remat_for_unavail_regs): New function.
302         (early_remat::restrict_remat_for_call): Likewise.
303         (early_remat::process_block): Before calling emit_remat_insns
304         for a previous call in the block, invalidate any candidates
305         that would clobber call-preserved registers.
306         (early_remat::emit_remat_insns_for_block): Likewise for the
307         final call in a block.  Do the same thing for live-in registers
308         when calling emit_remat_insns at the head of a block.
310 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
312         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
313         whether the current function needs to save at least part of a
314         register before using it.
315         (df_get_exit_block_use_set): Likewise for epilogue restores.
317 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
319         * df-problems.c: Include regs.h and function-abi.h.
320         (df_rd_problem_data): Rename sparse_invalidated_by_call to
321         sparse_invalidated_by_eh and dense_invalidated_by_call to
322         dense_invalidated_by_eh.
323         (df_print_bb_index): Update accordingly.
324         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
325         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
326         that are clobbered by an EH edge.  Clobber partially-clobbered
327         registers as well as fully-clobbered ones.
328         (df_md_confluence_n): Likewise.
329         (df_rd_local_compute): Likewise.  Update for changes to
330         df_rd_problem_data.
331         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
332         of registers that are clobbered by an EH edge.  Includde partially-
333         clobbered registers as well as fully-clobbered ones.
335 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
337         * cselib.c (cselib_process_insn): If we know what mode a
338         register was set in, check whether it is clobbered in that
339         mode by a call.  Only fall back to reg_raw_mode if that fails.
341 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
343         * cse.c: Include regs.h and function-abi.h.
344         (invalidate_for_call): Take the call insn as an argument.
345         Use insn_callee_abi to get the ABI of the call and invalidate
346         partially clobbered registers as well as fully clobbered ones.
347         (cse_insn): Update call accordingly.
349 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
351         * combine.c: Include function-abi.h.
352         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
353         of the target of call insns.  Invalidate partially-clobbered
354         registers as well as fully-clobbered ones.
356 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
358         * cfgloopanal.c: Include regs.h and function-abi.h.
359         (init_set_costs): Use default_function_abi to test whether
360         a general register is call-clobbered.
362 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
364         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
365         instead of the call-clobbered sets.
367 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
369         * caller-save.c (setup_save_areas): Remove redundant |s of
370         fixed_reg_set.
371         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
372         than call_used_or_fixed_regs to decide whether a REG_RETURNED
373         value is useful.
375 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
377         * rtl.h (predefined_function_abi): Declare.
378         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
379         instead of a boolean call_save flag.
380         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
381         accordingly.
382         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
383         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
384         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
385         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
386         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
387         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
388         * reginfo.c (init_reg_modes_target): Likewise.
389         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
390         instead of a boolean call_save flag.
391         * targhooks.c: Include function-abi.h.
392         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
393         using eh_edge_abi to choose the mode.
395 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
397         * target.def (hard_regno_call_part_clobbered): Take an ABI
398         identifier instead of an rtx_insn.
399         * doc/tm.texi: Regenerate.
400         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
401         (hook_bool_uint_uint_mode_false): New function.
402         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
403         (hook_bool_uint_uint_mode_false): New function.
404         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
405         Take an ABI identifier instead of an rtx_insn.
406         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
407         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
408         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
409         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
410         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
411         Likewise.
412         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
413         * cselib.c: Include function-abi.h.
414         (cselib_process_insn): Update call to
415         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
416         to get the appropriate ABI identifier.
417         * function-abi.cc (predefined_function_abi::initialize): Update call
418         to targetm.hard_regno_call_part_clobbered.
419         * ira-conflicts.c (ira_build_conflicts): Likewise.
420         * ira-costs.c (ira_tune_allocno_costs): Likewise.
421         * lra-constraints.c: Include function-abi.h.
422         (need_for_call_save_p): Update call to
423         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
424         to get the appropriate ABI identifier.
425         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
426         * regcprop.c (copyprop_hardreg_forward_1): Update call
427         to targetm.hard_regno_call_part_clobbered.
428         * reginfo.c (choose_hard_reg_mode): Likewise.
429         * regrename.c (check_new_reg_p): Likewise.
430         * reload.c (find_equiv_reg): Likewise.
431         * reload1.c (emit_reload_insns): Likewise.
432         * sched-deps.c: Include function-abi.h.
433         (deps_analyze_insn): Update call to
434         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
435         to get the appropriate ABI identifier.
436         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
437         call to targetm.hard_regno_call_part_clobbered.
438         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
440 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
442         * config/i386/i386.c: Include function-abi.h.
443         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
444         if they preserve some 256-bit or 512-bit SSE registers.
446 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
448         * target.def (insn_callee_abi): New hook.
449         (remove_extra_call_preserved_regs): Delete.
450         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
451         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
452         * doc/tm.texi: Regenerate.
453         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
454         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
455         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
456         insn argument.
457         (aarch64_remove_extra_call_preserved_regs): Delete.
458         (aarch64_insn_callee_abi): New function.
459         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
460         (TARGET_INSN_CALLEE_ABI): New macro.
461         * rtl.h (get_call_fndecl): Declare.
462         (cgraph_rtl_info): Fix formatting.  Tweak comment for
463         function_used_regs.  Remove function_used_regs_valid.
464         * rtlanal.c (get_call_fndecl): Moved from final.c
465         * function-abi.h (insn_callee_abi): Declare.
466         (target_function_abi_info): Mention insn_callee_abi.
467         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
468         way to get_call_reg_set_usage did.
469         (insn_callee_abi): New function.
470         * regs.h (get_call_reg_set_usage): Delete.
471         * final.c: Include function-abi.h.
472         (collect_fn_hard_reg_usage): Add fixed and stack registers to
473         function_used_regs before the main loop rather than afterwards.
474         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
475         if function_used_regs ends up not being useful.
476         (get_call_fndecl): Move to rtlanal.c
477         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
478         * caller-save.c: Include function-abi.h.
479         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
480         instead of get_call_reg_set_usage.
481         * cfgcleanup.c: Include function-abi.h.
482         (old_insns_match_p): Use insn_callee_abi instead of
483         get_call_reg_set_usage.
484         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
485         a tree.
486         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
487         function_used_regs.
488         * df-scan.c: Include function-abi.h.
489         (df_get_call_refs): Use insn_callee_abi instead of
490         get_call_reg_set_usage.
491         * ira-lives.c: Include function-abi.h.
492         (process_bb_node_lives): Use insn_callee_abi instead of
493         get_call_reg_set_usage.
494         * lra-lives.c: Include function-abi.h.
495         (process_bb_lives): Use insn_callee_abi instead of
496         get_call_reg_set_usage.
497         * postreload.c: Include function-abi.h.
498         (reload_combine): Use insn_callee_abi instead of
499         get_call_reg_set_usage.
500         * regcprop.c: Include function-abi.h.
501         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
502         get_call_reg_set_usage.
503         * resource.c: Include function-abi.h.
504         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
505         instead of get_call_reg_set_usage.
506         * var-tracking.c: Include function-abi.h.
507         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
508         get_call_reg_set_usage.
510 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
512         * target.def (fntype_abi): New target hook.
513         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
514         * doc/tm.texi: Regenerate.
515         * target.h (predefined_function_abi): Declare.
516         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
517         if defined.
518         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
519         * config/aarch64/aarch64.c: Include function-abi.h.
520         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
521         (TARGET_FNTYPE_ABI): Define.
523 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
525         * Makefile.in (OBJS): Add function-abi.o.
526         (GTFILES): Add function-abi.h.
527         * function-abi.cc: New file.
528         * function-abi.h: Likewise.
529         * emit-rtl.h (rtl_data::abi): New field.
530         * function.c: Include function-abi.h.
531         (prepare_function_start): Initialize crtl->abi.
532         * read-rtl-function.c: Include regs.h and function-abi.h.
533         (read_rtl_function_body): Initialize crtl->abi.
534         (read_rtl_function_body_from_file_range): Likewise.
535         * reginfo.c: Include function-abi.h.
536         (init_reg_sets_1): Initialize default_function_abi.
537         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
538         when making a register global.
539         * target-globals.h (this_target_function_abi_info): Declare.
540         (target_globals::function_abi_info): New field.
541         (restore_target_globals): Copy it.
542         * target-globals.c: Include function-abi.h.
543         (default_target_globals): Initialize the function_abi_info field.
544         (target_globals): Allocate it.
545         (save_target_globals): Free it.
547 2019-09-30  Nick Clifton  <nickc@redhat.com>
549         PR target/85978
550         * config/frv/frv.c (frv_register_move_cost): Add break statements
551         to avoid falling through to the wrong cases.  Tidy code.
553 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
555         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
556         For multi-registers modes, test how big each register part is.
558 2019-09-30  Nick Clifton  <nickc@redhat.com>
560         PR target/59205
561         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
562         (TARGET_ASM_SELECT_SECTION): Remove definition.
563         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
565 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
567         * emit-rtl.c (init_raw_REG): New function.
568         (gen_raw_REG): Use init_raw_REG.
569         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
570         macros.
571         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
572         * rtl.h (rtx_init): New function.
573         (rtx_alloca): New function.
574         (init_raw_REG): New function.
575         (alloca_raw_REG): New macro.
577 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
579         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
580         (pcrel_local_address): Replace pcrel_address predicate, use the
581         new function address_to_insn_form.
582         (pcrel_external_address): Replace with new implementation using
583         address_to_insn_form..
584         (prefixed_mem_operand): Delete predicate which is now unused.
585         (pcrel_external_mem_operand): Delete predicate which is now
586         unused.
587         * config/rs6000/rs6000-protos.h (enum insn_form): New
588         enumeration.
589         (enum non_prefixed_form): New enumeration.
590         (address_to_insn_form): New declaration.
591         (prefixed_load_p): New declaration.
592         (prefixed_store_p): New declaration.
593         (prefixed_paddi_p): New declaration.
594         (rs6000_asm_output_opcode): New declaration.
595         (rs6000_final_prescan_insn): Move declaration and update calling
596         signature.
597         (address_is_prefixed): New helper inline function.
598         * config/rs6000/rs6000.c(print_operand_address): Check for either
599         PC-relative local symbols or PC-relative external symbols.
600         (rs6000_emit_move): Support loading PC-relative addresses.
601         (mode_supports_prefixed_address_p): Delete, no longer used.
602         (rs6000_prefixed_address_mode_p): Delete, no longer used.
603         (address_to_insn_form): New function to decode an address format.
604         (reg_to_non_prefixed): New function to identify what the
605         non-prefixed memory instruction format is for a register.
606         (prefixed_load_p): New function to identify prefixed loads.
607         (prefixed_store_p): New function to identify prefixed stores.
608         (prefixed_paddi_p): New function to identify prefixed load
609         immediates.
610         (next_insn_prefixed_p): New static state variable.
611         (rs6000_final_prescan_insn): New function to determine if an insn
612         uses a prefixed instruction.
613         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
614         prefixed instruction.
615         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
616         (ASM_OUTPUT_OPCODE): New target hook.
617         * config/rs6000/rs6000.md (prefixed): New insn attribute for
618         prefixed instructions.
619         (prefixed_length): New insn attribute for the size of prefixed
620         instructions.
621         (non_prefixed_length): New insn attribute for the size of
622         non-prefixed instructions.
623         (pcrel_local_addr): New insn to load up a local PC-relative
624         address.
625         (pcrel_extern_addr): New insn to load up an external PC-relative
626         address.
627         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
628         GPR and loading a 128-bit floating point type to a GPR.
630 2019-09-30  Richard Biener  <rguenther@suse.de>
632         * gimple.c (gimple_get_lhs): For PHIs return the result.
633         * tree-vectorizer.h (vectorizable_live_operation): Also get the
634         SLP instance as argument.
635         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
636         double-reduction PHIs with vectorizable_lc_phi.
637         (vect_analyze_loop_operations): Adjust.
638         (vect_create_epilog_for_reduction): Remove all code not dealing
639         with reduction LC PHI or epilogue generation.
640         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
641         for live stmts of reductions.
642         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
643         do not handle defs that are not vect_internal_def.
644         (can_vectorize_live_stmts): Adjust.
645         (vect_analyze_stmt): When the vectorized stmt defined a value
646         used on backedges adjust the backedge uses of vectorized PHIs.
648 2019-09-30  Martin Jambor  <mjambor@suse.cz>
650         PR ipa/91853
651         * tree-inline.c (force_value_to_type): New function.
652         (setup_one_parameter): Use force_value_to_type to convert type.
653         * tree-inline.c (force_value_to_type): Declare.
654         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
655         with register type mismatches.
657 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
659         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
660         32-bit PowerPC.
661         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
662         * config/rs6000/t-freebsd64: Make use of the above define and build
663         the 32-bit libraries with secure-plt.
665 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
667         PR target/91931
668         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
669         gen_int_mode instead of GEN_INT.
671 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
673         * config/darwin.c (gen_macho_low): Amend to include the mode
674         argument.
675         (machopic_indirect_data_reference): Amend gen_macho_low call
676         to include mode argument
677         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
678         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
679         the macho_high expander and two define_insn entries.
681 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
683         PR bootstrap/90543
684         * optc-save-gen.awk: Fix up printing string option differences.
686 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
688         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
689         vec_perm cost to 1 for non-Power7 VSX architectures.
691 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
693         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
694         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
695         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
697 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
699         * config/darwin.c (gen_macho_high): Amend to include the mode
700         argument.
701         (machopic_indirect_data_reference): Amend gen_macho_high call
702         to include mode argument.
703         (machopic_legitimize_pic_address): Likewise.
704         * config/rs6000/rs6000.c (rs6000_legitimize_address):
705         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
706         the macho_high expander and two define_insn entries.
708 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
710         PR target/86805
711         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
713 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
715         PR target/80672
716         * config/sh/sh.c (parse_validate_atomic_model_option): Use
717         std::string::compare instead of std::string::find.
719 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
721         * configure: Regenerate.
723 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
725         PR middle-end/91920
726         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
727         variables as shared.
729 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
731         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
732         replaces the expander and two define_insn entries.
733         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
734         call.
735         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
737 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
739         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
740         (fibonacci_heap::nodes): Likewise.
741         (fibonacci_heap::min_key): Likewise.
742         (fibonacci_heap::min): Likewise.
744 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
746         * cgraph.c (cgraph_node::get_fun): Make const.
747         * cgraph.h (cgraph_node::get_fun): Likewise.
749 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
751         PR target/91919
752         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
753         of SImode MULT.
755 2019-09-27  Richard Biener  <rguenther@suse.de>
757         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
758         (STMT_VINFO_REDUC_FN): Likewise.
759         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
760         STMT_VINFO_REDUC_FN.
761         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
762         for condition reductions.
763         (vect_create_epilog_for_reduction): Compute all required state
764         from the stmt to be vectorized.
765         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
766         invocation and remove then dead code.  For single def-use chains
767         record only a single vector stmt.
769 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
771         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
772         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
773         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
774         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
775         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
776         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
777         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
778         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
779         (aarch64_general_builtin_rsqrt): Declare.
780         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
781         New function.
782         (aarch64_mangle_builtin_type): Rename to...
783         (aarch64_general_mangle_builtin_type): ...this.
784         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
785         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
786         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
787         aarch64_general_add_builtin instead of add_builtin_function.
788         (aarch64_init_builtins): Rename to...
789         (aarch64_general_init_builtins): ...this.  Use
790         aarch64_general_add_builtin instead of add_builtin_function.
791         (aarch64_builtin_decl): Rename to...
792         (aarch64_general_builtin_decl): ...this and remove the unused
793         arguments.
794         (aarch64_expand_builtin): Rename to...
795         (aarch64_general_expand_builtin): ...this and remove the unused
796         arguments.
797         (aarch64_builtin_rsqrt): Rename to...
798         (aarch64_general_builtin_rsqrt): ...this.
799         (aarch64_fold_builtin): Rename to...
800         (aarch64_general_fold_builtin): ...this.  Take the function subcode
801         and return type as arguments.  Remove the "ignored" argument.
802         (aarch64_gimple_fold_builtin): Rename to...
803         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
804         subcode and gcall as arguments, and return the new function call.
805         * config/aarch64/aarch64.c (aarch64_init_builtins)
806         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
807         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
808         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
809         instead of aarch64_builtin_rsqrt.
810         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
811         instead of aarch64_mangle_builtin_type.
813 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
815         * target.def (check_builtin_call): New target hook.
816         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
817         * doc/tm.texi: Regenerate.
819 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
821         PR tree-optimization/91909
822         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
823         reduc_index parameter.  When handling COND_REDUCTION, make sure
824         that the reduction phi operand is in the correct arm of the
825         VEC_COND_EXPR.
826         (vectorizable_reduction): Pass reduc_index to the above.
828 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
830         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
831         New combine pattern.
833 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
835         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
836         loop instruction into new basic block before the loop when basic
837         block that precedes the loop is empty.
839 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
841         * function.c (gimplify_parameters): Use build_clobber function.
842         * tree-ssa.c (execute_update_addresses_taken): Likewise.
843         * tree-inline.c (expand_call_inline): Likewise.
844         * tree-sra.c (clobber_subtree): Likewise.
845         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
846         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
847         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
848         lower_omp_target): Likewise.
849         * omp-expand.c (expand_omp_for_generic): Likewise.
850         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
852 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
854         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
855         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
856         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
857         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
858         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
859         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
860         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
861         LD_ELEMREV_V16QI): Use the PURE attribute.
863 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
865         * config/rs6000/darwin.md: Replace the expanders for
866         load_macho_picbase and reload_macho_picbase with use of '@'
867         and <mode> in their respective define_insns.
868         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
869         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
870         Pmode to gen_load_macho_picbase.
871         * config/rs6000/rs6000.md: Likewise.
873 2019-09-25  Richard Biener  <rguenther@suse.de>
875         PR tree-optimization/91896
876         * tree-vect-loop.c (vectorizable_reduction): The single
877         def-use cycle optimization cannot apply when there's more
878         than one pattern stmt involved.
880 2019-09-26  Richard Biener  <rguenther@suse.de>
882         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
883         loop-closed PHIs that are vect_internal_def.
884         (vect_create_epilog_for_reduction): Exit early for nested cycles.
885         Simplify.
886         (vectorizable_lc_phi): New.
887         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
888         (vect_transform_stmt): Likewise.
889         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
890         (vectorizable_lc_phi): Declare.
892 2019-09-26  Richard Biener  <rguenther@suse.de>
894         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
895         vectorizable_reduction for vect_double_reduction_def.
896         (vect_transform_loop): Likewise.
897         (vect_create_epilog_for_reduction): Move double-reduction
898         PHI creation and preheader argument setting of PHIs ...
899         (vectorizable_reduction): ... here.  Also process
900         vect_double_reduction_def PHIs, creating the vectorized
901         PHI nodes, remembering the scalar adjustment computed for
902         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
903         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
904         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
905         Initialize STMT_VINFO_REDUC_CODE.
906         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
907         (_stmt_vec_info::reduc_code): Likewise.
908         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
909         (STMT_VINFO_REDUC_CODE): Likewise.
911 2019-09-26  Matt Turner  <mattst88@gmail.com>
913         PR driver/69471
914         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
915         (mtune=): Add Negative(mtune=).
916         (mcpu=): Add Negative(mcpu=).
917         * config/arm/arm.opt: Likewise.
919 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
921         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
922         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
923         Define.
924         * config/arm/arm_acle.h: Define builtins for the above.
925         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
926         (simd32_op): Handle the above.
927         * config/arm/unspecs.md: Define unspecs for the above.
929 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
931         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
932         (arm_<sup>xtb16): Likewise.
933         (arm_usada8): Likewise.
934         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
935         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
936         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
937         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
938         __sxtb16, __uxtab16, __uxtb16): Define.
939         * config/arm/arm_acle_builtins.def: Define builtins for the above.
940         * config/arm/unspecs.md: Define unspecs for the above.
941         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
942         (USXTB16): Likewise.
943         (simd32_op): New int_attribute.
944         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
945         * doc/sourcebuild.exp (arm_simd32_ok): Document.
947 2019-09-26  Martin Jambor  <mjambor@suse.cz>
949         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
950         internal_error.
952 2019-09-26  Martin Jambor  <mjambor@suse.cz>
954         * ipa-sra.c (process_scan_results): Fix continue condition.
956 2019-09-26  Martin Liska  <mliska@suse.cz>
958         PR tree-optimization/91885
959         * tree-vectorizer.c (try_vectorize_loop_1): Add
960         TODO_update_ssa_only_virtuals similarly to what slp pass does.
962 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
964         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
965         aarch64_plus_immediate rather than aarch64_uimm12_shift
966         to test for valid PLUS immediates.
968 2019-09-25  Martin Jambor  <mjambor@suse.cz>
970         * tree-sra.c (no_accesses_p): Remove.
971         (no_accesses_representant): Likewise.
973 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
975         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
976         consistenly.
977         (vaba_s16): Likewise.
978         (vaba_s32): Likewise.
979         (vaba_u8): Likewise.
980         (vaba_u16): Likewise.
981         (vaba_u32): Likewise.
982         (vabal_high_s8): Likewise.
983         (vabal_high_s16): Likewise.
984         (vabal_high_s32): Likewise.
985         (vabal_high_u8): Likewise.
986         (vabal_high_u16): Likewise.
987         (vabal_high_u32): Likewise.
988         (vabal_s8): Likewise.
989         (vabal_s16): Likewise.
990         (vabal_s32): Likewise.
991         (vabal_u8): Likewise.
992         (vabal_u16): Likewise.
993         (vabal_u32): Likewise.
994         (vabaq_s8): Likewise.
995         (vabaq_s16): Likewise.
996         (vabaq_s32): Likewise.
997         (vabaq_u8): Likewise.
998         (vabaq_u16): Likewise.
999         (vabaq_u32): Likewise.
1000         (vabd_s8): Likewise.
1001         (vabd_s16): Likewise.
1002         (vabd_s32): Likewise.
1003         (vabd_u8): Likewise.
1004         (vabd_u16): Likewise.
1005         (vabd_u32): Likewise.
1006         (vabdl_high_s8): Likewise.
1007         (vabdl_high_s16): Likewise.
1008         (vabdl_high_s32): Likewise.
1009         (vabdl_high_u8): Likewise.
1010         (vabdl_high_u16): Likewise.
1011         (vabdl_high_u32): Likewise.
1012         (vabdl_s8): Likewise.
1013         (vabdl_s16): Likewise.
1014         (vabdl_s32): Likewise.
1015         (vabdl_u8): Likewise.
1016         (vabdl_u16): Likewise.
1017         (vabdl_u32): Likewise.
1018         (vabdq_s8): Likewise.
1019         (vabdq_s16): Likewise.
1020         (vabdq_s32): Likewise.
1021         (vabdq_u8): Likewise.
1022         (vabdq_u16): Likewise.
1023         (vabdq_u32): Likewise.
1024         (vaddlv_s8): Likewise.
1025         (vaddlv_s16): Likewise.
1026         (vaddlv_u8): Likewise.
1027         (vaddlv_u16): Likewise.
1028         (vaddlvq_s8): Likewise.
1029         (vaddlvq_s16): Likewise.
1030         (vaddlvq_s32): Likewise.
1031         (vaddlvq_u8): Likewise.
1032         (vaddlvq_u16): Likewise.
1033         (vaddlvq_u32): Likewise.
1034         (vcvtx_f32_f64): Likewise.
1035         (vcvtx_high_f32_f64): Likewise.
1036         (vcvtxd_f32_f64): Likewise.
1037         (vmla_n_f32): Likewise.
1038         (vmla_n_s16): Likewise.
1039         (vmla_n_s32): Likewise.
1040         (vmla_n_u16): Likewise.
1041         (vmla_n_u32): Likewise.
1042         (vmla_s8): Likewise.
1043         (vmla_s16): Likewise.
1044         (vmla_s32): Likewise.
1045         (vmla_u8): Likewise.
1046         (vmla_u16): Likewise.
1047         (vmla_u32): Likewise.
1048         (vmlal_high_n_s16): Likewise.
1049         (vmlal_high_n_s32): Likewise.
1050         (vmlal_high_n_u16): Likewise.
1051         (vmlal_high_n_u32): Likewise.
1052         (vmlal_high_s8): Likewise.
1053         (vmlal_high_s16): Likewise.
1054         (vmlal_high_s32): Likewise.
1055         (vmlal_high_u8): Likewise.
1056         (vmlal_high_u16): Likewise.
1057         (vmlal_high_u32): Likewise.
1058         (vmlal_n_s16): Likewise.
1059         (vmlal_n_s32): Likewise.
1060         (vmlal_n_u16): Likewise.
1061         (vmlal_n_u32): Likewise.
1062         (vmlal_s8): Likewise.
1063         (vmlal_s16): Likewise.
1064         (vmlal_s32): Likewise.
1065         (vmlal_u8): Likewise.
1066         (vmlal_u16): Likewise.
1067         (vmlal_u32): Likewise.
1068         (vmlaq_n_f32): Likewise.
1069         (vmlaq_n_s16): Likewise.
1070         (vmlaq_n_s32): Likewise.
1071         (vmlaq_n_u16): Likewise.
1072         (vmlaq_n_u32): Likewise.
1073         (vmlaq_s8): Likewise.
1074         (vmlaq_s16): Likewise.
1075         (vmlaq_s32): Likewise.
1076         (vmlaq_u8): Likewise.
1077         (vmlaq_u16): Likewise.
1078         (vmlaq_u32): Likewise.
1079         (vmls_n_f32): Likewise.
1080         (vmls_n_s16): Likewise.
1081         (vmls_n_s32): Likewise.
1082         (vmls_n_u16): Likewise.
1083         (vmls_n_u32): Likewise.
1084         (vmls_s8): Likewise.
1085         (vmls_s16): Likewise.
1086         (vmls_s32): Likewise.
1087         (vmls_u8): Likewise.
1088         (vmls_u16): Likewise.
1089         (vmls_u32): Likewise.
1090         (vmlsl_high_n_s16): Likewise.
1091         (vmlsl_high_n_s32): Likewise.
1092         (vmlsl_high_n_u16): Likewise.
1093         (vmlsl_high_n_u32): Likewise.
1094         (vmlsl_high_s8): Likewise.
1095         (vmlsl_high_s16): Likewise.
1096         (vmlsl_high_s32): Likewise.
1097         (vmlsl_high_u8): Likewise.
1098         (vmlsl_high_u16): Likewise.
1099         (vmlsl_high_u32): Likewise.
1100         (vmlsl_n_s16): Likewise.
1101         (vmlsl_n_s32): Likewise.
1102         (vmlsl_n_u16): Likewise.
1103         (vmlsl_n_u32): Likewise.
1104         (vmlsl_s8): Likewise.
1105         (vmlsl_s16): Likewise.
1106         (vmlsl_s32): Likewise.
1107         (vmlsl_u8): Likewise.
1108         (vmlsl_u16): Likewise.
1109         (vmlsl_u32): Likewise.
1110         (vmlsq_n_f32): Likewise.
1111         (vmlsq_n_s16): Likewise.
1112         (vmlsq_n_s32): Likewise.
1113         (vmlsq_n_u16): Likewise.
1114         (vmlsq_n_u32): Likewise.
1115         (vmlsq_s8): Likewise.
1116         (vmlsq_s16): Likewise.
1117         (vmlsq_s32): Likewise.
1118         (vmlsq_u8): Likewise.
1119         (vmlsq_u16): Likewise.
1120         (vmlsq_u32): Likewise.
1121         (vmovl_high_s8): Likewise.
1122         (vmovl_high_s16): Likewise.
1123         (vmovl_high_s32): Likewise.
1124         (vmovl_high_u8): Likewise.
1125         (vmovl_high_u16): Likewise.
1126         (vmovl_high_u32): Likewise.
1127         (vmovl_s8): Likewise.
1128         (vmovl_s16): Likewise.
1129         (vmovl_s32): Likewise.
1130         (vmovl_u8): Likewise.
1131         (vmovl_u16): Likewise.
1132         (vmovl_u32): Likewise.
1133         (vmovn_high_s16): Likewise.
1134         (vmovn_high_s32): Likewise.
1135         (vmovn_high_s64): Likewise.
1136         (vmovn_high_u16): Likewise.
1137         (vmovn_high_u32): Likewise.
1138         (vmovn_high_u64): Likewise.
1139         (vmovn_s16): Likewise.
1140         (vmovn_s32): Likewise.
1141         (vmovn_s64): Likewise.
1142         (vmovn_u16): Likewise.
1143         (vmovn_u32): Likewise.
1144         (vmovn_u64): Likewise.
1145         (vmull_high_n_s16): Likewise.
1146         (vmull_high_n_s32): Likewise.
1147         (vmull_high_n_u16): Likewise.
1148         (vmull_high_n_u32): Likewise.
1149         (vmull_high_p8): Likewise.
1150         (vmull_high_s8): Likewise.
1151         (vmull_high_s16): Likewise.
1152         (vmull_high_s32): Likewise.
1153         (vmull_high_u8): Likewise.
1154         (vmull_high_u16): Likewise.
1155         (vmull_high_u32): Likewise.
1156         (vmull_n_s16): Likewise.
1157         (vmull_n_s32): Likewise.
1158         (vmull_n_u16): Likewise.
1159         (vmull_n_u32): Likewise.
1160         (vmull_p8): Likewise.
1161         (vmull_s8): Likewise.
1162         (vmull_s16): Likewise.
1163         (vmull_s32): Likewise.
1164         (vmull_u8): Likewise.
1165         (vmull_u16): Likewise.
1166         (vmull_u32): Likewise.
1167         (vpadal_s8): Likewise.
1168         (vpadal_s16): Likewise.
1169         (vpadal_s32): Likewise.
1170         (vpadal_u8): Likewise.
1171         (vpadal_u16): Likewise.
1172         (vpadal_u32): Likewise.
1173         (vpadalq_s8): Likewise.
1174         (vpadalq_s16): Likewise.
1175         (vpadalq_s32): Likewise.
1176         (vpadalq_u8): Likewise.
1177         (vpadalq_u16): Likewise.
1178         (vpadalq_u32): Likewise.
1179         (vpaddl_s8): Likewise.
1180         (vpaddl_s16): Likewise.
1181         (vpaddl_s32): Likewise.
1182         (vpaddl_u8): Likewise.
1183         (vpaddl_u16): Likewise.
1184         (vpaddl_u32): Likewise.
1185         (vpaddlq_s8): Likewise.
1186         (vpaddlq_s16): Likewise.
1187         (vpaddlq_s32): Likewise.
1188         (vpaddlq_u8): Likewise.
1189         (vpaddlq_u16): Likewise.
1190         (vpaddlq_u32): Likewise.
1191         (vpaddq_s8): Likewise.
1192         (vpaddq_s16): Likewise.
1193         (vpaddq_s32): Likewise.
1194         (vpaddq_s64): Likewise.
1195         (vpaddq_u8): Likewise.
1196         (vpaddq_u16): Likewise.
1197         (vpaddq_u32): Likewise.
1198         (vpaddq_u64): Likewise.
1199         (vqdmulh_n_s16): Likewise.
1200         (vqdmulh_n_s32): Likewise.
1201         (vqdmulhq_n_s16): Likewise.
1202         (vqdmulhq_n_s32): Likewise.
1203         (vqmovn_high_s16): Likewise.
1204         (vqmovn_high_s32): Likewise.
1205         (vqmovn_high_s64): Likewise.
1206         (vqmovn_high_u16): Likewise.
1207         (vqmovn_high_u32): Likewise.
1208         (vqmovn_high_u64): Likewise.
1209         (vqmovun_high_s16): Likewise.
1210         (vqmovun_high_s32): Likewise.
1211         (vqmovun_high_s64): Likewise.
1212         (vqrdmulh_n_s16): Likewise.
1213         (vqrdmulh_n_s32): Likewise.
1214         (vqrdmulhq_n_s16): Likewise.
1215         (vqrdmulhq_n_s32): Likewise.
1216         (vrsqrte_u32): Likewise.
1217         (vrsqrteq_u32): Likewise.
1218         (vtst_p8): Likewise.
1219         (vtst_p16): Likewise.
1220         (vtst_p64): Likewise.
1221         (vtstq_p8): Likewise.
1222         (vtstq_p16): Likewise.
1223         (vtstq_p64): Likewise.
1224         (vaddlv_s32): Likewise.
1225         (vaddlv_u32): Likewise.
1226         (vqtbl1_p8): Likewise.
1227         (vqtbl1_s8): Likewise.
1228         (vqtbl1_u8): Likewise.
1229         (vqtbl1q_p8): Likewise.
1230         (vqtbl1q_s8): Likewise.
1231         (vqtbl1q_u8): Likewise.
1232         (vqtbx1_s8): Likewise.
1233         (vqtbx1_u8): Likewise.
1234         (vqtbx1_p8): Likewise.
1235         (vqtbx1q_s8): Likewise.
1236         (vqtbx1q_u8): Likewise.
1237         (vqtbx1q_p8): Likewise.
1238         (vtbl1_s8): Likewise.
1239         (vtbl1_u8): Likewise.
1240         (vtbl1_p8): Likewise.
1241         (vtbl2_s8): Likewise.
1242         (vtbl2_u8): Likewise.
1243         (vtbl2_p8): Likewise.
1244         (vtbl3_s8): Likewise.
1245         (vtbl3_u8): Likewise.
1246         (vtbl3_p8): Likewise.
1247         (vtbl4_s8): Likewise.
1248         (vtbl4_u8): Likewise.
1249         (vtbl4_p8): Likewise.
1250         (vtbx2_s8): Likewise.
1251         (vtbx2_u8): Likewise.
1252         (vtbx2_p8): Likewise.
1253         (vld1_f32): Likewise.
1254         (vld1_f64): Likewise.
1255         (vld1_p8): Likewise.
1256         (vld1_p16): Likewise.
1257         (vld1_p64): Likewise.
1258         (vld1_s8): Likewise.
1259         (vld1_s16): Likewise.
1260         (vld1_s32): Likewise.
1261         (vld1_s64): Likewise.
1262         (vld1_u8): Likewise.
1263         (vld1_u16): Likewise.
1264         (vld1_u32): Likewise.
1265         (vld1_u64): Likewise.
1266         (vld1q_f32): Likewise.
1267         (vld1q_f64): Likewise.
1268         (vld1q_p8): Likewise.
1269         (vld1q_p16): Likewise.
1270         (vld1q_p64): Likewise.
1271         (vld1q_s8): Likewise.
1272         (vld1q_s16): Likewise.
1273         (vld1q_s32): Likewise.
1274         (vld1q_s64): Likewise.
1275         (vld1q_u8): Likewise.
1276         (vld1q_u16): Likewise.
1277         (vld1q_u32): Likewise.
1278         (vld1q_u64): Likewise.
1279         (vpmax_s8): Likewise.
1280         (vpmax_s16): Likewise.
1281         (vpmax_s32): Likewise.
1282         (vpmax_u8): Likewise.
1283         (vpmax_u16): Likewise.
1284         (vpmax_u32): Likewise.
1285         (vpmaxq_s8): Likewise.
1286         (vpmaxq_s16): Likewise.
1287         (vpmaxq_s32): Likewise.
1288         (vpmaxq_u8): Likewise.
1289         (vpmaxq_u16): Likewise.
1290         (vpmaxq_u32): Likewise.
1291         (vpmax_f32): Likewise.
1292         (vpmaxq_f32): Likewise.
1293         (vpmaxq_f64): Likewise.
1294         (vpmaxqd_f64): Likewise.
1295         (vpmaxs_f32): Likewise.
1296         (vpmaxnm_f32): Likewise.
1297         (vpmaxnmq_f32): Likewise.
1298         (vpmaxnmq_f64): Likewise.
1299         (vpmaxnmqd_f64): Likewise.
1300         (vpmaxnms_f32): Likewise.
1301         (vpmin_s8): Likewise.
1302         (vpmin_s16): Likewise.
1303         (vpmin_s32): Likewise.
1304         (vpmin_u8): Likewise.
1305         (vpmin_u16): Likewise.
1306         (vpmin_u32): Likewise.
1307         (vpminq_s8): Likewise.
1308         (vpminq_s16): Likewise.
1309         (vpminq_s32): Likewise.
1310         (vpminq_u8): Likewise.
1311         (vpminq_u16): Likewise.
1312         (vpminq_u32): Likewise.
1313         (vpmin_f32): Likewise.
1314         (vpminq_f32): Likewise.
1315         (vpminq_f64): Likewise.
1316         (vpminqd_f64): Likewise.
1317         (vpmins_f32): Likewise.
1318         (vpminnm_f32): Likewise.
1319         (vpminnmq_f32): Likewise.
1320         (vpminnmq_f64): Likewise.
1321         (vpminnmqd_f64): Likewise.
1322         (vpminnms_f32): Likewise.
1323         (vmla_f32): Likewise.
1324         (vmlaq_f32): Likewise.
1325         (vmlaq_f64): Likewise.
1326         (vmls_f32): Likewise.
1327         (vmlsq_f32): Likewise.
1328         (vmlsq_f64): Likewise.
1329         (vqtbl2_s8): Likewise.
1330         (vqtbl2_u8): Likewise.
1331         (vqtbl2_p8): Likewise.
1332         (vqtbl2q_s8): Likewise.
1333         (vqtbl2q_u8): Likewise.
1334         (vqtbl2q_p8): Likewise.
1335         (vqtbl3_s8): Likewise.
1336         (vqtbl3_u8): Likewise.
1337         (vqtbl3_p8): Likewise.
1338         (vqtbl3q_s8): Likewise.
1339         (vqtbl3q_u8): Likewise.
1340         (vqtbl3q_p8): Likewise.
1341         (vqtbl4_s8): Likewise.
1342         (vqtbl4_u8): Likewise.
1343         (vqtbl4_p8): Likewise.
1344         (vqtbl4q_s8): Likewise.
1345         (vqtbl4q_u8): Likewise.
1346         (vqtbl4q_p8): Likewise.
1347         (vqtbx2_s8): Likewise.
1348         (vqtbx2_u8): Likewise.
1349         (vqtbx2_p8): Likewise.
1350         (vqtbx2q_s8): Likewise.
1351         (vqtbx2q_u8): Likewise.
1352         (vqtbx2q_p8): Likewise.
1353         (vqtbx3_s8): Likewise.
1354         (vqtbx3_u8): Likewise.
1355         (vqtbx3_p8): Likewise.
1356         (vqtbx3q_s8): Likewise.
1357         (vqtbx3q_u8): Likewise.
1358         (vqtbx3q_p8): Likewise.
1359         (vqtbx4_s8): Likewise.
1360         (vqtbx4_u8): Likewise.
1361         (vqtbx4_p8): Likewise.
1362         (vqtbx4q_s8): Likewise.
1363         (vqtbx4q_u8): Likewise.
1364         (vqtbx4q_p8): Likewise.
1365         (vrev16_p8): Likewise.
1366         (vrev16_s8): Likewise.
1367         (vrev16_u8): Likewise.
1368         (vrev16q_p8): Likewise.
1369         (vrev16q_s8): Likewise.
1370         (vrev16q_u8): Likewise.
1371         (vrev32_p8): Likewise.
1372         (vrev32_p16): Likewise.
1373         (vrev32_s8): Likewise.
1374         (vrev32_s16): Likewise.
1375         (vrev32_u8): Likewise.
1376         (vrev32_u16): Likewise.
1377         (vrev32q_p8): Likewise.
1378         (vrev32q_p16): Likewise.
1379         (vrev32q_s8): Likewise.
1380         (vrev32q_s16): Likewise.
1381         (vrev32q_u8): Likewise.
1382         (vrev32q_u16): Likewise.
1383         (vrev64_f32): Likewise.
1384         (vrev64_p8): Likewise.
1385         (vrev64_p16): Likewise.
1386         (vrev64_s8): Likewise.
1387         (vrev64_s16): Likewise.
1388         (vrev64_s32): Likewise.
1389         (vrev64_u8): Likewise.
1390         (vrev64_u16): Likewise.
1391         (vrev64_u32): Likewise.
1392         (vrev64q_f32): Likewise.
1393         (vrev64q_p8): Likewise.
1394         (vrev64q_p16): Likewise.
1395         (vrev64q_s8): Likewise.
1396         (vrev64q_s16): Likewise.
1397         (vrev64q_s32): Likewise.
1398         (vrev64q_u8): Likewise.
1399         (vrev64q_u16): Likewise.
1400         (vrev64q_u32): Likewise.
1401         (vsha1cq_u32): Likewise.
1402         (vsha1mq_u32): Likewise.
1403         (vsha1pq_u32): Likewise.
1404         (vsha1h_u32): Likewise.
1405         (vsha1su0q_u32): Likewise.
1406         (vsha1su1q_u32): Likewise.
1407         (vsha256hq_u32): Likewise.
1408         (vsha256h2q_u32): Likewise.
1409         (vsha256su0q_u32): Likewise.
1410         (vsha256su1q_u32): Likewise.
1411         (vmull_p64): Likewise.
1412         (vmull_high_p64): Likewise.
1413         (vsqrt_f32): Likewise.
1414         (vsqrtq_f32): Likewise.
1415         (vsqrt_f64): Likewise.
1416         (vsqrtq_f64): Likewise.
1417         (vst1_f32): Likewise.
1418         (vst1_f64): Likewise.
1419         (vst1_p8): Likewise.
1420         (vst1_p16): Likewise.
1421         (vst1_p64): Likewise.
1422         (vst1_s8): Likewise.
1423         (vst1_s16): Likewise.
1424         (vst1_s32): Likewise.
1425         (vst1_s64): Likewise.
1426         (vst1_u8): Likewise.
1427         (vst1_u16): Likewise.
1428         (vst1_u32): Likewise.
1429         (vst1_u64): Likewise.
1430         (vst1q_f32): Likewise.
1431         (vst1q_f64): Likewise.
1432         (vst1q_p8): Likewise.
1433         (vst1q_p16): Likewise.
1434         (vst1q_p64): Likewise.
1435         (vst1q_s8): Likewise.
1436         (vst1q_s16): Likewise.
1437         (vst1q_s32): Likewise.
1438         (vst1q_s64): Likewise.
1439         (vst1q_u8): Likewise.
1440         (vst1q_u16): Likewise.
1441         (vst1q_u32): Likewise.
1442         (vst1q_u64): Likewise.
1443         (vst1_s64_x2): Likewise.
1444         (vst1_u64_x2): Likewise.
1445         (vst1_f64_x2): Likewise.
1446         (vst1_s8_x2): Likewise.
1447         (vst1_p8_x2): Likewise.
1448         (vst1_s16_x2): Likewise.
1449         (vst1_p16_x2): Likewise.
1450         (vst1_s32_x2): Likewise.
1451         (vst1_u8_x2): Likewise.
1452         (vst1_u16_x2): Likewise.
1453         (vst1_u32_x2): Likewise.
1454         (vst1_f16_x2): Likewise.
1455         (vst1_f32_x2): Likewise.
1456         (vst1_p64_x2): Likewise.
1457         (vst1q_s8_x2): Likewise.
1458         (vst1q_p8_x2): Likewise.
1459         (vst1q_s16_x2): Likewise.
1460         (vst1q_p16_x2): Likewise.
1461         (vst1q_s32_x2): Likewise.
1462         (vst1q_s64_x2): Likewise.
1463         (vst1q_u8_x2): Likewise.
1464         (vst1q_u16_x2): Likewise.
1465         (vst1q_u32_x2): Likewise.
1466         (vst1q_u64_x2): Likewise.
1467         (vst1q_f16_x2): Likewise.
1468         (vst1q_f32_x2): Likewise.
1469         (vst1q_f64_x2): Likewise.
1470         (vst1q_p64_x2): Likewise.
1471         (vst1_s64_x3): Likewise.
1472         (vst1_u64_x3): Likewise.
1473         (vst1_f64_x3): Likewise.
1474         (vst1_s8_x3): Likewise.
1475         (vst1_p8_x3): Likewise.
1476         (vst1_s16_x3): Likewise.
1477         (vst1_p16_x3): Likewise.
1478         (vst1_s32_x3): Likewise.
1479         (vst1_u8_x3): Likewise.
1480         (vst1_u16_x3): Likewise.
1481         (vst1_u32_x3): Likewise.
1482         (vst1_f16_x3): Likewise.
1483         (vst1_f32_x3): Likewise.
1484         (vst1_p64_x3): Likewise.
1485         (vst1q_s8_x3): Likewise.
1486         (vst1q_p8_x3): Likewise.
1487         (vst1q_s16_x3): Likewise.
1488         (vst1q_p16_x3): Likewise.
1489         (vst1q_s32_x3): Likewise.
1490         (vst1q_s64_x3): Likewise.
1491         (vst1q_u8_x3): Likewise.
1492         (vst1q_u16_x3): Likewise.
1493         (vst1q_u32_x3): Likewise.
1494         (vst1q_u64_x3): Likewise.
1495         (vst1q_f16_x3): Likewise.
1496         (vst1q_f32_x3): Likewise.
1497         (vst1q_f64_x3): Likewise.
1498         (vst1q_p64_x3): Likewise.
1499         (vst2_s64): Likewise.
1500         (vst2_u64): Likewise.
1501         (vst2_f64): Likewise.
1502         (vst2_s8): Likewise.
1503         (vst2_p8): Likewise.
1504         (vst2_s16): Likewise.
1505         (vst2_p16): Likewise.
1506         (vst2_s32): Likewise.
1507         (vst2_u8): Likewise.
1508         (vst2_u16): Likewise.
1509         (vst2_u32): Likewise.
1510         (vst2_f16): Likewise.
1511         (vst2_f32): Likewise.
1512         (vst2_p64): Likewise.
1513         (vst2q_s8): Likewise.
1514         (vst2q_p8): Likewise.
1515         (vst2q_s16): Likewise.
1516         (vst2q_p16): Likewise.
1517         (vst2q_s32): Likewise.
1518         (vst2q_s64): Likewise.
1519         (vst2q_u8): Likewise.
1520         (vst2q_u16): Likewise.
1521         (vst2q_u32): Likewise.
1522         (vst2q_u64): Likewise.
1523         (vst2q_f16): Likewise.
1524         (vst2q_f32): Likewise.
1525         (vst2q_f64): Likewise.
1526         (vst2q_p64): Likewise.
1527         (vst3_s64): Likewise.
1528         (vst3_u64): Likewise.
1529         (vst3_f64): Likewise.
1530         (vst3_s8): Likewise.
1531         (vst3_p8): Likewise.
1532         (vst3_s16): Likewise.
1533         (vst3_p16): Likewise.
1534         (vst3_s32): Likewise.
1535         (vst3_u8): Likewise.
1536         (vst3_u16): Likewise.
1537         (vst3_u32): Likewise.
1538         (vst3_f16): Likewise.
1539         (vst3_f32): Likewise.
1540         (vst3_p64): Likewise.
1541         (vst3q_s8): Likewise.
1542         (vst3q_p8): Likewise.
1543         (vst3q_s16): Likewise.
1544         (vst3q_p16): Likewise.
1545         (vst3q_s32): Likewise.
1546         (vst3q_s64): Likewise.
1547         (vst3q_u8): Likewise.
1548         (vst3q_u16): Likewise.
1549         (vst3q_u32): Likewise.
1550         (vst3q_u64): Likewise.
1551         (vst3q_f16): Likewise.
1552         (vst3q_f32): Likewise.
1553         (vst3q_f64): Likewise.
1554         (vst3q_p64): Likewise.
1555         (vst4_s64): Likewise.
1556         (vst4_u64): Likewise.
1557         (vst4_f64): Likewise.
1558         (vst4_s8): Likewise.
1559         (vst4_p8): Likewise.
1560         (vst4_s16): Likewise.
1561         (vst4_p16): Likewise.
1562         (vst4_s32): Likewise.
1563         (vst4_u8): Likewise.
1564         (vst4_u16): Likewise.
1565         (vst4_u32): Likewise.
1566         (vst4_f16): Likewise.
1567         (vst4_f32): Likewise.
1568         (vst4_p64): Likewise.
1569         (vst4q_s8): Likewise.
1570         (vst4q_p8): Likewise.
1571         (vst4q_s16): Likewise.
1572         (vst4q_p16): Likewise.
1573         (vst4q_s32): Likewise.
1574         (vst4q_s64): Likewise.
1575         (vst4q_u8): Likewise.
1576         (vst4q_u16): Likewise.
1577         (vst4q_u32): Likewise.
1578         (vst4q_u64): Likewise.
1579         (vst4q_f16): Likewise.
1580         (vst4q_f32): Likewise.
1581         (vst4q_f64): Likewise.
1582         (vst4q_p64): Likewise.
1583         (vtbx4_s8): Likewise.
1584         (vtbx4_u8): Likewise.
1585         (vtbx4_p8): Likewise.
1586         (vtrn_f32): Likewise.
1587         (vtrn_p8): Likewise.
1588         (vtrn_p16): Likewise.
1589         (vtrn_s8): Likewise.
1590         (vtrn_s16): Likewise.
1591         (vtrn_s32): Likewise.
1592         (vtrn_u8): Likewise.
1593         (vtrn_u16): Likewise.
1594         (vtrn_u32): Likewise.
1595         (vtrnq_f32): Likewise.
1596         (vtrnq_p8): Likewise.
1597         (vtrnq_p16): Likewise.
1598         (vtrnq_s8): Likewise.
1599         (vtrnq_s16): Likewise.
1600         (vtrnq_s32): Likewise.
1601         (vtrnq_u8): Likewise.
1602         (vtrnq_u16): Likewise.
1603         (vtrnq_u32): Likewise.
1604         (vrsqrte_f16): Likewise.
1605         (vrsqrteq_f16): Likewise.
1606         (vsqrt_f16): Likewise.
1607         (vsqrtq_f16): Likewise.
1608         (vabd_f16): Likewise.
1609         (vabdq_f16): Likewise.
1610         (vpadd_f16): Likewise.
1611         (vpaddq_f16): Likewise.
1612         (vpmax_f16): Likewise.
1613         (vpmaxq_f16): Likewise.
1614         (vpmaxnm_f16): Likewise.
1615         (vpmaxnmq_f16): Likewise.
1616         (vpmin_f16): Likewise.
1617         (vpminq_f16): Likewise.
1618         (vpminnm_f16): Likewise.
1619         (vpminnmq_f16): Likewise.
1620         (vrsqrts_f16): Likewise.
1621         (vrsqrtsq_f16): Likewise.
1623 2019-09-25  Richard Biener  <rguenther@suse.de>
1625         PR tree-optimization/91896
1626         * tree-vect-loop.c (vectorizable_reduction): The single
1627         def-use cycle optimization cannot apply when there's more
1628         than one pattern stmt involved.
1630 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
1632         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
1633         the 'P' mode iterator, replacing the (removed) SI and DI variants.
1634         (reload_macho_picbase_<mode>): Likewise.
1636 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
1638         * config/rs6000/rs6000.md: Move darwin.md include until
1639         after the definition of the mode iterators.
1641 2019-09-23  Martin Sebor  <msebor@redhat.com>
1643         PR tree-optimization/91570
1644         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
1645         non-constant minlen, maxlen and maxbound.
1647 2019-09-24  Richard Biener  <rguenther@suse.de>
1649         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
1650         Rename to...
1651         (_stmt_vec_info::cond_reduc_code): ... this.
1652         (_stmt_vec_info::induc_cond_initial_val): Add.
1653         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
1654         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
1655         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
1656         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
1657         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
1658         the reduction code.
1659         (vect_create_epilog_for_reduction): Drop special
1660         induction condition reduction params, pass in reduction code
1661         and simplify.
1662         (vectorizable_reduction): Perform condition reduction kind
1663         selection only at analysis time.  Adjust passing on state.
1665 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1667         * config/aarch64/aarch64.md (mov<mode>): Don't call
1668         aarch64_split_dimode_const_store on volatile MEM.
1670 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
1672         * config/aarch64/aarch64-option-extensions.def (fp16fml):
1673         Update hwcap string for fp16fml.
1675 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
1677         PR middle-end/91866
1678         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
1679         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
1681 2019-09-24  Martin Liska  <mliska@suse.cz>
1683         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
1684         instead of if-elseif-elseif-...
1685         * gimple-expr.c (extract_ops_from_tree): Likewise.
1686         * gimple.c (get_gimple_rhs_num_ops): Likewise.
1687         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
1689 2019-09-24  Martin Jambor  <mjambor@suse.cz>
1691         PR ipa/91831
1692         * ipa-param-manipulation.c (carry_over_param): Make a method of
1693         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
1694         in case of a context mismatch.
1695         (ipa_param_body_adjustments::common_initialization): Adjust call to
1696         carry_over_param.
1697         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
1698         private method carry_over_param.
1700 2019-09-24  Martin Jambor  <mjambor@suse.cz>
1702         PR ipa/91832
1703         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
1705 2019-09-24  Richard Biener  <rguenther@suse.de>
1707         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
1708         base.
1710 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1712         * config/arm/t-arm (arm-builtins.o): Add dependency on
1713         arm_acle_builtins.def.
1715 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
1717         PR target/91823
1718         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
1719         canonical CONST_INTs.  Use gen_rtvec.
1721 2019-09-23  Richard Biener  <rguenther@suse.de>
1723         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
1724         avoid adjusting by + 0 or * 1.
1725         (vect_create_epilog_for_reduction): Get reduction code only
1726         when necessary.  Deal with adjustment_def only when necessary.
1728 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
1730         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
1731         memmodel index.
1733 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1735         PR ipa/91835
1736         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
1737         "ipa-sra".
1739 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
1741         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
1742         code.  Merge code blocks with common conditionals. Use declared
1743         macro instead of a magic number for PIC level.
1745 2019-09-21  Martin Sebor  <msebor@redhat.com>
1747         PR middle-end/91830
1748         * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
1749         Simplify computation of the offset of the referenced subobject.
1751 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
1753         * config/darwin.c (machopic_legitimize_pic_address): Check
1754         for lra not reload.
1756 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1758         * ira-conflicts.c (can_use_same_reg_p): New function.
1759         (process_reg_shuffles): Take an insn parameter.  Ignore cases
1760         in which input operand op_num could seemingly never be allocated
1761         to the same register as the destination.
1762         (add_insn_allocno_copies): Update call to process_reg_shuffles.
1764 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
1766         * simplify-rtx.c (neg_const_int): Replace with...
1767         (neg_poly_int_rtx): ...this new function.
1768         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
1769         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
1770         (simplify_plus_minus): Likewise for constant terms here.
1772 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
1774         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
1775         HOST_WIDE_PRINT_UNSIGNED.
1777 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
1779         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
1780         character.
1782 2019-09-20  Maya Rashish  <coypu@sdf.org>
1784         PR target/86811
1785         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
1786         Define to speculation_safe_value_not_needed.
1788 2019-09-20  Richard Biener  <rguenther@suse.de>
1789         Uros Bizjak  <ubizjak@gmail.com>
1791         PR target/91814
1792         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
1793         previous change.
1794         (general_scalar_chain::convert_op): Force not suitable memory
1795         operands to a register.
1797 2019-09-20  Richard Biener  <rguenther@suse.de>
1799         PR tree-optimization/91821
1800         * tree-vect-loop.c (check_reduction_path): Check we can compute
1801         reduc_idx.
1802         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
1803         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
1804         operands in canonical order.
1805         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1806         STMT_VINFO_REDUC_IDX.
1807         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
1808         (STMT_VINFO_REDUC_IDX): Likewise.
1810 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
1812         PR target/91269
1813         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
1815 2019-09-20  Richard Biener  <rguenther@suse.de>
1817         PR tree-optimization/91822
1818         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
1819         parameter.
1820         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
1821         for reduc_index in nested cycles, adjust vectorizable_condition
1822         calls.
1823         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
1824         parameter.
1825         (vect_analyze_stmt): Adjust.
1826         (vect_transform_stmt): Likewise.
1828 2019-09-20  Richard Biener  <rguenther@suse.de>
1830         PR target/91767
1831         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
1832         Ensure there's a sequence point between allocating the new register
1833         and passing a reference to a reg via regno_reg_rtx.
1835 2019-09-20  Martin Jambor  <mjambor@suse.cz>
1837         * coretypes.h (cgraph_edge): Declare.
1838         * ipa-param-manipulation.c: Rewrite.
1839         * ipa-param-manipulation.h: Likewise.
1840         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
1841         (OBJS): Added ipa-sra.o.
1842         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
1843         and ref_p, added fields param_adjustments and performed_splits.
1844         (struct cgraph_clone_info): Remove ags_to_skip and
1845         combined_args_to_skip, new field param_adjustments.
1846         (cgraph_node::create_clone): Changed parameters to use
1847         ipa_param_adjustments.
1848         (cgraph_node::create_virtual_clone): Likewise.
1849         (cgraph_node::create_virtual_clone_with_body): Likewise.
1850         (tree_function_versioning): Likewise.
1851         (cgraph_build_function_type_skip_args): Removed.
1852         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
1853         using ipa_param_adjustments.
1854         (clone_of_p): Likewise.
1855         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
1856         (build_function_decl_skip_args): Likewise.
1857         (duplicate_thunk_for_node): Adjust parameters using
1858         ipa_param_body_adjustments, copy param_adjustments instead of
1859         args_to_skip.
1860         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
1861         (cgraph_node::create_virtual_clone): Likewise.
1862         (cgraph_node::create_version_clone_with_body): Likewise.
1863         (cgraph_materialize_clone): Likewise.
1864         (symbol_table::materialize_all_clones): Likewise.
1865         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
1866         ipa_replace_map check.
1867         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
1868         (initialize_node_lattices): Make aware that some parameters might have
1869         already been removed.
1870         (want_remove_some_param_p): New function.
1871         (create_specialized_node): Convert to using ipa_param_adjustments and
1872         deal with possibly pre-existing adjustments.
1873         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
1874         (output_node_opt_summary): Do not stream removed fields.  Stream
1875         parameter adjustments instead of argumetns to skip.
1876         (input_node_opt_summary): Likewise.
1877         (input_node_opt_summary): Likewise.
1878         * lto-section-in.c (lto_section_name): Added ipa-sra section.
1879         * lto-streamer.h (lto_section_type): Likewise.
1880         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
1881         param_body_adjs.
1882         (copy_decl_to_var): Declare.
1883         * tree-inline.c (update_clone_info): Do not remap old_tree.
1884         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
1885         statements, walk all extra generated statements and remap their
1886         operands.
1887         (redirect_all_calls): Add killed SSA names to a hash set.
1888         (remap_ssa_name): Do not remap killed SSA names.
1889         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
1890         half of functionality moved to ipa_param_body_adjustments.
1891         (copy_decl_to_var): Make exported.
1892         (copy_body): Destroy killed_new_ssa_names hash set.
1893         (expand_call_inline): Remap performed splits.
1894         (update_clone_info): Likewise.
1895         (tree_function_versioning): Simplify tree_map processing.  Updated to
1896         accept ipa_param_adjustments and use ipa_param_body_adjustments.
1897         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
1898         for the new interface.
1899         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
1900         (simd_clone_compute_base_data_type): Likewise.
1901         (simd_clone_init_simd_arrays): Adjust for the new interface.
1902         (simd_clone_adjust_argument_types): Likewise.
1903         (struct modify_stmt_info): Likewise.
1904         (ipa_simd_modify_stmt_ops): Likewise.
1905         (ipa_simd_modify_function_body): Likewise.
1906         (simd_clone_adjust): Likewise.
1907         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
1908         (type_internals_preclude_sra_p): Make public.
1909         * tree-sra.h: New file.
1910         * ipa-inline-transform.c (save_inline_function_body): Update to
1911         refelct new tree_function_versioning signature.
1912         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
1913         ipa_param_adjustments to get current parameter indices.
1914         (ipcp_modif_dom_walker::before_dom_children): Likewise.
1915         (ipcp_update_bits): Likewise.
1916         (ipcp_update_vr): Likewise.
1917         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
1918         * ipa-sra.c: New file.
1919         * multiple_target.c (create_target_clone): Update to reflet new type
1920         of create_version_clone_with_body.
1921         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
1922         tree_function_versioning.
1923         (modify_function): Update to reflect new type of
1924         tree_function_versioning.
1925         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
1926         * passes.def: Remove old IPA-SRA and add new one.
1927         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
1928         (make_pass_ipa_sra): Declare.
1929         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
1930         ipa_sra_retvalues.
1931         * doc/invoke.texi (ipa-sra-max-replacements): New.
1933 2019-09-19  Martin Sebor  <msebor@redhat.com>
1935         PR middle-end/91631
1936         * builtins.c (component_size): Correct trailing array computation,
1937         rename to component_ref_size and move...
1938         (compute_objsize): Adjust.
1939         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
1940         (builtin_access::strict): Do not consider memmove.
1941         (builtin_access::write_off): New function.
1942         (builtin_memref::builtin_memref): Initialize refsize.
1943         (builtin_memref::set_base_and_offset): Adjust refoff and compute
1944         refsize.
1945         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
1946         Handle refsize.
1947         (builtin_access::builtin_access): Initialize dstoff to destination
1948         refeence offset here instead of in maybe_diag_overlap.  Adjust
1949         referencess even to unrelated objects.  Adjust sizrange of bounded
1950         string functions to reflect bound.  For strcat, adjust destination
1951         sizrange by that of source.
1952         (builtin_access::strcat_overlap):  Adjust offsets and sizes
1953         to reflect the increase in destination sizrange above.
1954         (builtin_access::overlap): Do not set dstoff here but instead
1955         in builtin_access::builtin_access.
1956         (check_bounds_or_overlap): Use builtin_access::write_off.
1957         (maybe_diag_access_bounds): Add argument.  Add informational notes.
1958         (dump_builtin_memref, dump_builtin_access): New functions.
1959         * tree.c (component_ref_size): ...to here.
1960         * tree.h (component_ref_size): Declare.
1961         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
1962         nul in the size of the source string.
1964 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
1966         PR c/67224
1967         * doc/cpp.texi: Document support for extended characters in
1968         identifiers.
1969         * doc/cppopts.texi: Likewise.
1971 2019-09-19  Richard Biener  <rguenther@suse.de>
1973         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
1974         (check_reduction_path): New overload having the path as result.
1975         (vect_is_simple_reduction): From the detected reduction
1976         path build a SLP reduction chain if possible.
1978 2019-09-19  Richard Biener  <rguenther@suse.de>
1980         PR target/91814
1981         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
1982         Force operand to a register if it isn't nonimmediate_operand.
1984 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
1986         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
1987         * config/arm/iterators.md (optab): Add and, ior, xor entries.
1988         (logical_op): Remove code attribute.
1989         (logical_OP): Likewise.
1991 2019-09-19  Martin Liska  <mliska@suse.cz>
1993         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
1994         Use proper casting.
1996 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
1998         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
1999         registers with %R.
2001         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
2002         for NE comparison of TImode values.
2003         (aarch64_emit_load_exclusive): Add support for TImode.
2004         (aarch64_emit_store_exclusive): Likewise.
2005         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
2006         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
2007         Change iterator from ALLI to ALLI_TI.
2008         (@atomic_compare_and_swap<JUST_TI>): New.
2009         (@atomic_compare_and_swap<JUST_TI>_lse): New.
2010         (aarch64_load_exclusive_pair): New.
2011         (aarch64_store_exclusive_pair): New.
2012         * config/aarch64/iterators.md (JUST_TI): New.
2014         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
2015         strong_zero_p for aarch64_track_speculation; unify some code paths;
2016         use aarch64_gen_compare_reg instead of open-coding.
2018         * config/aarch64/aarch64.opt (-moutline-atomics): New.
2019         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
2020         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
2021         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
2022         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
2023         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
2024         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
2025         (atomic_<atomic_op><ALLI>): Likewise.
2026         (atomic_fetch_<atomic_op><ALLI>): Likewise.
2027         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
2028         * doc/invoke.texi: Document -moutline-atomics.
2030 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
2032         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
2033         trivial predicate for condition branch.
2034         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
2035         for switch case.
2036         (compute_bb_predicates): Update predicate based on post-dominating
2037         relationship.
2038         (analyze_function_body): Calculate post-dominating information.
2040 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
2042         * tree-vectorizer.h (vectorizable_condition): Take an int
2043         reduction index instead of a boolean flag.
2044         * tree-vect-stmts.c (vectorizable_condition): Likewise.
2045         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
2046         reductions if the reduction accumulator is the "then" rather
2047         than the "else" value.
2048         (vect_analyze_stmt): Update call accordingly.
2049         (vect_transform_stmt): Likewise.
2050         * tree-vect-loop.c (vectorizable_reduction): Likewise,
2051         asserting that the index is > 0.
2053 2019-09-19  Martin Liska  <mliska@suse.cz>
2055         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
2056         (sort_congruence_classes_by_decl_uid): Likewise.
2057         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
2058         easier sorting.
2059         (sem_item_optimizer::merge_classes): Likewise.
2061 2019-09-19  Richard Biener  <rguenther@suse.de>
2063         PR tree-optimization/91812
2064         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
2065         volatile loads.
2067 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
2069         * defaults.h (TARGET_UNIT): New macro.
2070         (target_unit): New type.
2071         * rtl.h (native_encode_rtx, native_decode_rtx)
2072         (native_decode_vector_rtx, subreg_size_lsb): Declare.
2073         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
2074         * rtlanal.c (subreg_lsb_1): Delete.
2075         (subreg_size_lsb): New function.
2076         * simplify-rtx.c: Include rtx-vector-builder.h
2077         (simplify_immed_subreg): Delete.
2078         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
2079         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
2080         functions.
2081         (simplify_subreg): Use them.
2082         (test_vector_subregs_modes, test_vector_subregs_repeating)
2083         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
2084         (test_vector_subregs): New functions.
2085         (test_vector_ops): Call test_vector_subregs for integer vector
2086         modes with at least 2 elements.
2088 2019-09-19  Richard Biener  <rguenther@suse.de>
2090         * tree-parloops.c (parloops_is_slp_reduction): Do not set
2091         LOOP_VINFO_OPERANDS_SWAPPED.
2092         (parloops_is_simple_reduction): Likewise.
2093         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
2094         initialize operands_swapped.
2095         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
2096         (vect_is_slp_reduction): Do not swap operands.
2097         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
2098         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
2100 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
2102         PR target/87007
2103         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
2104         Add avx_partial_xmm_update.
2106 2019-09-18  Jim Wilson  <jimw@sifive.com>
2108         PR target/91683
2109         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
2110         (riscv_move_integer): Likewise.
2111         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
2112         riscv_move_integer arg.
2113         (riscv_legitimize_move): Likewise.
2114         (riscv_force_temporary): New parameter in_splitter.  Don't call
2115         force_reg if true.
2116         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
2117         arg.
2118         (riscv_add_offset): Likewise.
2119         (riscv_split_symbol): New parameter in_splitter.  Pass to
2120         riscv_force_temporary.
2121         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
2122         arg.
2123         (riscv_move_integer): New parameter in_splitter.  New local
2124         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
2125         in_splitter TRUE.
2126         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
2127         riscv_split_symbol, and riscv_force_temporary args.
2128         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
2129         riscv_move_integer arg.
2130         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
2132 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2134         PR target/90878
2135         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
2136         hard register store cost to 6.
2138 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2140         PR target/91446
2141         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
2142         pseudo register store cost from 3 to 6 to make it the same as
2143         QImode and HImode.
2145 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
2147         PR target/91738
2148         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
2149         (one_cmpldi2): Likewise.
2150         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
2151         of the constant parts is simple.
2152         * config/arm/iterators.md (LOGICAL): Add new code iterator.
2153         (logical_op): Add new code attribute.
2154         (logical_OP): Likewise.
2155         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
2156         (arm_iordi_operand): Add predicate.
2157         (arm_xordi_operand): Add predicate.
2159 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
2161         * config/arm/arm.md (maddsidi4): Remove expander.
2162         (mulsidi3adddi): Remove pattern.
2163         (mulsidi3adddi_v6): Likewise.
2164         (mulsidi3_nov6): Likewise.
2165         (mulsidi3_v6): Likewise.
2166         (umulsidi3): Remove expander.
2167         (umulsidi3_nov6): Remove pattern.
2168         (umulsidi3_v6): Likewise.
2169         (umulsidi3adddi): Likewise.
2170         (umulsidi3adddi_v6): Likewise.
2171         (<Us>mulsidi3): Add combined expander.
2172         (<Us>maddsidi4): Likewise.
2173         (<US>mull): Add combined umull and smull pattern.
2174         (<US>mlal): Likewise.
2175         * config/arm/iterators.md (Us): Add new iterator.
2177 2019-09-18  Richard Biener  <rguenther@suse.de>
2179         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
2180         swapping.
2181         (vectorize_fold_left_reduction): Remove assert.
2182         (vectorizable_reduction): Also expect COND_EXPR non-reduction
2183         operand in position 2.  Remove assert.
2185 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
2187         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
2188         (smulsi3_highpart_nov6): Remove pattern.
2189         (smulsi3_highpart_v6): Likewise.
2190         (umulsi3_highpart): Likewise.
2191         (umulsi3_highpart_nov6): Likewise.
2192         (umulsi3_highpart_v6): Likewise.
2193         (<US>mull_high): Add new combined multiply pattern.
2195 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
2197         * config/arm/arm.md (arm_mulsi3): Remove pattern.
2198         (arm_mulsi3_v6): Likewise.
2199         (mulsi3addsi_v6): Likewise.
2200         (mulsi3subsi): Likewise.
2201         (mul): Add new multiply pattern.
2202         (mla): Likewise.
2203         (mls): Likewise.
2205 2019-09-18  Richard Biener  <rguenther@suse.de>
2207         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
2208         (parloops_valid_reduction_input_p): Copy from
2209         valid_reduction_input_p.
2210         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
2211         (parloops_needs_fold_left_reduction_p): Copy from
2212         needs_fold_left_reduction_p.
2213         (parloops_is_simple_reduction): Copy from
2214         vect_is_simple_reduction.
2215         (parloops_force_simple_reduction): Copy from
2216         vect_force_simple_reduction.
2217         (gather_scalar_reductions): Adjust.
2218         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
2219         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
2221 2019-09-18  Richard Biener  <rguenther@suse.de>
2223         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
2224         * tree-vect-loop.c (get_initial_def_for_reduction): Make
2225         static.
2226         (vect_create_epilog_for_reduction): Remove dead code.
2228 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2230         * varasm.c (assemble_real): Generate canonical const_ints.
2232 2019-09-18  Richard Biener  <rguenther@suse.de>
2234         PR lto/91763
2235         * lto-streamer-in.c (input_eh_regions): Move EH init to
2236         lto_materialize_function.
2237         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2238         Likewise.
2240 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2242         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
2243         are INTEGER_CSTs.
2245 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2247         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
2248         of checking specifically for INTEGER_CST.
2250 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2252         * stor-layout.c (compute_record_mode): Operate on poly_uint64
2253         sizes instead of uhwi sizes.
2255 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2257         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
2258         (add_const_value_attribute): Handle CONST_POLY_INT.
2260 2019-09-18  Martin Liska  <mliska@suse.cz>
2262         * dbgcnt.def (store_merging): New counter.
2263         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
2264         Use it in store merging.
2266 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2268         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
2269         function.
2270         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2271         * config/arm/arm.c (arm_sched_variable_issue): New function.
2272         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2274 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2276         * config/arm/types.md (no_reservation): New reservation.
2277         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
2278         no_insn here.
2279         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
2280         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
2281         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
2282         * config/arm/arm1020e.md (1020alu_op): Likewise.
2283         * config/arm/arm1026ejs.md (alu_op): Likewise.
2284         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
2285         * config/arm/arm926ejs.md (9_alu_op): Likewise.
2286         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
2287         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
2288         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2289         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2290         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
2291         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
2292         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
2293         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2294         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2295         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
2296         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
2297         * config/arm/fa526.md (526_alu_op): Likewise.
2298         * config/arm/fa606te.md (606te_alu_op): Likewise.
2299         * config/arm/fa626te.md (626te_alu_op): Likewise.
2300         * config/arm/fa726te.md (726te_alu_op): Likewise.
2301         * config/arm/xgene1.md (xgene1_nop): Likewise.
2303 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2305         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
2306         "no_insn" to "branch".
2308 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2310         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
2312 2019-09-17  Richard Biener  <rguenther@suse.de>
2314         PR debug/91772
2315         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
2316         was missing generate locations only once.
2318 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
2320         PR ipa/91089
2321         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
2322         option.
2323         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
2324         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
2325         for switch default case using range analysis information.
2327 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
2329         PR target/91749
2330         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
2331         mode attributed is supported by FDPIC.
2333 2019-09-17  Richard Biener  <rguenther@suse.de>
2335         PR tree-optimization/91790
2336         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2337         use the correct DR for setting up realignment.
2339 2019-09-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2341         PR target/91719
2342         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
2343         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
2344         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
2345         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
2347 2019-09-16  Jason Merrill  <jason@redhat.com>
2349         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
2351 2019-09-16  Martin Liska  <mliska@suse.cz>
2353         * gimple-fold.c (or_comparisons_1): Remove rules moved
2354         to ...
2355         * match.pd: ... here.
2357 2019-09-16  Martin Liska  <mliska@suse.cz>
2359         * gimple-fold.c (or_comparisons_1): Remove rules
2360         moved to ...
2361         * match.pd: ... here.
2363 2019-09-16  Martin Liska  <mliska@suse.cz>
2365         * genmatch.c (dt_node::append_simplify): Do not print
2366         warning when we have duplicate patterns belonging
2367         to a same simplify rule.
2368         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
2369         (maybe_fold_comparisons_from_match_pd): Handle
2370         tcc_comparison as a results.
2371         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
2373 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
2374             Qi Feng  <ffengqi@linux.ibm.com>
2376         PR middle-end/88784
2377         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
2378         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
2379         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
2380         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
2381         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
2382         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
2383         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
2384         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
2385         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
2386         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
2387         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
2388         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
2390 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
2391             Martin Liska  <mliska@suse.cz>
2393         * gimple-fold.c (and_comparisons_1): Add type as first
2394         argument.
2395         (and_var_with_comparison): Likewise.
2396         (and_var_with_comparison_1): Likewise.
2397         (or_comparisons_1): Likewise.
2398         (or_var_with_comparison): Likewise.
2399         (or_var_with_comparison_1): Likewise.
2400         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
2401         (maybe_fold_or_comparisons): Likewise.
2402         (maybe_fold_comparisons_from_match_pd): New.
2403         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
2404         (maybe_fold_or_comparisons): Likewise.
2405         * gimple.c (gimple_size): Make it public and add num_ops argument.
2406         (gimple_init): New function.
2407         (gimple_alloc): Call gimple_init.
2408         * gimple.h (gimple_size): New.
2409         (gimple_init): Likewise.
2410         * tree-if-conv.c (fold_or_predicates): Pass type.
2411         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2412         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
2413         (optimize_vec_cond_expr): Likewise.
2414         (ovce_extract_ops): Return type of conditional expression.
2415         * tree-ssanames.c (init_ssa_name_imm_use): New.
2416         (make_ssa_name_fn): Use init_ssa_name_imm_use.
2417         * tree-ssanames.h (init_ssa_name_imm_use): New.
2419 2019-09-16  Richard Biener  <rguenther@suse.de>
2421         PR tree-optimization/91756
2422         PR tree-optimization/87132
2423         * tree-ssa-alias.h (enum translate_flags): New.
2424         (get_continuation_for_phi): Use it instead of simple bool flag.
2425         (walk_non_aliased_vuses): Likewise.
2426         * tree-ssa-alias.c (maybe_skip_until): Adjust.
2427         (get_continuation_for_phi): When looking across backedges only
2428         disallow valueization.
2429         (walk_non_aliased_vuses): Adjust.
2430         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
2431         if requested.
2433 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
2435         PR middle-end/80791
2436         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
2437         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2438         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2439         * target.def (have_count_reg_decr_p): New hook.
2440         (doloop_cost_for_generic): Likewise.
2441         (doloop_cost_for_address): Likewise.
2442         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
2443         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2444         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2445         * doc/tm.texi: Regenerate.
2446         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
2447         addend.
2448         (record_group): Init doloop_p.
2449         (add_candidate_1): Add optional argument doloop, change the handlings
2450         accordingly.
2451         (add_candidate): Likewise.
2452         (generic_predict_doloop_p): Update attribute.
2453         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
2454         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
2455         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
2456         MIN_EXPR.
2457         (get_computation_cost): Update for doloop IV cand extra cost.
2458         (determine_group_iv_cost_cond): Update for doloop IV cand.
2459         (determine_iv_cost): Likewise.
2460         (ivopts_estimate_reg_pressure): Likewise.
2461         (may_eliminate_iv): Update handlings for doloop IV cand.
2462         (add_iv_candidate_for_doloop): New function.
2463         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
2464         (iv_ca_set_no_cp): Update for doloop IV cand.
2465         (iv_ca_set_cp): Likewise.
2466         (iv_ca_dump): Dump register cost.
2467         (find_doloop_use): New function.
2468         (analyze_and_mark_doloop_use): Likewise.
2469         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
2471 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2473         PR middle-end/91708
2474         * cse.c (cse_insn): Do not replace anything with a
2475         MEM.
2477 2019-09-13  Ian Lance Taylor  <iant@golang.org>
2479         * doc/invoke.texi (Optimize Options): Fix typo.
2481 2019-09-12  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2483         PR tree-optimization/89386
2484         * config/i386/sse.md (smulhrs<mode>3): New expander.
2485         (smulhrsv4hi3): Ditto.
2487 2019-09-12  Richard Biener  <rguenther@suse.de>
2489         PR tree-optimization/91750
2490         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
2491         in the type of the evolution.
2493 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
2495         PR tree-optimization/89386
2496         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
2497         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
2498         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
2499         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
2500         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
2501         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
2502         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
2503         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
2504         (su, r): Handle the unspecs above.
2505         (bt): New int attribute.
2506         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
2507         * internal-fn.c (first_commutative_argument): Commutativity info for
2508         above.
2509         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
2510         (umulhrs_optab): New optabs.
2511         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
2512         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
2513         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
2514         function.
2515         (vect_vect_recog_func_ptrs): Add it.
2517 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
2519         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
2520         code.
2522 2019-09-11  Nathan Sidwell  <nathan@acm.org>
2524         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
2525         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
2527 2019-09-11  Richard Biener  <rguenther@suse.de>
2529         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
2530         * lto-wrapper.c (merge_and_complain): Pick up -g.
2531         (append_compiler_options): Likewise.
2532         (run_gcc): Re-instantiate handling -g0 at link-time.
2533         * doc/invoke.texi (flto): Document debug info generation.
2535 2019-09-11  Richard Biener  <rguenther@suse.de>
2537         PR tree-optimization/90387
2538         * vr-values.c (vr_values::extract_range_basic): After inlining
2539         simplify non-constant __builtin_constant_p to false.
2541 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
2543         PR rtl-optimization/89795
2544         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
2545         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
2547 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
2549         PR tree-optimization/91723
2550         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
2551         instead of pointer equality when checking if argument vectypes are
2552         the same.
2554         PR middle-end/91725
2555         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
2556         of get_nonzero_bits, only call it for integral types.
2558 2019-09-11  Richard Biener  <rguenther@suse.de>
2560         Revert
2561         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
2563         * match.pd: Add flag_unsafe_math_optimizations check
2564         before deciding on the widest type in a binary math operation.
2566 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2568         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
2569         and CALL_REALLY_USED_REGISTERS must be defined, and that
2570         CALL_REALLY_USED_REGISTERS is preferred.
2571         * doc/tm.texi: Regenerate.
2572         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
2573         (call_really_used_regs): Likewise.
2574         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
2575         CALL_REALLY_USED_REGISTERS are defined.
2576         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
2577         initial value if defined.
2578         (initial_call_really_used_regs): Delete.
2579         (saved_call_really_used_regs): Likewise.
2580         (CALL_REALLY_USED_REGNO_P): Likewise.
2581         (init_reg_sets): Remove handling of call_really_used_regs.
2582         (save_register_info, restore_register_info, globalize_reg): Likewise.
2583         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
2584         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
2585         outside operand_reg_set.
2586         (fix_register): Don't change call_used_regs if
2587         CALL_REALLY_USED_REGISTERS is defined.
2588         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
2589         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
2590         instead of call_really_used_regs.
2591         (csky_conditional_register_usage): Remove the old handling of
2592         call_used_regs and change the handling of call_really_used_regs
2593         to use call_used_regs instead.
2594         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
2595         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
2596         making a register fixed.
2597         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
2598         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
2599         instead of call_really_used_regs.
2600         (m32r_conditional_register_usage): Don't set call_used_regs when
2601         making a register fixed.
2602         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
2603         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
2604         instead of call_really_used_regs.
2605         (mips_interrupt_extra_call_saved_reg_p): Likewise.
2606         (mips_cfun_call_saved_reg_p): Likewise.
2607         (mips_swap_registers): Remove the old handling of call_used_regs
2608         and change the handling of call_really_used_regs to use call_used_regs
2609         instead.
2610         (mips_conditional_register_usage): Likewise.
2611         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
2612         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
2613         instead of call_really_used_regs.
2614         (mn10300_get_live_callee_saved_regs): Likewise.
2615         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
2616         (mn10300_conditional_register_usage): Don't set call_used_regs when
2617         making a register fixed.
2618         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
2619         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2620         Remove the old handling of call_used_regs and change the handling
2621         of call_really_used_regs to use call_used_regs instead.
2622         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
2623         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
2624         instead of call_really_used_regs.
2625         (s390_register_info_gprtofpr, s390_register_info): Likewise.
2626         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
2627         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
2628         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
2629         (s390_conditional_register_usage): Remove the old handling of
2630         call_used_regs and change the handling of call_really_used_regs
2631         to use call_used_regs instead.
2632         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
2633         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
2634         (sh_fix_range, reg_unused_after): Likewise.
2635         (sh_conditional_register_usage): Remove the old handling of
2636         call_used_regs and change the handling of call_really_used_regs
2637         to use call_used_regs instead.
2638         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
2639         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
2640         call_used_regs when making a register fixed.
2641         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
2642         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
2643         call_used_regs when making a register fixed.
2644         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
2645         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
2646         set call_used_regs when making a register fixed.
2647         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
2648         * config/visium/visium.c (visium_conditional_register_usage): Remove
2649         the old handling of call_used_regs and change the handling of
2650         call_really_used_regs to use call_used_regs instead.
2652 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2654         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
2655         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
2656         * reginfo.c (call_used_regs): New macro.
2658 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2660         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
2661         fixed_regs test.
2662         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2663         (bpf_expand_epilogue): Likewise.
2664         * config/c6x/c6x.c (c6x_save_reg): Likewise.
2665         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2666         (ft32_expand_epilogue): Likewise.
2667         * config/i386/i386.c (ix86_save_reg): Likewise.
2668         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
2669         (moxie_expand_epilogue): Likewise.
2670         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2671         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2672         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2674 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2676         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
2677         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
2678         instead of testing call_used_regs directly.
2679         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
2680         (aarch64_components_for_bb): Likewise.
2681         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
2682         * config/arc/arc.c (arc_must_save_register): Likewise.
2683         (arc_epilogue_uses): Likewise.
2684         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
2685         (legitimize_pic_address, callee_saved_reg_p): Likewise.
2686         (arm_compute_save_reg0_reg12_mask): Likewise.
2687         (arm_compute_save_core_reg_mask): Likewise.
2688         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
2689         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
2690         (cmse_nonsecure_entry_clear_before_return): Likewise.
2691         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
2692         (arm_expand_epilogue): Likewise.
2693         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
2694         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
2695         (_reg_unused_after): Likewise.
2696         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
2697         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
2698         (add_to_reg, hwloop_optimize): Likewise.
2699         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2700         (bpf_expand_epilogue): Likewise.
2701         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
2702         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2703         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
2704         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
2705         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
2706         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
2707         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
2708         * config/frv/frv.c (frv_stack_info): Likewise.
2709         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
2710         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
2711         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
2712         (move_callee_saved_registers): Likewise.
2713         * config/h8300/h8300.c (byte_reg): Likewise.
2714         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
2715         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
2716         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
2717         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
2718         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
2719         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
2720         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
2721         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2722         * config/m32c/m32c.c (need_to_save): Likewise.
2723         * config/m68k/m68k.c (m68k_save_reg): Likewise.
2724         * config/mcore/mcore.c (calc_live_regs): Likewise.
2725         * config/microblaze/microblaze.c (microblaze_must_save_register):
2726         Likewise.
2727         * config/mmix/mmix.c (mmix_local_regno): Likewise.
2728         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
2729         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
2730         (mmix_expand_epilogue): Likewise.
2731         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
2732         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
2733         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
2734         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
2735         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
2736         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
2737         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
2738         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
2739         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
2740         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
2741         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
2742         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
2743         * config/rl78/rl78.c (need_to_save): Likewise.
2744         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
2745         (rs6000_stack_info, generate_set_vrsave): Likewise.
2746         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
2747         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
2748         * config/rx/rx.c (rx_get_stack_layout): Likewise.
2749         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2750         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
2751         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
2752         (save_local_or_in_reg_p): Likewise.
2753         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
2754         (xstormy16_epilogue_uses): Likewise.
2755         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2756         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2757         * config/v850/v850.c (compute_register_save_size): Likewise.
2758         * config/vax/vax.c (vax_expand_prologue): Likewise.
2759         * config/visium/visium.c (visium_save_reg_p): Likewise.
2760         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2761         * cselib.c (cselib_process_insn): Likewise.
2762         * df-scan.c (df_get_entry_block_def_set): Likewise.
2763         * function.c (aggregate_value_p): Likewise.
2764         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
2765         * ira-lives.c (process_bb_node_lives): Likewise.
2766         * ira.c (do_reload): Likewise.
2767         * lra-lives.c (process_bb_lives): Likewise.
2768         * lra-remat.c (lra_remat): Likewise.
2769         * lra.c (lra): Likewise.
2770         * postreload.c (reload_combine_recognize_pattern): Likewise.
2771         (reload_cse_move2add): Likewise.
2772         * recog.c (peep2_find_free_register): Likewise.
2773         * regrename.c (check_new_reg_p): Likewise.
2774         * reload.c (find_equiv_reg): Likewise.
2775         * reload1.c (reload, find_reg): Likewise.
2776         * sel-sched.c (init_hard_regs_data): Likewise.
2778 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2780         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
2781         regs_invalidated_by_call & ~fixed_reg_set instead of
2782         call_used_or_fixed_regs & ~fixed_reg_set.
2783         * config/sh/sh.c (output_stack_adjust): Likewise.
2785 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2787         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
2788         (call_used_reg_set): Delete.
2789         (call_used_or_fixed_regs): New macro.
2790         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
2791         of call_used_reg_set.
2792         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
2793         instead of call_used_regs.
2794         (save_call_clobbered_regs): Likewise.
2795         * cfgcleanup.c (old_insns_match_p): Likewise.
2796         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
2797         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
2798         Likewise.
2799         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2800         * config/sh/sh.c (output_stack_adjust): Likewise.
2801         * final.c (collect_fn_hard_reg_usage): Likewise.
2802         * ira-build.c (ira_build): Likewise.
2803         * ira-color.c (calculate_saved_nregs): Likewise.
2804         (allocno_reload_assign, calculate_spill_cost): Likewise.
2805         * ira-conflicts.c (ira_build_conflicts): Likewise.
2806         * ira-costs.c (ira_tune_allocno_costs): Likewise.
2807         * ira-lives.c (process_bb_node_lives): Likewise.
2808         * ira.c (setup_reg_renumber): Likewise.
2809         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
2810         * lra-constraints.c (need_for_call_save_p): Likewise.
2811         (need_for_split_p, inherit_in_ebb): Likewise.
2812         * lra-lives.c (process_bb_lives): Likewise.
2813         * lra-remat.c (call_used_input_regno_present_p): Likewise.
2814         * postreload.c (reload_combine): Likewise.
2815         * regrename.c (find_rename_reg): Likewise.
2816         * reload1.c (reload_as_needed): Likewise.
2817         * rtlanal.c (find_all_hard_reg_sets): Likewise.
2818         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2819         * shrink-wrap.c (requires_stack_frame_p): Likewise.
2821 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2823         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
2824         (no_caller_save_reg_set): Delete.
2825         * caller-save.c (init_caller_save): Don't initialize it.
2826         * ira-conflicts.c (ira_build_conflicts): Calculate
2827         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
2829 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2831         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
2832         (target_hard_regs::x_savable_regs): New field.
2833         (call_fixed_reg_set): Delete.
2834         (savable_regs): New macro,
2835         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
2836         (init_reg_sets_1): Likewise.  Initialize savable_regs.
2837         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
2838         for all registers.  Set savable_regs instead of call_fixed_reg_set.
2839         (setup_save_areas, save_call_clobbered_regs): Replace uses of
2840         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
2841         * config/sh/sh.c (output_stack_adjust): Likewise.
2843 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2845         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
2846         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
2847         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
2849 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
2851         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
2852         * rtlanal.c (get_call_rtx_from): Likewise.
2853         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
2854         than the pattern to get_call_rtx_from.
2855         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
2856         an rtx_insn * instead of an rtx.
2857         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
2859 2019-09-10  Martin Liska  <mliska@suse.cz>
2861         * common.opt: Use newly added WarnRemoved.
2862         * config/aarch64/aarch64.opt: Likewise.
2863         * config/arm/arm.opt: Likewise.
2864         * config/i386/i386.opt: Likewise.
2865         * config/ia64/ia64.opt: Likewise.
2866         * config/rs6000/rs6000.opt: Likewise.
2867         * doc/options.texi: Document WarnRemoved properly.
2868         * dwarf2out.c (gen_producer_string): Handle renamed
2869         OPT_SPECIAL_warn_removed.
2870         * lto-opts.c (lto_write_options): Likewise.
2871         * lto-wrapper.c (merge_and_complain): Likewise.
2872         * opts-common.c (decode_cmdline_option): Likewise.
2873         (prune_options): Likewise.
2874         (read_cmdline_option): Likewise.
2875         (control_warning_option): Likewise.
2876         * opts.c (print_filtered_help): Likewise.
2877         * optc-gen.awk: Parse for WarnRemoved and make usage
2878         of Deprecated an error.
2879         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
2881 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
2883         * doc/install.texi: Fix syntax for html generation.
2885 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
2887         PR middle-end/91680
2888         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
2889         the shift type to type.
2891 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2893         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
2894         FDPIC mode.
2895         (stack_protect_combined_test_insn): Likewise.
2897 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2898             Mickaël Guêné <mickael.guene@st.com>
2900         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
2901         * config/arm/arm.md (FDPIC_REGNUM): New constant.
2902         (load_tp_soft_fdpic): New pattern.
2903         (load_tp_soft): Disable in FDPIC mode.
2905 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2906             Mickaël Guêné <mickael.guene@st.com>
2908         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
2909         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
2910         (arm_call_tls_get_addr): Add FDPIC support.
2911         (legitimize_tls_address): Likewise.
2912         (arm_emit_tls_decoration): Likewise.
2914 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2915             Mickaël Guêné <mickael.guene@st.com>
2917         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
2918         support.
2919         (arm_trampoline_init): Likewise.
2920         (arm_trampoline_adjust_address): Likewise.
2921         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
2923 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2924             Mickaël Guêné <mickael.guene@st.com>
2926         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
2927         (legitimize_pic_address): Enforce binding rules on function
2928         pointers in FDPIC mode.
2929         (arm_assemble_integer): Likewise.
2931 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2932             Mickaël Guêné <mickael.guene@st.com>
2934         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
2935         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
2936         FDPIC.
2938 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2939             Mickaël Guêné <mickael.guene@st.com>
2941         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
2942         field.
2944 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2945             Mickaël Guêné <mickael.guene@st.com>
2947         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
2948         in FDPIC mode.
2949         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
2950         new function.
2951         * config/arm/arm.c (arm_option_override): Define pic register to
2952         FDPIC_REGNUM.
2953         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
2954         have no decl or go through PLT.
2955         (calculate_pic_address_constant): New function.
2956         (legitimize_pic_address): Call calculate_pic_address_constant.
2957         (arm_load_pic_register): Handle TARGET_FDPIC.
2958         (arm_is_segment_info_known): New function.
2959         (arm_pic_static_addr): Add support for FDPIC.
2960         (arm_load_function_descriptor): New function.
2961         (arm_emit_call_insn): Add support for FDPIC.
2962         (arm_assemble_integer): Add support for FDPIC.
2963         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
2964         Define. (FDPIC_REGNUM): New define.
2965         * config/arm/arm.md (call): Add support for FDPIC.
2966         (call_value): Likewise.
2967         (restore_pic_register_after_call): New pattern.
2968         (untyped_call): Disable if FDPIC.
2969         (untyped_return): Likewise.
2970         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
2972 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2973             Mickaël Guêné <mickael.guene@st.com>
2975         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
2976         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
2977         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
2978         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
2979         (CC1_SPEC): Use FDPIC_CC1_SPEC.
2980         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
2981         * config/arm/uclinuxfdpiceabi.h: New file.
2983 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2985         * config.gcc: Handle *-*-uclinuxfdpiceabi.
2987 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
2988             Mickaël Guêné  <mickael.guene@st.com>
2990         * config/arm/arm.opt: Add -mfdpic option.
2991         * doc/invoke.texi: Add documentation for -mfdpic.
2993 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2995         * expmed.c (extract_bit_field): Update function comment
2996         regarding alt_rtl.
2997         * expr.c (expand_expr_real): Update function comment
2998         regarding alt_rtl.
2999         (expand_misaligned_mem_ref): New helper function.
3000         (expand_expr_real_2): Use expand_misaligned_mem_ref.
3001         Remove duplicate assignment to "base" at case MEM_REF.
3002         Remove a shadowed variable "unsignedp" at case VCE. 
3004 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3006         * regset.h (regs_invalidated_by_call_regset): Delete.
3007         (fixed_reg_set_regset): Likewise.
3008         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
3009         (fixed_reg_set_regset, persistent_obstack): Likewise.
3010         (init_reg_sets_1, globalize_reg): Update accordingly.
3011         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
3012         instead of a bitmap.
3013         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
3014         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
3015         instead of regs_invalidated_by_call_regset.
3016         (df_lr_confluence_n, df_md_confluence_n): Likewise.
3017         * df-scan.c (df_scan_start_dump): Likewise.
3018         * dse.c (copy_fixed_regs): Likewise.
3019         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
3021 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3023         * array-traits.h: New file.
3024         * coretypes.h (array_traits, bitmap_view): New types.
3025         * bitmap.h: Include "array-traits.h"
3026         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
3027         (base_bitmap_view, bitmap_view): New classes.
3028         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
3029         * hard-reg-set.h: Include array-traits.h.
3030         (array_traits<HARD_REG_SET>): New struct.
3031         * regset.h (IOR_REG_SET_HRS): New macro.
3032         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
3033         rather than iterating over each hard register.
3034         * sched-deps.c (sched_analyze_insn): Likewise.
3035         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
3037 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3039         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
3040         instead of a HARD_REG_SET *.
3041         * ira-build.c (ior_hard_reg_conflicts): Likewise.
3042         (ira_build): Update call accordingly.
3043         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
3045 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3047         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
3048         (HARD_REG_SET::operator!=): Likewise.
3049         (hard_reg_set_equal_p): Delete.
3050         * cfgcleanup.c (old_insns_match_p): Use == instead of
3051         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
3052         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
3053         (add_allocno_hard_regs_to_forest): Likewise.
3054         (setup_allocno_available_regs_num): Likewise.
3055         * ira.c (setup_pressure_classes): Likewise.
3056         (setup_allocno_and_important_classes): Likewise.
3057         (setup_reg_class_relations): Likewise.
3058         * lra-lives.c (process_bb_lives): Likewise.
3059         * reg-stack.c (change_stack, convert_regs_1): Likewise.
3061 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3063         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
3064         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
3065         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
3066         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
3067         Likewise.
3068         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
3069         * ira.c (setup_reg_renumber): Likewise.
3070         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3071         * regrename.c (regrename_find_superclass): Likewise.
3072         * reload1.c (find_reg): Likewise.
3074 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3076         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
3077         * caller-save.c (setup_save_areas): Use "&~" instead of
3078         AND_COMPL_HARD_REG_SET.
3079         (save_call_clobbered_regs): Likewise.
3080         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
3081         Likewise.
3082         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3083         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3084         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
3085         * config/mips/mips.c (mips_class_max_nregs): Likewise.
3086         (mips_conditional_register_usage): Likewise.
3087         * config/sh/sh.c (output_stack_adjust): Likewise.
3088         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
3089         (setup_profitable_hard_regs): Likewise.
3090         (get_conflict_and_start_profitable_regs): Likewise.
3091         * ira-conflicts.c (print_allocno_conflicts): Likewise.
3092         (ira_build_conflicts): Likewise.
3093         * ira-costs.c (restrict_cost_classes): Likewise.
3094         (setup_regno_cost_classes_by_aclass): Likewise.
3095         * ira-lives.c (process_bb_node_lives): Likewise.
3096         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
3097         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
3098         (setup_allocno_and_important_classes, setup_class_translate_array)
3099         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
3100         Likewise.
3101         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3102         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3103         (process_alt_operands, inherit_in_ebb): Likewise.
3104         * lra-eliminations.c (update_reg_eliminate): Likewise.
3105         * lra-lives.c (process_bb_lives): Likewise.
3106         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
3107         * resource.c (find_dead_or_set_registers): Likewise.
3108         (mark_target_live_regs): Likewise.
3109         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
3110         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3111         (implicit_clobber_conflict_p): Likewise.
3112         * shrink-wrap.c (requires_stack_frame_p): Likewise.
3113         (try_shrink_wrapping): Likewise.
3115 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3117         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
3118         (HARD_REG_SET::operator|=): Likewise.
3119         (IOR_HARD_REG_SET): Delete.
3120         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
3121         IOR_HARD_REG_SET.
3122         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3123         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
3124         * final.c (collect_fn_hard_reg_usage): Likewise.
3125         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
3126         * ira-build.c (merge_hard_reg_conflicts): Likewise.
3127         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
3128         (propagate_some_info_from_allocno): Likewise.
3129         (copy_info_to_removed_store_destinations): Likewise.
3130         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
3131         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
3132         (fast_allocation): Likewise.
3133         * ira-conflicts.c (ira_build_conflicts): Likewise.
3134         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
3135         (process_bb_node_lives): Likewise.
3136         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
3137         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3138         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3139         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
3140         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
3141         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
3142         (process_bb_lives): Likewise.
3143         * lra-spills.c (assign_spill_hard_regs): Likewise.
3144         * postreload.c (reload_combine): Likewise.
3145         * reginfo.c (init_reg_sets_1): Likewise.
3146         * regrename.c (merge_overlapping_regs, find_rename_reg)
3147         (merge_chains): Likewise.
3148         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
3149         (find_reload_regs, finish_spills, choose_reload_regs_init)
3150         (emit_reload_insns): Likewise.
3151         * reorg.c (redundant_insn): Likewise.
3152         * resource.c (find_dead_or_set_registers, mark_set_resources)
3153         (mark_target_live_regs): Likewise.
3154         * rtlanal.c (find_all_hard_reg_sets): Likewise.
3155         * sched-deps.c (sched_analyze_insn): Likewise.
3156         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3157         (find_best_reg_for_expr): Likewise.
3158         * shrink-wrap.c (try_shrink_wrapping): Likewise.
3160 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3162         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
3163         (HARD_REG_SET::operator&): Likewise.
3164         (AND_HARD_REG_SET): Delete.
3165         * caller-save.c (setup_save_areas): Use "&" instead of
3166         AND_HARD_REG_SET.
3167         (save_call_clobbered_regs): Likewise.
3168         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3169         * config/m32c/m32c.c (reduce_class): Likewise.
3170         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3171         * final.c (get_call_reg_set_usage): Likewise.
3172         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
3173         (setup_left_conflict_sizes_p): Likewise.
3174         * ira-conflicts.c (print_allocno_conflicts): Likewise.
3175         (ira_build_conflicts): Likewise.
3176         * ira-costs.c (restrict_cost_classes): Likewise.
3177         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
3178         (setup_reg_class_relations): Likewise.
3179         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
3180         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
3181         * resource.c (find_dead_or_set_registers): Likewise.
3182         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3184 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3186         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
3187         (COMPL_HARD_REG_SET): Delete.
3188         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
3189         of COMPL_HARD_REG_SET.
3190         (try_rename_operands): Likewise.
3191         * config/sh/sh.c (push_regs): Likewise.
3192         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3193         * lra-constraints.c (contains_reg_p): Likewise.
3194         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
3196 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3198         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
3199         * caller-save.c (save_call_clobbered_regs): Use assignment instead
3200         of COPY_HARD_REG_SET.
3201         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
3202         (epiphany_conditional_register_usage): Likewise.
3203         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3204         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3205         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
3206         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3207         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
3208         * config/mips/mips.c (mips_class_max_nregs): Likewise.
3209         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
3210         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3211         * config/sh/sh.c (output_stack_adjust): Likewise.
3212         * final.c (collect_fn_hard_reg_usage): Likewise.
3213         (get_call_reg_set_usage): Likewise.
3214         * ira-build.c (ira_create_object, remove_low_level_allocnos)
3215         (ira_flattening): Likewise.
3216         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
3217         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
3218         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
3219         (ira_reassign_pseudos): Likewise.
3220         * ira-conflicts.c (print_allocno_conflicts): Likewise.
3221         (ira_build_conflicts): Likewise.
3222         * ira-costs.c (restrict_cost_classes): Likewise.
3223         (setup_regno_cost_classes_by_aclass): Likewise.
3224         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
3225         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
3226         (setup_stack_reg_pressure_class, setup_pressure_classes)
3227         (setup_allocno_and_important_classes, setup_class_translate_array)
3228         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
3229         (ira_setup_eliminable_regset): Likewise.
3230         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3231         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3232         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3233         (process_alt_operands, inherit_in_ebb): Likewise.
3234         * lra-lives.c (process_bb_lives): Likewise.
3235         * lra-spills.c (assign_spill_hard_regs): Likewise.
3236         * lra.c (lra): Likewise.
3237         * mode-switching.c (new_seginfo): Likewise.
3238         * postreload.c (reload_combine): Likewise.
3239         * reg-stack.c (straighten_stack): Likewise.
3240         * reginfo.c (save_register_info, restore_register_info): Likewise.
3241         (init_reg_sets_1, record_subregs_of_mode): Likewise
3242         * regrename.c (create_new_chain, rename_chains): Likewise.
3243         * reload1.c (order_regs_for_reload, find_reg): Likewise.
3244         (find_reload_regs): Likewise.
3245         * resource.c (find_dead_or_set_registers): Likewise.
3246         (mark_target_live_regs): Likewise.
3247         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3249 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3251         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
3252         (note_pattern_stores): Declare.
3253         (note_stores): Take an rtx_insn *.
3254         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
3255         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
3256         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
3257         (note_stores): Take an rtx_insn * as argument and process
3258         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
3259         (note_pattern_stores): ...this.
3260         (find_first_parameter_load): Pass the insn rather than
3261         its pattern to note_stores.
3262         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
3263         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
3264         (insert_one_insn): Likewise.
3265         * combine.c (combine_instructions): Likewise.
3266         (likely_spilled_retval_p): Likewise.
3267         (try_combine): Use note_pattern_stores instead of note_stores.
3268         (record_dead_and_set_regs): Pass the insn rather than its pattern
3269         to note_stores.
3270         (reg_dead_at_p): Likewise.
3271         * config/bfin/bfin.c (workaround_speculation): Likewise.
3272         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
3273         rather than an rtx.
3274         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
3275         instead of note_stores.
3276         (frv_optimize_membar_local): Pass the insn rather than its pattern
3277         to note_stores.
3278         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3279         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
3280         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
3281         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
3282         (mips_reorg_process_insns): Likewise.
3283         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
3284         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
3285         rather than rtxes.
3286         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
3287         its pattern to note_stores.
3288         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
3289         of note_stores.
3290         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
3291         the insn to note_stores.
3292         (prescan_insns_for_dce): Update call accordingly.
3293         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
3294         to note_stores.
3295         * df-problems.c (can_move_insns_across): Likewise.
3296         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
3297         * function.c (assign_parm_setup_reg): Likewise.
3298         * gcse-common.c (record_last_mem_set_info_common): Likewise.
3299         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
3300         (single_set_gcse): Likewise.
3301         * ira.c (validate_equiv_mem): Likewise.
3302         (update_equiv_regs): Use note_pattern_stores rather than note_stores
3303         for no_equiv.
3304         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
3305         pattern to note_stores.
3306         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3307         * loop-iv.c (simplify_using_initial_values): Likewise.
3308         * mode-switching.c (optimize_mode_switching): Likewise.
3309         * optabs.c (emit_libcall_block_1): Likewise.
3310         (expand_atomic_compare_and_swap): Likewise.
3311         * postreload-gcse.c (load_killed_in_block_p): Likewise.
3312         (record_opr_changes): Likewise.  Remove explicit handling of
3313         CALL_INSN_FUNCTION_USAGE.
3314         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
3315         * regcprop.c (kill_clobbered_values): Likewise.
3316         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
3317         to note_stores.
3318         * regrename.c (build_def_use): Likewise.
3319         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
3320         for mark_not_eliminable.
3321         (reload_as_needed): Pass the insn rather than its pattern
3322         to note_stores.
3323         (emit_output_reload_insns): Likewise.
3324         * resource.c (mark_target_live_regs): Likewise.
3325         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3326         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
3327         instead of note_stores.
3328         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
3329         its pattern to note_stores.
3330         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
3331         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
3333 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3335         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
3336         than a #define.  Use a structure rather than an array as the
3337         fallback definition.  Remove special cases for low array sizes.
3338         (const_hard_reg_set): New typedef.
3339         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
3340         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
3341         (hard_reg_set_empty_p): Likewise.
3342         (SET_HARD_REG_BIT): Use a function rather than a macro to
3343         handle the case in which HARD_REG_SET is a structure.
3344         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
3345         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3346         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3347         (IOR_COMPL_HARD_REG_SET): Likewise.
3348         (hard_reg_set_iterator::pset): Constify the pointer target.
3349         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
3350         of a "const HARD_REG_SET".  Update the handling of non-integer
3351         HARD_REG_SETs.
3352         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
3353         * reload.h: Likewise.
3354         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
3355         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
3356         of a "const HARD_REG_SET".
3357         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
3358         (range_in_hard_reg_set_p): Likewise.
3359         * ira-costs.c (restrict_cost_classes): Likewise.
3360         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
3361         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
3362         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
3363         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
3364         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
3365         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
3366         take an unsigned int and open-code the HARD_REG_SET operations.
3368 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3370         * Makefile.in (OBJS): Remove bt-load.o.
3371         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
3372         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3373         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
3374         document that the option no longer does anything.
3375         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3376         * target.def (branch_target_register_class): Delete.
3377         (branch_target_register_callee_saved): Likewise.
3378         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3379         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3380         * doc/tm.texi: Regenerate.
3381         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
3382         (make_pass_branch_target_load_optimize2): Likewise.
3383         * passes.def (pass_branch_target_load_optimize1): Likewise.
3384         (pass_branch_target_load_optimize2): Likewise.
3385         * targhooks.h (default_branch_target_register_class): Likewise.
3386         * targhooks.c (default_branch_target_register_class): Likewise.
3387         * opt-suggestions.c (test_completion_valid_options): Remove
3388         -fbtr-bb-exclusive from the list of test options.
3389         * bt-load.c: Remove.
3391 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
3393         * match.pd: Add flag_unsafe_math_optimizations check
3394         before deciding on the widest type in a binary math operation.
3396 2019-09-09  Martin Liska  <mliska@suse.cz>
3398         * config/i386/i386.opt: Update comment of removed
3399         options that are preserved only for backward
3400         compatibility.
3402 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
3404         PR target/87853
3405         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
3406         instead of __v16qs.
3408         PR target/91704
3409         * config/i386/avxintrin.h (__v32qs): New typedef.
3410         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
3411         instead of __v32qi.
3413 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3415         * doc/invoke.texi (Option Summary): Cover eBPF.
3416         (eBPF Options): New section.
3417         * doc/extend.texi (BPF Built-in Functions): Likewise.
3418         (BPF Kernel Helpers): Likewise.
3420 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3422         * config.gcc: Support for bpf-*-* targets.
3423         * common/config/bpf/bpf-common.c: New file.
3424         * config/bpf/t-bpf: Likewise.
3425         * config/bpf/predicates.md: Likewise.
3426         * config/bpf/constraints.md: Likewise.
3427         * config/bpf/bpf.opt: Likewise.
3428         * config/bpf/bpf.md: Likewise.
3429         * config/bpf/bpf.h: Likewise.
3430         * config/bpf/bpf.c: Likewise.
3431         * config/bpf/bpf-protos.h: Likewise.
3432         * config/bpf/bpf-opts.h: Likewise.
3433         * config/bpf/bpf-helpers.h: Likewise.
3434         * config/bpf/bpf-helpers.def: Likewise.
3436 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3438         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3439         indirect_calls.
3441 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3443         * opt-functions.awk (integer_range_info): Make sure values are in
3444         numeric context before operating with them.
3446 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
3448         * genemit.c (gen_split): Print the filename and line number where the
3449         splitter (or peephole2) was defined, to the dump file.
3451 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
3453         PR tree-optimization/91665
3454         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
3455         incompatible with the type of PHI result.
3457 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3459         PR target/91684
3460         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
3461         gen_unaligned_storedi for 4-byte aligned addresses.
3463 2019-09-06  Jim Wilson  <jimw@sifive.com>
3465         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
3466         change.
3468 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
3470         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
3472 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
3474         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
3475         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
3477 2019-09-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3479         PR target/91654
3480         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
3481         cost of SSE->integer and integer->SSE moves from 2 to 6.
3482         (core_cost): Ditto.
3484 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
3486         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
3487         before testing TYPE_TRANSPARENT_AGGR.
3488         * calls.c (initialize_argument_information, load_register_parameters):
3489         Likewise.
3491 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
3493         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
3494         high regs.
3495         (cmp_ior): Likewise.
3497 2019-09-06  Martin Liska  <mliska@suse.cz>
3499         * doc/match-and-simplify.texi: Separate tuples with ;.
3501 2019-09-06  Martin Liska  <mliska@suse.cz>
3503         PR c++/91125
3504         * Makefile.in: Remove tlink.o.
3505         * collect2.c (do_link): New function isolated
3506         from do_tlink.
3507         (main): Use.
3508         * collect2.h (do_tlink): Remove declaration of do_tlink.
3509         * doc/extend.texi: Remove documentation of -frepo.
3510         * doc/invoke.texi: Likewise.
3511         * doc/sourcebuild.texi: Remove cleanup-repo-files.
3512         * tlink.c: Remove.
3514 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
3515             Jim Wilson  <jimw@sifive.com>
3517         PR target/91635
3518         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
3519         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
3520         paradoxical_subreg_p (operands[0]).
3521         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
3522         use as intermediate value.
3524 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
3526         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
3527         (sync_compare_and_swap<mode>_insn): Likewise.
3529 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3531         PR middle-end/91615
3532         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
3533         without movmisalign optab.
3535 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
3537         PR middle-end/91001
3538         PR middle-end/91105
3539         PR middle-end/91106
3540         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
3541         types, use type of their first field instead of type of
3542         args[i].tree_value.
3544 2019-09-05  Richard Biener  <rguenther@suse.de>
3546         PR rtl-optimization/91656
3547         * postreload-gcse.c (record_last_mem_set_info): Revert addition
3548         of early out.
3550 2019-09-05  Richard Biener  <rguenther@suse.de>
3552         PR middle-end/90501
3553         * tree-inline.c (declare_return_variable): Mark the return
3554         slot as addressable after building an address of it.
3556 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
3558         * doc/install.texi: Update and clarify requirements to build GNAT.
3560 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
3562         PR middle-end/91577
3563         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
3564         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
3565         call to be in memory.
3566         (pass_expand::execute): Call discover_nonconstant_array_refs before
3567         setting currently_expanding_to_rtl.
3569 2019-09-04  Caroline Tice  <cmtice@google.com>
3571         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
3572         specified together.
3574 2019-09-04  Marek Polacek  <polacek@redhat.com>
3576         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
3578 2019-09-04  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3580         PR target/32413
3581         * config/i386/i386.c (inline_secondary_memory_needed): Return true
3582         for QI and HImode moves between SSE and general registers.
3584 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3586         PR c/78736
3587         * doc/invoke.texi: Document -Wenum-conversion.
3589 2019-09-04  Richard Biener  <rguenther@suse.de>
3591         PR rtl-optimization/36262
3592         * postreload-gcse.c: Include intl.h and gcse.h.
3593         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
3594         to avoid linear list walk.
3595         (record_last_mem_set_info): Gate off if not computing transparentness.
3596         (get_bb_avail_insn): If transparentness isn't computed give up
3597         early.
3598         (gcse_after_reload_main): Skip compute_transp and extended PRE
3599         if gcse_or_cprop_is_too_expensive says so.
3601 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3603         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
3604         noinit section.
3605         (msp430_select_section): Handle decls with the "noinit" attribute with
3606         default_elf_select_section.
3607         Handle SECCAT_RODATA_MERGE_* section types with
3608         default_elf_select_section.
3609         Add comments about handling of unsupported section types.
3610         (msp430_section_type_flags): Remove handling of the noinit section.
3612 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3614         * config/msp430/msp430.c (msp430_attr): Remove warnings about
3615         conflicting msp430-specific attributes.
3616         (msp430_section_attr): Likewise.
3617         Add warnings about conflicts with generic "noinit" and "section"
3618         attributes.
3619         Fix grammar in -mlarge error message.
3620         (msp430_data_attr): Rename to msp430_persist_attr.
3621         Add warnings about conflicts with generic "noinit" and "section"
3622         attributes.
3623         Add warning for when variable is not initialized.
3624         Chain conditionals which prevent the attribute being added.
3625         (ATTR_EXCL): New helper.
3626         (attr_reent_exclusions): New exclusion table.
3627         (attr_naked_exclusions): Likewise.
3628         (attr_crit_exclusions): Likewise.
3629         (attr_lower_exclusions): Likewise.
3630         (attr_upper_exclusions): Likewise.
3631         (attr_either_exclusions): Likewise.
3632         (attr_persist_exclusions): Likewise.
3633         (msp430_attribute_table): Update with exclusion rules.
3634         (msp430_output_aligned_decl_common): Don't output common symbol if decl
3635         has a section.
3637 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
3639         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
3640         (msp430_handle_generic_attribute): New function.
3641         * doc/tm.texi: Regenerate.
3642         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
3643         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3644         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3645         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
3647 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
3649         PR tree-optimization/91504
3650         * match.pd: Add ((~a & b) ^a) --> (a | b).
3652 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
3654         PR target/91604
3655         * config/i386/i386-expand.c (split_double_mode): If there is more than
3656         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
3657         already split matching MEM operand instead of calling adjust_address
3658         again.
3660 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
3662         * config.gcc: Obsolete spu target.  Remove references to spu.
3663         * configure.ac: Remove references to spu.
3664         * configure: Regenerate.
3665         * config/spu/: Remove directory.
3666         * common/config/spu/: Remove directory.
3668         * doc/extend.texi: Remove references to spu.
3669         * doc/invoke.texi: Likewise.
3670         * doc/md.texi: Likewise.
3671         * doc/sourcebuild.texi: Likewise.
3673 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3675         PR middle-end/91603
3676         PR middle-end/91612
3677         PR middle-end/91613
3678         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
3679         and SSA_NAME referring to CONSTANT_P correctly.
3681 2019-09-03  Richard Biener  <rguenther@suse.de>
3683         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
3684         (vn_nary_op_insert): Likewise.
3685         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
3686         (vn_nary_op_lookup): Likewise.
3687         (vn_nary_op_insert): Likewise.
3689 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
3691         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
3692         (*op0, 1) instead of XEXP (*op1, 0).
3694 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3696         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
3697         (aarch64_fjcvtzs): New define_insn.
3698         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
3699         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
3700         Add AARCH64_JSCVT.
3701         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
3702         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
3703         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3704         __ARM_FEATURE_JCVT where appropriate.
3705         * config/aarch64/arm_acle.h (__jcvt): Define.
3707 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3709         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
3710         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
3711         (aarch64_<frintnzs_op><mode>): New define_insn.
3712         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
3713         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3714         __ARM_FEATURE_FRINT when appropriate.
3715         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
3716         frint32x, frint64z, frint64x.
3717         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
3718         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
3719         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
3720         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
3721         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
3722         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
3723         * config/aarch64/iterators.md (VSFDF): Define.
3724         (FRINTNZX): Likewise.
3725         (frintnzs_op): Likewise.
3727 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
3729         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
3730         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
3731         Cortex-A34.
3732         * config/aarch64/aarch64-tune.md: Regenerated.
3733         * doc/invoke.texi: Document the new processors.
3735 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3737         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
3738         string.
3739         (ssbs): Likewise.
3740         (sve2): Likewise.
3741         (sve2-sm4): Likewise.
3742         (sveaes): Likewise.
3743         (svesha3): Likewise.
3744         (svebitperm): Likewise.
3746 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
3747             Richard Biener  <rguenther@suse.de>
3749         PR tree-optimization/91597
3750         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
3751         BIT_AND_EXPR optimization for pointers, even if both operand
3752         ranges don't include NULL, the result can be NULL.
3754 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3756         PR middle-end/91605
3757         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
3758         (non_mem_decl_p): ...this.
3759         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
3760         (expand_assignment): Call mem_ref_referes_to_non_mem_p
3761         unconditionally as before.
3763 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
3765         PR target/91323
3766         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
3767         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
3768         * tree.def (LTGT_EXPR): Likewise.
3769         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
3771 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
3773         PR go/91617
3774         * fold-const.c (range_check_type): For enumeral and boolean
3775         type, pass 1 to type_for_size langhook instead of
3776         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
3777         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
3778         (build_range_check): Don't call unsigned_type_for for pointer types.
3779         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
3780         range_check_type result.
3782 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
3784         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
3785         (replace_ref): Do not replace a chain of only two candidates which are
3786         valid memory references.
3788 2019-09-02  Martin Liska  <mliska@suse.cz>
3790         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
3791         Bail out when we'll end up with the same number of clusters as
3792         at the beginning.
3793         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
3794         (jump_table_cluster::can_be_handled): Remove the guard
3795         as it's already handled in ::is_enabled.  Allocate output
3796         after early bail out.
3798 2019-09-02  Martin Liska  <mliska@suse.cz>
3800         PR gcov-profile/91601
3801         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
3802         (path_contains_zero_or_negative_cycle_arc): ... this and handle
3803         also negative edges.
3804         (circuit): Handle also negative edges as they can happen
3805         in some situations.
3807 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3809         PR target/91472
3810         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
3811         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
3812         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
3814 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
3816         PR middle-end/91623
3817         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
3818         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
3819         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
3820         zero vector.
3822         PR lto/91572
3823         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
3824         GIMPLE_ASM TREE_LIST operands.
3826 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
3828         * doc/generic.texi (Unary and Binary Expressions): Mark up
3829         an instance of TYPE_MIN.
3831 2019-08-31  Stafford Horne  <shorne@gmail.com>
3833         * config/or1k/constraints.md (t): New constraint.
3834         * config/or1k/or1k.h (GOT_REGS): New register class.
3835         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
3837 2019-08-30  Jim Wilson  <jimw@sifive.com>
3839         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
3840         and -fpic and -mplt then disable -msave-restore and warn.
3842 2019-08-30  Martin Sebor  <msebor@redhat.com>
3844         PR middle-end/91599
3845         * tree-ssa-strlen.c (handle_store): Use a fallback location if
3846         the statement doesn't have one.
3847         * gimple-pretty-print.c (percent_G_format): Same.
3849         PR middle-end/91584
3850         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
3851         before using them to validate MEM_REF offset.
3853 2019-08-30  Marek Polacek  <polacek@redhat.com>
3855         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
3857 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3859         * config/arm/arm.md (unaligned_loaddi,
3860         unaligned_storedi): New unspec insn patterns.
3861         * config/arm/neon.md (unaligned_storev8qi): Likewise.
3862         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
3863         and unaligned_storedi for 4-byte aligned memory.
3864         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
3865         4-byte aligned memory.
3867 2019-08-30  Martin Jambor  <mjambor@suse.cz>
3869         tree-optimization/91579
3870         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
3871         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
3872         appropriate.
3873         (arg_needs_copy_p): Removed.
3874         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
3875         arg_needs_copy_p.
3876         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
3878 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3880         * config/i386/i386-features.c
3881         (general_scalar_chain::compute_convert_gain):
3882         Correct cost for double-word shifts.
3883         (general_scalar_to_vector_candidate_p): Reject count operands
3884         greater or equal to mode bitsize.
3886 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3888         * config/i386/i386.c (inline_secondary_memory_needed): Return true
3889         for moves between SSE and non-general registers and between
3890         mask and non-general registers.
3891         (ix86_register_move_cost): Remove stalled comment.
3893 2019-08-29  Richard Biener  <rguenther@suse.de>
3895         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
3896         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
3898 2019-08-29  Richard Biener  <rguenther@suse.de>
3900         PR bootstrap/91580
3901         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
3902         Do not emit scalar copies for debug-insns, instead replace
3903         their uses with the reg copy used in the chain or reset them
3904         if there is a reaching definition outside of the chain as well.
3906 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
3908         PR target/91560
3909         * config/i386/i386-expand.c (expand_vec_perm_movs,
3910         expand_vec_perm_blend, expand_vec_perm_vpermil,
3911         expand_vec_perm_pshufb, expand_vec_perm_1,
3912         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
3913         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
3914         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
3915         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
3916         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
3917         comments - replace ix86_expand_vec_perm_builtin_1 with
3918         ix86_expand_vec_perm_const_1.
3919         (expand_vec_perm2_vperm2f128_vblend): New function.
3920         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
3921         expand_vec_perm2_vperm2f128_vblend as last resort.
3922         (canonicalize_perm): Formatting fix.
3924         PR tree-optimization/91351
3925         * tree-cfg.c (generate_range_test): Use range_check_type instead of
3926         unsigned_type_for.
3927         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
3928         range_check_type returns NULL.
3929         * tree-switch-conversion.c (switch_conversion::build_one_array):
3930         Use range_check_type instead of unsigned_type_for, don't perform
3931         linear opt if it returns NULL.
3932         (bit_test_cluster::find_bit_tests): Formatting fix.
3933         (bit_test_cluster::emit): Use range_check_type instead of
3934         unsigned_type_for.
3935         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
3936         returns NULL.
3938 2019-08-29  Richard Biener  <rguenther@suse.de>
3940         PR tree-optimization/91568
3941         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
3942         (vect_update_max_nunits): Add overload for poly_uint64.
3943         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
3944         (vect_build_slp_tree): Record max_nunits into the subtree
3945         and merge it upwards.
3946         (vect_print_slp_tree): Print max_nunits.
3948 2019-08-28  Marek Polacek  <polacek@redhat.com>
3950         Implement P1152R4: Deprecating some uses of volatile.
3951         PR c++/91361
3952         * doc/invoke.texi: Document -Wvolatile.
3954 2019-08-28  Marek Polacek  <polacek@redhat.com>
3956         PR c++/91360 - Implement C++20 P1143R2: constinit.
3957         * doc/invoke.texi: Document -Wc++20-compat.
3959 2019-08-28  Martin Sebor  <msebor@redhat.com>
3961         PR tree-optimization/91457
3962         * builtins.c (component_size): New function.
3963         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
3964         * builtins.h (compute_objsize): Add argument.
3965         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
3966         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
3967         (vrp_prop::check_mem_ref): Same.
3968         (vrp_prop::search_for_addr_array): Set no-warning bit.
3969         (check_array_bounds): Same.
3971 2019-08-28  Martin Sebor  <msebor@redhat.com>
3973         PR driver/80545
3974         * opts-common.c (option_enabled): Correct checking for language
3975         options.
3977 2019-08-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3979         * config/i386/i386.c (ix86_register_move_cost): Do not
3980         limit the cost of moves to/from XMM register to minimum 8.
3982 2019-08-28  Martin Jambor  <mjambor@suse.cz>
3984         PR ipa/91468
3985         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
3986         checking assert a normal assert to test it really is redundant.
3987         * ipa-prop.c (compute_complex_assign_jump_func): Removed
3988         redundant test.
3989         (update_jump_functions_after_inlining): Removed combining unary
3990         arithmetic operations with an ancestor jump function.
3991         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
3992         instead of t.
3994 2019-08-28  Richard Biener  <rguenther@suse.de>
3996         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
3997         add the MD problem.
3999 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4000             Richard Biener  <rguenther@suse.de>
4002         * expr.c (expand_assignment): Handle misaligned DECLs.
4003         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
4004         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
4005         too.
4006         (assign_parm_setup_stack): Allocate properly aligned stack slots.
4007         * varasm.c (build_constant_desc): Align constants of misaligned types.
4008         * config/arm/predicates.md (aligned_operand): New predicate.
4009         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
4010         aligned_operand to check restrictions on memory addresses.
4011         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
4012         * config/arm/vec-common.md (mov<VALL>): Likewise.
4014 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4016         PR libgomp/91530
4017         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
4018         V_128 iterator instead of VI_128.
4020 2019-08-28  Martin Liska  <mliska@suse.cz>
4022         PR tree-optimization/90970
4023         * builtins.c (check_access): Remove assignment to maxread
4024         as it hasn't been used since when it was introduced in r255755.
4026 2019-08-27  Martin Sebor  <msebor@redhat.com>
4028         PR tree-optimization/91567
4029         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
4030         of unknown strings.
4031         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
4032         to PTRDIFF_MAX - 2.
4034 2019-08-27  Jeff Law  <law@redhat.com>
4036         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
4037         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
4039 2019-08-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4041         PR target/91528
4042         * config/i386/i386-features.c (convert_scalars_to_vector):
4043         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
4044         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
4045         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
4046         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
4048 2019-08-27  Richard Biener  <rguenther@suse.de>
4050         * config/i386/i386-features.h
4051         (general_scalar_chain::~general_scalar_chain): Add.
4052         (general_scalar_chain::insns_conv): New bitmap.
4053         (general_scalar_chain::n_sse_to_integer): New.
4054         (general_scalar_chain::n_integer_to_sse): Likewise.
4055         (general_scalar_chain::make_vector_copies): Adjust signature.
4056         * config/i386/i386-features.c
4057         (general_scalar_chain::general_scalar_chain): Outline,
4058         initialize new members.
4059         (general_scalar_chain::~general_scalar_chain): New.
4060         (general_scalar_chain::mark_dual_mode_def): Record insns
4061         we need to insert conversions at and count them.
4062         (general_scalar_chain::compute_convert_gain): Account
4063         for conversion instructions at chain boundary.
4064         (general_scalar_chain::make_vector_copies): Generate a single
4065         copy for a def by a specific insn.
4066         (general_scalar_chain::convert_registers): First populate
4067         defs_map, then make copies at out-of chain insns.
4069 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
4071         * config/arm/arm.md (stack_protect_set_insn): Add security-related
4072         comment.
4073         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
4075 2019-08-27  Martin Liska  <mliska@suse.cz>
4077         * cgraph.c (cgraph_node::remove): Remove dead assignment before
4078         loop.
4079         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
4080         Enclose in anonymous namespace.
4081         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
4082         hard_register initialization in braces.
4083         * tree-vrp.h (value_range_base::supports_type_p): Return false
4084         for function with boolean return type.
4086 2019-08-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4088         * config/i386/i386.c (emit_i387_cw_initialization)
4089         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
4091 2019-08-26  Martin Sebor  <msebor@redhat.com>
4093         PR c++/83431
4094         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
4095         (sprintf_dom_walker): Remove class.
4096         (get_int_range): Make argument const.
4097         (directive::fmtfunc, directive::set_precision): Same.
4098         (format_none): Same.
4099         (build_intmax_type_nodes): Same.
4100         (adjust_range_for_overflow): Same.
4101         (format_floating): Same.
4102         (format_character): Same.
4103         (format_string): Same.
4104         (format_plain): Same.
4105         (get_int_range): Cast away constness.
4106         (format_integer): Same.
4107         (get_string_length): Call get_range_strlen_dynamic.  Handle
4108         null lendata.maxbound.
4109         (should_warn_p): Adjust argument scope qualifier.
4110         (maybe_warn): Same.
4111         (format_directive): Same.
4112         (parse_directive): Same.
4113         (is_call_safe): Same.
4114         (try_substitute_return_value): Same.
4115         (sprintf_dom_walker::handle_printf_call): Rename...
4116         (handle_printf_call): ...to this.  Initialize target to host charmap
4117         here instead of in pass_sprintf_length::execute.
4118         (struct call_info): Make global.
4119         (sprintf_dom_walker::compute_format_length): Make global.
4120         (sprintf_dom_walker::handle_gimple_call): Same.
4121         * passes.def (pass_sprintf_length): Replace with pass_strlen.
4122         * print-rtl.c (print_pattern): Reduce the number of spaces to
4123         avoid -Wformat-truncation.
4124         * tree-pass.h (make_pass_warn_printf): New function.
4125         * tree-ssa-strlen.c (strlen_optimize): New variable.
4126         (get_string_length): Add comments.
4127         (get_range_strlen_dynamic): New function.
4128         (check_and_optimize_call): New function.
4129         (handle_integral_assign): New function.
4130         (strlen_check_and_optimize_stmt): Factor code out into
4131         strlen_check_and_optimize_call and handle_integral_assign.
4132         (strlen_dom_walker::evrp): New member.
4133         (strlen_dom_walker::before_dom_children): Use evrp member.
4134         (strlen_dom_walker::after_dom_children): Use evrp member.
4135         (printf_strlen_execute): New function.
4136         (pass_strlen::gate): Update to handle printf calls.
4137         (dump_strlen_info): New function.
4138         (pass_data_warn_printf): New variable.
4139         (pass_warn_printf): New class.
4140         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
4141         (handle_printf_call): Same.
4142         * tree-vrp.c (value_range_base::type): Adjust assertion.
4143         * vr-values.c (vr_values::update_value_range): Use type of the first
4144         argument rather than the second.
4146 2019-08-26  Richard Biener  <rguenther@suse.de>
4148         * config/i386/i386-features.c (general_remove_non_convertible_regs):
4149         Remove.
4150         (convert_scalars_to_vector): Do not call it.
4152 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
4153             Uros Bizjak  <ubizjak@gmail.com>
4155         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
4156         CASE_MATHFN_FLOATN for roundeven.
4157         * config/i386/i386.c (ix86_i387_mode_needed): Add case
4158         I387_ROUNDEVEN.
4159         (ix86_mode_needed): Likewise.
4160         (ix86_mode_after): Likewise.
4161         (ix86_mode_entry): Likewise.
4162         (ix86_mode_exit): Likewise.
4163         (ix86_emit_mode_set): Likewise.
4164         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
4165         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
4166         (ix86_entity): Add I387_ROUNDEVEN.
4167         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
4168         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
4169         (define_int_iterator): Likewise.
4170         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
4171         (define_constant): Define ROUND_ROUNDEVEN mode.
4172         (define_attr): Add roundeven mode for i387_cw.
4173         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
4174         * internal-fn.def (ROUNDEVEN): New builtin function.
4175         * optabs.def (roundeven_optab): New optab.
4177 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
4179         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
4180         for ROUNDEVEN.
4181         * builtins.def: Added function definitions for roundeven function
4182         variants.
4183         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
4184         function call.  Adjust condition for floor, ceil, trunc and round.
4185         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
4186         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
4187         (integer_valued_real_call_p): Added case for roundeven function.
4188         * real.c (is_even): New function. Returns true if real number is even,
4189         otherwise returns false.
4190         (is_halfway_below): New function. Returns true if real number is
4191         halfway between two integers, else return false.
4192         (real_roundeven): New function. Round real number to nearest integer,
4193         rounding halfway cases towards even.
4194         * real.h (real_value): Added descriptive comments.  Added function
4195         declaration for roundeven function.
4196         * doc/extend.texi (Other Builtins): List roundeven variants among
4197         functions which can be handled as builtins.
4199 2019-08-26  Richard Biener  <rguenther@suse.de>
4201         PR target/91522
4202         PR target/91527
4203         * config/i386/i386-features.h (general_scalar_chain::defs_map):
4204         New member.
4205         (general_scalar_chain::replace_with_subreg): Remove.
4206         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4207         (general_scalar_chain::convert_reg): Adjust signature.
4208         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
4209         iterate over all defs of a reg.
4210         (general_scalar_chain::replace_with_subreg): Remove.
4211         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4212         (general_scalar_chain::make_vector_copies): Populate defs_map,
4213         place copy only after defs that are used as vectors in the chain.
4214         (general_scalar_chain::convert_reg): Emit a copy for a specific
4215         def in a specific instruction.
4216         (general_scalar_chain::convert_op): All reg uses are converted here.
4217         (general_scalar_chain::convert_insn): Emit copies for scalar
4218         uses of defs here.  Replace uses with the copies we created.
4219         Replace and convert the def.  Adjust REG_DEAD notes, remove
4220         REG_EQUIV/EQUAL notes.
4221         (general_scalar_chain::convert_registers): Only handle copies
4222         into the chain here.
4224 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
4226         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
4228 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
4230         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
4231         Add nop_convert case.
4232         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
4233         Fold all statements if requested.
4234         * tree-ssa-propagate.h (class substitute_and_fold_engine):
4235         Allow to fold all statements.
4236         * tree-vrp.c (class vrp_folder):
4237         Let substitute_and_fold_engine fold all statements.
4239 2019-08-26  Richard Biener  <rguenther@suse.de>
4241         PR tree-optimization/91526
4242         * passes.def: Note that after late FRE we do TODO_update_address_taken.
4243         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
4244         TODO_update_address_taken.
4246 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
4248         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
4249         __STDC_HOSTED__.
4251 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
4253         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
4254         machine mode for unspec_volatile operand.
4256 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
4258         * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
4259         * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
4260         * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
4261         (prefer_neon_for_64bits): Remove.
4262         * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
4263         (tune_params): Remove PREF_NEON_64_FALSE uses.
4264         (arm_option_override): Remove prefer_neon selection code.
4265         (arm_print_tune_info): Remove prefer_neon_for_64bits.
4266         * gcc/config/arm/arm-protos.h (tune_params): Remove
4267         prefer_neon_for_64bits.
4268         (prefer_neon_for_64bits): Remove.
4270 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
4272         PR pch/61250
4273         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
4274         and issue any diagnostics needed before collecting the pre-PCH
4275         state.
4277 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
4279         PR middle-end/91283
4280         * common.opt (fexcess-precision=): Add Optimization flag.  Use
4281         flag_excess_precision variable instead of
4282         flag_excess_precision_cmdline.
4283         * flags.h (class target_flag_state): Remove x_flag_excess_precision
4284         member.
4285         (flag_excess_precision): Don't define.
4286         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
4287         flag_excess_precision_cmdline.  Remove comment.
4288         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
4289         and x_flag_excess_precision instead of
4290         frontend_set_flag_excess_precision_cmdline and
4291         x_flag_excess_precision_cmdline.
4292         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
4293         x_flag_excess_precision_cmdline.
4294         * toplev.c (init_excess_precision): Remove.
4295         (lang_dependent_init_target): Don't call it.
4297 2019-08-23  Martin Liska  <mliska@suse.cz>
4299         * lto-wrapper.c (run_gcc): When setting jobserver
4300         set also parallel to 1.  This was done so before r273908.
4302 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
4304         * config/arm/arm-cpus.in (cortex-m35p): New entry.
4305         (cortex-a76ae): Likewise.
4306         (cortex-a77): Likewise
4307         * config/arm/arm-tables.opt: Regenerate.
4308         * config/arm/arm-tune.md: Likewise.
4309         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
4310         cortex-a77 CPU options.
4312 2019-08-23  Martin Liska  <mliska@suse.cz>
4314         * profile.c (instrument_values): Do not set
4315         0 as last argument.
4316         * tree-profile.c (gimple_gen_interval_profiler): Remove
4317         last argument.
4318         (gimple_gen_pow2_profiler): Likewise.
4319         (gimple_gen_topn_values_profiler): Likewise.
4320         (gimple_gen_ic_profiler): Likewise.
4321         (gimple_gen_time_profiler): Likewise.
4322         (gimple_gen_average_profiler): Likewise.
4323         (gimple_gen_ior_profiler): Likewise.
4324         * value-prof.c (dump_histogram_value): Use default
4325         in switch statement instead of HIST_TYPE_MAX.
4326         (stream_in_histogram_value): Likewise.
4327         (gimple_duplicate_stmt_histograms): Do not
4328         use NULL for implicitly set arguments.
4329         (gimple_divmod_values_to_profile): Do not use
4330         reserve+quick_push.
4331         (gimple_indirect_call_to_profile): Likewise.
4332         (gimple_find_values_to_profile): Use implicit
4333         function call arguments.
4334         * value-prof.h (gimple_alloc_histogram_value):
4335         Set default values.
4336         (gimple_gen_interval_profiler): Remove last argument.
4337         (gimple_gen_pow2_profiler): Likewise.
4338         (gimple_gen_topn_values_profiler): Likewise.
4339         (gimple_gen_ic_profiler): Likewise.
4340         (gimple_gen_time_profiler): Likewise.
4341         (gimple_gen_average_profiler): Likewise.
4342         (gimple_gen_ior_profiler): Likewise.
4344 2019-08-22  Martin Sebor  <msebor@redhat.com>
4346         PR middle-end/91490
4347         * builtins.c (c_strlen): Rename argument and introduce new local.
4348         Set no-warning bit on original argument.
4349         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
4350         Fold empty and zero constructors into empty strings.
4351         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
4352         for missing initializers.
4353         * tree.c (build_string_literal): Handle optional argument.
4354         * tree.h (build_string_literal): Add defaulted argument.
4355         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
4356         no-warning bit on original expression.
4358 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
4360         PR target/91481
4361         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4362         and UNSPEC_DARN_RAW.
4363         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
4364         UNSPECV_DARN_RAW.
4365         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
4366         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
4367         (darn): Use an unspec_volatile, and UNSPECV_DARN.
4369 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
4371         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4372         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
4373         * config/rs6000/rs6000.md (unspec): ... here.
4374         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
4375         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4376         cmpeqb, *cmpeqb_internal): Delete, move to...
4377         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
4378         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4379         cmpeqb, *cmpeqb_internal): ... here.
4381 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4383         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
4384         intrinsics if __ARM_FP.
4385         Use __ARM_FEATURE_CRC32 ifdef guard.
4387 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
4389         * config/arm/arm.md (neon_for_64bits): Remove.
4390         (avoid_neon_for_64bits): Remove.
4391         (arm_adddi3): Always split early.
4392         (arm_subdi3): Always split early.
4393         (negdi2): Remove Neon expansion.
4394         (split zero_extend): Split before reload.
4395         (split sign_extend): Split before reload.
4397 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
4399         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
4400         (qhs_extenddi_cstr): Likewise.
4401         * config/arm/arm.md (ashldi3): Always expand early.
4402         (ashlsi3): Likewise.
4403         (ashrsi3): Likewise.
4404         (zero_extend<mode>di2): Remove Neon variants.
4405         (extend<mode>di2): Likewise.
4406         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
4407         (signed_shift_di3_neon): Likewise.
4408         (unsigned_shift_di3_neon): Likewise.
4409         (ashrdi3_neon_imm_noclobber): Likewise.
4410         (lshrdi3_neon_imm_noclobber): Likewise.
4411         (<shift>di3_neon): Likewise.
4412         (split extend): Remove DI extend split patterns.
4414 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
4416         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
4417         (split not): Add DImode not splitter.
4418         (anddi3): Remove pattern.
4419         (anddi3_insn): Likewise.
4420         (anddi_zesidi_di): Likewise.
4421         (anddi_sesdi_di): Likewise.
4422         (anddi_notdi_di): Likewise.
4423         (anddi_notzesidi_di): Likewise.
4424         (anddi_notsesidi_di): Likewise.
4425         (iordi3): Likewise.
4426         (iordi3_insn): Likewise.
4427         (iordi_zesidi_di): Likewise.
4428         (iordi_sesidi_di): Likewise.
4429         (xordi3): Likewise.
4430         (xordi3_insn): Likewise.
4431         (xordi_sesidi_di): Likewise.
4432         (xordi_zesidi_di): Likewise.
4433         (one_cmpldi2): Likewise.
4434         (one_cmpldi2_insn): Likewise.
4435         * config/arm/constraints.md: Remove De, Df, Dg constraints.
4436         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
4437         alternative.
4438         (iwmmxt_xordi3): Likewise.
4439         (iwmmxt_anddi3): Likewise.
4440         * config/arm/neon.md (orndi3_neon): Remove pattern.
4441         (anddi_notdi_di): Likewise.
4442         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
4443         (arm_iordi_operand_neon): Likewise.
4444         (arm_xordi_operand_neon): Likewise.
4445         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
4446         (iordi_notzesidi_di): Likewise.
4447         (iordi_notdi_zesidi): Likewise.
4448         (iordi_notsesidi_di): Likewise.
4450 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
4452         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
4453         insn.
4454         (iorsi3_compare0_scratch): Likewise.
4456 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
4458         * config/aarch64/aarch64-simd-builtins.def:
4459         (ld1x4): New.
4460         (st1x4): Likewise.
4461         * config/aarch64/aarch64-simd.md:
4462         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
4463         (aarch64_st1x4<VALLDIF:mode>): Likewise.
4464         (aarch64_ld1_x4_<mode>): Likewise.
4465         (aarch64_st1_x4_<mode>): Likewise.
4466         * config/aarch64/arm_neon.h:
4467         (vld1_s8_x4): New function.
4468         (vld1q_s8_x4): Likewise.
4469         (vld1_s16_x4): Likewise.
4470         (vld1q_s16_x4): Likewise.
4471         (vld1_s32_x4): Likewise.
4472         (vld1q_s32_x4): Likewise.
4473         (vld1_u8_x4): Likewise.
4474         (vld1q_u8_x4): Likewise.
4475         (vld1_u16_x4): Likewise.
4476         (vld1q_u16_x4): Likewise.
4477         (vld1_u32_x4): Likewise.
4478         (vld1q_u32_x4): Likewise.
4479         (vld1_f16_x4): Likewise.
4480         (vld1q_f16_x4): Likewise.
4481         (vld1_f32_x4): Likewise.
4482         (vld1q_f32_x4): Likewise.
4483         (vld1_p8_x4): Likewise.
4484         (vld1q_p8_x4): Likewise.
4485         (vld1_p16_x4): Likewise.
4486         (vld1q_p16_x4): Likewise.
4487         (vld1_s64_x4): Likewise.
4488         (vld1_u64_x4): Likewise.
4489         (vld1_p64_x4): Likewise.
4490         (vld1q_s64_x4): Likewise.
4491         (vld1q_u64_x4): Likewise.
4492         (vld1q_p64_x4): Likewise.
4493         (vld1_f64_x4): Likewise.
4494         (vld1q_f64_x4): Likewise.
4495         (vst1_s8_x4): Likewise.
4496         (vst1q_s8_x4): Likewise.
4497         (vst1_s16_x4): Likewise.
4498         (vst1q_s16_x4): Likewise.
4499         (vst1_s32_x4): Likewise.
4500         (vst1q_s32_x4): Likewise.
4501         (vst1_u8_x4): Likewise.
4502         (vst1q_u8_x4): Likewise.
4503         (vst1_u16_x4): Likewise.
4504         (vst1q_u16_x4): Likewise.
4505         (vst1_u32_x4): Likewise.
4506         (vst1q_u32_x4): Likewise.
4507         (vst1_f16_x4): Likewise.
4508         (vst1q_f16_x4): Likewise.
4509         (vst1_f32_x4): Likewise.
4510         (vst1q_f32_x4): Likewise.
4511         (vst1_p8_x4): Likewise.
4512         (vst1q_p8_x4): Likewise.
4513         (vst1_p16_x4): Likewise.
4514         (vst1q_p16_x4): Likewise.
4515         (vst1_s64_x4): Likewise.
4516         (vst1_u64_x4): Likewise.
4517         (vst1_p64_x4): Likewise.
4518         (vst1q_s64_x4): Likewise.
4519         (vst1q_u64_x4): Likewise.
4520         (vst1q_p64_x4): Likewise.
4521         (vst1_f64_x4): Likewise.
4522         (vst1q_f64_x4): Likewise.
4524 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4526         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
4528 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4529             Richard Sandiford  <richard.sandiford@arm.com>
4531         PR target/88839
4532         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
4533         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
4535 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4537         PR target/90724
4538         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
4539         in reg if it fails aarch64_plus_operand predicate.
4541 2019-08-21  Richard Biener  <rguenther@suse.de>
4543         PR tree-optimization/91482
4544         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
4545         BUILT_IN_ASSUME_ALIGNED calls.
4547 2019-08-21  Richard Biener  <rguenther@suse.de>
4549         PR target/91498
4550         PR target/91503
4551         * config/i386/i386-features.c
4552         (general_scalar_chain::make_vector_copies): Copy stack temporary
4553         rtx when using it multiple times.
4554         (general_scalar_chain::convert_reg): Likewise.
4556 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4558         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
4560 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
4562         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
4563         catch more redundant zero initialization cases.
4564         (dse_dom_walker::dse_optimize_stmt): Likewise.
4566 2019-08-20  Richard Biener  <rguenther@suse.de>
4568         PR lto/91307
4569         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
4570         by collect2 when targetm.have_ctors_dtors which avoids dragging
4571         in temporary filenames from LTO input objects.
4573 2019-08-20  Richard Biener  <rguenther@suse.de>
4575         PR tree-optimization/37242
4576         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
4577         to (T)a + (T)b if we know that a + b does not overflow.
4579 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
4581         PR rtl-optimization/91347
4582         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
4583         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
4585 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4587         * calls.h (function_arg_info): Add a pass_by_reference field,
4588         defaulting to false.
4589         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
4590         when applying pass-by-reference semantics.
4591         (initialize_argument_information): Likewise.
4592         (emit_library_call_value_1): Likewise.
4593         * function.c (assign_parm_data_one): Remove passed_pointer field.
4594         (assign_parm_find_data_types): Don't set it.
4595         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
4596         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
4597         arg.pass_by_reference instead of passed_pointer.
4599 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4601         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
4602         into a single function_arg_info, updating its fields when we
4603         apply pass-by-reference and promotion semantics.  Use the
4604         function_arg_info to track the mode rather than keeping it in
4605         a separate local variable.
4606         (initialize_argument_information): Likewise.  Base the final
4607         arg_to_skip on this new function_arg_info rather than creating
4608         a new one from scratch.
4610 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4612         * function.c (assign_parm_data_one): Replace passed_type,
4613         promoted_mode and named_arg with a function_arg_info field.
4614         (assign_parm_find_data_types): Remove local variables and
4615         assign directly to "data".  Make data->passed_mode shadow
4616         data->arg.mode until promotion, then assign the promoted
4617         mode to data->arg.mode.
4618         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
4619         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
4620         (assign_parm_remove_parallels, assign_parm_setup_block_p)
4621         (assign_parm_setup_block, assign_parm_setup_reg)
4622         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
4623         arg.mode instead of promoted_mode, arg.type instead of passed_type
4624         and arg.named instead of named_arg.  Use data->arg for
4625         function_arg_info structures that had the field values passed_type,
4626         promoted_mode and named_arg.  Base other function_arg_infos on
4627         data->arg, changing the necessary properties.
4629 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4631         * calls.h (apply_pass_by_reference_rules): Declare.
4632         * calls.c (apply_pass_by_reference_rules): New function.
4633         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
4634         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
4635         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4636         * function.c (assign_parm_find_data_types): Likewise.
4637         * var-tracking.c (prepare_call_arguments): Likewise.
4639 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4641         * target.def (must_pass_in_stack): Take a function_arg_info instead
4642         of a mode and a type.
4643         * doc/tm.texi: Regenerate.
4644         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
4645         instead of a mode and a type.
4646         (must_pass_in_stack_var_size_or_pad): Likewise.
4647         * calls.c (must_pass_in_stack_var_size): Likewise.
4648         (must_pass_in_stack_var_size_or_pad): Likewise.
4649         (initialize_argument_information): Update call to
4650         targetm.calls.must_pass_in_stack.
4651         (must_pass_va_arg_on_stack): Likewise.
4652         * function.c (assign_parm_find_entry_rtl): Likewise.
4653         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
4654         * config/alpha/alpha.c (alpha_function_arg): Likewise.
4655         (alpha_function_arg_advance): Likewise.
4656         * config/cr16/cr16.c (cr16_function_arg): Likewise.
4657         (cr16_function_arg_advance): Likewise.
4658         * config/cris/cris.c (cris_pass_by_reference): Likewise.
4659         (cris_arg_partial_bytes): Likewise.
4660         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
4661         * config/lm32/lm32.c (lm32_function_arg): Likewise.
4662         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
4663         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
4664         * config/mips/mips.c (mips_pass_by_reference): Likewise.
4665         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
4666         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
4667         * config/sh/sh.c (sh_pass_by_reference): Likewise.
4668         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
4669         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4670         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
4671         instead of a mode and a type.
4672         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
4673         (fr30_num_arg_regs): Likewise.
4674         (fr30_setup_incoming_varargs): Update calls accordingly.
4675         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4676         (fr30_function_arg_advance): Likewise.
4677         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
4678         instead of a mode and a type.
4679         * config/gcn/gcn.c (num_arg_regs): Likewise.
4680         (gcn_function_arg, gcn_function_arg_advance): Update calls to
4681         num_arg_regs and targetm.calls.must_pass_in_stack.
4682         (gcn_arg_partial_bytes): Likewise.
4683         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
4684         function_arg_info instead of a mode and a type.
4685         (classify_argument): Update call accordingly.
4686         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
4687         function_arg_info instead of a mode and a type.
4688         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
4689         Likewise.
4690         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
4691         (rs6000_parm_needs_stack): Update call accordingly.
4692         (setup_incoming_varargs): Likewise.
4694 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4696         * target.def (callee_copies): Take a function_arg_info instead
4697         of a mode, type and named flag.
4698         * doc/tm.texi: Regenerate.
4699         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
4700         instead of a mode, type and named flag.
4701         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4702         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4703         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4704         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
4705         instead of a mode, type and named flag.
4706         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4707         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4708         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4709         * calls.h (reference_callee_copied): Take a function_arg_info
4710         instead of a mode, type and named flag.
4711         * calls.c (reference_callee_copied): Likewise.
4712         (initialize_argument_information): Update call accordingly.
4713         (emit_library_call_value_1): Likewise.
4714         * function.c (gimplify_parameters): Likewise.
4715         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
4716         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
4717         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
4718         * config/c6x/c6x.c (c6x_callee_copies): Delete.
4719         (TARGET_CALLEE_COPIES): Define to
4720         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4721         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
4722         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4723         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4724         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
4725         instead of a mode, type and named flag.
4726         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
4727         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4728         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4729         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
4730         * config/msp430/msp430.c (msp430_callee_copies): Delete.
4731         (TARGET_CALLEE_COPIES): Define to
4732         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4733         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
4734         instead of a mode, type and named flag.
4735         * config/sh/sh.c (sh_callee_copies): Likewise.
4736         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
4737         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4738         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4740 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4742         * target.def (function_arg_advance): Take a function_arg_info instead
4743         of a mode, type and named flag.
4744         * doc/tm.texi: Regenerate.
4745         * targhooks.h (default_function_arg_advance): Take a function_arg_info
4746         instead of a mode, type and named flag.
4747         * targhooks.c (default_function_arg_advance): Likewise.
4748         * calls.c (initialize_argument_information): Update call to
4749         targetm.calls.function_arg_advance.
4750         (emit_library_call_value_1): Likewise.
4751         * dse.c (get_call_args): Likewise.
4752         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4753         * function.c (assign_parms, gimplify_parameters): Likewise.
4754         * var-tracking.c (prepare_call_arguments): Likewise.
4755         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
4756         function_arg_info instead of a mode, type and named flag.
4757         (aarch64_setup_incoming_varargs): Update call accordingly.
4758         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
4759         function_arg_info instead of a mode, type and named flag.
4760         (alpha_setup_incoming_varargs): Update call accordingly.
4761         * config/arc/arc.c (arc_function_arg_advance): Take a
4762         function_arg_info instead of a mode, type and named flag.
4763         (arc_setup_incoming_varargs): Update call accordingly.
4764         * config/arm/arm.c (arm_function_arg_advance): Take a
4765         function_arg_info instead of a mode, type and named flag.
4766         (cmse_func_args_or_return_in_stack): Update call accordingly.
4767         (arm_function_ok_for_sibcall): Likewise.
4768         (cmse_nonsecure_call_clear_caller_saved): Likewise.
4769         * config/avr/avr.c (avr_function_arg_advance): Take a
4770         function_arg_info instead of a mode, type and named flag.
4771         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
4772         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
4773         (c6x_call_saved_register_used): Update call accordingly.
4774         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
4775         function_arg_info instead of a mode, type and named flag.
4776         * config/cris/cris.c (cris_function_arg_advance): Likewise.
4777         * config/csky/csky.c (csky_function_arg_advance): Likewise.
4778         (csky_setup_incoming_varargs): Update call accordingly.
4779         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
4780         function_arg_info instead of a mode, type and named flag.
4781         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
4782         * config/frv/frv.c (frv_function_arg_advance): Likewise.
4783         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
4784         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
4785         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
4786         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4787         (ix86_setup_incoming_varargs): Update call accordingly.
4788         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
4789         function_arg_info instead of a mode, type and named flag.
4790         (ia64_setup_incoming_varargs): Update call accordingly.
4791         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
4792         function_arg_info instead of a mode, type and named flag.
4793         (iq2000_expand_prologue): Update call accordingly.
4794         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
4795         function_arg_info instead of a mode, type and named flag.
4796         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
4797         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
4798         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4799         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
4800         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4801         Likewise.
4802         (microblaze_expand_prologue): Update call accordingly.
4803         * config/mips/mips.c (mips_function_arg_advance): Take a
4804         function_arg_info instead of a mode, type and named flag.
4805         (mips_setup_incoming_varargs): Update call accordingly.
4806         (mips_output_args_xfer): Likewise.
4807         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
4808         function_arg_info instead of a mode, type and named flag.
4809         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
4810         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
4811         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
4812         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
4813         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
4814         (nios2_setup_incoming_varargs): Update call accordingly.
4815         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
4816         function_arg_info instead of a mode, type and named flag.
4817         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
4818         * config/pa/pa.c (pa_function_arg_advance): Likewise.
4819         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
4820         * config/pru/pru.c (pru_function_arg_advance): Likewise.
4821         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
4822         (riscv_setup_incoming_varargs): Update call accordingly.
4823         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
4824         function_arg_info instead of a mode, type and named flag.
4825         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
4826         Likewise.
4827         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
4828         (rs6000_parm_needs_stack): Update call accordingly.
4829         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
4830         instead of a mode, type and named flag.
4831         * config/s390/s390.c (s390_function_arg_advance): Likewise.
4832         (s390_call_saved_register_used): Update call accordingly.
4833         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
4834         instead of a mode, type and named flag.
4835         (sh_output_mi_thunk): Update call accordingly.
4836         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
4837         function_arg_info instead of a mode, type and named flag.
4838         * config/spu/spu.c (spu_function_arg_advance): Likewise.
4839         (spu_setup_incoming_varargs): Update call accordingly.
4840         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
4841         function_arg_info instead of a mode, type and named flag.
4842         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
4843         (tilegx_setup_incoming_varargs): Update call accordingly.
4844         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
4845         function_arg_info instead of a mode, type and named flag.
4846         (tilegx_setup_incoming_varargs): Update call accordingly.
4847         * config/v850/v850.c (v850_function_arg_advance): Take a
4848         function_arg_info instead of a mode, type and named flag.
4849         * config/vax/vax.c (vax_function_arg_advance): Likewise.
4850         * config/visium/visium.c (visium_function_arg_advance): Likewise.
4851         (visium_setup_incoming_varargs): Update call accordingly.
4852         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
4853         function_arg_info instead of a mode, type and named flag.
4855 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4857         * target.def (function_arg, function_incoming_arg): Take a
4858         function_arg_info instead of a mode, tree and named flag.
4859         * doc/tm.texi: Regenerate.
4860         * targhooks.h (default_function_arg): Take a function_arg_info
4861         instead of a mode, tree and named flag.
4862         (default_function_incoming_arg): Likewise.
4863         * targhooks.c (default_function_arg): Likewise.
4864         (default_function_incoming_arg): Likewise.
4865         * calls.h (function_arg_info::end_marker_p): New function.
4866         (function_arg_info::end_marker): Likewise.
4867         * calls.c (prepare_call_address, initialize_argument_information)
4868         (expand_call, emit_library_call_value_1): Update calls to
4869         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
4870         * dse.c: Include calls.h.
4871         (get_call_args): Update call to targetm.calls.function_arg.
4872         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4873         * var-tracking.c (prepare_call_arguments): Likewise.
4874         * function.c (assign_parm_find_entry_rtl): Update call to
4875         targetm.calls.function_incoming_arg.
4876         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
4877         function_arg_info instead of a mode, tree and named flag.
4878         * config/alpha/alpha.c (alpha_function_arg): Likewise.
4879         * config/arc/arc.c (arc_function_arg): Likewise.
4880         * config/arm/arm.c (arm_function_arg): Likewise.
4881         (cmse_func_args_or_return_in_stack): Update call accordingly.
4882         (arm_function_ok_for_sibcall): Likewise.
4883         (cmse_nonsecure_call_clear_caller_saved): Likewise.
4884         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
4885         instead of a mode, tree and named flag.
4886         * config/bfin/bfin.c (bfin_function_arg): Likewise.
4887         * config/c6x/c6x.c (c6x_function_arg): Likewise.
4888         (c6x_call_saved_register_used): Update call accordingly.
4889         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
4890         instead of a mode, tree and named flag.
4891         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
4892         (cris_function_arg_1): Likewise.
4893         * config/csky/csky.c (csky_function_arg): Likewise.
4894         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
4895         * config/fr30/fr30.c (fr30_function_arg): Likewise.
4896         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
4897         (frv_function_arg_1): Likewise.
4898         * config/ft32/ft32.c (ft32_function_arg): Likewise.
4899         * config/gcn/gcn.c (gcn_function_arg): Likewise.
4900         * config/h8300/h8300.c (h8300_function_arg): Likewise.
4901         * config/i386/i386.c (ix86_function_arg): Likewise.
4902         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
4903         (ia64_function_arg_1): Likewise.
4904         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
4905         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
4906         accordingly.
4907         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
4908         instead of a mode, tree and named flag.
4909         * config/m32c/m32c.c (m32c_function_arg): Likewise.
4910         * config/m32r/m32r.c (m32r_function_arg): Likewise.
4911         * config/m68k/m68k.c (m68k_function_arg): Likewise.
4912         * config/mcore/mcore.c (mcore_function_arg): Likewise.
4913         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
4914         (microblaze_expand_prologue): Update call accordingly.
4915         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
4916         instead of a mode, tree and named flag.
4917         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
4918         (mmix_function_arg_1): Likewise.
4919         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
4920         * config/moxie/moxie.c (moxie_function_arg): Likewise.
4921         * config/msp430/msp430.c (msp430_function_arg): Likewise.
4922         * config/nds32/nds32.c (nds32_function_arg): Likewise.
4923         * config/nios2/nios2.c (nios2_function_arg): Likewise.
4924         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
4925         (nvptx_function_incoming_arg): Likewise.
4926         * config/or1k/or1k.c (or1k_function_arg): Likewise.
4927         * config/pa/pa.c (pa_function_arg): Likewise.
4928         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4929         * config/pru/pru.c (pru_function_arg): Likewise.
4930         * config/riscv/riscv.c (riscv_function_arg): Likewise.
4931         * config/rl78/rl78.c (rl78_function_arg): Likewise.
4932         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
4933         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
4934         (rs6000_parm_needs_stack): Update call accordingly.
4935         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
4936         instead of a mode, tree and named flag.
4937         * config/s390/s390.c (s390_function_arg): Likewise.
4938         (s390_call_saved_register_used): Update call accordingly.
4939         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
4940         instead of a mode, tree and named flag.
4941         (sh_output_mi_thunk): Update call accordingly.
4942         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
4943         (sparc_function_incoming_arg): Take a function_arg_info instead of
4944         a mode, tree and named flag.
4945         * config/spu/spu.c (spu_function_arg): Likewise.
4946         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
4947         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
4948         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
4949         * config/v850/v850.c (v850_function_arg): Likewise.
4950         * config/vax/vax.c (vax_function_arg): Likewise.
4951         * config/visium/visium.c (visium_function_arg): Likewise.
4952         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
4953         (xtensa_function_incoming_arg): Likewise.
4955 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4957         * target.def (setup_incoming_varargs): Take a function_arg_info
4958         instead of a mode and tree.
4959         * doc/tm.texi: Regenerate.
4960         * targhooks.h (default_setup_incoming_varargs): Take a
4961         function_arg_info instead of a mode and tree.
4962         * targhooks.c (default_setup_incoming_varargs): Likewise.
4963         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
4964         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
4965         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
4966         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
4967         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
4968         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4969         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
4970         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
4971         Likewise.
4972         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4973         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
4974         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
4975         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
4976         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4977         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4978         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4979         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4980         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4981         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
4982         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4983         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4984         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
4985         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
4986         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
4987         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
4988         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
4989         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4990         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
4991         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
4992         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
4993         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4994         * function.c (assign_parms_setup_varargs): Update call to
4995         targetm.calls.setup_incoming_varargs.
4997 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
4999         * target.def (pass_by_reference): Take a function_arg_info instead
5000         of a mode, type and named flag.
5001         * doc/tm.texi: Regenerate.
5002         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
5003         accordingly.
5004         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
5005         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
5006         function_arg_info instead of a mode, type and named flag.
5007         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
5008         * calls.h (pass_by_reference): Take a function_arg_info instead of a
5009         mode, type and named flag.
5010         * calls.c (pass_by_reference): Likewise.
5011         (pass_va_arg_by_reference): Update call accordingly.
5012         (initialize_argument_information): Likewise.
5013         (emit_library_call_value_1): Likewise.
5014         * function.c (assign_parm_find_data_types): Likewise.
5015         * var-tracking.c (prepare_call_arguments): Likewise.
5016         * stor-layout.c: Include calls.h.
5017         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
5018         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
5019         function_arg_info instead of a mode, type and named flag.
5020         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
5021         * config/arc/arc.c (arc_pass_by_reference): Likewise.
5022         * config/arm/arm.c (arm_pass_by_reference): Likewise.
5023         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
5024         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
5025         (c6x_call_saved_register_used): Update call to pass_by_reference.
5026         * config/cris/cris.c (cris_pass_by_reference): Take a
5027         function_arg_info instead of a mode, type and named flag.
5028         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
5029         function_arg_info instead of a mode, type and named flag.
5030         (epiphany_arg_partial_bytes): Update call accordingly.
5031         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
5032         function_arg_info instead of a mode, type and named flag.
5033         (ft32_arg_partial_bytes): Update call accordingly.
5034         * config/i386/i386.c (ix86_pass_by_reference): Take a
5035         function_arg_info instead of a mode, type and named flag.
5036         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
5037         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
5038         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
5039         (m32r_return_in_memory): Update call accordingly.
5040         * config/mips/mips.c (mips_pass_by_reference): Take a
5041         function_arg_info instead of a mode, type and named flag.
5042         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
5043         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5044         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
5045         (moxie_arg_partial_bytes): Update call accordingly.
5046         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
5047         function_arg_info instead of a mode, type and named flag.
5048         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
5049         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
5050         * config/pa/pa.c (pa_pass_by_reference): Likewise.
5051         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
5052         (riscv_return_in_memory): Update call accordingly.
5053         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
5054         function_arg_info instead of a mode, type and named flag.
5055         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
5056         (rs6000_parm_needs_stack): Update call to pass_by_reference.
5057         * config/s390/s390.c (s390_pass_by_reference): Take a
5058         function_arg_info instead of a mode, type and named flag.
5059         (s390_call_saved_register_used): Update call accordingly.
5060         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
5061         instead of a mode, type and named flag.
5062         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
5063         * config/spu/spu.c (spu_pass_by_reference): Likewise.
5064         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
5065         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
5066         * config/v850/v850.c (v850_pass_by_reference): Likewise.
5067         * config/visium/visium.c (visium_pass_by_reference): Likewise.
5069 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5071         * target.def (arg_partial_bytes): Take a function_arg_info instead
5072         of a mode, type and named flag.
5073         * doc/tm.texi: Regenerate.
5074         * target.h (function_arg_info): Declare.
5075         * calls.h (function_arg_info): New class.
5076         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
5077         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
5078         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
5079         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
5080         * calls.c (initialize_argument_information): Update call to
5081         targetm.calls.partial_bytes.
5082         (emit_library_call_value_1): Likewise.
5083         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5084         * function.c (assign_parm_find_entry_rtl): Likewise.
5085         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
5086         function_arg_info instead of a mode, type and named flag.
5087         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
5088         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
5089         (cmse_func_args_or_return_in_stack): Update accordingly.
5090         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
5091         function_arg_info instead of a mode, type and named flag.
5092         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
5093         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
5094         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
5095         * config/fr30/fr30.c: Include calls.h.
5096         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
5097         type and named flag.
5098         * config/frv/frv.c: Include calls.h.
5099         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
5100         type and named flag.
5101         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
5102         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
5103         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
5104         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
5105         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
5106         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
5107         * config/microblaze/microblaze.c (function_arg_partial_bytes):
5108         Likewise.
5109         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
5110         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
5111         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
5112         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
5113         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
5114         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
5115         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
5116         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
5117         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
5118         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
5119         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
5120         (rs6000_parm_needs_stack): Update call accordingly.
5121         * config/sh/sh.c (sh_arg_partial_bytes): Take a
5122         function_arg_info instead of a mode, type and named flag.
5123         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
5124         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
5126 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5128         * calls.h (must_pass_va_arg_in_stack): Declare.
5129         * calls.c (must_pass_va_arg_in_stack): New function.
5130         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
5131         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
5132         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
5133         Likewise.
5134         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5136 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5138         * calls.h (pass_va_arg_by_reference): Declare.
5139         * calls.c (pass_va_arg_by_reference): New function.
5140         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
5141         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
5142         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
5143         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5144         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5145         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
5146         (mips_gimplify_va_arg_expr): Likewise.
5147         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
5148         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5149         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
5150         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
5151         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5152         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
5153         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
5154         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
5155         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
5156         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5157         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
5159 2019-08-20  Richard Biener  <rguenther@suse.de>
5161         PR target/91498
5162         * config/i386/i386-features.c (general_scalar_chain::convert_op):
5163         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
5164         (convert_scalars_to_vector): Add timode_p parameter and use it
5165         to guard TImode-only operation.
5166         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
5167         (pass_stv::execute): Pass down timode_p.
5169 2019-08-20  Lili Cui  <lili.cui@intel.com>
5171         * common/config/i386/i386-common.c
5172         (processor_names): Add tigerlake and cooperlake.
5173         (processor_alias_table): Add tigerlake and cooperlake.
5174         * config.gcc: Add -march=tigerlake and cooperlake.
5175         * config/i386/driver-i386.c
5176         (host_detect_local_cpu): Detect tigerlake and cooperlake.
5177         Add "has_avx" to classify processor.
5178         * config/i386/i386-builtins.c (processor_model) :
5179         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
5180         (arch_names_table): Add tigerlake and cooperlake.
5181         (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
5182         and PROCESSOR_COOPERLAKE.
5183         * config/i386/i386-c.c
5184         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
5185         * config/i386/i386-options.c
5186         (m_TIGERLAKE)  : Define.
5187         (m_COOPERLAKE) : Ditto.
5188         (m_CORE_AVX512): Ditto.
5189         (processor_cost_table): Add cascadelake.
5190         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
5191         * config/i386/i386.h
5192         (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
5193         (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5194         (PTA_MOVDIRI): Ditto.
5195         (PTA_MOVDIR64B): Ditto.
5196         (PTA_COOPERLAKE) : Ditto.
5197         (PTA_TIGERLAKE)  : Ditto.
5198         (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5199         * doc/extend.texi: Add tigerlake and cooperlake.
5200         * doc/invoke.texi: Add tigerlake and cooperlake.
5202 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
5204         * doc/install.texi (Specific, alpha): Remove note to use
5205         binutils 2.11.2 or later.
5207 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5209         PR middle-end/89544
5210         * function.c (assign_parm_find_stack_rtl): Use larger alignment
5211         when possible.
5213 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
5215         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
5216         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
5217         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
5218         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
5219         * config/aarch64/constraints.md (Dt): New constraint
5220         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
5222 2019-08-19  Richard Biener  <rguenther@suse.de>
5224         PR tree-optimization/91403
5225         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
5226         cases we can handle with tail-recursion...
5227         (follow_ssa_edge_expr): ... here.  Do so.
5229 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
5231         PR target/91441
5232         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
5233         implemented for -fsanitize=kernel-address, and merge check logic
5234         with -fsanitize=address.
5236 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
5238         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
5239         for cpu and machine.  Factor 64/32b builtins.
5241 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
5243         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
5244         gone, point to sourceforge.net.
5246 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
5247         
5248         * doc/ux.texi (User Experience Guidelines): Update reference.
5250 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
5251         
5252         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
5253         not LGPL".
5255 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
5257         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
5258         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
5260 2019-08-16  Martin Sebor  <msebor@redhat.com>
5262         * tree.def (TYPE_SIZE): Clarify.
5263         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
5265 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5267         PR tree-optimization/91109
5268         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
5269         * lra.c (lra): Use lra_need_for_scratch_reg_p.
5270         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
5272 2019-08-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5274         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
5275         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
5276         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
5277         (uavg<mode>3_ceil): New expander.
5278         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
5279         mode iterator when creating CONST1_RTX.
5280         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
5281         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
5282         mode iterator for const1_operand predicate.
5284 2019-08-16  Richard Biener  <rguenther@suse.de>
5286         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
5287         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
5288         follow_ssa_edge.
5289         (follow_ssa_edge_in_condition_phi_branch): Likewise.
5290         (analyze_evolution_in_loop): Likewise.
5291         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
5292         (follow_ssa_edge_expr): ... here.  Refactor code.
5294 2019-08-16  Richard Biener  <rguenther@suse.de>
5296         PR target/91469
5297         * config/i386/i386-features.c
5298         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
5300 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5302         PR other/91255
5303         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
5304         only if subst_name matches curr_attr string.
5306 2019-08-16  Richard Biener  <rguenther@suse.de>
5308         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
5309         stmt at gsi_p, instead replace it with a NOP removed later.
5310         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
5311         that became dead because of that.
5313 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
5315         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
5316         for which we can't represent a range.
5317         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
5318         set_varying.
5319         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
5320         Set VR_UNDEFINED if type is not supported.
5321         * tree-ssanames.c (get_range_info): Pass type to set_varying.
5322         * tree-vrp.c (value_range_base::check): Assert that a varying has
5323         min/max set.
5324         (value_range_base::equal_p): Early bail for undefines.
5325         (value_range_base::set_varying): Accept a type.
5326         (value_range::set_varying): Same.
5327         (value_range_base::type): VARYING can have a type, while UNDEFINE
5328         is typeless.
5329         (value_range_base::dump): Print type for VARYING nodes.
5330         (value_range_base::set): Add type to VARYING.
5331         (extract_range_from_multiplicative_op): Pass type to set_varying.
5332         (extract_range_from_binary_expr): Same.
5333         (value_range_base::intersect_helper): Same.
5334         (value_range_base::union_helper): Same.
5335         (value_range_base::normalize_symbolics): Same.
5336         (determine_value_range_1): Same.
5337         * tree-vrp.h (class value_range_base): Add type to set_varying.
5338         Add prototype for dump(void).
5339         Add prototype for supports_type_p.
5340         (class value_range): Add type to set_varying.
5341         Add prototype for dump(void).
5342         * vr-values.c (set_value_range_to_truthvalue): Pass type to
5343         set_varying.
5344         (vr_values::get_lattice_entry): Set varying even if propagation
5345         finished.
5346         Pass type to set_varying.
5347         (vr_values::get_value_range): Remove vr_const_varying.
5348         Reallocate the lattice if needed.
5349         (vr_values::update_value_range): Pass type to set_varying.
5350         (vr_values::extract_range_for_var_from_comparison_expr): Same.
5351         (vr_values::extract_range_from_binary_expr): Same.
5352         (vr_values::extract_range_from_unary_expr): Same.
5353         (vr_values::extract_range_from_cond_expr): Same.
5354         (vr_values::check_for_binary_op_overflow): Same.
5355         (vr_values::extract_range_basic): Same.
5356         (vr_values::extract_range_from_assignment): Same.
5357         (vr_values::vr_values): Increase size of num_vr_values.
5358         (vr_values::extract_range_from_phi_node): Pass type to
5359         set_varying.
5361 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
5363         PR target/90878
5364         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
5365         for costs of hard register moves.
5366         (ix86_register_move_cost): Likewise.
5367         * config/i386/i386.h (processor_costs): Move costs of hard
5368         register moves to hard_register.  Add int_load, int_store,
5369         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5370         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
5371         for costs of RTL expressions.
5372         * config/i386/x86-tune-costs.h: Move costs of hard register
5373         moves to hard_register.  Duplicate int_load, int_store,
5374         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5375         sse_load, sse_store for costs of RTL expressions.
5377 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5379         * target.def (setup_incoming_vararg_bounds): Remove.
5380         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
5381         * doc/tm.texi: Regenerate.
5382         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
5383         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
5384         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5385         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
5387 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5389         MSP430: Fix lines over 80 characters long in
5390         config/msp430/*.{c,h} files
5392         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
5393         specifier in string.
5394         (msp430_select_hwmult_lib): Split line more than 80 characters long.
5395         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
5396         redundant old comment.
5397         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
5398         Split line more than 80 characters long.
5399         * config/msp430/msp430.c (msp430_option_override): Likewise.
5400         (msp430_return_in_memory): Likewise.
5401         (msp430_gimplify_va_arg_expr): Likewise.
5402         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
5403         (msp430_legitimate_constant): Likewise.
5404         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
5405         (msp430_attr): Likewise.
5406         (msp430_data_attr): Likewise.
5407         (msp430_start_function): Likewise.
5408         (gen_prefix): Likewise.
5409         (msp430_init_sections): Likewise.
5410         (msp430_select_section): Likewise.
5411         (msp430_function_section): Likewise.
5412         (msp430_unique_section): Likewise.
5413         (msp430_output_aligned_decl_common): Likewise.
5414         (msp430_do_not_relax_short_jumps): Likewise.
5415         (msp430_init_builtins): Likewise.
5416         (msp430_expand_delay_cycles): Likewise.
5417         (msp430_expand_prologue): Likewise.
5418         (msp430_expand_epilogue): Likewise.
5419         (msp430_expand_helper): Likewise.
5420         (msp430_split_movsi): Likewise.
5421         (msp430_print_operand): Likewise.
5422         (msp430_return_addr_rtx): Likewise.
5423         (msp430x_extendhisi): Likewise.
5424         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
5425         (ASM_SPEC): Likewise.
5426         Remove very obvious comments.
5427         (LIB_SPEC): Split line more than 80 characters long.
5428         (EH_RETURN_HANDLER_RTX): Likewise.
5429         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
5431 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5433         MSP430: Fix whitespace errors and incorrect indentation in
5434         config/msp430/*.{c,h} files
5436         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
5437         (msp430_select_hwmult_lib): Likewise.
5438         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
5439         (msp430_extract_mcu_data): Likewise.
5440         (struct t_msp430_mcu_data): Likewise.
5441         * config/msp430/msp430.c (struct machine_function): Remove whitespace
5442         before left square bracket.
5443         (msp430_option_override): Fix indentation.
5444         (msp430_hard_regno_nregs_with_padding): Likewise.
5445         (msp430_initial_elimination_offset): Likewise.
5446         (msp430_special_register_convention_p): Remove whitespace before left
5447         square bracket and after exclamation mark.
5448         (msp430_evaluate_arg): Likewise.
5449         (msp430_callee_copies): Fix indentation.
5450         (msp430_gimplify_va_arg_expr): Likewise.
5451         (msp430_function_arg_advance): Remove whitespace before left square
5452         bracket.
5453         (reg_ok_for_addr): Likewise.
5454         (msp430_preserve_reg_p): Likewise.
5455         (msp430_compute_frame_info): Likewise.
5456         (msp430_asm_output_addr_const_extra): Add space between function name
5457         and open parenthesis.
5458         (has_section_name): Fix indentation.
5459         (msp430_attr): Remove trailing whitespace.
5460         (msp430_section_attr): Likewise.
5461         (msp430_data_attr): Likewise.
5462         (struct msp430_attribute_table): Fix comment and whitespace.
5463         (msp430_start_function): Remove whitespace before left square bracket.
5464         Add space between function name and open parenthesis.
5465         (msp430_select_section): Remove trailing whitespace.
5466         (msp430_section_type_flags): Remove trailing whitespace.
5467         (msp430_unique_section): Remove space before closing parenthesis.
5468         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
5469         (msp430_builtins): Remove whitespace before left square bracket.
5470         (msp430_init_builtins): Fix indentation.
5471         (msp430_expand_prologue): Remove whitespace before left square bracket.
5472         Remove space before closing parenthesis.
5473         (msp430_expand_epilogue): Remove whitespace before left square bracket.
5474         (msp430_split_movsi): Remove space before closing parenthesis.
5475         (helper_function_name_mappings): Fix indentation.
5476         (msp430_use_f5_series_hwmult): Fix whitespace.
5477         (use_32bit_hwmult): Likewise.
5478         (msp430_no_hwmult): Likewise.
5479         (msp430_output_labelref): Remove whitespace before left square bracket.
5480         (msp430_print_operand_raw): Likewise.
5481         (msp430_print_operand_addr): Likewise.
5482         (msp430_print_operand): Add two spaces after '.' in comment.
5483         Fix trailing whitespace.
5484         (msp430x_extendhisi): Fix indentation.
5485         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
5486         tab.
5487         (PC_REGNUM): Likewise.
5488         (STACK_POINTER_REGNUM): Likewise.
5489         (CC_REGNUM): Likewise.
5491 2019-08-15  Richard Biener  <rguenther@suse.de>
5493         PR target/91454
5494         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
5495         helper.
5496         (general_scalar_chain::make_vector_copies): Use it.
5498 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5500         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
5502 2019-08-15  Martin Liska  <mliska@suse.cz>
5504         * tree-ssa-dce.c (propagate_necessity): We can't reach now
5505         operators with no arguments.
5506         (eliminate_unnecessary_stmts): Likewise here.
5508 2019-08-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5510         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
5511         <case COMPARE>: Revert 2019-08-14 change.
5512         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
5513         for (TARGET_64BIT || mode != DImode).
5515 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
5517         * tree-vrp.c (value_range_base::set): Merge in code from
5518         value_range_base::set_and_canonicalize.
5519         Enforce canonicalization at set time.
5520         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
5521         (value_range_base::set_undefined): Inline call to set().
5522         (value_range_base::set_varying): Same.
5523         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
5524         (vrp_val_max): New argument handle_pointers.
5525         (vrp_val_min): Same.
5526         (ranges_from_anti_range): Same.
5527         (extract_range_into_wide_ints): Use tree argument instead of sign
5528         and precision.
5529         (extract_range_from_multiplicative_op): Take in tree type instead
5530         of precision and sign.  Adapt function for canonicalized ranges.
5531         (extract_range_from_binary_expr): Pass type to
5532         extract_range_from_multiplicative_op.
5533         Adapt for canonicalized ranges.
5534         (extract_range_from_unary_expr): Same.
5535         (value_range_base::intersect_helper): Adjust for canonicalized
5536         ranges.
5537         (value_range_base::union_helper): Same.
5538         (value_range_base::normalize_symbolics): New.
5539         * tree-vrp.h (class value_range_base): Remove
5540         set_and_canonicalize.
5541         New prototype for normalize_symbolics.
5542         (class value_range): Remove set_and_canonicalize.
5543         (vrp_val_min): Adjust prototype.
5544         (vrp_val_max): Same.
5545         * vr-values.c
5546         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
5547         instead of set_and_canonicalize.
5549 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5551         PR middle-end/91444
5552         * tree-vect-stmts.c (vectorizable_call): Check that the function
5553         is a BUILT_IN_MD function before passing it to
5554         targetm.vectorize.builtin_md_vectorized_function.
5556 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5558         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
5559         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
5560         (aarch64_select_early_remat_modes): Use it.
5562 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5564         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
5565         16 for SVE predicates even if they are fixed-length.
5567 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5569         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
5570         operand order match the MOV /Z alias.
5572 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5574         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
5575         the vector pattern as an aarch64_svpattern argument.  Update the
5576         overloaded caller accordingly.
5577         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
5578         (aarch64_output_sve_vector_inc_dec): Likewise.
5580 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5582         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
5583         multiplication case, try to compute VG * (lowest set bit) directly
5584         rather than always basing the multiplication on VG.  Use
5585         expand_mult for the multiplication if we can.
5587 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5589         * config/aarch64/aarch64-protos.h
5590         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
5591         (aarch64_sve_inc_dec_immediate_p): Rename to...
5592         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5593         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
5594         (aarch64_output_sve_scalar_inc_dec): Declare.
5595         (aarch64_output_sve_inc_dec_immediate): Rename to...
5596         (aarch64_output_sve_vector_inc_dec): ...this.
5597         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
5598         (aarch64_output_sve_scalar_inc_dec): New functions.
5599         (aarch64_output_sve_addvl_addpl): Remove the base and offset
5600         arguments.  Only handle true ADDVL and ADDPL instructions;
5601         don't emit an INC or DEC.
5602         (aarch64_sve_inc_dec_immediate_p): Rename to...
5603         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5604         (aarch64_output_sve_inc_dec_immediate): Rename to...
5605         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
5606         aarch64_sve_vector_inc_dec_immediate_p.
5607         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
5608         (aarch64_sve_plus_immediate): New predicates.
5609         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
5610         rather than aarch64_sve_addvl_addpl_immediate.
5611         (aarch64_sve_inc_dec_immediate): Rename to...
5612         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
5613         aarch64_sve_vector_inc_dec_immediate_p.
5614         (aarch64_sve_add_operand): Update accordingly.
5615         * config/aarch64/constraints.md (Uai): New constraint.
5616         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
5617         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
5618         operand into a register if it satisfies aarch64_sve_plus_immediate.
5619         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
5620         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
5621         * config/aarch64/aarch64-sve.md (add<mode>3): Call
5622         aarch64_output_sve_vector_inc_dec instead of
5623         aarch64_output_sve_inc_dec_immediate.
5625 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5627         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
5628         (UNSPEC_REVW): New constants.
5629         (elem_bits): New mode attribute.
5630         (SVE_INT_UNARY): New int iterator.
5631         (optab): Handle UNSPEC_REV[BHW].
5632         (sve_int_op): New int attribute.
5633         (min_elem_bits): Handle VNx16QI and the predicate modes.
5634         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
5635         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
5636         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
5637         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
5638         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
5639         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
5640         unspecs based on the total width of the reversed data.
5641         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
5642         reinterpret followed by a subreg on big-endian targets.
5644 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5645             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5647         * config/aarch64/aarch64-sve.md
5648         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
5649         alternatives in which one of the inputs is in the same register
5650         as the output.
5652 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5654         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
5655         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
5657 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5659         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
5660         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
5662 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5663             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5665         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
5666         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
5667         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
5669 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5670             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5672         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
5673         Add an alternative that uses reversed shifts.
5675 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5677         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
5678         struct.
5680 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5682         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
5683         a commutativity marker.
5685 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5686             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5688         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
5689         (aarch64_prepare_sve_cond_int_fma): Declare.
5690         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
5691         (aarch64_prepare_sve_int_fma): New functions.
5692         (aarch64_prepare_sve_cond_int_fma): Likewise.
5693         * config/aarch64/aarch64-sve.md
5694         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
5695         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
5696         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
5697         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
5698         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
5699         (*madd<mode>): Rename to...
5700         (*fma<mode>4): ...this.
5701         (*msub<mode>): Rename to...
5702         (*fnma<mode>4): ...this.
5704 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5705             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5707         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
5708         Print 2.0 naturally.
5709         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
5710         * config/aarch64/predicates.md
5711         (aarch64_sve_float_negated_arith_immediate): New predicate,
5712         renamed from aarch64_sve_float_arith_with_sub_immediate.
5713         (aarch64_sve_float_arith_with_sub_immediate): Test for both
5714         positive and negative constants.
5715         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
5716         or an aarch64_sve_float_arith_with_sub_immediate.
5717         * config/aarch64/constraints.md (vsN): Use
5718         aarch64_sve_float_negated_arith_immediate.
5719         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
5720         iterator.
5721         (sve_pred_fp_rhs2_immediate): New int attribute.
5722         * config/aarch64/aarch64-sve.md
5723         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
5724         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
5725         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
5726         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
5727         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
5728         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
5730 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5731             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5733         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
5734         (*aarch64_cond_abd<SVE_F:mode>_3)
5735         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
5737 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5738             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5740         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
5741         (*aarch64_cond_<su>abd<mode>_any): New patterns.
5743 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5744             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5746         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
5747         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
5748         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
5749         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
5750         optabs.
5751         * optabs.h (create_convert_operand_from): Expand comment.
5752         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
5753         when mapping scalar rtxes to vector operands.
5754         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
5755         ashiftrt and lshiftrt.
5756         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
5757         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
5758         (*cond_<optab><mode>_any_const): New patterns.
5760 2019-08-15  Martin Liska  <mliska@suse.cz>
5762         PR ipa/91438
5763         * cgraph.c (cgraph_node::remove): When setting
5764         n->origin = NULL for all nested functions, reset
5765         also next_nested.
5767 2019-08-15  Martin Liska  <mliska@suse.cz>
5769         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
5770         and next_nested.
5772 2019-08-15  Martin Liska  <mliska@suse.cz>
5774         PR ipa/91404
5775         * passes.c (order): Remove.
5776         (uid_hash_t): Likewise).
5777         (remove_cgraph_node_from_order): Remove from set
5778         of pointers (cgraph_node *).
5779         (insert_cgraph_node_to_order): New.
5780         (duplicate_cgraph_node_to_order): New.
5781         (do_per_function_toporder): Register all 3 cgraph hooks.
5782         Skip removed_nodes now as we know about all of them.
5784 2019-08-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5786         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
5787         <case E_V8QImode>: Use vector_set path for
5788         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
5789         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
5790         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
5792 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5794         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
5796 2019-08-14  Martin Sebor  <msebor@redhat.com>
5798         PR tree-optimization/91294
5799         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
5800         source length as exact.
5802 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
5804         * doc/extend.texi: Add "noinit" attribute documentation.
5805         * doc/sourcebuild.texi: Add noinit effective target documentation.
5806         * varasm.c (default_section_type_flags): Add support for "noinit"
5807         section.
5808         (default_elf_select_section): Add support for "noinit" attribute.
5809         * config/msp430/msp430.c (msp430_attribute_table): Remove
5810         "noinit" entry.
5812 2019-08-14  Richard Biener  <rguenther@suse.de>
5813             UroÅ¡ Bizjak  <ubizjak@gmail.com>
5815         PR target/91154
5816         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
5817         mode arguments.
5818         (scalar_chain::smode): New member.
5819         (scalar_chain::vmode): Likewise.
5820         (dimode_scalar_chain): Rename to...
5821         (general_scalar_chain): ... this.
5822         (general_scalar_chain::general_scalar_chain): Take mode arguments.
5823         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
5824         base with TImode and V1TImode.
5825         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
5826         (general_scalar_chain::vector_const_cost): Adjust for SImode
5827         chains.
5828         (general_scalar_chain::compute_convert_gain): Likewise.  Add
5829         {S,U}{MIN,MAX} support.
5830         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
5831         (general_scalar_chain::make_vector_copies): Likewise.  Handle
5832         non-DImode chains appropriately.
5833         (general_scalar_chain::convert_reg): Likewise.
5834         (general_scalar_chain::convert_op): Likewise.
5835         (general_scalar_chain::convert_insn): Likewise.  Add
5836         fatal_insn_not_found if the result is not recognized.
5837         (convertible_comparison_p): Pass in the scalar mode and use that.
5838         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
5839         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
5840         (scalar_to_vector_candidate_p): Remove by inlining into single
5841         caller.
5842         (general_remove_non_convertible_regs): Rename from
5843         dimode_remove_non_convertible_regs.
5844         (remove_non_convertible_regs): Remove by inlining into single caller.
5845         (convert_scalars_to_vector): Handle SImode and DImode chains
5846         in addition to TImode chains.
5847         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
5848         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
5849         (*<maxmin>di3_doubleword): Likewise.
5851 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5852             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5854         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
5855         (*cond_bic<mode>_any): New patterns.
5857 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5859         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
5860         take the equivalent mask, as well as a bit count.
5861         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
5862         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
5863         (aarch64_sve_pred_and_operand): New predicates.
5864         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
5865         code attribute.
5866         * config/aarch64/aarch64-sve.md
5867         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
5868         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
5870 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5872         * config/aarch64/aarch64-sve.md
5873         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
5874         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
5875         New patterns.
5877 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5878             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5880         * config/aarch64/aarch64-sve.md
5881         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
5882         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
5884 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5885             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5887         * config/aarch64/aarch64-sve.md
5888         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
5889         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
5891 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5893         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
5894         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
5895         New pattern.
5897 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5898             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5900         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
5902 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5903             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
5905         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
5906         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
5907         (aarch64_print_operand): Add support for %I.
5908         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
5909         Bitcast floating-point constants to the corresponding integer constant.
5910         (aarch64_float_const_representable_p): Handle vectors as well
5911         as scalars.
5912         (aarch64_expand_sve_vcond): Make sure that the operands are valid
5913         for the new vcond_mask_<mode><vpred> expander.
5914         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
5915         test aarch64_float_const_representable_p.
5916         (aarch64_sve_reg_or_dup_imm): New predicate.
5917         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
5918         gen_vcond_mask_<mode><vpred> instead of
5919         gen_aarch64_sve_dup<mode>_const.
5920         (vcond_mask_<mode><vpred>): Turn into a define_expand that
5921         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
5922         for operands 1 and 2 respectively.  Force operand 2 into a
5923         register if operand 1 is a register.  Fold old define_insn...
5924         (aarch64_sve_dup<mode>_const): ...and this define_insn...
5925         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
5926         floating-point constants that can be moved as integers.  Add
5927         alternatives for MOV /M and FMOV /M.
5928         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
5929         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
5930         1 and 2 respectively.
5931         * config/aarch64/constraints.md (Ufc): Handle vectors as well
5932         as scalars.
5933         (vss): New constraint.
5935 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5937         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
5938         (aarch64_sve_float_maxmin_operand): New predicates.
5939         * config/aarch64/constraints.md (vsB): New constraint.
5940         (vsM): Fix typo.
5941         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
5942         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
5943         UNSPEC_COND_FMINNM.
5944         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
5945         Use aarch64_sve_float_maxmin_operand for operand 2.
5946         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
5947         Add alternatives for the constant forms.
5949 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5951         * config/aarch64/constraints.md (vsb): New constraint.
5952         (vsm): Generalize description.
5953         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
5954         iterator.
5955         (sve_imm_con): Handle smax, smin, umax and umin.
5956         (sve_imm_prefix): New code attribute.
5957         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
5958         (aarch64_sve_vsb_operand): New predicates.
5959         (aarch64_sve_mul_immediate): Rename to...
5960         (aarch64_sve_vsm_immediate): ...this.
5961         (aarch64_sve_mul_operand): Rename to...
5962         (aarch64_sve_vsm_operand): ...this.
5963         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
5964         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
5965         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
5966         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
5967         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
5968         add movprfx support for the immediate alternatives.
5969         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
5970         of the above.
5971         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
5972         for operand 3.
5974 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5976         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
5977         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
5978         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
5980 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5982         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
5983         (optab, sve_int_op): Handle them.
5984         * config/aarch64/aarch64-sve.md: Expand comment.
5986 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5988         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
5989         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
5990         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
5992 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
5994         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
5995         (aarch64_expand_sve_const_pred_trn): New functions.
5996         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
5997         use the above functions when the parameter is true.
5998         (aarch64_expand_sve_const_pred): Update call accordingly.
5999         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
6000         Rename to...
6001         (@aarch64_sve_<perm_insn><mode>): ...this.
6003 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6005         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
6006         Declare.
6007         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
6008         (aarch64_sve_emit_int_cmp): New functions.
6009         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
6010         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
6011         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
6012         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
6013         (UNSPEC_PRED_Z): New unspec.
6014         (set_clobber_cc_nzc): Delete.
6015         * config/aarch64/aarch64-sve.md: Add a block comment about
6016         UNSPEC_PRED_Z.
6017         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
6018         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
6019         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
6020         UNSPEC_MERGE_PTRUE.
6021         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
6022         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
6023         check for compatible predicates.
6024         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
6025         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
6026         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
6027         comparisons above.
6029 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6031         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
6032         * config/aarch64/aarch64-sve.md: Add a section describing it.
6033         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
6034         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
6035         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
6036         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
6037         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
6038         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
6039         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
6040         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
6041         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
6042         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
6043         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
6044         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
6045         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
6046         (aarch64_evpc_rev_local): Update accordingly.
6048 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6050         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
6051         iterators.
6052         (SVE_BHSI, SVE_SDI): Tweak comment.
6053         (SVE_HSDI): Likewise.  Fix definition.
6054         (SVE_SDF): New mode iterator.
6055         (elem_bits): New mode attribute.
6056         (SVE_COND_FCVT): New int iterator.
6057         * config/aarch64/aarch64-sve.md
6058         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
6059         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
6060         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
6061         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
6062         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6063         ...these new patterns.
6064         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
6065         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
6066         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
6067         Merge into...
6068         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
6069         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
6070         ...these new patterns.
6071         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
6072         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
6073         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
6074         ...this new pattern.
6075         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
6076         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
6077         ...this new pattern.
6078         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
6080 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6082         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
6083         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
6084         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
6085         unspecs.
6086         (optab, su): Handle them.
6087         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
6088         * config/aarch64/aarch64-sve.md
6089         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
6090         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
6091         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
6092         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
6093         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
6094         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
6095         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
6096         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
6097         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
6098         FIXUORS.
6099         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
6100         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
6101         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
6102         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
6103         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
6104         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
6105         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
6106         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
6107         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
6108         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
6109         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
6110         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
6111         of UNSPEC_FLOAT_CONVERT.
6112         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
6113         aarch64_sve_extend<mode><Vwide>2.
6115 2019-08-14  Richard Biener  <rguenther@suse.de>
6117         PR target/91154
6118         * config/i386/i386-features.c
6119         (dimode_scalar_chain::compute_convert_gain): Compute and dump
6120         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
6121         ix86_cost->sse_op for vector instruction costs.
6123 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6125         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
6126         (cmp_op): Handle it.
6127         (SVE_COND_FP_CMP): Rename to...
6128         (SVE_COND_FP_CMP_I0): ...this.
6129         (SVE_FP_CMP): Remove.
6130         * config/aarch64/aarch64-sve.md
6131         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
6132         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
6133         using unspecs to represent the comparison.
6134         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
6135         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
6136         accordingly.
6137         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
6138         (aarch64_unspec_cond_code): Move after integer code.  Handle
6139         UNORDERED.
6140         (aarch64_emit_sve_predicated_cond): Replace with...
6141         (aarch64_emit_sve_fp_cond): ...this new function.
6142         (aarch64_emit_sve_or_conds): Replace with...
6143         (aarch64_emit_sve_or_fp_conds): ...this new function.
6144         (aarch64_emit_sve_inverted_cond): Replace with...
6145         (aarch64_emit_sve_invert_fp_cond): ...this new function.
6146         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
6148 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6150         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
6151         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
6152         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
6153         SVE_HSD instead of SVE_SD.
6155 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6156             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6158         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
6159         iterator.
6160         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
6161         attributes.
6162         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
6163         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
6164         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
6165         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
6166         (*div<SVE_F:mode>3): Generalize to...
6167         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
6169 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6170             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6172         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
6173         constants.
6174         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
6175         predicate.
6176         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
6177         Declare.
6178         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
6179         function.
6180         * config/aarch64/aarch64-sve.md: Add a block comment about the
6181         handling of predicated FP operations.
6182         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
6183         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
6184         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6185         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
6186         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
6187         operand.
6188         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
6189         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
6190         operand.
6191         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
6192         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
6193         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
6194         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
6195         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
6196         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6197         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6198         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
6199         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
6200         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
6201         strictness operands.  Use aarch64_sve_pred_dominates_p to check
6202         whether the predicate on the conditional operation is suitable
6203         for merging.  Split patterns into the canonical equal-predicate form.
6204         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
6205         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
6207 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6208             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6210         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
6211         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
6212         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
6213         rtx codes.
6214         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
6215         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
6216         unspecs.
6218 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6219             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6221         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
6222         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
6223         actually has, rather than relying on REG_EQUAL notes.
6224         Make the insn operand order match the SVE operand order.
6225         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
6226         the SVE operand order.
6228 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6230         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
6231         (aarch64_emit_set_immediate): Likewise.
6232         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
6233         (aarch64_pfalse_reg): Likewise.
6234         (aarch64_convert_sve_data_to_pred): New function.
6235         (aarch64_sve_move_pred_via_while): Take an optional target register
6236         and the required register mode.
6237         (aarch64_expand_sve_const_pred_1): New function.
6238         (aarch64_expand_sve_const_pred): Likewise.
6239         (aarch64_expand_mov_immediate): Build an all-true predicate
6240         if the significant bits of the immediate are all true.  Use
6241         aarch64_expand_sve_const_pred for all compile-time predicate constants.
6242         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
6243         before register allocation.
6244         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
6245         a VNx16BI PTRUE when splitting the memory alternative.
6246         (vec_duplicate<mode>): Update accordingly.
6247         (*pred_cmp<cmp_op><mode>): Rename to...
6248         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
6250 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6252         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
6253         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
6254         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
6255         (UNSPEC_PTEST): New unspec.
6256         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
6257         * config/aarch64/iterators.md (data_bytes): New mode attribute.
6258         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
6259         * config/aarch64/aarch64-sve.md: Add a new section describing the
6260         handling of UNSPEC_PTEST.
6261         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
6262         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
6263         (ptest_ptrue<mode>): Replace with...
6264         (aarch64_ptest<mode>): ...this new pattern.
6265         (cbranch<mode>4): Update after above changes.
6266         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
6267         UNSPEC_PTEST_PTRUE.
6268         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
6269         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
6270         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
6272 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
6274         PR lto/91287
6275         * builtins.c (builtin_with_linkage_p): New function.
6276         * builtins.h (builtin_with_linkage_p): New function.
6277         * symtab.c (write_symbol): Remove redundant assert.
6278         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
6279         Remove FIXME and use builtin_with_linkage_p.
6281 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6283         PR middle-end/91421
6284         * tree-core.h (function_decl::function_code): Change type to
6285         unsigned int.
6286         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
6287         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
6288         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
6289         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
6290         is BUILT_IN_NORMAL.
6291         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
6292         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
6293         (fndecl_built_in_p): Change the type of the "name" argument to
6294         unsigned int.
6295         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
6296         after check for DECL_BUILT_IN_CLASS.
6297         * cgraphclones.c (build_function_decl_skip_args): Use
6298         set_decl_built_in_function.
6299         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
6300         * ipa-split.c (split_function): Likewise.
6301         * langhooks.c (add_builtin_function_common): Likewise.
6302         * omp-simd-clone.c (simd_clone_create): Likewise.
6303         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
6304         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
6305         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
6306         DECL_FUNCTION_CODE.
6307         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
6308         instead of DECL_FUNCTION_CODE.
6309         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
6310         instead of DECL_FUNCTION_CODE.
6311         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
6312         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
6313         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
6314         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
6315         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
6316         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
6317         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
6318         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
6319         (alpha_gimple_fold_builtin): Likewise.
6320         * config/arc/arc.c (arc_expand_builtin): Likewise.
6321         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
6322         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
6323         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
6324         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
6325         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
6326         * config/frv/frv.c (frv_expand_builtin): Likewise.
6327         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
6328         (gcn_expand_builtin): Likewise.
6329         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
6330         (fold_builtin_cpu): Likewise.
6331         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
6332         * config/i386/i386.c (ix86_fold_builtin): Likewise.
6333         (ix86_gimple_fold_builtin): Likewise.
6334         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
6335         (ia64_expand_builtin): Likewise.
6336         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
6337         * config/mips/mips.c (mips_expand_builtin): Likewise.
6338         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
6339         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6340         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
6341         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
6342         * config/pa/pa.c (pa_expand_builtin): Likewise.
6343         * config/pru/pru.c (pru_expand_builtin): Likewise.
6344         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
6345         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6346         Likewise.
6347         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
6348         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
6349         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
6350         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
6351         (rs6000_builtin_reciprocal): Likewise.
6352         * config/rx/rx.c (rx_expand_builtin): Likewise.
6353         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6354         * config/s390/s390.c (s390_expand_builtin): Likewise.
6355         * config/sh/sh.c (sh_expand_builtin): Likewise.
6356         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
6357         (sparc_fold_builtin): Likewise.
6358         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
6359         * config/spu/spu.c (spu_expand_builtin): Likewise.
6360         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
6361         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
6362         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
6363         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6364         (xtensa_expand_builtin): Likewise.
6366 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6368         PR middle-end/91421
6369         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
6370         before the DECL_FUNCTION_CODE.
6371         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
6372         to check for a BUILT_IN_ALLOCA call.
6373         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
6374         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
6375         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
6376         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6377         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
6378         for BUILT_IN_NORMAL functions.
6379         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
6380         test for BUILT_IN_TM_ABORT.
6381         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
6382         to check for a BUILT_IN_STACK_RESTORE call.
6383         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
6384         * tree-ssa-threadedge.c
6385         (record_temporary_equivalences_from_stmts_at_dest): Check for a
6386         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
6387         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
6388         test for a BUILT_IN_NORMAL call instead of a negative test for
6389         an internal function call.
6391 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6393         * tree.h (build_vector_a_then_b): Declare.
6394         * tree.c (build_vector_a_then_b): New function.
6395         * fold-const-call.c (fold_while_ult): Likewise.
6396         (fold_const_call): Use it to handle IFN_WHILE_ULT.
6397         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
6398         (aarch64_svpattern): New enum.
6399         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
6400         constants through aarch64_expand_mov_immediate.
6401         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
6402         than general_operand as the predicate for operand 1.
6403         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
6404         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
6405         insn_type.
6406         (simd_immediate_info::simd_immediate_info): New overload that
6407         takes a scalar_int_mode and an svpattern.
6408         (simd_immediate_info::u): Add a "pattern" field.
6409         (svpattern_token): New function.
6410         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
6411         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
6412         (aarch64_sve_move_pred_via_while): New functions.
6413         (aarch64_expand_mov_immediate): Try using
6414         aarch64_sve_move_pred_via_while for predicates that contain N ones
6415         followed by M zeros but that do not correspond to a VLnnn pattern.
6416         (aarch64_sve_pred_valid_immediate): New function.
6417         (aarch64_simd_valid_immediate): Use it instead of dealing directly
6418         with PTRUE and PFALSE.
6419         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
6420         forms.
6422 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
6424         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
6425         flag.
6426         (darwin_override_options): Likewise.
6427         * config/darwin.h: Likewise.
6428         * config/darwin.opt: Likewise.
6429         * config/i386/i386.c (output_pic_addr_const): Likewise.
6430         * config/rs6000/darwin.h: Likewise.
6431         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
6432         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
6433         ... this TARGET_MACHO_SYMBOL_STUBS.
6434         (FUNCTION_PROFILER):Likewise.
6435         * config/i386/i386.h: Likewise.
6437 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6439         * config/i386/i386-expand.c (ix86_expand_vector_extract)
6440         <case E_V2SImode>: Use vec_extr path for
6441         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6442         <case E_V8QImode>: Ditto.
6443         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
6444         Use SWI48 mode iterator.  Use %k to output operand 0.
6445         (*mmx_pextrw): New insn pattern.
6446         (*mmx_pextrb): Ditto.
6447         (*mmx_pextrb_zext): Ditto.
6449 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
6451         * target.def (libc_has_function, libc_has_fast_function): Improve
6452         documentation strings.
6453         * doc/tm.texi: Regenerate.
6455 2019-08-13  Caroline Tice  <cmtice@google.com>
6457         PR other/91396
6458         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
6459         vtv_end.o or vtv_end_preinit.o files if !static.
6461 2019-08-13  Olivier Hainque  <hainque@adacore.com>
6463         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
6465 2019-08-13  Olivier Hainque  <hainque@adacore.com>
6467         * rtlanal.c (tablejump_casesi_pattern): New function, to
6468         determine if a tablejump insn is a casesi dispatcher. Extracted
6469         from patch_jump_insn.
6470         * rtl.h (tablejump_casesi_pattern): Declare.
6471         * cfgrtl.c (patch_jump_insn): Use it.
6472         * dwarf2cfi.c (create_trace_edges): Use it.
6474 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
6476         PR target/81800
6477         * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
6478         operand is larger than a long int.
6480 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6482         * machmode.h (opt_mode::else_mode): New function.
6483         (opt_mode::else_blk): Use it.
6484         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
6485         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
6486         (aarch64_gen_stepped_int_parallel): Likewise.
6487         (aarch64_stepped_int_parallel_p): Likewise.
6488         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6489         argument.
6490         * config/aarch64/aarch64.c
6491         (aarch64_expand_sve_widened_duplicate): Delete.
6492         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
6493         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
6494         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6495         argument.  Use early returns in the !CONST_INT_P handling.
6496         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
6497         than handling some inline.
6498         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
6499         from...
6500         (aarch64_simd_container_mode): ...here.
6501         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
6502         (aarch64_sve_ld1rq_operand_p): New functions.
6503         * config/aarch64/predicates.md (descending_int_parallel)
6504         (aarch64_sve_ld1rq_operand): New predicates.
6505         * config/aarch64/constraints.md (UtQ): New constraint.
6506         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
6507         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
6508         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
6509         (@aarch64_sve_reinterpret<mode>): New expander.
6510         (*aarch64_sve_reinterpret<mode>): New pattern.
6511         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
6512         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
6513         (*sve_ld1rq<Vesize>): Replace with...
6514         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
6516 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
6518         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
6519         16:12.
6521 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6523         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
6524         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
6525         (msp430_check_path_for_devices): New.
6526         (parse_devices_csv_1): New.
6527         (parse_devices_csv): New.
6528         (msp430_extract_mcu_data): Try to find devices.csv and search for the
6529         MCU data in devices.csv before using the hard-coded data.
6530         Warn if devices.csv isn't found and the MCU wasn't found in the
6531         hard-coded data either.
6532         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
6533         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
6534         Search for devices.csv on -I and -L paths.
6535         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
6536         msp430_set_driver_var.
6537         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
6538         -mdevices-csv-loc=.
6539         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
6540         searched for devices.csv.
6541         (mwarn-devices-csv): Document option.
6543 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6545         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
6546         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
6547         Use a single Dn alternative instead of separate Dz and Dm
6548         alternatives.  Use aarch64_output_sve_move_immediate.
6549         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
6550         function.
6551         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
6552         for predicates too.
6553         (aarch64_output_sve_mov_immediate): Handle predicate modes.
6554         (aarch64_output_ptrue): Delete.
6556 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6558         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
6559         INDEX.
6560         (simd_immediate_info::value, simd_immediate_info::step)
6561         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
6562         with...
6563         (simd_immediate_info::u): ...this new union.
6564         (simd_immediate_info::simd_immediate_info): Update accordingly.
6565         (aarch64_output_simd_mov_immediate): Likewise.
6566         (aarch64_output_sve_mov_immediate): Likewise.
6568 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
6570         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
6571         extra_gcc_objs.
6572         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
6573         (msp430_select_cpu): New spec function.
6574         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
6575         MCU data.
6576         * config/msp430/msp430-devices.c: New file.
6577         * config/msp430/msp430-devices.h: New file.
6578         * config/msp430/msp430.c: Remove msp430_mcu_data.
6579         (msp430_option_override): Use msp430_extract_mcu_data to extract
6580         MCU data.
6581         (msp430_use_f5_series_hwmult): Likewise.
6582         (use_32bit_hwmult): Likewise.
6583         (msp430_no_hwmult): Likewise.
6584         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
6585         assembler.
6586         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
6587         and -mcpu option.
6588         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
6589         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
6590         Remove hard-coded MCU multilib data.
6592 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6594         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
6595         based on the mode instead of testing properties of it.
6597 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6599         * doc/md.texi: Document the x and y constraints for AArch64.
6600         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
6601         (FP_LO8_REGS): New reg_class.
6602         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
6603         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
6604         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
6605         * config/aarch64/predicates.md (aarch64_simd_register): Use
6606         FP_REGNUM_P instead of checking the classes manually.
6607         * config/aarch64/constraints.md (y): New constraint.
6609 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6611         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
6612         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
6613         * config/aarch64/aarch64-simd.md
6614         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
6615         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
6616         from the asm template.
6617         * config/aarch64/aarch64-sve.md
6618         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
6619         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
6620         from the asm template.
6621         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
6622         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
6623         from the asm template.
6624         * config/aarch64/aarch64-simd-builtins.def: Update comment.
6626 2019-08-13  Martin Liska  <mliska@suse.cz>
6628         * value-prof.c (gimple_ic_transform): Add new line.
6629         Print details with MSG_NOTE.
6631 2019-08-13  Martin Liska  <mliska@suse.cz>
6633         * doc/invoke.texi: Document automatic detection of jobserver.
6634         * lto-wrapper.c (run_gcc): Detect jobserver always.
6636 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6638         * config/i386/i386-expand.c (ix86_expand_vector_set)
6639         <case E_V2SImode>: Use vec_merge path for
6640         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6641         <case E_V8QImode>: Ditto.
6642         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
6643         (*mmx_pinsrb): Ditto.
6645 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
6647         PR target/83250
6648         PR target/91340
6649         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
6650         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
6651         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
6652         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
6653         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
6655 2019-08-12  Richard Biener  <rguenther@suse.de>
6657         PR lto/91375
6658         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
6659         flag_devirtualize.
6661 2019-08-12  Richard Biener  <rguenther@suse.de>
6663         PR driver/91130
6664         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
6665         lang_mask option, always use CL_DRIVER.
6666         (get_options_from_collect_gcc_options): Adjust.
6667         (find_and_merge_options): Likewise.
6668         (run_gcc): Likewise.
6670 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6672         * ipa-predicate.c (add_condition): Restore inverted test.
6674 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
6676         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
6677         (enum omp_clause_device_type_kind): New enum.
6678         (struct tree_omp_clause): Add subcode.device_type_kind.
6679         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
6680         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
6681         for device_type clause.
6682         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
6683         * tree-pretty-print.c (dump_omp_clause): Likewise.
6685         PR target/91408
6686         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
6687         vector_operand.
6689 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
6691         * reload1.c (finish_spills): Do not check ira_conflicts_p when
6692         handling spilled pseudos.
6694 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
6696         PR target/91386
6697         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
6698         to preserve the contents of the original insns.
6700 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
6702         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
6703         (addsi3_compare_op2): Likewise.
6705 2019-08-09  Martin Liska  <mliska@suse.cz>
6707         * alias.c (alias_ptr_types_compatible_p): Strengten
6708         type comparison in LTO mode.
6710 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
6712         PR middle-end/90313
6713         * tree-tailcall.c (find_tail_calls): Reject calls that might
6714         read from an escaped RESULT_DECL.
6716 2019-08-09  Martin Liska  <mliska@suse.cz>
6718         * doc/invoke.texi: Document the option value.
6719         * lto-wrapper.c (run_gcc): Set auto_parallel
6720         only with -flto=auto.
6722 2019-08-09  Martin Liska  <mliska@suse.cz>
6724         * opts.c (common_handle_option): Error for an invalid argument
6725         to -flto=.
6727 2019-08-09  Martin Liska  <mliska@suse.cz>
6729         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
6730         use dump_printf to report optimization.
6731         (sem_variable::merge): Likwise.
6732         (sem_item_optimizer::merge_classes): Use dump_printf to report
6733         ICF hits.
6735 2019-08-09  Martin Liska  <mliska@suse.cz>
6737         * value-prof.c (gimple_divmod_fixed_value_transform):
6738         Use dump_printf_loc.
6739         (gimple_mod_pow2_value_transform): Likewise.
6740         (gimple_mod_subtract_transform): Likewise.
6741         (init_node_map): Likewise.
6742         (gimple_ic_transform): Likewise.
6743         (gimple_stringops_transform): Likewise.
6745 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
6747         * doc/extend.texi: Add const qualifier to ld intrinsics.
6749 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
6751         * config/rs6000/dfp.md (D64_D128): Rename to ...
6752         (DDTD): ... this, throughout.
6753         (dfp_suffix): Rename to ...
6754         (q): ... this, throughout.
6756 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
6758         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
6759         (dfp_suffix): Ditto.
6760         (adddd3, addtd3): Merge to ...
6761         (add<mode>3 for D64_D128): ... this.
6762         (subdd3, subtd3): Merge to ...
6763         (sub<mode>3 for D64_D128): ... this.
6764         (muldd3, multd3): Merge to ...
6765         (mul<mode>3 for D64_D128): ... this.
6766         (divdd3, divtd3): Merge to ...
6767         (div<mode>3 for D64_D128): ... this.
6768         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
6769         (*cmp<mode>_internal1 for D64_D128): ... this.
6770         (ftruncdd2, ftrunctd2): Merge to ...
6771         (ftrunc<mode>2 for D64_D128): ... this.
6772         (fixdddi2, fixtddi2): Merge to ...
6773         (fix<mode>di2 for D64_D128): ... this.
6775 2019-08-08  Jim Wilson  <jimw@sifive.com>
6777         PR target/91229
6778         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
6779         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
6780         Pass into recursive call.
6781         (riscv_flatten_aggregate_argument): New arg.  Pass to
6782         riscv_flatten_aggregate_field.
6783         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
6784         riscv_flatten_aggregate_argument twice, with false and true as last
6785         arg.  Process result twice.  Compare results and warn if different.
6786         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
6788 2019-08-08  Martin Liska  <mliska@suse.cz>
6790         PR bootstrap/91352
6791         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
6792         * lto-wrapper.c (jobserver_active_p): Likewise.
6794 2019-08-08  Martin Liska  <mliska@suse.cz>
6796         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
6797         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
6798         (create_version_clone_with_body): Likewise.
6800 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
6802         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
6803         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
6804         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
6805         GOVD_EXPLICIT flags.
6806         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
6807         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
6808         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
6809         call install_var_field with mask 11 instead of 3.
6810         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
6811         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
6813 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6815         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
6816         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
6818 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6820         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
6821         MOVPRFX alternatives.  Make the GPR alternatives more expensive
6822         than the FPR ones.
6824 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6826         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
6827         Disparage the GPR alternative relative to the FPR one.
6828         Fix handling of 8-bit and 16-bit FPR values.
6830 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6832         * config/aarch64/iterators.md (BITWISEV): Delete.
6833         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
6834         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
6835         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
6836         UNSPEC_FMINNMV, UNSPEC_FMINV.
6837         (bit_reduc_op): Delete.
6838         (sve_int_op): New int attribute.
6839         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
6840         UNSPEC_FMINNMV, UNSPEC_FMINV.
6841         * config/aarch64/aarch64-sve.md
6842         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
6843         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
6844         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
6845         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
6846         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
6847         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
6848         new patterns.
6849         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
6850         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
6851         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
6852         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
6853         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
6854         new patterns.
6856 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6858         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
6859         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
6860         (fms<mode>4, *fms<mode>4): Replace with...
6861         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6862         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
6863         Use unspecs instead of rtx codes.
6864         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
6865         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
6867 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6869         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
6870         int iterator.
6871         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
6872         * config/aarch64/aarch64-sve.md
6873         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
6874         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
6875         use a single unspec for the rhs.
6876         (*<su><maxmin><mode>3): Delete.
6877         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
6879 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6881         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
6882         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
6883         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
6884         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
6885         (optab, sve_fp_op): Handle them.
6886         (SVE_FP_UNARY): Delete.
6887         (optab): Remove sqrt entry.
6888         (sve_fp_op): Remove neg, abs and sqrt entries.
6889         (SVE_COND_FP_UNARY): New int iterator.
6890         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
6891         (*<frint_pattern><mode>2): Delete.
6892         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
6893         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
6894         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
6895         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
6897 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6899         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
6901 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6903         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
6904         (UNSPEC_COND_FADD): ...this.
6905         (UNSPEC_COND_SUB): Rename to...
6906         (UNSPEC_COND_FSUB): ...this.
6907         (UNSPEC_COND_MUL): Rename to...
6908         (UNSPEC_COND_FMUL): ...this.
6909         (UNSPEC_COND_DIV): Rename to...
6910         (UNSPEC_COND_FDIV): ...this.
6911         (UNSPEC_COND_MAX): Rename to...
6912         (UNSPEC_COND_FMAXNM): ...this.
6913         (UNSPEC_COND_MIN): Rename to...
6914         (UNSPEC_COND_FMINNM): ...this.
6915         (UNSPEC_COND_LT): Rename to...
6916         (UNSPEC_COND_FCMLT): ...this.
6917         (UNSPEC_COND_LE): Rename to...
6918         (UNSPEC_COND_FCMLE): ...this.
6919         (UNSPEC_COND_EQ): Rename to...
6920         (UNSPEC_COND_FCMEQ): ...this.
6921         (UNSPEC_COND_NE): Rename to...
6922         (UNSPEC_COND_FCMNE): ...this.
6923         (UNSPEC_COND_GE): Rename to...
6924         (UNSPEC_COND_FCMGE): ...this.
6925         (UNSPEC_COND_GT): Rename to...
6926         (UNSPEC_COND_FCMGT): ...this.
6927         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
6928         (sve_fp_op_rev): Update accordingly.
6929         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
6931 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6933         * config/aarch64/aarch64-sve.md: Reorganize contents and add
6934         banner comments.
6935         * config/aarch64/check-sve-md.awk: New file.
6936         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
6937         (insn-conditions.md): Depend on it.
6939 2019-08-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6941         PR target/91385
6942         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
6943         (*negsi2_cmpz_zext): Ditto.
6945 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6947         * config/aarch64/iterators.md (commutative): Remove.
6949 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
6951         PR driver/91130
6952         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
6953         processing COLLECT_GCC_OPTIONS.
6954         (run_gcc): Likewise.
6956 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6958         PR tree-optimization/91109
6959         * lra-remat.c (update_scratch_ops): Remove assignment of the
6960         hard register.
6962 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
6964         * data-streamer.h (streamer_write_poly_uint64): Declare.
6965         (streamer_read_poly_uint64): Likewise.
6966         * data-streamer-in.c (streamer_read_poly_uint64): New function.
6967         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
6968         * ipa-predicate.h (condition::size): Turn into a poly_int64.
6969         (add_condition): Take a poly_int64 size.
6970         * ipa-predicate.c (add_condition): Likewise.
6971         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
6972         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
6973         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
6974         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
6975         condition::size as a poly_int64.
6976         (unmodified_parm_1): Take a poly_int64 size pointer.
6977         (unmodified_parm): Likewise.
6978         (unmodified_parm_or_parm_agg_item): Likewise.
6979         (set_cond_stmt_execution_predicate): Update accordingly.
6980         (set_switch_stmt_execution_predicate): Likewise.
6981         (will_be_nonconstant_expr_predicate): Likewise.
6982         (will_be_nonconstant_predicate): Likewise.
6983         (inline_read_section): Stream condition::size as a poly_int.
6984         (ipa_fn_summary_write): Likewise.
6986 2019-08-07  Martin Liska  <mliska@suse.cz>
6988         * fold-const.c (twoval_comparison_p): Replace int
6989         with bool as a return type.
6990         (simple_operand_p): Likewise.
6991         (operand_equal_p): Replace int with bool as a return type.
6992         * fold-const.h (operand_equal_p): Likewise.
6994 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
6996         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
6997         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
6998         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
6999         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
7000         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
7001         * tree-pretty-print.c (dump_omp_clause): Likewise.
7002         * tree-nested.c (convert_nonlocal_omp_clauses,
7003         convert_local_omp_clauses): Likewise.
7004         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
7005         Likewise.
7006         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
7007         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
7008         clause with array or reference to array types, no matter what type
7009         except for reference it has.
7011 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
7013         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
7015 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
7017         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
7018         (arch_canonicalize): Support rv32g and rv64g and fix error
7019         handling.
7021 2019-08-06  Martin Liska  <mliska@suse.cz>
7023         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
7024         and DECL_IS_OPERATOR_DELETE_P.
7026 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
7028         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
7029         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
7030         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
7031         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
7032         (gimplify_omp_for): Don't do C++ random access iterator clause
7033         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
7034         don't predetermine the artificial iterator in case of C++ random
7035         access iterators as lastprivate, but private.  For OMP_LOOP, force
7036         bind expr around simd body and force for_pre_body before the
7037         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
7038         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
7039         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
7040         diff var of C++ random access iterators.  Handle
7041         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
7042         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
7043         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
7044         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
7045         * omp-low.c (lower_rec_input_clauses): For
7046         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
7047         variables instead of default constructing them.
7048         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
7049         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
7050         is_taskloop_ctx check from the assert to the guarding condition.
7052 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
7054         * config/riscv/multilib-generator: (canonical_order): New.
7055         (arch_canonicalize): Dito.
7056         Apply arch_canonicalize for alts.
7058 2019-08-05  Martin Sebor  <msebor@redhat.com>
7060         * doc/extend.texi (Common Variable Attributes): Document alias
7061         attribute.
7063 2019-08-05  Marek Polacek  <polacek@redhat.com>
7065         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
7066         * doc/invoke.texi: Document -Wcomma-subscript.
7068 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7070         * tree-core.h (tree_function_decl): Make function_code an
7071         independent field.  Group the remaining bitfields into bytes
7072         and move decl_type so that it contines to be at a byte boundary.
7073         Leave 12 bits for future expansion.
7075 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7077         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
7078         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
7079         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
7080         IFN_MASK_STORE.
7082 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7084         * gimple.h (gimple_move_vops): Declare.
7085         * gimple.c (gimple_move_vops): New function
7086         * gimple-fold.c (replace_call_with_call_and_fold)
7087         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
7088         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
7089         (gimple_fold_call): Use it.
7090         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
7091         * tree-call-cdce.c (use_internal_fn): Likewise.
7092         * tree-if-conv.c (predicate_load_or_store): Likewise.
7093         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7094         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7095         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
7096         (update_call_from_tree): Likewise.
7097         * tree-vect-stmts.c (vectorizable_load): Likewise.
7098         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
7100 2019-08-05  Martin Liska  <mliska@suse.cz>
7102         PR c++/91334
7103         * tree-ssa-dce.c (propagate_necessity): Handle new operators
7104         with not arguments.
7105         (eliminate_unnecessary_stmts): Likewise.
7107 2019-08-05  Richard Biener  <rguenther@suse.de>
7109         PR middle-end/91169
7110         * fold-const.c (get_array_ctor_element_at_index): Create
7111         offset_ints according to the sign of the index type and treat
7112         that as signed if it is obviously so.
7114 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
7116         PR target/91341
7117         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
7118         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
7119         _mm256_storeu2_m128i): New function.
7121 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
7123         * config/riscv/riscv.c (riscv_promote_function_mode): New.
7124         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
7126 2019-08-05  Alan Modra  <amodra@gmail.com>
7128         PR target/91349
7129         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
7130         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
7132 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
7134         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
7135         bug that was fixed in Tcl 8.6.1.
7137 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
7139         * config/rs6000/future.md: New file.
7140         * config/rs6000/rs6000.md: Include future.md.
7141         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
7143 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7145         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
7146         check to use targetm.slow_unaligned_access instead.
7148         * function.c (assign_param_data_one): Remove unused data members.
7150 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
7152         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
7153         build_distinct_type_copy.
7154         (simd_clone_adjust_argument_types): Ditto.
7155         (simd_clone_adjust): Call build_distinct_type_copy here.
7156         (expand_simd_clones): Ditto.
7158 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7160         PR target/91201
7161         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
7163 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
7165         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
7166         from 'const void *'.
7167         (sort_locs_in_loop_postorder_cmp): Likewise.
7169 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
7171         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
7172         (hot-bb-count-ws-permille): Likewise.
7173         (hot-bb-frequency-fraction): Likewise.
7174         (unlikely-bb-count-fraction): Likewise.
7175         * params.def (hot-bb-count-fraction): Rework description.
7176         (hot-bb-count-ws-permille): Likewise.
7177         (hot-bb-frequency-fraction): Likewise.
7178         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
7179         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
7181 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7183         PR target/91323
7184         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
7185         Return false.
7187 2019-08-02  Richard Biener  <rguenther@suse.de>
7189         * vec.h (vec::sort): Add gcc_qsort_r support.
7190         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
7191         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
7192         to gcc_qsort_r style callback.
7193         (sort_locs_in_loop_postorder_cmp): Likewise.
7194         (analyze_memory_references): Use gcc_sort_r interfaces.
7195         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
7197 2019-08-02  Martin Liska  <mliska@suse.cz>
7199         PR lto/91313
7200         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
7201         to detect working job server.
7202         (driver::detect_jobserver): Test whether jobserver
7203         is active from GCC driver. That will prevent situation where
7204         GCC is invoked from a LD plugin and the linker already uses
7205         file descriptors suggested by make.  That leads to a wrong
7206         detection.
7207         * gcc.h (driver): Add detect_jobserver.
7208         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
7209         not scanning for --jobserver-auth prefix.
7211 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
7213         PR tree-optimization/91201
7214         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
7215         V16QImode extraction without sse4.1 try to use V4SImode lowpart
7216         extraction.
7218 2019-08-01  Martin Sebor  <msebor@redhat.com>
7220         PR c++/90947
7221         * tree.c (type_initializer_zero_p): Define.
7222         * tree.h (type_initializer_zero_p): New function.
7224 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
7226         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
7228 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
7230         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
7231         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
7232         * predict.c (maybe_hot_count_p): Likewise.
7233         (maybe_hot_bb_p): Tweak comment.
7234         (maybe_hot_edge_p): Likewise.
7235         (probably_never_executed): Likewise.  Minor tweak.
7236         (probably_never_executed_bb_p): Likewise.
7237         (unlikely_executed_edge_p): Likewise.
7238         (probably_never_executed_edge_p): Likewise.
7239         (optimize_function_for_size_p): Likewise.
7240         (optimize_function_for_speed_p): Likewise.
7241         (function_optimization_type): Likewise.
7242         (optimize_bb_for_size_p): Likewise.
7243         (optimize_bb_for_speed_p): Likewise.
7244         (bb_optimization_type): Likewise.
7245         (optimize_edge_for_size_p): Likewise.
7246         (optimize_edge_for_speed_p): Likewise.
7247         (optimize_insn_for_size_p): Likewise.
7248         (optimize_insn_for_speed_p): Likewise.
7249         (optimize_loop_for_size_p): Likewise.
7250         (optimize_loop_for_speed_p): Likewise.
7251         (optimize_loop_nest_for_speed_p): Likewise.
7252         (optimize_loop_nest_for_size_p): Likewise.
7253         (predictable_edge_p): Likewise.
7254         (handle_missing_profiles): Minor tweak.
7256 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
7258         * config/rs6000/predicates.md (pcrel_external_address): Update
7259         comment.
7261 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7263         PR target/85693
7264         * config/i386/mmx.md (usadv8qi): New expander.
7266 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
7268         PR c++/90590
7269         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
7270         with reserved names that are in a system header.
7272 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7274         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
7275         (*vec_extractv2si_0_zext_sse4): New insn pattern.
7276         (*vec_extractv2si_0_zext): Ditto.
7277         (*vec_extractv2si_1): Add (rm,x) alternative.
7278         (*vec_extractv2si_1_zext): New insn pattern.
7279         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
7280         insn constraint.
7282 2019-08-01  Richard Biener  <rguenther@suse.de>
7284         * domwalk.c (bb_postorder): Remove static variable.
7285         (cmp_bb_postorder): Adjust.
7286         (sort_bbs_postorder): Adjust and use gcc_sort_r.
7287         (dom_walker::walk): Adjust.
7289 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
7291         * sort.cc (sort_r_ctx): New struct.
7292         (reorder23): Make templated on context type.
7293         (reorder45): Ditto.
7294         (cmp1): Ditto.  Adjust signature.
7295         (netsort): Ditto.
7296         (mergesort): Ditto.
7297         [CHECKING_P] (cmp2to3): New static function.  Use it...
7298         (gcc_qsort) [CHECKING_P]: ...here.
7299         (gcc_sort_r): New function.
7300         * system.h (sort_r_cmp_fn): New function typedef.
7301         (qsort_chk): Adjust signature.
7302         (gcc_sort_r): Declare.
7303         * vec.c (qsort_chk_error): Adjust.
7304         (qsort_chk): Adjust.
7306 2019-08-01  Richard Biener  <rguenther@suse.de>
7308         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
7309         (compute_antic): Localize it here.
7311 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
7313         * common/config/riscv/riscv-common.c: Check -march string ends
7314         with null.
7316 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
7318         * ipa-devirt.c (type_warning_cmp): Make static.
7319         (decl_warning_cmp): Ditto.
7321 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
7323         PR target/91050
7324         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
7325         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
7326         use of deleted rs6000_dejagnu_cpu_index variable.
7327         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
7328         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7329         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
7330         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
7331         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
7332         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7334 2019-07-31  Richard Biener  <rguenther@suse.de>
7336         PR tree-optimization/91280
7337         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7338         Decompose MEM_REF manually for offset handling.
7340 2019-07-31  Richard Biener  <rguenther@suse.de>
7342         PR tree-optimization/91293
7343         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
7344         of reduction stmts.
7346 2019-07-31  Matt Thomas  <matt@3am-software.com>
7347             Nick Hudson  <nick@nthcliff.demon.co.uk>
7348             Matthew Green  <mrg@eterna.com.au>
7349             Maya Rashish  <coypu@sdf.org>
7351         * config.gcc (hppa*-*-netbsd*): New target.
7352         * config/pa/pa-netbsd.h: New file.
7353         * config/pa/pa32-netbsd.h: New file.
7355 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
7357         PR tree-optimization/91201
7358         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
7360 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
7362         * config/gcn/gcn-valu.md
7363         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
7364         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
7365         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
7366         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
7367         struct ilist. Add nops for delayeduse insns.
7368         * config/gcn/gcn.md (delayeduse): New attribute.
7369         (*movbi): Remove s_waitcnt from stores.
7370         (*mov<mode>_insn): Likewise.
7371         (*movti_insn): Likewise. Add delayeduse attribute.
7372         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
7373         (atomic_store<mode>): Remove or adjust s_waitcnt.
7375 2019-07-31  Richard Biener  <rguenther@suse.de>
7377         * vr-values.h (vr_values::swap_vr_value): New.
7378         (vr_values::free_value_range): likewise.
7379         * vr-values.c (vr_values::swap_vr_value): Implement.
7380         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
7381         Do not return a range or take a var.
7382         (evrp_range_analyzer::stack): Change back to recording a non-const
7383         value_range *.
7384         * gimple-ssa-evrp-analyze.c
7385         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
7386         value-range.
7387         (evrp_range_analyzer::pop_to_marker): Adjust.
7388         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
7389         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
7390         no longer needed value-range.
7392 2019-07-31  Martin Liska  <mliska@suse.cz>
7394         * tree-ssa-dce.c (propagate_necessity): Delete operator can
7395         have size and (or) alignment as 2nd and later arguments.
7396         Mark all of them as necessary.
7398 2019-07-31  Richard Biener  <rguenther@suse.de>
7400         PR tree-optimization/91178
7401         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7402         Use tail-recursion.
7404 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
7406         PR tree-optimization/91201
7407         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
7408         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
7409         TARGET_AVX512F.
7410         (reduc_plus_scal_<mode>): Improve formatting by introducing
7411         a temporary.
7413 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
7415         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
7416         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
7417         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
7418         (aarch64_init_tme_builtins): New.
7419         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
7420         (aarch64_expand_builtin_tme): New.
7421         (aarch64_expand_builtin): Handle TME builtins.
7422         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7423         __ARM_FEATURE_TME when enabled.
7424         * config/aarch64/aarch64-option-extensions.def: Add "tme".
7425         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
7426         (TARGET_TME): New.
7427         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
7428         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
7429         UNSPECV_TCANCEL.
7430         (tstart, ttest, tcommit, tcancel): New instructions.
7431         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
7432         (__tcancel, __ttest): New.
7433         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
7434         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
7435         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
7436         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
7437         * config/arm/types.md: Add new tme type attr.
7438         * doc/invoke.texi: Document "tme".
7440 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
7442         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
7443         warn_unused_result attribute.
7444         (cmse_check_address_range): Add warn_unused_result attribute.
7446 2019-07-31  Richard Biener  <rguenther@suse.de>
7448         PR tree-optimization/91257
7449         * tree-vrp.c (union_ranges): Unify equality and less tests
7450         by using compare_values.  Re-order cheap tests first.
7452 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
7454         PR middle-end/91301
7455         * gimplify.c (gimplify_omp_for): If for class iterator on
7456         distribute parallel for there is no data sharing clause
7457         on inner_for_stmt, look for private clause on combined
7458         parallel too and if found, move it to inner_for_stmt.
7460 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
7462         * lra-int.h (lra_operand_data): Remove early_clobber field.
7463         (lra_insn_reg): Likewise.
7464         * lra.c (debug_operand_data): Update accordingly.
7465         (setup_operand_alternative): Likewise.
7466         (new_insn_reg): Likewise.  Remove early_clobber parameter.
7467         (collect_non_operand_hard_regs): Update call accordingly.
7468         Don't assign to lra_insn_reg::early_clobber.
7469         (add_regs_to_insn_regno_info): Remove early_clobber parameter
7470         and update calls to new_insn_reg.
7471         (lra_update_insn_regno_info): Update calls accordingly.
7472         * lra-constraints.c (update_and_check_small_class_inputs): Take the
7473         alternative number as a parameter and test whether the operand
7474         is earlyclobbered in that particular alternative.
7475         (process_alt_operands): Update call accordingly.  Use per-alternative
7476         checks for earyclobber here too.
7477         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
7478         against zero for IRA_UNKNOWN_ALT.
7480 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7482         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
7484 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
7486         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
7487         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7489 2019-07-30  Martin Liska  <mliska@suse.cz>
7491         PR ipa/89330
7492         * cgraph.c (cgraph_edge::make_direct): Use
7493         edge->indirect_unknown_callee as edge->resolve_speculation can
7494         deallocate edge which is this pointer.
7496 2019-07-30  Richard Biener  <rguenther@suse.de>
7498         PR tree-optimization/91257
7499         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
7501 2019-07-30  Martin Liska  <mliska@suse.cz>
7503         * doc/invoke.texi: Document new behavior.
7504         * lto-wrapper.c (cpuset_popcount): New function
7505         is a copy of libgomp/config/linux/proc.c.
7506         (init_num_threads): Likewise.
7507         (run_gcc): Automatically detect core count for -flto.
7508         (jobserver_active_p): New function.
7510 2019-07-30  Richard Biener  <rguenther@suse.de>
7512         PR tree-optimization/91257
7513         * bitmap.h (bitmap_ior_into_and_free): Declare.
7514         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
7515         whether to add the unliked element to the freelist.
7516         (bitmap_list_insert_element_after): Add defaulted param for
7517         an already allocated element.
7518         (bitmap_ior_into_and_free): New function.
7519         * tree-ssa-structalias.c (condense_visit): Reduce the
7520         ponts-to and edge bitmaps of the SCC members in a
7521         logarithmic fashion rather than all to one.
7523 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
7525         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
7526         parameter.  When nonnull, make sure that the addition or subtraction
7527         has the same condition.
7528         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
7529         for CFN_COND_MUL too.
7531 2019-07-30  Richard Biener  <rguenther@suse.de>
7533         PR tree-optimization/91291
7534         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
7535         constant values.
7537 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
7539         PR middle-end/91216
7540         * omp-low.c (global_nonaddressable_vars): New variable.
7541         (use_pointer_for_field): For global decls, if they are non-addressable,
7542         remember it in the global_nonaddressable_vars bitmap, if they are
7543         addressable and in the global_nonaddressable_vars bitmap, ignore their
7544         TREE_ADDRESSABLE bit.
7545         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
7546         vars in global_nonaddressable_vars bitmap.
7547         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
7549         PR target/91150
7550         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
7551         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
7552         comparison to unsigned HOST_WIDE_INT before shifting it left.
7554 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7556         * config/i386/i386.md (movstrict<mode>): Use register_operand
7557         predicate for operand 0.  Add expander condition.  Assert that
7558         operand 0 is a SUBREG RTX.
7559         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
7560         Update operand constraints and insn condition.
7561         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
7562         (zero_extendqihi2_and): Do not call gen_movstrictqi.
7563         (*setcc_qi_slp): Use register_operand predicate for operand 0.
7564         Update operand 0 constraints.
7565         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
7567 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7569         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
7570         when -m{code,data}-region are used without -mlarge.
7571         * config/msp430/msp430.c (msp430_option_override): Error when a
7572         non-default code or data region is used without -mlarge.
7573         (msp430_section_attr): Emit a warning and do not add upper/lower/either
7574         attributes when they are used without -mlarge.
7576 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7578         PR target/70320
7579         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
7581 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
7583         PR middle-end/91242
7584         * wide-int.h (generic_wide_int::sext_elt): New function.
7585         * inchash.h (hash::add_wide_int): Use it instead of elt.
7587 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7589         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
7590         CODE_FOR_arm_##.
7591         * config/arm/arm.md (<crc_variant>): Rename to...
7592         (arm_<crc_variant>): ... This.
7593         (<cdp>): Rename to...
7594         (arm_<cdp>): ... This.
7595         (<ldc>): Rename to...
7596         (arm_<ldc>): ... This.
7597         (<stc>): Rename to...
7598         (arm_<stc>): ... This.
7599         (<mcr>): Rename to...
7600         (arm_<mcr>): ... This.
7601         (<mrc>): Rename to...
7602         (arm_<mrc>): ... This.
7603         (<mcrr>): Rename to...
7604         (arm_<mcrr>): ... This.
7605         (<mrrc>): Rename to...
7606         (arm_<mrrc>): ... This.
7608 2019-07-29  Richard Biener  <rguenther@suse.de>
7610         PR tree-optimization/91257
7611         * tree-ssa-sccvn.h (struct vn_avail): New.
7612         (struct vn_ssa_aux): Add avail member.
7613         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
7614         member, add m_avail_freelist one.
7615         (rpo_elim::~rpo_elim): Remove.
7616         (rpo_elim::eliminate_avail): Adjust to new avail tracking
7617         data structure.
7618         (rpo_elim::eliminate_push_avail): Likewise.
7619         (do_unwind): Likewise.
7620         (do_rpo_vn): Likewise.
7622 2019-07-29  Richard Biener  <rguenther@suse.de>
7624         PR tree-optimization/91257
7625         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
7626         most cases, instead call compare_values which handles the
7627         symbolic ranges we handle specially.
7628         (compare_values_warnv): Do not call operand_less_p but open-code
7629         the effective fold calls.  Avoid converting so much.
7631 2019-07-29  Martin Liska  <mliska@suse.cz>
7633         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
7634         remove LHS of operator new call.  It's handled latter.
7636 2019-07-29  Richard Biener  <rguenther@suse.de>
7638         PR tree-optimization/91267
7639         * vr-values.c (vr_values::update_value_range): Add early return
7640         for effectively VARYING lattice entry.
7642 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
7644         PR debug/86638
7645         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
7646         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
7647         necessary if keep_all_vdefs_p is true.
7648         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
7649         that keep_all_vdefs_p is false.
7650         (mark_all_reaching_defs_necessary): Likewise.
7651         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
7653 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
7655         * common.opt (Og): Change the initial value of flag_dse to 0.
7656         * opts.c (default_options_table): Move OPT_ftree_dse from
7657         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
7658         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
7659         entry before the OPT_ftree_sra entry.
7660         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
7661         of flags disabled by Og.
7663 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
7665         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
7666         variables for -Og.
7668 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
7670         * doc/sourcebuild.texi (check-function-bodies): Document.
7672 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
7674         * simplify-rtx.c (simplify_const_unary_operation): Fold a
7675         VEC_DUPLICATE of a fixed-length vector even if the result
7676         is variable-length.  Likewise fold a duplicate of a
7677         variable-length vector if the variable-length vector is
7678         itself a duplicate of a fixed-length sequence.
7679         (test_vector_ops_duplicate): Test more cases.
7681 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
7683         * vector-builder.h (vector_builder): Add a shape template parameter.
7684         (vector_builder::new_unary_operation): New function, generalizing
7685         the old tree_vector_builder function.
7686         (vector_builder::new_binary_operation): Likewise.
7687         (vector_builder::binary_encoded_nelts): Likewise.
7688         * int-vector-builder.h (int_vector_builder): Update template
7689         parameters to vector_builder.
7690         (int_vector_builder::shape_nelts): New function.
7691         * rtx-vector-builder.h (rtx_vector_builder): Update template
7692         parameters to vector_builder.
7693         (rtx_vector_builder::shape_nelts): New function.
7694         (rtx_vector_builder::nelts_of): Likewise.
7695         (rtx_vector_builder::npatterns_of): Likewise.
7696         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
7697         * tree-vector-builder.h (tree_vector_builder): Update template
7698         parameters to vector_builder.
7699         (tree_vector_builder::shape_nelts): New function.
7700         (tree_vector_builder::nelts_of): Likewise.
7701         (tree_vector_builder::npatterns_of): Likewise.
7702         (tree_vector_builder::nelts_per_pattern_of): Likewise.
7703         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
7704         (tree_vector_builder::new_binary_operation): Delete.
7705         (tree_vector_builder::binary_encoded_nelts): Likewise.
7706         * simplify-rtx.c: Include rtx-vector-builder.h.
7707         (distributes_over_addition_p): New function.
7708         (simplify_const_unary_operation)
7709         (simplify_const_binary_operation): Generalize handling of vector
7710         constants to include variable-length vectors.
7711         (test_vector_ops_series): Add more tests.
7713 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
7715         PR lto/91222
7716         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
7717         than INDENTIFIER_POINTER.
7719 2019-07-28  Martin Liska  <mliska@suse.cz>
7721         PR ipa/89330
7722         * cgraph.c (symbol_table::create_edge): Always allocate
7723         a cgraph_edge.
7724         (symbol_table::free_edge): Store summary_id to
7725         edge_released_summary_ids if != -1;
7726         * cgraph.h (NEXT_FREE_NODE): Remove.
7727         (SET_NEXT_FREE_NODE): Likewise.
7728         (NEXT_FREE_EDGE): Likewise.
7729         (symbol_table::release_symbol): Store summary_id to
7730         cgraph_released_summary_ids if != -1;
7731         (symbol_table::allocate_cgraph_symbol): Always allocate
7732         a cgraph_node.
7734 2019-07-28  Alan Modra  <amodra@gmail.com>
7736         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
7737         gen_sibcall.
7739 2019-07-28  Alan Modra  <amodra@gmail.com>
7741         PR target/91135
7742         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
7743         define.
7744         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
7745         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
7746         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
7748 2019-07-28  Alan Modra  <amodra@gmail.com>
7750         PR target/91050
7751         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
7752         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
7753         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
7754         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
7755         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
7756         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
7757         in asm_default spec.
7758         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
7759         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
7761 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
7763         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
7765 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
7767         PR target/89517
7768         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
7769         * config/aarch64/aarch64-option-extensions.def: Add new comments
7770         and restore easier to read options.
7772 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
7774         * convert.c (convert_to_real_1): Move part of conversion code...
7775         * match.pd: ...To here.
7777 2019-07-26  Martin Jambor  <mjambor@suse.cz>
7779         PR ipa/89330
7780         * ipa-inline-transform.c (check_speculations_1): New function.
7781         (push_all_edges_in_set_to_vec): Likewise.
7782         (check_speculations): Use check_speculations_1, new parameter
7783         new_edges.
7784         (inline_call): Pass new_edges to check_speculations.
7785         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
7786         NULL.
7787         (speculation_useful_p): Early return true if edge is inlined, remove
7788         later checks for inline_failed.
7790 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
7792         PR rtl-optimization/91223
7793         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
7794         matching with INOUT operand.
7796 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
7798         * stmt.c (expand_case): Try to narrow the index type if it's larger
7799         than a word.  Tidy up.
7801 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
7803         * cif-code.def (NEVER_CALL): New code.
7804         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
7805         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
7807 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
7809         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
7810         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7812 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
7814         * ipa-devirt.c (add_type_duplicate): Fix return value.
7816 2019-07-25  Richard Biener  <rguenther@suse.de>
7818         * tree-vrp.c (extract_range_from_multiplicative_op): Add
7819         type parameter and use it instead of guessing expression
7820         type from the first operand.
7821         (extract_range_from_binary_expr): Pass expr_type down.
7823 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7825         * config/arm/arm.md (SATrev): Change to code attribute.
7826         (*satsi_<SAT:code>): Adjust for the above.
7827         (*satsi_<SAT:code>_shift): Likewise.
7829 2019-07-25  Richard Biener  <rguenther@suse.de>
7831         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
7832         Make value_range * temporary const.
7833         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
7834         Likewise.
7835         (evrp_range_analyzer::record_ranges_from_): Likewise.
7836         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
7837         deal with having recorded a const one.
7838         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
7839         Return a const value_range *.
7840         (evrp_range_analyzer::pop_value_range): Likewise.
7841         (evrp_range_analyzer::stack): Record const value_range *s.
7842         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
7843         Adjust.
7844         * gimple-ssa-sprintf.c (get_int_range): Likewise.
7845         (format_integer): Likewise.
7846         (sprintf_dom_walker::handle_gimple_call): Likewise.
7847         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
7848         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
7849         (vrp_prop::get_value_range): Adjust.
7850         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
7851         modifying the lattice in-place.
7852         (vrp_prop::visit_stmt): Likewise.
7853         * vr-values.c (vr_values::get_lattice_entry): New private method.
7854         (vr_values::get_value_range): Wrap it and return a const
7855         value_range *.
7856         (vr_values::set_def_to_varying): New.
7857         (vr_values::set_defs_to_varying): Use it.
7858         (vr_values::update_value_range): Likewise.
7859         (vr_values::vrp_stmt_computes_nonzero): Adjust.
7860         (values::op_with_constant_singleton_va): Likewise.
7861         (vr_values::extract_range_for_var_from_co): Likewise.
7862         (vr_values::extract_range_from_ssa_name): Likewise.
7863         (vr_values::extract_range_from_cond_expr): Likewise.
7864         (vr_values::extract_range_basic): Likewise.
7865         (compare_ranges): Take const value_range *, adjust.
7866         (compare_range_with_value): Likewise.
7867         (vrp_valueize): Adjust.
7868         (vrp_valueize_1): Likewise.
7869         (vr_values::get_vr_for_comparison): Return a const value_range *.
7870         (vr_values::compare_name_with_value): Adjust.
7871         (vr_values::compare_names): Likewise.
7872         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
7873         Likewise.
7874         (vr_values::vrp_evaluate_conditional): Likewise.
7875         (find_case_label_ranges): Take a const value_range *.
7876         (vr_values::vrp_visit_switch_stmt): Adjust.
7877         (vr_values::extract_range_from_phi_node): Likewise.
7878         (vr_values::simplify_div_or_mod_using_ran): Likewise.
7879         (vr_values::simplify_abs_using_ranges): Likewise.
7880         (test_for_singularity): Take a const value_range *.
7881         (range_fits_type_p): Likewise.
7882         (vr_values::simplify_cond_using_ranges_1): Adjust.
7883         (vr_values::simplify_cond_using_ranges_2): Likewise.
7884         (vr_values::simplify_switch_using_ranges): Likewise.
7885         (vr_values::simplify_float_conversion_usi): Likewise.
7886         (vr_values::two_valued_val_range_p): Likewise.
7887         * vr-values.h (vr_values::get_value_range): Return a const
7888         value_range *.
7889         (vr_values::set_def_to_varying): New.
7890         (vr_values::get_lattice_entry): New private method.
7891         (vr_values::get_vr_for_comparison): Return a const value_range *.
7893 2019-07-25  Martin Liska  <mliska@suse.cz>
7894             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
7896         PR c++/23383
7897         * common.opt: Add -fallocation-dce
7898         * gimple.c (gimple_call_operator_delete_p): New.
7899         * gimple.h (gimple_call_operator_delete_p): Likewise.
7900         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
7901         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
7902         DECL_IS_OPERATOR_DELETE_P.
7903         (mark_all_reaching_defs_necessary_1): Likewise.
7904         (propagate_necessity): Likewise.
7905         (eliminate_unnecessary_stmts): Handle
7906         gimple_call_operator_delete_p.
7907         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
7908         Add packing of OPERATOR_DELETE.
7909         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
7910         Similarly here.
7911         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
7912         (DECL_SET_IS_OPERATOR_DELETE): New.
7913         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
7915 2019-07-25  Martin Liska  <mliska@suse.cz>
7917         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
7918         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
7919         * coverage.c (coverage_begin_function): Likewise.
7920         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
7921         * gimple.c (gimple_call_nonnull_result_p): Likewise.
7922         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
7923         (sem_item::hash_referenced_symbol_properties): Likewise.
7924         * lto-streamer-out.c (hash_tree): Likewise.
7925         * predict.c (expr_expected_value_1): Likewise.
7926         * tree-inline.c (expand_call_inline): Likewise.
7927         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7928         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7929         * tree-core.h (enum function_decl_type): New enum.
7930         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
7931         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
7932         (set_function_decl_type): Likewise.
7933         (DECL_IS_OPERATOR_NEW_P): New.
7934         (DECL_SET_IS_OPERATOR_NEW): Likewise.
7935         (DECL_LAMBDA_FUNCTION): Likewise.
7936         (DECL_LAMBDA_FUNCTION_P): Likewise.
7937         (DECL_IS_OPERATOR_NEW): Remove.
7938         (DECL_SET_LAMBDA_FUNCTION): Likewise.
7940 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
7942         * ipa-profile.c (get_most_common_single_value): Use
7943         get_nth_most_common_value.
7944         * profile.c (sort_hist_value): New function.
7945         (compute_value_histograms): Call sort_hist_value to sort the
7946         values after loading from disk.
7947         * value-prof.c (get_most_common_single_value): Rename to ...
7948         get_nth_most_common_value.  Add input params n, return
7949         the n_th value and count.
7950         (gimple_divmod_fixed_value_transform): Use
7951         get_nth_most_common_value.
7952         (gimple_ic_transform): Likewise.
7953         (gimple_stringops_transform): Likewise.
7954         * value-prof.h (get_most_common_single_value): Add input params
7955         n, default to 0.
7957 2019-07-25  Richard Biener  <rguenther@suse.de>
7959         PR tree-optimization/91236
7960         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
7961         size of CONSTRUCTOR write.  Fix buffer size we pass to
7962         native_encode_expr.
7964 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7966         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
7967         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
7968         r273773.
7970 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7972         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
7973         explicitly disabled with --disable-initfini-array.
7975 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7977         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
7978         if-exists.
7980 2019-07-24  Martin Sebor  <msebor@redhat.com>
7982         PR tree-optimization/91183
7983         PR tree-optimization/86688
7984         * builtins.c (compute_objsize): Handle MEM_REF.
7985         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
7986         (get_min_string_length): Remove.
7987         (count_nonzero_bytes): New function.
7988         (handle_char_store): Rename...
7989         (handle_store): to this.  Handle multibyte stores via integer types.
7990         (strlen_check_and_optimize_stmt): Adjust conditional and the called
7991         function name.
7993 2019-07-24  Martin Sebor  <msebor@redhat.com>
7995         PR driver/80545
7996         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
7997         (diagnostic_report_diagnostic): Same.
7998         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
7999         (diagnostic_context::lang_mask): New data member.
8000         * ipa-pure-const.c (suggest_attribute): Use
8001         lang_hooks.option_lang_mask ().
8002         * opts-common.c (option_enabled): Handle new argument.
8003         (get_option_state): Pass an additional argument.
8004         * opts.c (print_filtered_help): Print supported languages for
8005         unsupported options.  Adjust printing of current state.
8006         * opts.h (option_enabled): Add argument.
8007         * toplev.c (print_switch_values): Use lang_mask.
8008         (general_init): Set global_dc->lang_mask.
8010 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
8012         PR bootstrap/87030
8013         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
8015 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
8017         * cgraphunit.c (symbol_table::compile): Start and stop
8018         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
8019         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
8021 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
8023         * gimplify.c (flag_instrument_functions_exclude_p): Include
8024         namespace/class information in the printable name.
8025         * opts.c (add_comma_separated_to_vector): Add NUL terminator
8026         to tokens entered into the vector.
8028 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
8030         * tree-nested.c (build_simple_mem_ref_notrap): New function.
8031         (get_static_chain): Call it instead of build_simple_mem_ref.
8032         (get_frame_field): Likewise.
8033         (get_nonlocal_debug_decl): Likewise.
8034         (convert_nonlocal_reference_op): Likewise.
8036 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
8038         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
8039         declaration.
8040         (arc_compute_frame_size): Millicode is disabled when compiling
8041         ISR.
8042         (arc_return_address_register): Likewise.
8043         (arc_compute_function_type): Likewise.
8044         (arc_compute_frame_size): Likewise.
8045         (secondary_reload_info): Likewise.
8046         (arc_get_unalign): Likewise.
8047         (arc_can_use_return_insn): Declare.
8048         * config/arc/arc.c (AUX_LP_START): Define
8049         (AUX_LP_END): Likewise.
8050         (arc_frame_info): Update gmask member to 64-bit datum.
8051         (GMASK_LEN): Update.
8052         (arc_compute_function_type): Make it static, move it forward.
8053         (arc_must_save_register): Update, consider the extra regs.
8054         (arc_compute_millicode_save_restore_regs): Update to use the 64
8055         bit gmask.
8056         (arc_compute_frame_size): Likewise.
8057         (arc_enter_leave_p): Likewise.
8058         (arc_save_callee_saves): Likewise.
8059         (arc_restore_callee_saves): Likewise.
8060         (arc_save_callee_enter): Likewise.
8061         (arc_restore_callee_leave): Likewise.
8062         (arc_save_callee_milli): Likewise.
8063         (arc_restore_callee_milli): Likewise.
8064         (arc_expand_prologue): Add new interrupt handling.
8065         (arc_return_address_register): Make it static, move it forward.
8066         (arc_expand_epilogue): Add new interrupt handling.
8067         (arc_get_unalign): Delete.
8068         (arc_epilogue_uses): Make sure we do not remove the extra
8069         saved/restored registers when interrupt.
8070         (arc_can_use_return_insn): New function.
8071         (push_reg): Likewise.
8072         (pop_reg): Likewise.
8073         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
8074         procedures.
8075         (arc_restore_callee_saves): Likewise, but restoring.
8076         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
8077         (R33_REG): Likewise.
8078         (R34_REG): Likewise.
8079         (R35_REG): Likewise.
8080         (R36_REG): Likewise.
8081         (R37_REG): Likewise.
8082         (R38_REG): Likewise.
8083         (R39_REG): Likewise.
8084         (R45_REG): Likewise.
8085         (R46_REG): Likewise.
8086         (R47_REG): Likewise.
8087         (R48_REG): Likewise.
8088         (R49_REG): Likewise.
8089         (R50_REG): Likewise.
8090         (R51_REG): Likewise.
8091         (R52_REG): Likewise.
8092         (R53_REG): Likewise.
8093         (R54_REG): Likewise.
8094         (R55_REG): Likewise.
8095         (R56_REG): Likewise.
8096         (R58_REG): Likewise.
8097         (type): Add rtie attribute.
8098         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
8099         (movsi_insn): Accept moves to lp_count.
8100         (rtie): Update pattern.
8101         (simple_return): Simplify it, don't use this pattern as a return
8102         from an interrupt.
8103         (arc600_rtie): New pattern.
8104         (p_return_i): Clean up.
8105         (return): Likewise.
8106         * config/arc/builtins.def (rtie): Only available for non ARC6xx
8107         family CPUs.
8108         * config/arc/predicates.md (move_src_operand): Consider lp_count
8109         as a register.
8111 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
8113         * config/s390/predicates.md (addv_const_operand): New predicate.
8114         * config/s390/s390-modes.def (CCO): New condition code mode.
8115         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
8116         (s390_branch_condition_mask): Likewise.
8117         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
8118         ("mulv<mode>4"): New expanders.
8119         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
8120         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
8121         pattern definitions.
8123 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8125         PR middle-end/91166
8126         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
8127         (define_predicates): Add entry for uniform_vector_p.
8128         (vec_same_elem_p): New match pattern.
8130 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
8132         PR bootstrap/87030
8133         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
8134         * config/i386/darwin32-biarch.h .. to here.
8135         * config/i386/darwin64-biarch.h: Adjust comments.
8136         * config/rs6000/darwin32-biarch.h: Likewise.
8137         * config/rs6000/darwin64-biarch.h: Likewise.
8138         * config.gcc: Missed commit from r273746
8139         (*-*-darwin*): Don't include CPU t-darwin here.
8140         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8141         an error message if i686-darwin configuration is attempted for
8142         Darwin >= 18.
8144 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
8146         PR bootstrap/87030
8147         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
8148         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8149         an error message if i686-darwin configuration is attempted for
8150         Darwin >= 18.
8151         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
8152         (powerpc-*-darwin*): Use biarch files where needed.
8153         (powerpc64-*-darwin*): Likewise.
8154         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
8155         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8156         arch case.
8157         * config/i386/darwin32-biarch.h: New.
8158         * config/i386/darwin64.h: Rename.
8159         * config/i386/darwin64-biarch.h: To this.
8160         * config/i386/t-darwin: Rename.
8161         * config/i386/t-darwin32-biarch: To this.
8162         * config/i386/t-darwin64: Rename.
8163         * config/i386/t-darwin64-biarch: To this.
8164         * config/rs6000/darwin32-biarch.h: New.
8165         * config/rs6000/darwin64.h: Rename.
8166         * config/rs6000/darwin64-biarch.h: To this.
8167         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8168         arch case.
8169         * config/rs6000/t-darwin8: Rename.
8170         * config/rs6000/t-darwin32-biarch: To this.
8171         * config/rs6000/t-darwin64 Rename.
8172         * config/rs6000/t-darwin64-biarch: To this.
8174 2019-07-23  Martin Sebor  <msebor@redhat.com>
8176         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
8178 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
8180         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
8181         (rh): New alias for it.
8183 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
8185         * gdbhooks.py: Pass replace=True to
8186         gdb.printing.register_pretty_printer.
8188 2019-07-23  Richard Biener  <rguenther@suse.de>
8190         PR debug/91231
8191         * lto-streamer-in.c (input_function): Drop inline-entry markers
8192         that ended up with an unknown location block.
8194 2019-07-23  Richard Biener  <rguenther@suse.de>
8196         PR tree-optimization/83518
8197         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
8198         init from a constant even when partial defs are already recorded.
8200 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
8202         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
8203         * config/i386/znver1.md: Enable patterns for znver2 and add store
8204         variants which use extra AGU unit.
8206 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
8208         * config/i386/i386-options.c (ix86_option_override_internal): Default
8209         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
8210         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
8211         for ZNVER2.
8213 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
8215         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
8216         (znver2_costs): Update 256 bit SSE costs and multiplication.
8218 2019-07-23  Jan Beulich  <jbeulich@suse.com>
8220         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
8221         Require only AVX512F.
8222         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
8223         alternative expanding to vpternlog.
8225 2019-07-23  Martin Liska  <mliska@suse.cz>
8227         * dwarf2out.c (gen_producer_string): Canonize -flto=N
8228         to -flto in dwarf producer string.
8230 2019-07-23  Richard Biener  <rguenther@suse.de>
8232         * tree-cfg.c (label_for_bb): Remove global var.
8233         (main_block_label): Take label_for_bb as argument.
8234         (cleanup_dead_labels_eh): Likewise, adjust.
8235         (cleanup_dead_labels): Adjust.
8237 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
8239         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
8240         Configurations): Add documentation for __builtin_mtfsf.
8242 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
8244         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
8245         * config/riscv/riscv.c (riscv_constant_alignment): Use
8246         riscv_align_data_type.
8247         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
8248         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8249         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8250         * config/riscv/riscv.opt (malign-data): New.
8251         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
8253 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
8255         * cgraph.c (dump_graphviz): New function.
8256         * cgraph.h (dump_graphviz): New function.
8257         * symtab.c (dump_graphviz): New function.
8259 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
8261         * config/aarch64/aarch64-simd.md
8262         (*aarch64_simd_sra<mode>): New.
8263         * config/aarch64/iterators.md
8264         (SHIFTRT): New iterator.
8265         (sra_op): New attribute.
8267 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8269         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
8270         callee-saved regs R4->R10 in an interrupt function that calls another
8271         function.
8273 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
8275         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
8276         (_mm_blendv_epi8): New.
8278 2019-07-22  Richard Biener  <rguenther@suse.de>
8280         PR tree-optimization/91221
8281         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
8282         restrict partial-def handling of empty constructors and
8283         memset to refs with known offset.
8285 2019-07-22  Jan Beulich  <jbeulich@suse.com>
8287         * config/i386/sse.md (ternlogsuffix): New.
8288         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
8289         AVX512F is in use.
8290         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
8292 2019-07-22  Martin Liska  <mliska@suse.cz>
8294         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
8295         comment.
8296         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
8298 2019-07-22  Martin Liska  <mliska@suse.cz>
8300         * lto-section-in.c (lto_get_section_data):
8301         Use new function get_compression.
8302         * lto-streamer-out.c (produce_lto_section): Use
8303         set_compression to encode compression algorithm.
8304         * lto-streamer.h (struct lto_section): Do not
8305         use bitfields in the format.
8307 2019-07-22  Martin Liska  <mliska@suse.cz>
8309         PR driver/91172
8310         * opts-common.c (decode_cmdline_option): Decode
8311         argument of -Werror and check it for a wrong language.
8312         * opts-global.c (complain_wrong_lang): Remove such case.
8314 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
8316         * config/arc/arc.c (prepare_move_operands): Always use an
8317         intermediate register when storing a TLS symbols.
8319 2019-07-22  Stafford Horne  <shorne@gmail.com>
8321         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
8322         force_reg.
8324 2019-07-22  Stafford Horne  <shorne@gmail.com>
8326         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
8327         and munordered-float validations.
8328         * config/or1k/constraints.md (d): New register constraint.
8329         * config/or1k/predicates.md (fp_comparison_operator): New.
8330         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
8331         operands.
8332         (or1k_expand_compare): Normalize unordered comparisons.
8333         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
8334         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
8335         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
8336         * config/or1k/or1k.md (type): Add fpu.
8337         (fpu): New instruction reservation.
8338         (F, f, fr, fi, FI, FOP, fop): New.
8339         (<fop><F:mode>3): New ALU instruction definition.
8340         (float<fi><F:mode>2): New conversion instruction definition.
8341         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
8342         (fpcmpcc): New code iterator.
8343         (*sf_fp_insn): New instruction definition.
8344         (cstore<F:mode>4): New expand definition.
8345         (cbranch<F:mode>4): New expand definition.
8346         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
8347         munordered-float): New options.
8348         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
8349         munordered-float.
8351 2019-07-22  Stafford Horne  <shorne@gmail.com>
8353         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
8354         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
8355         documenation to be more clear.
8356         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
8357         more clear.
8358         * config/or1k/or1k.opt (mrori): New option.
8359         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
8360         msfimm, mshftimm): Rewrite documentation to be more clear.
8361         * config/or1k/or1k.md (insn_support): Add ror and rori.
8362         (enabled): Add conditions for ror and rori.
8363         (rotrsi3): Replace condition for shftimm with ror and rori.
8365 2019-07-22  Stafford Horne  <shorne@gmail.com>
8367         PR target/90363
8368         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
8369         (extend<mode>si2): Update predicate.
8370         * config/or1k/predicates.md (volatile_mem_operand): New.
8371         (reg_or_mem_operand): New.
8373 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
8375         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
8376         * config/rs6000/rs6000-call.c: ... to here.
8378 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8380         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
8381         memory.
8383 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8385         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
8387 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8389         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
8391 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8393         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
8394         (any_memory_operand): New predicate.
8395         (reg_or_mem_operand): Use it.
8397 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8399         PR target/91204
8400         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
8402 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
8404         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
8405         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
8407 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8409         * tree.def (OMP_LOOP): New tree code.
8410         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
8411         (enum omp_clause_bind_kind): New enum.
8412         (struct tree_omp_clause): Add subcode.bind_kind.
8413         * tree.h (OMP_LOOP_CHECK): Rename to ...
8414         (OMP_LOOPING_CHECK): ... this.
8415         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8416         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
8417         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
8418         (OMP_CLAUSE_BIND_KIND): Define.
8419         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8420         bind clause entries.
8421         (walk_tree_1): Handle OMP_CLAUSE_BIND.
8422         * tree-pretty-print.c (dump_omp_clause): Likewise.
8423         (dump_generic_node): Handle OMP_LOOP.
8424         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
8425         (in_omp_construct): New variable.
8426         (is_gimple_stmt): Handle OMP_LOOP.
8427         (gimplify_scan_omp_clauses): For lastprivate don't set
8428         check_non_private if code == OMP_LOOP.  For reduction clause
8429         on OMP_LOOP combined with parallel or teams propagate as shared
8430         on the combined construct.  Handle OMP_CLAUSE_BIND.
8431         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
8432         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
8433         for constructs from a loop construct to gimplify_scan_omp_clauses.
8434         Don't predetermine iterator linear on OMP_SIMD from loop construct.
8435         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
8436         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
8437         to match the implicit ORT_TARGET construct around whole body.
8438         Temporarily clear in_omp_construct when processing body.
8439         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
8440         etc. temporarily set in_omp_construct when processing body.
8441         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
8442         * omp-low.c (struct omp_context): Add loop_p.
8443         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
8444         in that the original var might be private.
8445         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
8446         (check_omp_nesting_restrictions): Adjust nesting restrictions for
8447         addition of loop construct.
8448         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
8450         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
8451         lastprivate non-addressable iterator of a collapse(1) simd.
8453 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
8455         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
8456         as in rs6000.c.
8458 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
8460         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
8461         refer to default conditions.  Warn for the 'y' spec which is ignored
8462         by current linkers.
8464 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
8466         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
8467         cpu_supports_info, builtin_hash_struct, builtin_hasher,
8468         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8469         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8470         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8471         init_cumulative_args, rs6000_promote_function_mode,
8472         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8473         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8474         rs6000_function_arg_boundary, rs6000_parm_offset,
8475         rs6000_parm_start, rs6000_arg_size,
8476         rs6000_darwin64_record_arg_advance_flush,
8477         rs6000_darwin64_record_arg_advance_recurse,
8478         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8479         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8480         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8481         rs6000_mixed_function_arg, rs6000_psave_function_arg,
8482         rs6000_finish_function_arg, rs6000_function_arg,
8483         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8484         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8485         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8486         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8487         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8488         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8489         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8490         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8491         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8492         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8493         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8494         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8495         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8496         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8497         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8498         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8499         get_element_number, altivec_expand_vec_set_builtin,
8500         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8501         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8502         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8503         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8504         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8505         rs6000_expand_builtin, rs6000_vector_type,
8506         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8507         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8508         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
8509         to rs6000-call.c.
8510         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
8511         cpu_supports_info, builtin_hash_struct, builtin_hasher,
8512         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8513         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8514         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8515         init_cumulative_args, rs6000_promote_function_mode,
8516         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8517         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8518         rs6000_function_arg_boundary, rs6000_parm_offset,
8519         rs6000_parm_start, rs6000_arg_size,
8520         rs6000_darwin64_record_arg_advance_flush,
8521         rs6000_darwin64_record_arg_advance_recurse,
8522         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8523         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8524         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8525         rs6000_mixed_function_arg, rs6000_psave_function_arg,
8526         rs6000_finish_function_arg, rs6000_function_arg,
8527         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8528         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8529         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8530         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8531         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8532         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8533         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8534         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8535         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8536         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8537         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8538         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8539         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8540         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8541         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8542         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8543         get_element_number, altivec_expand_vec_set_builtin,
8544         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8545         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8546         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8547         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8548         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8549         rs6000_expand_builtin, rs6000_vector_type,
8550         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8551         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8552         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
8553         to here from rs6000.c.
8554         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
8555         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
8556         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
8557         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
8558         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
8559         rs6000_return_in_memory, rs6000_return_in_msb,
8560         rs6000_pass_by_reference, setup_incoming_varargs,
8561         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
8562         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
8563         rs6000_function_arg_padding, rs6000_function_arg,
8564         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
8565         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
8566         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
8567         rs6000_passes_long_double, rs6000_passes_vector,
8568         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
8569         altivec_builtin_mask_for_load) Add declarations.
8570         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
8571         * config/config.gcc: Add new source file rs6000-call.c to garbage
8572         collector and extra_objs.
8574 2019-07-19  Jeff Law  <law@redhat.com>
8576         PR tree-optimization/86061
8577         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
8578         strncpy.  Drop some trivial dead code.
8579         (maybe_trim_memstar_call): Handle strncpy.
8581 2019-07-19  Richard Biener  <rguenther@suse.de>
8583         PR tree-optimization/91211
8584         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
8585         memset encoding size.
8587 2019-07-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8589         PR target/91204
8590         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
8592 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
8594         PR ipa/91194
8595         * ipa-inline.c (recursive_inlining): Fix limits check.
8597 2019-07-19  Richard Biener  <rguenther@suse.de>
8599         PR tree-optimization/91200
8600         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
8601         no PHI nodes in middle-bb.
8603 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
8605         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
8606         to +sve-bitperm.
8607         * config/aarch64/aarch64-option-extensions.def: Likewise.
8609 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
8611         PR middle-end/91190
8612         * function.c (insert_temp_slot_address): Store into the hash table
8613         a copy of address to avoid RTL sharing issues.
8615 2019-07-19  Richard Biener  <rguenther@suse.de>
8617         PR tree-optimization/91207
8618         Revert
8619         2019-07-17  Richard Biener  <rguenther@suse.de>
8621         PR tree-optimization/91178
8622         * tree-vect-stmts.c (get_group_load_store_type): For SLP
8623         loads with a gap larger than the vector size always use
8624         VMAT_STRIDED_SLP.
8625         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8626         avoid loading vectors that are only contained in the gap
8627         and thus are not needed.
8629 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8631         * config/i386/i386.md (*addqi_2_slp): Remove.
8632         (*<code>qi_2_slp): Ditto.
8634 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
8636         * config/rs6000/predicates.md (prefixed_mem_operand): Call
8637         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
8638         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
8639         Rename function from rs6000_prefixed_address.
8640         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8641         TARGET_HAS_TOC.
8642         (TARGET_TOC): Likewise.
8643         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8644         rs6000.h.
8645         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8646         TARGET_HAS_TOC.
8647         (TARGET_TOC): Likewise.
8648         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8649         rs6000.h.
8650         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8651         TARGET_HAS_TOC.
8652         (TARGET_TOC): Likewise.
8653         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8654         check to require -mcmodel=medium for pc-relative addressing.
8655         (create_TOC_reference): Add assertion for TARGET_TOC.
8656         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
8657         TARGET_NO_TOC.
8658         (rs6000_emit_move): Likewise.
8659         (TOC_alias_set): Rename TOC alias set static variable from 'set'
8660         to 'TOC_alias_set'.
8661         (get_TOC_alias_set): Likewise.
8662         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
8663         TARGET_NO_TOC.
8664         (rs6000_can_eliminate): Likewise.
8665         (rs6000_prefixed_address_mode_p): Rename function from
8666         rs6000_prefixed_address.
8667         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
8668         TARGET_HAS_TOC and not pc-relative.
8669         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
8670         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8671         TARGET_HAS_TOC.
8672         (TARGET_TOC): Likewise.
8673         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8674         rs6000.h.
8676 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8678         PR target/91188
8679         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
8680         for operand 0.  Do not use (match_dup) to match operand 1 with
8681         operand 0.  Add check in insn constraint that either input operand
8682         matches operand 0.  Use SWI12 mode iterator to also handle
8683         HImode operands.
8684         (*and<mode>_1_slp): Ditto.
8685         (*<code>qi_1_slp): Ditto.
8686         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
8687         Do not use (match_dup) to match operand 1 with operand 0.  Add
8688         check in insn constraint that operand 1 matches operand 0.
8689         Use SWI12 mode iterator to also handle HImode operands.
8690         (*ashl<mode>3_1_slp): Ditto.
8691         (*<shift_insn><mode>3_1_slp): Ditto.
8692         (*<rotate_insn><mode>3_1_slp): Ditto.
8694 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
8696         * config/arm/arm-builtins.c
8697         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
8698         (arm_expand_unop_builtin): Likewise.
8699         * config/arm/crypto.md
8700         (crypto_sha1h): Convert from define_insn to define_expand.
8701         (crypto_<crypto_pattern>): Likewise.
8702         (crypto_sha1h_lb): New define_insn.
8703         (crypto_<crypto_pattern>_lb): Likewise.
8705 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
8707         PR target/90317
8708         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
8709         (vsha1cq_u32): Likewise.
8710         (vsha1pq_u32): Likewise.
8711         (vsha1mq_u32): Likewise.
8712         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
8713         vec select.
8714         (crypto_sha1c): Correct vec select.
8715         (crypto_sha1m): Likewise.
8716         (crypto_sha1p): Likewise.
8718 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
8720         * config/arm/predicates.md (arm_borrow_operation): New predicate.
8721         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
8722         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
8723         (subdi_zesidi_zesidi): Likewise.
8724         (negdi2_compare, negdi2_insn): Likewise.
8725         (negdi_extensidi): Likewise.
8726         (negdi_zero_extendsidi): Likewise.
8727         (arm_cmpdi_insn): Likewise.
8728         (subsi3_carryin): Use arm_borrow_operation.
8729         (subsi3_carryin_const): Likewise.
8730         (subsi3_carryin_const0): Likewise.
8731         (subsi3_carryin_compare): Likewise.
8732         (subsi3_carryin_compare_const): Likewise.
8733         (subsi3_carryin_compare_const0): Likewise.
8734         (subsi3_carryin_shift): Likewise.
8735         (rsbsi3_carryin_shift): Likewise.
8736         (negsi2_carryin_compare): Likewise.
8738 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
8740         PR tree-optimization/91137
8741         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
8742         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
8743         Init, use and fini the above new field.
8744         (determine_base_object_1): New function.
8745         (determine_base_object): Reimplement using walk_tree.
8747 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
8749         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
8750         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
8751         CLEANUP_FORCE_FAST_DCE is set.
8752         * ifcvt.c (rest_of_handle_if_conversion): Pass
8753         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
8754         if-conversion succeeded.
8756 2019-07-18  Richard Biener  <rguenther@suse.de>
8758         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
8759         branches to make code less indented.
8761 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
8763         PR middle-end/81824
8764         * attribs.c (decls_mismatched_attributes): Simplify the logic
8765         that avoids duplicates and false positives.
8767 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
8769         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
8770         data into data section when generating PIC code.
8771         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
8772         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
8773         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
8774         return 2 for SOM and 0 for other targets.
8776 2019-07-17  Jeff Law  <law@redhat.com>
8778         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
8779         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
8780         avoid unexpected switch statement fallthru.
8782 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8784         * config/i386/i386.md (*add<dwi>3_doubleword):
8785         Remove redundant constraints.
8786         (*add<mode>_1): Ditto.
8787         (*addhi_1): Ditto.
8788         (*addqi_1): Ditto.
8789         (*addqi_1_slp): Ditto.
8790         (*add<mode>_2): Ditto.
8791         (*addv<mode>4): Ditto.
8792         (*sub<dwi>3_doubleword): Ditto.
8793         (*sub<mode>_1): Ditto.
8794         (*subqi_1_slp): Ditto.
8795         (*sub<mode>_2): Ditto.
8796         (*subv<mode>4): Ditto.
8797         (*sub<mode>_3): Ditto.
8798         (@add<mode>3_carry): Ditto.
8799         (@sub<mode>3_carry): Ditto.
8800         (*add<mode>3_cc_overflow_1): Ditto.
8801         (*add<mode>3_zext_cc_overflow_2): Ditto.
8802         (*anddi_1): Ditto.
8803         (*and<mode>_1): Ditto.
8804         (*andqi_1): Ditto.
8805         (*andqi_1_slp): Ditto.
8806         (*anddi_2): Ditto.
8807         (*andqi_2_maybe_si): Ditto.
8808         (*and<mode>_2): Ditto.
8809         (*andqi_2_slp): Ditto.
8810         (*<code><mode>_1): Ditto.
8811         (*<code>qi_1): Ditto.
8812         (*<code>qi_1_slp): Ditto.
8813         (*<code><mode>_2): Ditto.
8814         (*<code>qi_2_slp): Ditto.
8816 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
8818         * alias.c (record_component_aliases): Do not simplify pointed-to
8819         types of ODR types.
8821 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8823         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
8824         partial reg stall on alternative 2.
8826 2019-07-17  Richard Biener  <rguenther@suse.de>
8828         PR tree-optimization/91178
8829         * tree-ssa.c (release_defs_bitset): Iterate from higher to
8830         lower SSA names to avoid quadratic behavior in the common case.
8831         * tree-data-ref.c (split_constant_offset): Add limit argument
8832         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
8833         (split_constant_offset_1): Add limit argument and use it to
8834         limit SSA def walking.  Optimize the common plus/minus case.
8836 2019-07-17  Richard Biener  <rguenther@suse.de>
8838         PR tree-optimization/91178
8839         * tree-vect-stmts.c (get_group_load_store_type): For SLP
8840         loads with a gap larger than the vector size always use
8841         VMAT_STRIDED_SLP.
8842         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8843         avoid loading vectors that are only contained in the gap
8844         and thus are not needed.
8846 2019-07-17  Richard Biener  <rguenther@suse.de>
8848         PR tree-optimization/91180
8849         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
8850         computation for memset partial defs.
8852 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
8854         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
8855         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
8856         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
8857         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
8858         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
8859         * omp-grid.c (grid_process_grid_body,
8860         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
8861         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
8862         == GF_OMP_FOR_KIND_SIMD.
8863         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
8864         check_omp_nesting_restrictions, scan_omp_1_stmt,
8865         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
8866         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
8867         omp_find_scan): Likewise.
8868         * omp-expand.c (expand_omp_for): Likewise.
8869         * omp-general.c (omp_extract_for_data): Likewise.
8871         PR tree-optimization/91157
8872         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
8873         a vector boolean with scalar mode.
8874         (expand_vector_condition): Handle first operand being a vector boolean
8875         with scalar mode.
8876         (expand_vector_operations_1): For comparisons, don't bail out early
8877         if the return type is vector boolean with scalar mode, but comparison
8878         operand type is not.
8880 2019-07-17  Richard Biener  <rguenther@suse.de>
8882         PR tree-optimization/91181
8883         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
8884         IFN_LOADs as calls.
8886 2019-07-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8888         * config/i386/i386.md (*testdi_1): Match CCZmode for
8889         constants that might have the SImode sign bit set.
8890         (*testqi_1_maybe_si): Remove "!" constraint modifier.
8891         Use correct constraints for pentium pairing.
8892         (*test<mode>_1): Ditto.
8894 2019-07-16  Jeff Law  <law@redhat.com>
8896         PR rtl-optimization/91173
8897         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
8898         SSA_NAME with a constant value, fold its value into the offset
8899         and clear the base before calling gen_addr_rtx.
8901 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
8903         PR rtl-optimization/91164
8904         * dse.c (rest_of_handle_dse): If dead edges have been purged,
8905         invalidate dominance info.
8907 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8909         * read-md.h (md_reader::record_potential_iterator_use): Add a
8910         file_location parameter.
8911         * read-rtl.c (attribute_use::loc): New field.
8912         (map_attr_string): Take a file_location parameter.  Report cases
8913         in which attributes map to multiple distinct values.
8914         (apply_attribute_uses): Update call accordingly.
8915         (md_reader::handle_overloaded_name): Likewise.
8916         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
8917         nonnull strings.
8918         (record_attribute_use): Take a file_location parameter.
8919         Initialize attribute_use::loc.
8920         (md_reader::record_potential_iterator_use): Take a file_location
8921         parameter.  Update call to record_attribute_use.
8922         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
8923         (rtx_reader::read_rtx_code): Likewise.
8924         (rtx_reader::read_rtx_operand): Likewise.  Record a location
8925         for implicitly-expanded empty strings.
8927 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8929         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
8930         Use file_location instead of separate fields.
8931         (md_reader::set_md_ptr_loc): Take a file_location instead of a
8932         separate filename and line number.
8933         * read-md.c (ptr_loc): As above.
8934         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
8935         (md_reader::fprint_md_ptr_loc): Likewise.
8936         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
8937         instead of a separate filename and line number.
8938         (md_reader::read_string): Update call accordingly.
8940 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8942         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
8943         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
8944         leaving the choice between SFDF and P implicit.
8945         (*mov<mode>_update2): Likewise.
8946         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
8947         rather than leaving the choice betweem IBM128 and GPR implicit.
8948         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
8949         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
8950         QHSI implicit.
8951         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
8952         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
8953         * config/rs6000/vsx.md
8954         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
8955         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
8956         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
8957         and VSX_EXTRACT_I implicit.
8959 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
8961         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
8962         Explicitly use <MOVEP1:MODE> for the mode attribute.
8964 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
8966         PR bootstrap/91176
8967         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
8969 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
8971         PR target/91050
8972         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
8973         .machine directive.
8975 2019-07-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8977         * config/i386/i386.md (@test<mode>_ccno_1):
8978         Rename from test<mode>_ccno_1.
8979         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
8980         (*testqi_1_maybe_si): Remove modrm attribute.
8981         (*test<mode>_1): Ditto.
8982         * config/i386/i386-expand.c (ix86_split_idivmod): Use
8983         gen_test_ccno_1 and gen_extend_insn.
8985 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
8987         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
8988         to 0.
8990 2019-07-15  Richard Biener  <rguenther@suse.de>
8992         PR middle-end/91162
8993         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
8994         node make sure to replace all uses with something valid.
8996 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
8998         PR tree-optimization/88497
8999         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
9000         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
9001         function undistribute_bitref_for_vector.
9002         (undistribute_bitref_for_vector): New function.
9003         (cleanup_vinfo_map): Likewise.
9004         (sort_by_mach_mode): Likewise.
9006 2019-07-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9008         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
9009         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
9010         and testdi_ccno_1 using SWI48 mode attribute.
9011         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
9012         x86_64_szext_general_operand.
9013         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
9014         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
9015         instead of genera_operand mode attribute.
9017 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
9019         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
9020         fopen and fclose to their respective types.
9021         (DotFn.invoke): Ditto.
9023 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
9025         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
9026         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
9027         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
9028         (array_index_predicate): Remove.
9029         (analyze_function_body): Account cost for variable ofsetted array
9030         indexing.
9031         (estimate_node_size_and_time): Do not compute array index hint.
9032         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
9033         (inline_read_section): Do not read array index hint.
9034         (ipa_fn_summary_write): Do not write array index hint.
9035         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
9036         * ipa-cp.c (hint_time_bonus): Remove.
9037         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
9038         (ipa_fnsummary): Remove array_index.
9039         * ipa-inline.c (want_inline_small_function_p): Do not use
9040         array_index.
9041         (edge_badness): Likewise.
9042         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
9044 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
9046         PR target/91148
9047         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
9048         superfluous "builtin function" phrasing.
9050 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
9052         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
9053         Break out from ...
9054         (aliasing_component_refs_walk): Break out from ...
9055         (aliasing_component_refs_p): ... here.
9057 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
9059         PR target/91148
9060         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
9061         "builtin function" phrasing.
9063 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9065         PR target/90723
9066         * recog.h (temporary_volatile_ok): New class.
9067         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
9068         volatile_ok temporarily to true using temporary_volatile_ok.
9069         * expr.c (emit_block_move_via_cpymem): Likewise.
9070         * optabs.c (maybe_legitimize_operand): Likewise.
9072 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
9074         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
9075         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
9076         uses inside of order(concurrent) constructs.
9077         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
9078         OMP_CLAUSE_ORDER is seen.
9079         * omp-low.c (struct omp_context): Add order_concurrent member.
9080         (scan_sharing_clauses): Set ctx->order_concurrent if
9081         OMP_CLAUSE_ORDER is seen.
9082         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
9083         of simd order(concurrent).  Diagnose constructs not allowed inside of
9084         for order(concurrent).
9085         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
9086         complaining about static double setjmp (double); or class static
9087         methods or non-global namespace setjmps.
9088         (omp_runtime_api_call): New function.
9089         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
9090         order(concurrent) loops.
9092 2019-07-12  Martin Sebor  <msebor@redhat.com>
9094         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
9095         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
9096         * tree-vrp.c (vrp_prop::check_mem_ref): Use
9097         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
9099 2019-07-12  Jan Hubicka  <jh@suse.cz>
9101         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
9102         (indirect_refs_may_alias_p): ... here.
9103         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
9104         mem refs in the access paths.
9106 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
9108         PR tree-optimization/89430
9109         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
9110         store elimination for local variable without address escape.
9112 2019-07-12  Jeff Law  <law@redhat.com>
9114         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
9115         for the ".far" section.
9117 2019-07-12  Richard Biener  <rguenther@suse.de>
9119         PR tree-optimization/91145
9120         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
9121         chain check.
9123 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
9125         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
9126         rather than this_state as the lowering context for the ELSE
9127         seq in a GIMPLE_EH_ELSE.
9129 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
9131         * vector-builder.h (vector_builder::elt): Allow already-supplied
9132         elements to be read back before building is complete.
9134 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
9136         PR rtl-optimization/91136
9137         * df-core.c (ACCESSING REFS): Fix typos in comment.
9138         * resource.c (mark_target_live_reg): Add artificial defs that occur at
9139         the beginning of the block to the initial set of live registers.
9141 2019-07-12  Richard Biener  <rguenther@suse.de>
9143         * fold-const.h (get_array_ctor_element_at_index): Adjust.
9144         * fold-const.c (get_array_ctor_element_at_index): Add
9145         ctor_idx output parameter informing the caller where in
9146         the constructor the element was (not) found.  Add early exit
9147         for when the ctor is sorted.
9148         * gimple-fold.c (fold_array_ctor_reference): Support constant
9149         folding across multiple array elements.
9151 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
9153         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
9154         doesn't have location, set the current location to the function's end.
9156 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
9158         * config/aarch64/aarch64.md (*compare_condjump<mode>)
9159         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
9160         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
9161         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
9162         * config/aarch64/aarch64-simd.md
9163         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9164         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
9165         * config/aarch64/aarch64-sve.md
9166         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
9167         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
9169 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
9171         * doc/md.texi: Document that @ patterns can have different
9172         numbers of operands.
9173         * genemit.c (handle_overloaded_gen): Handle this case.
9174         * genopinit.c (handle_overloaded_gen): Likewise.
9175         * gensupport.c (replace_operands_with_dups): Iterate over
9176         the new rtx's format rather than the old one's.
9178 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
9180         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
9181         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9182         order clause entries.
9183         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
9184         * tree-pretty-print.c (dump_omp_clause): Likewise.
9185         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9186         Likewise.
9187         * omp-low.c (scan_sharing_clauses): Likewise.
9188         * tree-nested.c (convert_nonlocal_omp_clauses,
9189         convert_local_omp_clauses): Likewise.
9191 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
9193         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
9194         fallthrough target of current basic block isn't the placed
9195         right next.
9197 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
9199         PR target/90980
9200         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
9201         (_mm512_storeu_epi64): Likewise.
9202         (_mm512_loadu_epi32): Likewise.
9203         (_mm512_storeu_epi32): Likewise.
9204         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
9205         (_mm_storeu_epi64): Likewise.
9206         (_mm256_storeu_epi32): Likewise.
9207         (_mm_storeu_epi32): Likewise.
9209 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
9211         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
9213 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
9215         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
9216         Handle Modula-2.
9218 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
9220         PR target/91124
9221         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
9222         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
9223         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
9224         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
9225         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
9226         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
9227         define_insns.
9228         (ufix_truncv2dfv2si2<mask_name>): Change into ...
9229         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
9230         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
9231         define_insns.
9232         (sse2_cvttpd2dq<mask_name>): Change into ...
9233         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
9234         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
9235         (*sse2_cvtpd2dq<mask_name>): Change into ...
9236         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
9237         Add "C" constraint to const0_operand.
9238         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
9239         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
9240         changes.
9242         PR target/91124
9243         * config/i386/i386-builtin-types.def
9244         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
9245         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
9246         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
9247         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
9248         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
9249         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
9250         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
9251         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
9252         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
9253         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
9254         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
9255         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
9256         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
9257         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
9258         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
9259         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
9260         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
9261         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
9262         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
9263         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
9264         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
9265         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
9266         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
9267         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
9268         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
9269         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
9270         __builtin_ia32_vpdpbusd_v4si_maskz,
9271         __builtin_ia32_vpdpbusds_v16si_mask,
9272         __builtin_ia32_vpdpbusds_v16si_maskz,
9273         __builtin_ia32_vpdpbusds_v8si_mask,
9274         __builtin_ia32_vpdpbusds_v8si_maskz,
9275         __builtin_ia32_vpdpbusds_v4si_mask,
9276         __builtin_ia32_vpdpbusds_v4si_maskz,
9277         __builtin_ia32_vpdpwssd_v16si_mask,
9278         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
9279         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
9280         __builtin_ia32_vpdpwssd_v4si_maskz,
9281         __builtin_ia32_vpdpwssds_v16si_mask,
9282         __builtin_ia32_vpdpwssds_v16si_maskz,
9283         __builtin_ia32_vpdpwssds_v8si_mask,
9284         __builtin_ia32_vpdpwssds_v8si_maskz,
9285         __builtin_ia32_vpdpwssds_v4si_mask,
9286         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
9287         suffixed types rather than *_INT.
9288         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
9289         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
9290         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
9291         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
9292         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
9293         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
9295 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
9297         * tree-vrp.c (intersect_ranges): If we know the intersection is
9298         empty, there is no need to conservatively add anything else to
9299         the set.
9301 2019-07-11  Richard Biener  <rguenther@suse.de>
9303         PR middle-end/91131
9304         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
9305         when the object is volatile and we have not cleared it even though
9306         there are no nonzero elements.
9308 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
9310         * config/rs6000/predicates.md (cint34_operand): Update
9311         SIGNED_34BIT_OFFSET_P call.
9312         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
9313         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
9314         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
9315         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
9316         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
9317         argument.
9318         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
9319         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
9320         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
9321         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
9322         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
9324 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
9326         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
9327         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
9328         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
9329         (DEF_MIN_OSX_VERSION): New.
9331 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
9333         * fold-const.c (fold_relational_const): Fix folding of
9334         vector-to-scalar NE_EXPRs.
9335         (test_vector_folding): Add more tests.
9337 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
9339         PR target/91060
9340         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
9341         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
9342         (vec_setv2di_internal): Reexpress as...
9343         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
9344         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
9345         rather than gen_neon_vset_lane<mode>.
9347 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
9349         PR target/91102
9350         * lra-constraints.c (process_alt_operands): Don't match user
9351         defined regs only if they are early clobbers.
9353 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
9355         * wide-int.h (wi::lshift): Reject negative values for the fast path.
9357 2019-07-10  Richard Biener  <rguenther@suse.de>
9359         PR tree-optimization/91126
9360         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
9361         native encoding offset for BYTES_BIG_ENDIAN.
9362         (vn_reference_lookup_3): Likewise.
9364 2019-07-10  Richard Biener  <rguenther@suse.de>
9366         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
9367         LHS whenever possible.
9369 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
9371         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
9372         from ...; work also on duplicated types.
9373         (nonoverlapping_component_refs_since_match): ... here
9374         (ncr_type_uid): Break out from ...
9375         (ncr_compar): ... here; look for TYPE_UID of canonical type if
9376         available.
9377         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
9378         the types and nonoverlapping_component_refs_p_1 to disambiguate.
9380 2019-07-09  Martin Sebor  <msebor@redhat.com>
9382         PR tree-optimization/90989
9383         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
9384         optimization to just single character stores.
9386 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
9388         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
9389         Swap operands only once.
9391 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
9393         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
9394         for both call instructions.
9396 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
9398         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
9399         rather than GET_MODE_BITSIZE to better handle partial integer modes.
9401 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
9403         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
9404         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
9405         function from rs6000-logue.c back to rs6000.c.
9406         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
9408 2019-07-09  Martin Sebor  <msebor@redhat.com>
9410         PR c++/61339
9411         * auto-profile.c: Change class-key of PODs to struct and others
9412         to class.
9413         * basic-block.h: Same.
9414         * bitmap.c (bitmap_alloc): Same.
9415         * bitmap.h: Same.
9416         * builtins.c (expand_builtin_prefetch): Same.
9417         (expand_builtin_interclass_mathfn): Same.
9418         (expand_builtin_strlen): Same.
9419         (expand_builtin_mempcpy_args): Same.
9420         (expand_cmpstr): Same.
9421         (expand_builtin___clear_cache): Same.
9422         (expand_ifn_atomic_bit_test_and): Same.
9423         (expand_builtin_thread_pointer): Same.
9424         (expand_builtin_set_thread_pointer): Same.
9425         * caller-save.c (setup_save_areas): Same.
9426         (replace_reg_with_saved_mem): Same.
9427         (insert_restore): Same.
9428         (insert_save): Same.
9429         (add_used_regs): Same.
9430         * cfg.c (get_bb_copy): Same.
9431         (set_loop_copy): Same.
9432         * cfg.h: Same.
9433         * cfganal.h: Same.
9434         * cfgexpand.c (alloc_stack_frame_space): Same.
9435         (add_stack_var): Same.
9436         (add_stack_var_conflict): Same.
9437         (add_scope_conflicts_1): Same.
9438         (update_alias_info_with_stack_vars): Same.
9439         (expand_used_vars): Same.
9440         * cfghooks.c (redirect_edge_and_branch_force): Same.
9441         (delete_basic_block): Same.
9442         (split_edge): Same.
9443         (make_forwarder_block): Same.
9444         (force_nonfallthru): Same.
9445         (duplicate_block): Same.
9446         (lv_flush_pending_stmts): Same.
9447         * cfghooks.h: Same.
9448         * cfgloop.c (flow_loops_cfg_dump): Same.
9449         (flow_loop_nested_p): Same.
9450         (superloop_at_depth): Same.
9451         (get_loop_latch_edges): Same.
9452         (flow_loop_dump): Same.
9453         (flow_loops_dump): Same.
9454         (flow_loops_free): Same.
9455         (flow_loop_nodes_find): Same.
9456         (establish_preds): Same.
9457         (flow_loop_tree_node_add): Same.
9458         (flow_loop_tree_node_remove): Same.
9459         (flow_loops_find): Same.
9460         (find_subloop_latch_edge_by_profile): Same.
9461         (find_subloop_latch_edge_by_ivs): Same.
9462         (mfb_redirect_edges_in_set): Same.
9463         (form_subloop): Same.
9464         (merge_latch_edges): Same.
9465         (disambiguate_multiple_latches): Same.
9466         (disambiguate_loops_with_multiple_latches): Same.
9467         (flow_bb_inside_loop_p): Same.
9468         (glb_enum_p): Same.
9469         (get_loop_body_with_size): Same.
9470         (get_loop_body): Same.
9471         (fill_sons_in_loop): Same.
9472         (get_loop_body_in_dom_order): Same.
9473         (get_loop_body_in_custom_order): Same.
9474         (release_recorded_exits): Same.
9475         (get_loop_exit_edges): Same.
9476         (num_loop_branches): Same.
9477         (remove_bb_from_loops): Same.
9478         (find_common_loop): Same.
9479         (delete_loop): Same.
9480         (cancel_loop): Same.
9481         (verify_loop_structure): Same.
9482         (loop_preheader_edge): Same.
9483         (loop_exit_edge_p): Same.
9484         (single_exit): Same.
9485         (loop_exits_to_bb_p): Same.
9486         (loop_exits_from_bb_p): Same.
9487         (get_loop_location): Same.
9488         (record_niter_bound): Same.
9489         (get_estimated_loop_iterations_int): Same.
9490         (max_stmt_executions_int): Same.
9491         (likely_max_stmt_executions_int): Same.
9492         (get_estimated_loop_iterations): Same.
9493         (get_max_loop_iterations): Same.
9494         (get_max_loop_iterations_int): Same.
9495         (get_likely_max_loop_iterations): Same.
9496         * cfgloop.h (simple_loop_desc): Same.
9497         (get_loop): Same.
9498         (loop_depth): Same.
9499         (loop_outer): Same.
9500         (loop_iterator::next): Same.
9501         (loop_outermost): Same.
9502         * cfgloopanal.c (mark_irreducible_loops): Same.
9503         (num_loop_insns): Same.
9504         (average_num_loop_insns): Same.
9505         (expected_loop_iterations_unbounded): Same.
9506         (expected_loop_iterations): Same.
9507         (mark_loop_exit_edges): Same.
9508         (single_likely_exit): Same.
9509         * cfgloopmanip.c (fix_bb_placement): Same.
9510         (fix_bb_placements): Same.
9511         (remove_path): Same.
9512         (place_new_loop): Same.
9513         (add_loop): Same.
9514         (scale_loop_frequencies): Same.
9515         (scale_loop_profile): Same.
9516         (create_empty_if_region_on_edge): Same.
9517         (create_empty_loop_on_edge): Same.
9518         (loopify): Same.
9519         (unloop): Same.
9520         (fix_loop_placements): Same.
9521         (copy_loop_info): Same.
9522         (duplicate_loop): Same.
9523         (duplicate_subloops): Same.
9524         (loop_redirect_edge): Same.
9525         (can_duplicate_loop_p): Same.
9526         (duplicate_loop_to_header_edge): Same.
9527         (mfb_keep_just): Same.
9528         (has_preds_from_loop): Same.
9529         (create_preheader): Same.
9530         (create_preheaders): Same.
9531         (lv_adjust_loop_entry_edge): Same.
9532         (loop_version): Same.
9533         * cfgloopmanip.h: Same.
9534         * cgraph.h: Same.
9535         * cgraphbuild.c: Same.
9536         * combine.c (make_extraction): Same.
9537         * config/i386/i386-features.c: Same.
9538         * config/i386/i386-features.h: Same.
9539         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
9540         (ix86_emit_outlined_ms2sysv_restore): Same.
9541         (ix86_noce_conversion_profitable_p): Same.
9542         (ix86_init_cost): Same.
9543         (ix86_simd_clone_usable): Same.
9544         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
9545         Wstruct-not-pod.
9546         * coretypes.h: Same.
9547         * data-streamer-in.c (string_for_index): Change class-key of PODs
9548         to struct and others to class.
9549         (streamer_read_indexed_string): Same.
9550         (streamer_read_string): Same.
9551         (bp_unpack_indexed_string): Same.
9552         (bp_unpack_string): Same.
9553         (streamer_read_uhwi): Same.
9554         (streamer_read_hwi): Same.
9555         (streamer_read_gcov_count): Same.
9556         (streamer_read_wide_int): Same.
9557         * data-streamer.h (streamer_write_bitpack): Same.
9558         (bp_unpack_value): Same.
9559         (streamer_write_char_stream): Same.
9560         (streamer_write_hwi_in_range): Same.
9561         (streamer_write_record_start): Same.
9562         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
9563         (add_cross_iteration_register_deps): Same.
9564         (build_intra_loop_deps): Same.
9565         * df-core.c (df_analyze): Same.
9566         (loop_post_order_compute): Same.
9567         (loop_inverted_post_order_compute): Same.
9568         * df-problems.c (df_rd_alloc): Same.
9569         (df_rd_simulate_one_insn): Same.
9570         (df_rd_local_compute): Same.
9571         (df_rd_init_solution): Same.
9572         (df_rd_confluence_n): Same.
9573         (df_rd_transfer_function): Same.
9574         (df_rd_free): Same.
9575         (df_rd_dump_defs_set): Same.
9576         (df_rd_top_dump): Same.
9577         (df_lr_alloc): Same.
9578         (df_lr_reset): Same.
9579         (df_lr_local_compute): Same.
9580         (df_lr_init): Same.
9581         (df_lr_confluence_n): Same.
9582         (df_lr_free): Same.
9583         (df_lr_top_dump): Same.
9584         (df_lr_verify_transfer_functions): Same.
9585         (df_live_alloc): Same.
9586         (df_live_reset): Same.
9587         (df_live_init): Same.
9588         (df_live_confluence_n): Same.
9589         (df_live_finalize): Same.
9590         (df_live_free): Same.
9591         (df_live_top_dump): Same.
9592         (df_live_verify_transfer_functions): Same.
9593         (df_mir_alloc): Same.
9594         (df_mir_reset): Same.
9595         (df_mir_init): Same.
9596         (df_mir_confluence_n): Same.
9597         (df_mir_free): Same.
9598         (df_mir_top_dump): Same.
9599         (df_word_lr_alloc): Same.
9600         (df_word_lr_reset): Same.
9601         (df_word_lr_init): Same.
9602         (df_word_lr_confluence_n): Same.
9603         (df_word_lr_free): Same.
9604         (df_word_lr_top_dump): Same.
9605         (df_md_alloc): Same.
9606         (df_md_simulate_one_insn): Same.
9607         (df_md_reset): Same.
9608         (df_md_init): Same.
9609         (df_md_free): Same.
9610         (df_md_top_dump): Same.
9611         * df-scan.c (df_insn_delete): Same.
9612         (df_insn_rescan): Same.
9613         (df_notes_rescan): Same.
9614         (df_sort_and_compress_mws): Same.
9615         (df_install_mws): Same.
9616         (df_refs_add_to_chains): Same.
9617         (df_ref_create_structure): Same.
9618         (df_ref_record): Same.
9619         (df_def_record_1): Same.
9620         (df_find_hard_reg_defs): Same.
9621         (df_uses_record): Same.
9622         (df_get_conditional_uses): Same.
9623         (df_get_call_refs): Same.
9624         (df_recompute_luids): Same.
9625         (df_get_entry_block_def_set): Same.
9626         (df_entry_block_defs_collect): Same.
9627         (df_get_exit_block_use_set): Same.
9628         (df_exit_block_uses_collect): Same.
9629         (df_mws_verify): Same.
9630         (df_bb_verify): Same.
9631         * df.h (df_scan_get_bb_info): Same.
9632         * doc/tm.texi: Same.
9633         * dse.c (record_store): Same.
9634         * dumpfile.h: Same.
9635         * emit-rtl.c (const_fixed_hasher::equal): Same.
9636         (set_mem_attributes_minus_bitpos): Same.
9637         (change_address): Same.
9638         (adjust_address_1): Same.
9639         (offset_address): Same.
9640         * emit-rtl.h: Same.
9641         * except.c (dw2_build_landing_pads): Same.
9642         (sjlj_emit_dispatch_table): Same.
9643         * explow.c (allocate_dynamic_stack_space): Same.
9644         (emit_stack_probe): Same.
9645         (probe_stack_range): Same.
9646         * expmed.c (store_bit_field_using_insv): Same.
9647         (store_bit_field_1): Same.
9648         (store_integral_bit_field): Same.
9649         (extract_bit_field_using_extv): Same.
9650         (extract_bit_field_1): Same.
9651         (emit_cstore): Same.
9652         * expr.c (emit_block_move_via_cpymem): Same.
9653         (expand_cmpstrn_or_cmpmem): Same.
9654         (set_storage_via_setmem): Same.
9655         (emit_single_push_insn_1): Same.
9656         (expand_assignment): Same.
9657         (store_constructor): Same.
9658         (expand_expr_real_2): Same.
9659         (expand_expr_real_1): Same.
9660         (try_casesi): Same.
9661         * flags.h: Same.
9662         * function.c (try_fit_stack_local): Same.
9663         (assign_stack_local_1): Same.
9664         (assign_stack_local): Same.
9665         (cut_slot_from_list): Same.
9666         (insert_slot_to_list): Same.
9667         (max_slot_level): Same.
9668         (move_slot_to_level): Same.
9669         (temp_address_hasher::equal): Same.
9670         (remove_unused_temp_slot_addresses): Same.
9671         (assign_temp): Same.
9672         (combine_temp_slots): Same.
9673         (update_temp_slot_address): Same.
9674         (preserve_temp_slots): Same.
9675         * function.h: Same.
9676         * fwprop.c: Same.
9677         * gcc-rich-location.h: Same.
9678         * gcov.c: Same.
9679         * genattrtab.c (check_attr_test): Same.
9680         (check_attr_value): Same.
9681         (convert_set_attr_alternative): Same.
9682         (convert_set_attr): Same.
9683         (check_defs): Same.
9684         (copy_boolean): Same.
9685         (get_attr_value): Same.
9686         (expand_delays): Same.
9687         (make_length_attrs): Same.
9688         (min_fn): Same.
9689         (make_alternative_compare): Same.
9690         (simplify_test_exp): Same.
9691         (tests_attr_p): Same.
9692         (get_attr_order): Same.
9693         (clear_struct_flag): Same.
9694         (gen_attr): Same.
9695         (compares_alternatives_p): Same.
9696         (gen_insn): Same.
9697         (gen_delay): Same.
9698         (find_attrs_to_cache): Same.
9699         (write_test_expr): Same.
9700         (walk_attr_value): Same.
9701         (write_attr_get): Same.
9702         (eliminate_known_true): Same.
9703         (write_insn_cases): Same.
9704         (write_attr_case): Same.
9705         (write_attr_valueq): Same.
9706         (write_attr_value): Same.
9707         (write_dummy_eligible_delay): Same.
9708         (next_comma_elt): Same.
9709         (find_attr): Same.
9710         (make_internal_attr): Same.
9711         (copy_rtx_unchanging): Same.
9712         (gen_insn_reserv): Same.
9713         (check_tune_attr): Same.
9714         (make_automaton_attrs): Same.
9715         (handle_arg): Same.
9716         * genextract.c (gen_insn): Same.
9717         (VEC_char_to_string): Same.
9718         * genmatch.c (print_operand): Same.
9719         (lower): Same.
9720         (parser::parse_operation): Same.
9721         (parser::parse_capture): Same.
9722         (parser::parse_c_expr): Same.
9723         (parser::parse_simplify): Same.
9724         (main): Same.
9725         * genoutput.c (output_operand_data): Same.
9726         (output_get_insn_name): Same.
9727         (compare_operands): Same.
9728         (place_operands): Same.
9729         (process_template): Same.
9730         (validate_insn_alternatives): Same.
9731         (validate_insn_operands): Same.
9732         (gen_expand): Same.
9733         (note_constraint): Same.
9734         * genpreds.c (write_one_predicate_function): Same.
9735         (add_constraint): Same.
9736         (process_define_register_constraint): Same.
9737         (write_lookup_constraint_1): Same.
9738         (write_lookup_constraint_array): Same.
9739         (write_insn_constraint_len): Same.
9740         (write_reg_class_for_constraint_1): Same.
9741         (write_constraint_satisfied_p_array): Same.
9742         * genrecog.c (optimize_subroutine_group): Same.
9743         * gensupport.c (process_define_predicate): Same.
9744         (queue_pattern): Same.
9745         (remove_from_queue): Same.
9746         (process_rtx): Same.
9747         (is_predicable): Same.
9748         (change_subst_attribute): Same.
9749         (subst_pattern_match): Same.
9750         (alter_constraints): Same.
9751         (alter_attrs_for_insn): Same.
9752         (shift_output_template): Same.
9753         (alter_output_for_subst_insn): Same.
9754         (process_one_cond_exec): Same.
9755         (subst_dup): Same.
9756         (process_define_cond_exec): Same.
9757         (mnemonic_htab_callback): Same.
9758         (gen_mnemonic_attr): Same.
9759         (read_md_rtx): Same.
9760         * ggc-page.c: Same.
9761         * gimple-loop-interchange.cc (dump_reduction): Same.
9762         (dump_induction): Same.
9763         (loop_cand::~loop_cand): Same.
9764         (free_data_refs_with_aux): Same.
9765         (tree_loop_interchange::interchange_loops): Same.
9766         (tree_loop_interchange::map_inductions_to_loop): Same.
9767         (tree_loop_interchange::move_code_to_inner_loop): Same.
9768         (compute_access_stride): Same.
9769         (compute_access_strides): Same.
9770         (proper_loop_form_for_interchange): Same.
9771         (tree_loop_interchange_compute_ddrs): Same.
9772         (prune_datarefs_not_in_loop): Same.
9773         (prepare_data_references): Same.
9774         (pass_linterchange::execute): Same.
9775         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
9776         (unroll_jam_possible_p): Same.
9777         (fuse_loops): Same.
9778         (adjust_unroll_factor): Same.
9779         (tree_loop_unroll_and_jam): Same.
9780         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
9781         (loop_versioning::expensive_stmt_p): Same.
9782         (loop_versioning::version_for_unity): Same.
9783         (loop_versioning::dump_inner_likelihood): Same.
9784         (loop_versioning::find_per_loop_multiplication): Same.
9785         (loop_versioning::analyze_term_using_scevs): Same.
9786         (loop_versioning::record_address_fragment): Same.
9787         (loop_versioning::analyze_expr): Same.
9788         (loop_versioning::analyze_blocks): Same.
9789         (loop_versioning::prune_conditions): Same.
9790         (loop_versioning::merge_loop_info): Same.
9791         (loop_versioning::add_loop_to_queue): Same.
9792         (loop_versioning::decide_whether_loop_is_versionable): Same.
9793         (loop_versioning::make_versioning_decisions): Same.
9794         (loop_versioning::implement_versioning_decisions): Same.
9795         * gimple-ssa-evrp-analyze.c
9796         (evrp_range_analyzer::record_ranges_from_phis): Same.
9797         * gimple-ssa-store-merging.c (split_store::split_store): Same.
9798         (count_multiple_uses): Same.
9799         (split_group): Same.
9800         (imm_store_chain_info::output_merged_store): Same.
9801         (pass_store_merging::process_store): Same.
9802         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
9803         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
9804         (is_max): Same.
9805         (alloca_call_type): Same.
9806         (pass_walloca::execute): Same.
9807         * gimple-streamer-in.c (input_phi): Same.
9808         (input_gimple_stmt): Same.
9809         * gimple-streamer.h: Same.
9810         * godump.c (go_force_record_alignment): Same.
9811         (go_format_type): Same.
9812         (go_output_type): Same.
9813         (go_output_fndecl): Same.
9814         (go_output_typedef): Same.
9815         (keyword_hash_init): Same.
9816         (find_dummy_types): Same.
9817         * graph.c (draw_cfg_nodes_no_loops): Same.
9818         (draw_cfg_nodes_for_loop): Same.
9819         * hard-reg-set.h (hard_reg_set_iter_next): Same.
9820         * hsa-brig.c: Same.
9821         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
9822         * hsa-dump.c (dump_hsa_cfun): Same.
9823         * hsa-gen.c (gen_function_def_parameters): Same.
9824         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
9825         * input.c (dump_line_table_statistics): Same.
9826         (test_lexer): Same.
9827         * input.h: Same.
9828         * internal-fn.c (get_multi_vector_move): Same.
9829         (expand_load_lanes_optab_fn): Same.
9830         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
9831         (expand_GOMP_SIMT_EXIT): Same.
9832         (expand_GOMP_SIMT_LAST_LANE): Same.
9833         (expand_GOMP_SIMT_ORDERED_PRED): Same.
9834         (expand_GOMP_SIMT_VOTE_ANY): Same.
9835         (expand_GOMP_SIMT_XCHG_BFLY): Same.
9836         (expand_GOMP_SIMT_XCHG_IDX): Same.
9837         (expand_addsub_overflow): Same.
9838         (expand_neg_overflow): Same.
9839         (expand_mul_overflow): Same.
9840         (expand_call_mem_ref): Same.
9841         (expand_mask_load_optab_fn): Same.
9842         (expand_scatter_store_optab_fn): Same.
9843         (expand_gather_load_optab_fn): Same.
9844         * ipa-cp.c (ipa_get_parm_lattices): Same.
9845         (print_all_lattices): Same.
9846         (ignore_edge_p): Same.
9847         (build_toporder_info): Same.
9848         (free_toporder_info): Same.
9849         (push_node_to_stack): Same.
9850         (ipcp_lattice<valtype>::set_contains_variable): Same.
9851         (set_agg_lats_to_bottom): Same.
9852         (ipcp_bits_lattice::meet_with): Same.
9853         (set_single_call_flag): Same.
9854         (initialize_node_lattices): Same.
9855         (ipa_get_jf_ancestor_result): Same.
9856         (ipcp_verify_propagated_values): Same.
9857         (propagate_scalar_across_jump_function): Same.
9858         (propagate_context_across_jump_function): Same.
9859         (propagate_bits_across_jump_function): Same.
9860         (ipa_vr_operation_and_type_effects): Same.
9861         (propagate_vr_across_jump_function): Same.
9862         (set_check_aggs_by_ref): Same.
9863         (set_chain_of_aglats_contains_variable): Same.
9864         (merge_aggregate_lattices): Same.
9865         (agg_pass_through_permissible_p): Same.
9866         (propagate_aggs_across_jump_function): Same.
9867         (call_passes_through_thunk_p): Same.
9868         (propagate_constants_across_call): Same.
9869         (devirtualization_time_bonus): Same.
9870         (good_cloning_opportunity_p): Same.
9871         (context_independent_aggregate_values): Same.
9872         (gather_context_independent_values): Same.
9873         (perform_estimation_of_a_value): Same.
9874         (estimate_local_effects): Same.
9875         (value_topo_info<valtype>::add_val): Same.
9876         (add_all_node_vals_to_toposort): Same.
9877         (value_topo_info<valtype>::propagate_effects): Same.
9878         (ipcp_propagate_stage): Same.
9879         (ipcp_discover_new_direct_edges): Same.
9880         (same_node_or_its_all_contexts_clone_p): Same.
9881         (cgraph_edge_brings_value_p): Same.
9882         (gather_edges_for_value): Same.
9883         (create_specialized_node): Same.
9884         (find_more_scalar_values_for_callers_subset): Same.
9885         (find_more_contexts_for_caller_subset): Same.
9886         (copy_plats_to_inter): Same.
9887         (intersect_aggregates_with_edge): Same.
9888         (find_aggregate_values_for_callers_subset): Same.
9889         (cgraph_edge_brings_all_agg_vals_for_node): Same.
9890         (decide_about_value): Same.
9891         (decide_whether_version_node): Same.
9892         (spread_undeadness): Same.
9893         (identify_dead_nodes): Same.
9894         (ipcp_store_vr_results): Same.
9895         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
9896         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
9897         (redirect_to_unreachable): Same.
9898         (edge_set_predicate): Same.
9899         (evaluate_conditions_for_known_args): Same.
9900         (evaluate_properties_for_edge): Same.
9901         (ipa_fn_summary_t::duplicate): Same.
9902         (ipa_call_summary_t::duplicate): Same.
9903         (dump_ipa_call_summary): Same.
9904         (ipa_dump_fn_summary): Same.
9905         (eliminated_by_inlining_prob): Same.
9906         (set_cond_stmt_execution_predicate): Same.
9907         (set_switch_stmt_execution_predicate): Same.
9908         (compute_bb_predicates): Same.
9909         (will_be_nonconstant_expr_predicate): Same.
9910         (phi_result_unknown_predicate): Same.
9911         (analyze_function_body): Same.
9912         (compute_fn_summary): Same.
9913         (estimate_edge_devirt_benefit): Same.
9914         (estimate_edge_size_and_time): Same.
9915         (estimate_calls_size_and_time): Same.
9916         (estimate_node_size_and_time): Same.
9917         (remap_edge_change_prob): Same.
9918         (remap_edge_summaries): Same.
9919         (ipa_merge_fn_summary_after_inlining): Same.
9920         (ipa_fn_summary_generate): Same.
9921         (inline_read_section): Same.
9922         (ipa_fn_summary_read): Same.
9923         (ipa_fn_summary_write): Same.
9924         * ipa-fnsummary.h: Same.
9925         * ipa-hsa.c (ipa_hsa_read_section): Same.
9926         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
9927         * ipa-icf.c (sem_function::param_used_p): Same.
9928         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
9929         * ipa-inline.c (edge_badness): Same.
9930         (inline_small_functions): Same.
9931         * ipa-polymorphic-call.c
9932         (ipa_polymorphic_call_context::stream_out): Same.
9933         * ipa-predicate.c (predicate::remap_after_duplication): Same.
9934         (predicate::remap_after_inlining): Same.
9935         (predicate::stream_out): Same.
9936         * ipa-predicate.h: Same.
9937         * ipa-profile.c (ipa_profile_read_summary): Same.
9938         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
9939         (count_formal_params): Same.
9940         (ipa_dump_param): Same.
9941         (ipa_alloc_node_params): Same.
9942         (ipa_print_node_jump_functions_for_edge): Same.
9943         (ipa_print_node_jump_functions): Same.
9944         (ipa_load_from_parm_agg): Same.
9945         (get_ancestor_addr_info): Same.
9946         (ipa_compute_jump_functions_for_edge): Same.
9947         (ipa_analyze_virtual_call_uses): Same.
9948         (ipa_analyze_stmt_uses): Same.
9949         (ipa_analyze_params_uses_in_bb): Same.
9950         (update_jump_functions_after_inlining): Same.
9951         (try_decrement_rdesc_refcount): Same.
9952         (ipa_impossible_devirt_target): Same.
9953         (update_indirect_edges_after_inlining): Same.
9954         (combine_controlled_uses_counters): Same.
9955         (ipa_edge_args_sum_t::duplicate): Same.
9956         (ipa_write_jump_function): Same.
9957         (ipa_write_indirect_edge_info): Same.
9958         (ipa_write_node_info): Same.
9959         (ipa_read_edge_info): Same.
9960         (ipa_prop_read_section): Same.
9961         (read_replacements_section): Same.
9962         * ipa-prop.h (ipa_get_param_count): Same.
9963         (ipa_get_param): Same.
9964         (ipa_get_type): Same.
9965         (ipa_get_param_move_cost): Same.
9966         (ipa_set_param_used): Same.
9967         (ipa_get_controlled_uses): Same.
9968         (ipa_set_controlled_uses): Same.
9969         (ipa_get_cs_argument_count): Same.
9970         * ipa-pure-const.c (analyze_function): Same.
9971         (pure_const_read_summary): Same.
9972         * ipa-ref.h: Same.
9973         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
9974         * ipa-split.c (test_nonssa_use): Same.
9975         (dump_split_point): Same.
9976         (dominated_by_forbidden): Same.
9977         (split_part_set_ssa_name_p): Same.
9978         (find_split_points): Same.
9979         * ira-build.c (finish_loop_tree_nodes): Same.
9980         (low_pressure_loop_node_p): Same.
9981         * ira-color.c (ira_reuse_stack_slot): Same.
9982         * ira-int.h: Same.
9983         * ira.c (setup_reg_equiv): Same.
9984         (print_insn_chain): Same.
9985         (ira): Same.
9986         * loop-doloop.c (doloop_condition_get): Same.
9987         (add_test): Same.
9988         (record_reg_sets): Same.
9989         (doloop_optimize): Same.
9990         * loop-init.c (loop_optimizer_init): Same.
9991         (fix_loop_structure): Same.
9992         * loop-invariant.c (merge_identical_invariants): Same.
9993         (compute_always_reached): Same.
9994         (find_exits): Same.
9995         (may_assign_reg_p): Same.
9996         (find_invariants_bb): Same.
9997         (find_invariants_body): Same.
9998         (replace_uses): Same.
9999         (can_move_invariant_reg): Same.
10000         (free_inv_motion_data): Same.
10001         (move_single_loop_invariants): Same.
10002         (change_pressure): Same.
10003         (mark_ref_regs): Same.
10004         (calculate_loop_reg_pressure): Same.
10005         * loop-iv.c (biv_entry_hasher::equal): Same.
10006         (iv_extend_to_rtx_code): Same.
10007         (check_iv_ref_table_size): Same.
10008         (clear_iv_info): Same.
10009         (latch_dominating_def): Same.
10010         (iv_get_reaching_def): Same.
10011         (iv_constant): Same.
10012         (iv_subreg): Same.
10013         (iv_extend): Same.
10014         (iv_neg): Same.
10015         (iv_add): Same.
10016         (iv_mult): Same.
10017         (get_biv_step): Same.
10018         (record_iv): Same.
10019         (analyzed_for_bivness_p): Same.
10020         (record_biv): Same.
10021         (iv_analyze_biv): Same.
10022         (iv_analyze_expr): Same.
10023         (iv_analyze_def): Same.
10024         (iv_analyze_op): Same.
10025         (iv_analyze): Same.
10026         (iv_analyze_result): Same.
10027         (biv_p): Same.
10028         (eliminate_implied_conditions): Same.
10029         (simplify_using_initial_values): Same.
10030         (shorten_into_mode): Same.
10031         (canonicalize_iv_subregs): Same.
10032         (determine_max_iter): Same.
10033         (check_simple_exit): Same.
10034         (find_simple_exit): Same.
10035         (get_simple_loop_desc): Same.
10036         * loop-unroll.c (report_unroll): Same.
10037         (decide_unrolling): Same.
10038         (unroll_loops): Same.
10039         (loop_exit_at_end_p): Same.
10040         (decide_unroll_constant_iterations): Same.
10041         (unroll_loop_constant_iterations): Same.
10042         (compare_and_jump_seq): Same.
10043         (unroll_loop_runtime_iterations): Same.
10044         (decide_unroll_stupid): Same.
10045         (unroll_loop_stupid): Same.
10046         (referenced_in_one_insn_in_loop_p): Same.
10047         (reset_debug_uses_in_loop): Same.
10048         (analyze_iv_to_split_insn): Same.
10049         * lra-eliminations.c (lra_debug_elim_table): Same.
10050         (setup_can_eliminate): Same.
10051         (form_sum): Same.
10052         (lra_get_elimination_hard_regno): Same.
10053         (lra_eliminate_regs_1): Same.
10054         (eliminate_regs_in_insn): Same.
10055         (update_reg_eliminate): Same.
10056         (init_elimination): Same.
10057         (lra_eliminate): Same.
10058         * lra-int.h: Same.
10059         * lra-lives.c (initiate_live_solver): Same.
10060         * lra-remat.c (create_remat_bb_data): Same.
10061         * lra-spills.c (lra_spill): Same.
10062         * lra.c (lra_set_insn_recog_data): Same.
10063         (lra_set_used_insn_alternative_by_uid): Same.
10064         (init_reg_info): Same.
10065         (expand_reg_info): Same.
10066         * lto-cgraph.c (output_symtab): Same.
10067         (read_identifier): Same.
10068         (get_alias_symbol): Same.
10069         (input_node): Same.
10070         (input_varpool_node): Same.
10071         (input_ref): Same.
10072         (input_edge): Same.
10073         (input_cgraph_1): Same.
10074         (input_refs): Same.
10075         (input_symtab): Same.
10076         (input_offload_tables): Same.
10077         (output_cgraph_opt_summary): Same.
10078         (input_edge_opt_summary): Same.
10079         (input_cgraph_opt_section): Same.
10080         * lto-section-in.c (lto_free_raw_section_data): Same.
10081         (lto_create_simple_input_block): Same.
10082         (lto_free_function_in_decl_state_for_node): Same.
10083         * lto-streamer-in.c (lto_tag_check_set): Same.
10084         (lto_location_cache::revert_location_cache): Same.
10085         (lto_location_cache::input_location): Same.
10086         (lto_input_location): Same.
10087         (stream_input_location_now): Same.
10088         (lto_input_tree_ref): Same.
10089         (lto_input_eh_catch_list): Same.
10090         (input_eh_region): Same.
10091         (lto_init_eh): Same.
10092         (make_new_block): Same.
10093         (input_cfg): Same.
10094         (fixup_call_stmt_edges): Same.
10095         (input_struct_function_base): Same.
10096         (input_function): Same.
10097         (lto_read_body_or_constructor): Same.
10098         (lto_read_tree_1): Same.
10099         (lto_read_tree): Same.
10100         (lto_input_scc): Same.
10101         (lto_input_tree_1): Same.
10102         (lto_input_toplevel_asms): Same.
10103         (lto_input_mode_table): Same.
10104         (lto_reader_init): Same.
10105         (lto_data_in_create): Same.
10106         * lto-streamer-out.c (output_cfg): Same.
10107         * lto-streamer.h: Same.
10108         * modulo-sched.c (duplicate_insns_of_cycles): Same.
10109         (generate_prolog_epilog): Same.
10110         (mark_loop_unsched): Same.
10111         (dump_insn_location): Same.
10112         (loop_canon_p): Same.
10113         (sms_schedule): Same.
10114         * omp-expand.c (expand_omp_for_ordered_loops): Same.
10115         (expand_omp_for_generic): Same.
10116         (expand_omp_for_static_nochunk): Same.
10117         (expand_omp_for_static_chunk): Same.
10118         (expand_omp_simd): Same.
10119         (expand_omp_taskloop_for_inner): Same.
10120         (expand_oacc_for): Same.
10121         (expand_omp_atomic_pipeline): Same.
10122         (mark_loops_in_oacc_kernels_region): Same.
10123         * omp-offload.c (oacc_xform_loop): Same.
10124         * omp-simd-clone.c (simd_clone_adjust): Same.
10125         * optabs-query.c (get_traditional_extraction_insn): Same.
10126         * optabs.c (expand_vector_broadcast): Same.
10127         (expand_binop_directly): Same.
10128         (expand_twoval_unop): Same.
10129         (expand_twoval_binop): Same.
10130         (expand_unop_direct): Same.
10131         (emit_indirect_jump): Same.
10132         (emit_conditional_move): Same.
10133         (emit_conditional_neg_or_complement): Same.
10134         (emit_conditional_add): Same.
10135         (vector_compare_rtx): Same.
10136         (expand_vec_perm_1): Same.
10137         (expand_vec_perm_const): Same.
10138         (expand_vec_cond_expr): Same.
10139         (expand_vec_series_expr): Same.
10140         (maybe_emit_atomic_exchange): Same.
10141         (maybe_emit_sync_lock_test_and_set): Same.
10142         (expand_atomic_compare_and_swap): Same.
10143         (expand_atomic_load): Same.
10144         (expand_atomic_store): Same.
10145         (maybe_emit_op): Same.
10146         (valid_multiword_target_p): Same.
10147         (create_integer_operand): Same.
10148         (maybe_legitimize_operand_same_code): Same.
10149         (maybe_legitimize_operand): Same.
10150         (create_convert_operand_from_type): Same.
10151         (can_reuse_operands_p): Same.
10152         (maybe_legitimize_operands): Same.
10153         (maybe_gen_insn): Same.
10154         (maybe_expand_insn): Same.
10155         (maybe_expand_jump_insn): Same.
10156         (expand_insn): Same.
10157         * optabs.h (create_expand_operand): Same.
10158         (create_fixed_operand): Same.
10159         (create_output_operand): Same.
10160         (create_input_operand): Same.
10161         (create_convert_operand_to): Same.
10162         (create_convert_operand_from): Same.
10163         * optinfo.h: Same.
10164         * poly-int.h: Same.
10165         * predict.c (optimize_insn_for_speed_p): Same.
10166         (optimize_loop_for_size_p): Same.
10167         (optimize_loop_for_speed_p): Same.
10168         (optimize_loop_nest_for_speed_p): Same.
10169         (get_base_value): Same.
10170         (predicted_by_loop_heuristics_p): Same.
10171         (predict_extra_loop_exits): Same.
10172         (predict_loops): Same.
10173         (predict_paths_for_bb): Same.
10174         (predict_paths_leading_to): Same.
10175         (propagate_freq): Same.
10176         (pass_profile::execute): Same.
10177         * predict.h: Same.
10178         * profile-count.c (profile_count::differs_from_p): Same.
10179         (profile_probability::differs_lot_from_p): Same.
10180         * profile-count.h: Same.
10181         * profile.c (branch_prob): Same.
10182         * regrename.c (free_chain_data): Same.
10183         (mark_conflict): Same.
10184         (create_new_chain): Same.
10185         (merge_overlapping_regs): Same.
10186         (init_rename_info): Same.
10187         (merge_chains): Same.
10188         (regrename_analyze): Same.
10189         (regrename_do_replace): Same.
10190         (scan_rtx_reg): Same.
10191         (record_out_operands): Same.
10192         (build_def_use): Same.
10193         * regrename.h: Same.
10194         * reload.h: Same.
10195         * reload1.c (init_reload): Same.
10196         (maybe_fix_stack_asms): Same.
10197         (copy_reloads): Same.
10198         (count_pseudo): Same.
10199         (count_spilled_pseudo): Same.
10200         (find_reg): Same.
10201         (find_reload_regs): Same.
10202         (select_reload_regs): Same.
10203         (spill_hard_reg): Same.
10204         (fixup_eh_region_note): Same.
10205         (set_reload_reg): Same.
10206         (allocate_reload_reg): Same.
10207         (compute_reload_subreg_offset): Same.
10208         (reload_adjust_reg_for_icode): Same.
10209         (emit_input_reload_insns): Same.
10210         (emit_output_reload_insns): Same.
10211         (do_input_reload): Same.
10212         (inherit_piecemeal_p): Same.
10213         * rtl.h: Same.
10214         * sanopt.c (maybe_get_dominating_check): Same.
10215         (maybe_optimize_ubsan_ptr_ifn): Same.
10216         (can_remove_asan_check): Same.
10217         (maybe_optimize_asan_check_ifn): Same.
10218         (sanopt_optimize_walker): Same.
10219         * sched-deps.c (add_dependence_list): Same.
10220         (chain_to_prev_insn): Same.
10221         (add_insn_mem_dependence): Same.
10222         (create_insn_reg_set): Same.
10223         (maybe_extend_reg_info_p): Same.
10224         (sched_analyze_reg): Same.
10225         (sched_analyze_1): Same.
10226         (get_implicit_reg_pending_clobbers): Same.
10227         (chain_to_prev_insn_p): Same.
10228         (deps_analyze_insn): Same.
10229         (deps_start_bb): Same.
10230         (sched_free_deps): Same.
10231         (init_deps): Same.
10232         (init_deps_reg_last): Same.
10233         (free_deps): Same.
10234         * sched-ebb.c: Same.
10235         * sched-int.h: Same.
10236         * sched-rgn.c (add_branch_dependences): Same.
10237         (concat_insn_mem_list): Same.
10238         (deps_join): Same.
10239         (sched_rgn_compute_dependencies): Same.
10240         * sel-sched-ir.c (reset_target_context): Same.
10241         (copy_deps_context): Same.
10242         (init_id_from_df): Same.
10243         (has_dependence_p): Same.
10244         (change_loops_latches): Same.
10245         (bb_top_order_comparator): Same.
10246         (make_region_from_loop_preheader): Same.
10247         (sel_init_pipelining): Same.
10248         (get_loop_nest_for_rgn): Same.
10249         (make_regions_from_the_rest): Same.
10250         (sel_is_loop_preheader_p): Same.
10251         * sel-sched-ir.h (inner_loop_header_p): Same.
10252         (get_all_loop_exits): Same.
10253         * selftest.h: Same.
10254         * sese.c (sese_build_liveouts): Same.
10255         (sese_insert_phis_for_liveouts): Same.
10256         * sese.h (defined_in_sese_p): Same.
10257         * sreal.c (sreal::stream_out): Same.
10258         * sreal.h: Same.
10259         * streamer-hooks.h: Same.
10260         * target-globals.c (save_target_globals): Same.
10261         * target-globals.h: Same.
10262         * target.def: Same.
10263         * target.h: Same.
10264         * targhooks.c (default_has_ifunc_p): Same.
10265         (default_empty_mask_is_expensive): Same.
10266         (default_init_cost): Same.
10267         * targhooks.h: Same.
10268         * toplev.c: Same.
10269         * tree-affine.c (aff_combination_mult): Same.
10270         (aff_combination_expand): Same.
10271         (aff_combination_constant_multiple_p): Same.
10272         * tree-affine.h: Same.
10273         * tree-cfg.c (build_gimple_cfg): Same.
10274         (replace_loop_annotate_in_block): Same.
10275         (replace_uses_by): Same.
10276         (remove_bb): Same.
10277         (dump_cfg_stats): Same.
10278         (gimple_duplicate_sese_region): Same.
10279         (gimple_duplicate_sese_tail): Same.
10280         (move_block_to_fn): Same.
10281         (replace_block_vars_by_duplicates): Same.
10282         (move_sese_region_to_fn): Same.
10283         (print_loops_bb): Same.
10284         (print_loop): Same.
10285         (print_loops): Same.
10286         (debug): Same.
10287         (debug_loops): Same.
10288         * tree-cfg.h: Same.
10289         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
10290         (chrec_fold_multiply_poly_poly): Same.
10291         (chrec_evaluate): Same.
10292         (chrec_component_in_loop_num): Same.
10293         (reset_evolution_in_loop): Same.
10294         (is_multivariate_chrec): Same.
10295         (chrec_contains_symbols): Same.
10296         (nb_vars_in_chrec): Same.
10297         (chrec_convert_1): Same.
10298         (chrec_convert_aggressive): Same.
10299         * tree-chrec.h: Same.
10300         * tree-core.h: Same.
10301         * tree-data-ref.c (dump_data_dependence_relation): Same.
10302         (canonicalize_base_object_address): Same.
10303         (data_ref_compare_tree): Same.
10304         (prune_runtime_alias_test_list): Same.
10305         (get_segment_min_max): Same.
10306         (create_intersect_range_checks): Same.
10307         (conflict_fn_no_dependence): Same.
10308         (object_address_invariant_in_loop_p): Same.
10309         (analyze_ziv_subscript): Same.
10310         (analyze_siv_subscript_cst_affine): Same.
10311         (analyze_miv_subscript): Same.
10312         (analyze_overlapping_iterations): Same.
10313         (build_classic_dist_vector_1): Same.
10314         (add_other_self_distances): Same.
10315         (same_access_functions): Same.
10316         (build_classic_dir_vector): Same.
10317         (subscript_dependence_tester_1): Same.
10318         (subscript_dependence_tester): Same.
10319         (access_functions_are_affine_or_constant_p): Same.
10320         (get_references_in_stmt): Same.
10321         (loop_nest_has_data_refs): Same.
10322         (graphite_find_data_references_in_stmt): Same.
10323         (find_data_references_in_bb): Same.
10324         (get_base_for_alignment): Same.
10325         (find_loop_nest_1): Same.
10326         (find_loop_nest): Same.
10327         * tree-data-ref.h (dr_alignment): Same.
10328         (ddr_dependence_level): Same.
10329         * tree-if-conv.c (fold_build_cond_expr): Same.
10330         (add_to_predicate_list): Same.
10331         (add_to_dst_predicate_list): Same.
10332         (phi_convertible_by_degenerating_args): Same.
10333         (idx_within_array_bound): Same.
10334         (all_preds_critical_p): Same.
10335         (pred_blocks_visited_p): Same.
10336         (predicate_bbs): Same.
10337         (build_region): Same.
10338         (if_convertible_loop_p_1): Same.
10339         (is_cond_scalar_reduction): Same.
10340         (predicate_scalar_phi): Same.
10341         (remove_conditions_and_labels): Same.
10342         (combine_blocks): Same.
10343         (version_loop_for_if_conversion): Same.
10344         (versionable_outer_loop_p): Same.
10345         (ifcvt_local_dce): Same.
10346         (tree_if_conversion): Same.
10347         (pass_if_conversion::gate): Same.
10348         * tree-if-conv.h: Same.
10349         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
10350         * tree-loop-distribution.c (bb_top_order_cmp): Same.
10351         (free_rdg): Same.
10352         (stmt_has_scalar_dependences_outside_loop): Same.
10353         (copy_loop_before): Same.
10354         (create_bb_after_loop): Same.
10355         (const_with_all_bytes_same): Same.
10356         (generate_memset_builtin): Same.
10357         (generate_memcpy_builtin): Same.
10358         (destroy_loop): Same.
10359         (build_rdg_partition_for_vertex): Same.
10360         (compute_access_range): Same.
10361         (data_ref_segment_size): Same.
10362         (latch_dominated_by_data_ref): Same.
10363         (compute_alias_check_pairs): Same.
10364         (fuse_memset_builtins): Same.
10365         (finalize_partitions): Same.
10366         (find_seed_stmts_for_distribution): Same.
10367         (prepare_perfect_loop_nest): Same.
10368         * tree-parloops.c (lambda_transform_legal_p): Same.
10369         (loop_parallel_p): Same.
10370         (reduc_stmt_res): Same.
10371         (add_field_for_name): Same.
10372         (create_call_for_reduction_1): Same.
10373         (replace_uses_in_bb_by): Same.
10374         (transform_to_exit_first_loop_alt): Same.
10375         (try_transform_to_exit_first_loop_alt): Same.
10376         (transform_to_exit_first_loop): Same.
10377         (num_phis): Same.
10378         (gen_parallel_loop): Same.
10379         (gather_scalar_reductions): Same.
10380         (get_omp_data_i_param): Same.
10381         (try_create_reduction_list): Same.
10382         (oacc_entry_exit_single_gang): Same.
10383         (parallelize_loops): Same.
10384         * tree-pass.h: Same.
10385         * tree-predcom.c (determine_offset): Same.
10386         (last_always_executed_block): Same.
10387         (split_data_refs_to_components): Same.
10388         (suitable_component_p): Same.
10389         (valid_initializer_p): Same.
10390         (find_looparound_phi): Same.
10391         (insert_looparound_copy): Same.
10392         (add_looparound_copies): Same.
10393         (determine_roots_comp): Same.
10394         (predcom_tmp_var): Same.
10395         (initialize_root_vars): Same.
10396         (initialize_root_vars_store_elim_1): Same.
10397         (initialize_root_vars_store_elim_2): Same.
10398         (finalize_eliminated_stores): Same.
10399         (initialize_root_vars_lm): Same.
10400         (remove_stmt): Same.
10401         (determine_unroll_factor): Same.
10402         (execute_pred_commoning_cbck): Same.
10403         (base_names_in_chain_on): Same.
10404         (combine_chains): Same.
10405         (pcom_stmt_dominates_stmt_p): Same.
10406         (try_combine_chains): Same.
10407         (prepare_initializers_chain_store_elim): Same.
10408         (prepare_initializers_chain): Same.
10409         (prepare_initializers): Same.
10410         (prepare_finalizers_chain): Same.
10411         (prepare_finalizers): Same.
10412         (insert_init_seqs): Same.
10413         * tree-scalar-evolution.c (loop_phi_node_p): Same.
10414         (compute_overall_effect_of_inner_loop): Same.
10415         (add_to_evolution_1): Same.
10416         (add_to_evolution): Same.
10417         (follow_ssa_edge_binary): Same.
10418         (follow_ssa_edge_expr): Same.
10419         (backedge_phi_arg_p): Same.
10420         (follow_ssa_edge_in_condition_phi_branch): Same.
10421         (follow_ssa_edge_in_condition_phi): Same.
10422         (follow_ssa_edge_inner_loop_phi): Same.
10423         (follow_ssa_edge): Same.
10424         (analyze_evolution_in_loop): Same.
10425         (analyze_initial_condition): Same.
10426         (interpret_loop_phi): Same.
10427         (interpret_condition_phi): Same.
10428         (interpret_rhs_expr): Same.
10429         (interpret_expr): Same.
10430         (interpret_gimple_assign): Same.
10431         (analyze_scalar_evolution_1): Same.
10432         (analyze_scalar_evolution): Same.
10433         (analyze_scalar_evolution_for_address_of): Same.
10434         (get_instantiated_value_entry): Same.
10435         (loop_closed_phi_def): Same.
10436         (instantiate_scev_name): Same.
10437         (instantiate_scev_poly): Same.
10438         (instantiate_scev_binary): Same.
10439         (instantiate_scev_convert): Same.
10440         (instantiate_scev_not): Same.
10441         (instantiate_scev_r): Same.
10442         (instantiate_scev): Same.
10443         (resolve_mixers): Same.
10444         (initialize_scalar_evolutions_analyzer): Same.
10445         (scev_reset_htab): Same.
10446         (scev_reset): Same.
10447         (derive_simple_iv_with_niters): Same.
10448         (simple_iv_with_niters): Same.
10449         (expression_expensive_p): Same.
10450         (final_value_replacement_loop): Same.
10451         * tree-scalar-evolution.h (block_before_loop): Same.
10452         * tree-ssa-address.h: Same.
10453         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
10454         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
10455         (record_edge_info): Same.
10456         * tree-ssa-live.c (var_map_base_fini): Same.
10457         (remove_unused_locals): Same.
10458         * tree-ssa-live.h: Same.
10459         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
10460         (pass_ch_vect::execute): Same.
10461         (pass_ch::process_loop_p): Same.
10462         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
10463         (movement_possibility): Same.
10464         (outermost_invariant_loop): Same.
10465         (stmt_cost): Same.
10466         (determine_max_movement): Same.
10467         (invariantness_dom_walker::before_dom_children): Same.
10468         (move_computations): Same.
10469         (may_move_till): Same.
10470         (force_move_till_op): Same.
10471         (force_move_till): Same.
10472         (memref_free): Same.
10473         (record_mem_ref_loc): Same.
10474         (set_ref_stored_in_loop): Same.
10475         (mark_ref_stored): Same.
10476         (sort_bbs_in_loop_postorder_cmp): Same.
10477         (sort_locs_in_loop_postorder_cmp): Same.
10478         (analyze_memory_references): Same.
10479         (mem_refs_may_alias_p): Same.
10480         (find_ref_loc_in_loop_cmp): Same.
10481         (rewrite_mem_ref_loc::operator): Same.
10482         (first_mem_ref_loc_1::operator): Same.
10483         (sm_set_flag_if_changed::operator): Same.
10484         (execute_sm_if_changed_flag_set): Same.
10485         (execute_sm): Same.
10486         (hoist_memory_references): Same.
10487         (ref_always_accessed::operator): Same.
10488         (refs_independent_p): Same.
10489         (record_dep_loop): Same.
10490         (ref_indep_loop_p_1): Same.
10491         (ref_indep_loop_p): Same.
10492         (can_sm_ref_p): Same.
10493         (find_refs_for_sm): Same.
10494         (loop_suitable_for_sm): Same.
10495         (store_motion_loop): Same.
10496         (store_motion): Same.
10497         (fill_always_executed_in): Same.
10498         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
10499         (estimated_unrolled_size): Same.
10500         (loop_edge_to_cancel): Same.
10501         (remove_exits_and_undefined_stmts): Same.
10502         (remove_redundant_iv_tests): Same.
10503         (unloop_loops): Same.
10504         (estimated_peeled_sequence_size): Same.
10505         (try_peel_loop): Same.
10506         (canonicalize_loop_induction_variables): Same.
10507         (canonicalize_induction_variables): Same.
10508         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
10509         (name_info): Same.
10510         (stmt_after_inc_pos): Same.
10511         (contains_abnormal_ssa_name_p): Same.
10512         (niter_for_exit): Same.
10513         (find_bivs): Same.
10514         (mark_bivs): Same.
10515         (find_givs_in_bb): Same.
10516         (find_induction_variables): Same.
10517         (find_interesting_uses_cond): Same.
10518         (outermost_invariant_loop_for_expr): Same.
10519         (idx_find_step): Same.
10520         (add_candidate_1): Same.
10521         (add_iv_candidate_derived_from_uses): Same.
10522         (alloc_use_cost_map): Same.
10523         (prepare_decl_rtl): Same.
10524         (generic_predict_doloop_p): Same.
10525         (computation_cost): Same.
10526         (determine_common_wider_type): Same.
10527         (get_computation_aff_1): Same.
10528         (get_use_type): Same.
10529         (determine_group_iv_cost_address): Same.
10530         (iv_period): Same.
10531         (difference_cannot_overflow_p): Same.
10532         (may_eliminate_iv): Same.
10533         (determine_set_costs): Same.
10534         (cheaper_cost_pair): Same.
10535         (compare_cost_pair): Same.
10536         (iv_ca_cand_for_group): Same.
10537         (iv_ca_recount_cost): Same.
10538         (iv_ca_set_remove_invs): Same.
10539         (iv_ca_set_no_cp): Same.
10540         (iv_ca_set_add_invs): Same.
10541         (iv_ca_set_cp): Same.
10542         (iv_ca_add_group): Same.
10543         (iv_ca_cost): Same.
10544         (iv_ca_compare_deps): Same.
10545         (iv_ca_delta_reverse): Same.
10546         (iv_ca_delta_commit): Same.
10547         (iv_ca_cand_used_p): Same.
10548         (iv_ca_delta_free): Same.
10549         (iv_ca_new): Same.
10550         (iv_ca_free): Same.
10551         (iv_ca_dump): Same.
10552         (iv_ca_extend): Same.
10553         (iv_ca_narrow): Same.
10554         (iv_ca_prune): Same.
10555         (cheaper_cost_with_cand): Same.
10556         (iv_ca_replace): Same.
10557         (try_add_cand_for): Same.
10558         (get_initial_solution): Same.
10559         (try_improve_iv_set): Same.
10560         (find_optimal_iv_set_1): Same.
10561         (create_new_iv): Same.
10562         (rewrite_use_compare): Same.
10563         (remove_unused_ivs): Same.
10564         (determine_scaling_factor): Same.
10565         * tree-ssa-loop-ivopts.h: Same.
10566         * tree-ssa-loop-manip.c (create_iv): Same.
10567         (compute_live_loop_exits): Same.
10568         (add_exit_phi): Same.
10569         (add_exit_phis): Same.
10570         (find_uses_to_rename_use): Same.
10571         (find_uses_to_rename_def): Same.
10572         (find_uses_to_rename_in_loop): Same.
10573         (rewrite_into_loop_closed_ssa): Same.
10574         (check_loop_closed_ssa_bb): Same.
10575         (split_loop_exit_edge): Same.
10576         (ip_end_pos): Same.
10577         (ip_normal_pos): Same.
10578         (copy_phi_node_args): Same.
10579         (gimple_duplicate_loop_to_header_edge): Same.
10580         (can_unroll_loop_p): Same.
10581         (determine_exit_conditions): Same.
10582         (scale_dominated_blocks_in_loop): Same.
10583         (niter_for_unrolled_loop): Same.
10584         (tree_transform_and_unroll_loop): Same.
10585         (rewrite_all_phi_nodes_with_iv): Same.
10586         * tree-ssa-loop-manip.h: Same.
10587         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
10588         (number_of_iterations_ne): Same.
10589         (assert_no_overflow_lt): Same.
10590         (assert_loop_rolls_lt): Same.
10591         (number_of_iterations_lt): Same.
10592         (adjust_cond_for_loop_until_wrap): Same.
10593         (tree_simplify_using_condition): Same.
10594         (simplify_using_initial_conditions): Same.
10595         (simplify_using_outer_evolutions): Same.
10596         (loop_only_exit_p): Same.
10597         (ssa_defined_by_minus_one_stmt_p): Same.
10598         (number_of_iterations_popcount): Same.
10599         (number_of_iterations_exit): Same.
10600         (find_loop_niter): Same.
10601         (finite_loop_p): Same.
10602         (chain_of_csts_start): Same.
10603         (get_val_for): Same.
10604         (loop_niter_by_eval): Same.
10605         (derive_constant_upper_bound_ops): Same.
10606         (do_warn_aggressive_loop_optimizations): Same.
10607         (record_estimate): Same.
10608         (get_cst_init_from_scev): Same.
10609         (record_nonwrapping_iv): Same.
10610         (idx_infer_loop_bounds): Same.
10611         (infer_loop_bounds_from_ref): Same.
10612         (infer_loop_bounds_from_array): Same.
10613         (infer_loop_bounds_from_pointer_arith): Same.
10614         (infer_loop_bounds_from_signedness): Same.
10615         (bound_index): Same.
10616         (discover_iteration_bound_by_body_walk): Same.
10617         (maybe_lower_iteration_bound): Same.
10618         (estimate_numbers_of_iterations): Same.
10619         (estimated_loop_iterations): Same.
10620         (estimated_loop_iterations_int): Same.
10621         (max_loop_iterations): Same.
10622         (max_loop_iterations_int): Same.
10623         (likely_max_loop_iterations): Same.
10624         (likely_max_loop_iterations_int): Same.
10625         (estimated_stmt_executions_int): Same.
10626         (max_stmt_executions): Same.
10627         (likely_max_stmt_executions): Same.
10628         (estimated_stmt_executions): Same.
10629         (stmt_dominates_stmt_p): Same.
10630         (nowrap_type_p): Same.
10631         (loop_exits_before_overflow): Same.
10632         (scev_var_range_cant_overflow): Same.
10633         (scev_probably_wraps_p): Same.
10634         (free_numbers_of_iterations_estimates): Same.
10635         * tree-ssa-loop-niter.h: Same.
10636         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
10637         (idx_analyze_ref): Same.
10638         (analyze_ref): Same.
10639         (gather_memory_references_ref): Same.
10640         (mark_nontemporal_store): Same.
10641         (emit_mfence_after_loop): Same.
10642         (may_use_storent_in_loop_p): Same.
10643         (mark_nontemporal_stores): Same.
10644         (should_unroll_loop_p): Same.
10645         (volume_of_dist_vector): Same.
10646         (add_subscript_strides): Same.
10647         (self_reuse_distance): Same.
10648         (insn_to_prefetch_ratio_too_small_p): Same.
10649         * tree-ssa-loop-split.c (split_at_bb_p): Same.
10650         (patch_loop_exit): Same.
10651         (find_or_create_guard_phi): Same.
10652         (easy_exit_values): Same.
10653         (connect_loop_phis): Same.
10654         (connect_loops): Same.
10655         (compute_new_first_bound): Same.
10656         (split_loop): Same.
10657         (tree_ssa_split_loops): Same.
10658         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
10659         (is_maybe_undefined): Same.
10660         (tree_may_unswitch_on): Same.
10661         (simplify_using_entry_checks): Same.
10662         (tree_unswitch_single_loop): Same.
10663         (tree_unswitch_loop): Same.
10664         (tree_unswitch_outer_loop): Same.
10665         (empty_bb_without_guard_p): Same.
10666         (used_outside_loop_p): Same.
10667         (get_vop_from_header): Same.
10668         (hoist_guard): Same.
10669         * tree-ssa-loop.c (gate_oacc_kernels): Same.
10670         (get_lsm_tmp_name): Same.
10671         * tree-ssa-loop.h: Same.
10672         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
10673         (build_and_add_sum): Same.
10674         (no_side_effect_bb): Same.
10675         (get_ops): Same.
10676         (linearize_expr): Same.
10677         (should_break_up_subtract): Same.
10678         (linearize_expr_tree): Same.
10679         * tree-ssa-scopedtables.c: Same.
10680         * tree-ssa-scopedtables.h: Same.
10681         * tree-ssa-structalias.c (condense_visit): Same.
10682         (label_visit): Same.
10683         (dump_pred_graph): Same.
10684         (perform_var_substitution): Same.
10685         (move_complex_constraints): Same.
10686         (remove_preds_and_fake_succs): Same.
10687         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
10688         (determine_bb_domination_status): Same.
10689         (duplicate_thread_path): Same.
10690         (thread_through_all_blocks): Same.
10691         * tree-ssa-threadupdate.h: Same.
10692         * tree-streamer-in.c (streamer_read_string_cst): Same.
10693         (input_identifier): Same.
10694         (unpack_ts_type_common_value_fields): Same.
10695         (unpack_ts_block_value_fields): Same.
10696         (unpack_ts_translation_unit_decl_value_fields): Same.
10697         (unpack_ts_omp_clause_value_fields): Same.
10698         (streamer_read_tree_bitfields): Same.
10699         (streamer_alloc_tree): Same.
10700         (lto_input_ts_common_tree_pointers): Same.
10701         (lto_input_ts_vector_tree_pointers): Same.
10702         (lto_input_ts_poly_tree_pointers): Same.
10703         (lto_input_ts_complex_tree_pointers): Same.
10704         (lto_input_ts_decl_minimal_tree_pointers): Same.
10705         (lto_input_ts_decl_common_tree_pointers): Same.
10706         (lto_input_ts_decl_non_common_tree_pointers): Same.
10707         (lto_input_ts_decl_with_vis_tree_pointers): Same.
10708         (lto_input_ts_field_decl_tree_pointers): Same.
10709         (lto_input_ts_function_decl_tree_pointers): Same.
10710         (lto_input_ts_type_common_tree_pointers): Same.
10711         (lto_input_ts_type_non_common_tree_pointers): Same.
10712         (lto_input_ts_list_tree_pointers): Same.
10713         (lto_input_ts_vec_tree_pointers): Same.
10714         (lto_input_ts_exp_tree_pointers): Same.
10715         (lto_input_ts_block_tree_pointers): Same.
10716         (lto_input_ts_binfo_tree_pointers): Same.
10717         (lto_input_ts_constructor_tree_pointers): Same.
10718         (lto_input_ts_omp_clause_tree_pointers): Same.
10719         (streamer_read_tree_body): Same.
10720         * tree-streamer.h: Same.
10721         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
10722         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
10723         (vect_analyze_possibly_independent_ddr): Same.
10724         (vect_analyze_data_ref_dependence): Same.
10725         (vect_compute_data_ref_alignment): Same.
10726         (vect_enhance_data_refs_alignment): Same.
10727         (vect_analyze_data_ref_access): Same.
10728         (vect_check_gather_scatter): Same.
10729         (vect_find_stmt_data_reference): Same.
10730         (vect_create_addr_base_for_vector_ref): Same.
10731         (vect_setup_realignment): Same.
10732         (vect_supportable_dr_alignment): Same.
10733         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
10734         (adjust_phi_and_debug_stmts): Same.
10735         (vect_set_loop_mask): Same.
10736         (add_preheader_seq): Same.
10737         (vect_maybe_permute_loop_masks): Same.
10738         (vect_set_loop_masks_directly): Same.
10739         (vect_set_loop_condition_masked): Same.
10740         (vect_set_loop_condition_unmasked): Same.
10741         (slpeel_duplicate_current_defs_from_edges): Same.
10742         (slpeel_add_loop_guard): Same.
10743         (slpeel_can_duplicate_loop_p): Same.
10744         (create_lcssa_for_virtual_phi): Same.
10745         (iv_phi_p): Same.
10746         (vect_update_ivs_after_vectorizer): Same.
10747         (vect_gen_vector_loop_niters_mult_vf): Same.
10748         (slpeel_update_phi_nodes_for_loops): Same.
10749         (slpeel_update_phi_nodes_for_guard1): Same.
10750         (find_guard_arg): Same.
10751         (slpeel_update_phi_nodes_for_guard2): Same.
10752         (slpeel_update_phi_nodes_for_lcssa): Same.
10753         (vect_do_peeling): Same.
10754         (vect_create_cond_for_alias_checks): Same.
10755         (vect_loop_versioning): Same.
10756         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
10757         (vect_inner_phi_in_double_reduction_p): Same.
10758         (vect_analyze_scalar_cycles_1): Same.
10759         (vect_fixup_scalar_cycles_with_patterns): Same.
10760         (vect_get_loop_niters): Same.
10761         (bb_in_loop_p): Same.
10762         (vect_get_max_nscalars_per_iter): Same.
10763         (vect_verify_full_masking): Same.
10764         (vect_compute_single_scalar_iteration_cost): Same.
10765         (vect_analyze_loop_form_1): Same.
10766         (vect_analyze_loop_form): Same.
10767         (vect_active_double_reduction_p): Same.
10768         (vect_analyze_loop_operations): Same.
10769         (neutral_op_for_slp_reduction): Same.
10770         (vect_is_simple_reduction): Same.
10771         (vect_model_reduction_cost): Same.
10772         (get_initial_def_for_reduction): Same.
10773         (get_initial_defs_for_reduction): Same.
10774         (vect_create_epilog_for_reduction): Same.
10775         (vectorize_fold_left_reduction): Same.
10776         (vectorizable_reduction): Same.
10777         (vectorizable_induction): Same.
10778         (vectorizable_live_operation): Same.
10779         (loop_niters_no_overflow): Same.
10780         (vect_get_loop_mask): Same.
10781         (vect_transform_loop_stmt): Same.
10782         (vect_transform_loop): Same.
10783         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
10784         (vect_determine_precisions): Same.
10785         (vect_pattern_recog_1): Same.
10786         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
10787         * tree-vect-stmts.c (stmt_vectype): Same.
10788         (process_use): Same.
10789         (vect_init_vector_1): Same.
10790         (vect_truncate_gather_scatter_offset): Same.
10791         (get_group_load_store_type): Same.
10792         (vect_build_gather_load_calls): Same.
10793         (vect_get_strided_load_store_ops): Same.
10794         (vectorizable_simd_clone_call): Same.
10795         (vectorizable_store): Same.
10796         (permute_vec_elements): Same.
10797         (vectorizable_load): Same.
10798         (vect_transform_stmt): Same.
10799         (supportable_widening_operation): Same.
10800         * tree-vectorizer.c (vec_info::replace_stmt): Same.
10801         (vec_info::free_stmt_vec_info): Same.
10802         (vect_free_loop_info_assumptions): Same.
10803         (vect_loop_vectorized_call): Same.
10804         (set_uid_loop_bbs): Same.
10805         (vectorize_loops): Same.
10806         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
10807         * tree.c (add_tree_to_fld_list): Same.
10808         (fld_type_variant_equal_p): Same.
10809         (fld_decl_context): Same.
10810         (fld_incomplete_type_of): Same.
10811         (free_lang_data_in_binfo): Same.
10812         (need_assembler_name_p): Same.
10813         (find_decls_types_r): Same.
10814         (get_eh_types_for_runtime): Same.
10815         (find_decls_types_in_eh_region): Same.
10816         (find_decls_types_in_node): Same.
10817         (assign_assembler_name_if_needed): Same.
10818         * value-prof.c (stream_out_histogram_value): Same.
10819         * value-prof.h: Same.
10820         * var-tracking.c (use_narrower_mode): Same.
10821         (prepare_call_arguments): Same.
10822         (vt_expand_loc_callback): Same.
10823         (resolve_expansions_pending_recursion): Same.
10824         (vt_expand_loc): Same.
10825         * varasm.c (const_hash_1): Same.
10826         (compare_constant): Same.
10827         (tree_output_constant_def): Same.
10828         (simplify_subtraction): Same.
10829         (get_pool_constant): Same.
10830         (output_constant_pool_2): Same.
10831         (output_constant_pool_1): Same.
10832         (mark_constants_in_pattern): Same.
10833         (mark_constant_pool): Same.
10834         (get_section_anchor): Same.
10835         * vr-values.c (compare_range_with_value): Same.
10836         (vr_values::extract_range_from_phi_node): Same.
10837         * vr-values.h: Same.
10838         * web.c (unionfind_union): Same.
10839         * wide-int.h: Same.
10841 2019-07-09  Martin Sebor  <msebor@redhat.com>
10843         PR c++/61339
10844         * align.h: Change class-key from class to struct and vice versa
10845         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
10846         * alloc-pool.h: Same.
10847         * asan.c (shadow_mem_size): Same.
10848         * auto-profile.c: Same.
10849         * basic-block.h: Same.
10850         * bitmap.h: Same.
10851         * cfgexpand.c (set_rtl): Same.
10852         (expand_one_stack_var_at): Same.
10853         * cfghooks.h: Same.
10854         * cfgloop.h: Same.
10855         * cgraph.h: Same.
10856         * config/i386/i386.h: Same.
10857         * df-problems.c (df_print_bb_index): Same.
10858         * df-scan.c: Same.
10859         * df.h (df_single_use): Same.
10860         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
10861         (layout::annotation_line_showed_range_p): Same.
10862         (get_printed_columns): Same.
10863         (correction::ensure_terminated): Same.
10864         (line_corrections::~line_corrections): Same.
10865         * dojump.h: Same.
10866         * dse.c: Same.
10867         * dump-context.h: Same.
10868         * dumpfile.h: Same.
10869         * dwarf2out.c: Same.
10870         * edit-context.c: Same.
10871         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
10872         * flags.h: Same.
10873         * function.c (assign_stack_local): Same.
10874         * function.h: Same.
10875         * gcc.c: Same.
10876         * gcov.c (block_info::block_info): Same.
10877         * genattrtab.c: Same.
10878         * genextract.c: Same.
10879         * genmatch.c (comparison_code_p): Same.
10880         (id_base::id_base): Same.
10881         (decision_tree::print): Same.
10882         * genoutput.c: Same.
10883         * genpreds.c (write_one_predicate_function): Same.
10884         * genrecog.c (validate_pattern): Same.
10885         (find_operand_positions): Same.
10886         (optimize_subroutine_group): Same.
10887         (merge_pattern_transition::merge_pattern_transition): Same.
10888         (merge_pattern_info::merge_pattern_info): Same.
10889         (merge_state_result::merge_state_result): Same.
10890         (merge_into_state): Same.
10891         * gensupport.c: Same.
10892         * gensupport.h: Same.
10893         * ggc-common.c (init_ggc_heuristics): Same.
10894         * ggc-tests.c (test_union): Same.
10895         * gimple-loop-interchange.cc (dump_induction): Same.
10896         * gimple-loop-versioning.cc: Same.
10897         * gimple-match.h (gimple_match_cond::any_else): Same.
10898         * gimple-ssa-backprop.c: Same.
10899         * gimple-ssa-sprintf.c: Same.
10900         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
10901         Same.
10902         (store_immediate_info::store_immediate_info): Same.
10903         (merged_store_group::apply_stores): Same.
10904         (get_location_for_stmts): Same.
10905         * gimple-ssa-strength-reduction.c: Same.
10906         * gimple-ssa-warn-alloca.c: Same.
10907         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
10908         * godump.c (go_type_decl): Same.
10909         * hash-map-tests.c (test_map_of_strings_to_int): Same.
10910         * hash-map.h: Same.
10911         * hash-set-tests.c (test_set_of_strings): Same.
10912         * hsa-brig.c: Same.
10913         * hsa-common.h: Same.
10914         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
10915         * input.c (assert_loceq): Same.
10916         * input.h: Same.
10917         * ipa-cp.c: Same.
10918         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
10919         * ipa-fnsummary.h: Same.
10920         * ipa-inline.h: Same.
10921         * ipa-prop.h: Same.
10922         * ipa-split.c (visit_bb): Same.
10923         * ira-int.h (minmax_set_iter_next): Same.
10924         * loop-invariant.c: Same.
10925         * loop-iv.c: Same.
10926         * lra-eliminations.c: Same.
10927         * lra-int.h: Same.
10928         * lra-lives.c (mark_regno_dead): Same.
10929         * lra-remat.c: Same.
10930         * lra-spills.c: Same.
10931         * lto-streamer.h: Same.
10932         * mem-stats.h: Same.
10933         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
10934         * omp-low.c (omp_clause_aligned_alignment): Same.
10935         * optabs-query.h (get_vcond_eq_icode): Same.
10936         * optabs.h: Same.
10937         * opts.c (wrap_help): Same.
10938         * poly-int.h: Same.
10939         * predict.c (predict_paths_leading_to_edge): Same.
10940         * pretty-print.h: Same.
10941         * profile-count.h: Same.
10942         * read-md.h: Same.
10943         * read-rtl-function.c: Same.
10944         * ree.c: Same.
10945         * reginfo.c: Same.
10946         * regrename.c: Same.
10947         * regrename.h: Same.
10948         * reload.h: Same.
10949         * rtl-iter.h: Same.
10950         * rtl.h (costs_add_n_insns): Same.
10951         * sanopt.c: Same.
10952         * sched-int.h: Same.
10953         * sel-sched-ir.h: Same.
10954         * selftest.h: Same.
10955         * sese.h (vec_find): Same.
10956         * stmt.c: Same.
10957         * target-globals.h: Same.
10958         * tree-affine.c (aff_combination_find_elt): Same.
10959         * tree-affine.h: Same.
10960         * tree-data-ref.h: Same.
10961         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
10962         * tree-predcom.c: Same.
10963         * tree-scalar-evolution.c (find_var_scev_info): Same.
10964         * tree-ssa-alias.h: Same.
10965         * tree-ssa-ccp.c: Same.
10966         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
10967         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
10968         (rewrite_mem_refs): Same.
10969         (execute_sm_if_changed): Same.
10970         (hoist_memory_references): Same.
10971         * tree-ssa-loop-ivopts.c (operator<=): Same.
10972         * tree-ssa-loop.h: Same.
10973         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
10974         * tree-ssa-structalias.c: Same.
10975         * tree-switch-conversion.h (cluster::cluster): Same.
10976         (simple_cluster::simple_cluster): Same.
10977         * tree-vect-patterns.c (type_conversion_p): Same.
10978         * tree-vectorizer.c (dump_stmt_cost): Same.
10979         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
10980         * tree.c (protected_set_expr_location): Same.
10981         * tree.h (desired_pro_or_demotion_p): Same.
10982         (fndecl_built_in_p): Same.
10983         * unique-ptr-tests.cc: Same.
10984         * var-tracking.c (delete_variable_part): Same.
10985         * varasm.c (assemble_real): Same.
10986         (tree_output_constant_def): Same.
10987         * vec.c: Same.
10988         * wide-int-bitmask.h: Same.
10989         * wide-int.h (decompose): Same.
10991 2019-07-09  Richard Biener  <rguenther@suse.de>
10993         PR tree-optimization/91114
10994         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
10995         find a vector type isn't fatal.
10997 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
10999         * config/aarch64/aarch64-simd.md
11000         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
11001         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
11002         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
11003         (*aarch64_crypto_aese_fused,
11004         *aarch64_crypto_aesd_fused): Update to new definition.
11005         * config/aarch64/aarch64.c
11006         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
11008 2019-07-09  Richard Biener  <rguenther@suse.de>
11010         * gimple-match.h (gimple_match_op::resimplify): New.
11011         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
11012         gimple_resimplify4, gimple_resimplify5): Remove.
11013         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
11014         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
11015         Make static.
11016         (gimple_match_op::resimplify): New.
11017         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
11018         according to availability.  Use gimple_match_op::resimplify.
11020 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
11022         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
11024 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
11026         * config/arm/crypto.md:
11027         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
11028         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
11029         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
11030         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
11031         * config/arm/arm.c
11032         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
11033         * config/arm/aarch-common-protos.h
11034         (aarch_crypto_can_dual_issue): Remove.
11035         * config/arm/aarch-common.c
11036         (aarch_crypto_can_dual_issue): Likewise.
11037         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
11038         * config/arm/cortex-a53.md: Likewise.
11039         * config/arm/cortex-a57.md: Likewise.
11040         * config/arm/iterators.md:
11041         (CRYPTO_BINARY): Redefine.
11042         (CRYPTO_UNARY): Removed.
11043         (CRYPTO_AES, CRYPTO_AESMC): New.
11045 2019-07-09  Richard Biener  <rguenther@suse.de>
11047         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
11048         (vn_reference_lookup_3): If the main ref has no access path recorded
11049         but orig_ref has use it to do access-path based disambiguation.
11050         (vn_reference_lookup_pieces): Adjust.
11051         (vn_reference_lookup): Pass down original ref if we valueized.
11053 2019-07-09  Martin Liska  <mliska@suse.cz>
11055         * doc/extend.texi: Document influence on loop
11056         optimizers.
11058 2019-07-09  Martin Liska  <mliska@suse.cz>
11060         * lto-compress.c (lto_normalized_zstd_level): Do not use
11061         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
11062         of libzstd.  One can use 0 as a default compression level.
11064 2019-07-09  Martin Liska  <mliska@suse.cz>
11066         * doc/invoke.texi: Add link from -fprofile-dir option.
11067         Use better wording for 'gcno filename'.
11069 2019-07-08  Martin Sebor  <msebor@redhat.com>
11071         PR middle-end/71924
11072         PR middle-end/90549
11073         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
11074         comment.
11075         (args_loc_t): New type.
11076         (args_loc_t, locmap_t): same.
11077         (diag_returned_locals): New function.
11078         (is_addr_local): Same.
11079         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
11080         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
11081         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
11083 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
11085         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
11086         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
11087         and casts in offset when different, both through gimple stmts
11088         and through trees.  Rewritten using loops to minimize code duplication
11089         for each operand.
11091 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
11093         * emit-rtl.c (set_insn_locations): New function moved from...
11094         * function.c (set_insn_locations): ...here.
11095         * ira-emit.c (emit_moves): Propagate location of the first instruction
11096         to the inserted move instructions.
11097         * reg-stack.c (compensate_edge): Set the location if the sequence is
11098         inserted on the edge.
11099         * rtl.h (set_insn_locations): Declare.
11101 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
11103         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
11104         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
11105         .machine string.
11107 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
11109         PR rtl-optimization/88233
11110         * common.opt (fsplit-wide-types-early): New option.
11111         * common/config/rs6000/rs6000-common.c
11112         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
11113         OPT_LEVELS_ALL.
11114         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
11115         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
11116         flag_split_wide_types_early.
11117         (pass_data_lower_subreg3): New.
11118         (pass_lower_subreg3): New.
11119         (make_pass_lower_subreg3): New.
11120         * passes.def (pass_lower_subreg2): Move after the loop passes.
11121         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
11122         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
11123         the pass pipeline; its previous place is taken by ...
11124         (make_pass_lower_subreg3): ... this.
11126 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
11128         * config/s390/s390.c (s390_shift_truncation_mask): Define.
11129         (TARGET_SHIFT_TRUNCATION_MASK): Define.
11131 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
11133         * config/s390/constraints.md: Add new jsc constraint.
11134         * config/s390/predicates.md: New predicates.
11135         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
11136         * config/s390/s390.c (s390_valid_shift_count): New function.
11137         (print_shift_count_operand): Use s390_valid_shift_count.
11138         (print_operand): Likewise.
11139         * config/s390/s390.md: Use new predicate.
11140         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
11141         * config/s390/vector.md: Use new predicate.
11143 2019-07-08  Andrew Waterman  <andrew@sifive.com>
11144             Jim Wilson  <jimw@sifive.com>
11146         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
11147         bitsize instead of BITS_PER_WORD.
11149 2019-07-08  Martin Liska  <mliska@suse.cz>
11151         * collect2.c (defined): Revert to before r254460.
11152         (scan_prog_file): Revert to before r254460.
11154 2019-07-08  Richard Biener  <rguenther@suse.de>
11156         PR tree-optimization/83518
11157         * tree-ssa-sccvn.c: Include splay-tree.h.
11158         (struct pd_range, struct pd_data): New.
11159         (struct vn_walk_cb_data): Add data to track partial definitions.
11160         (vn_walk_cb_data::~vn_walk_cb_data): New.
11161         (vn_walk_cb_data::push_partial_def): New.
11162         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
11163         (vn_reference_lookup_2): When partial defs are registered give up.
11164         (vn_reference_lookup_3): Track partial defs for memset and
11165         constructor zeroing and for defs from constants.
11167 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
11169         * doc/install.texi (bootstrap-Og): Document.
11171 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
11173         * config/riscv/pic.md (*local_pic_load_s<mode>)
11174         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
11175         referenced by <mode>, giving...
11176         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
11177         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
11178         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
11179         use <X:MODE> for the mode attribute.
11181 2019-07-07  Jeff Law  <law@redhat.com>
11183         PR tree-optimization/91090
11184         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
11185         in handling of ranges to simplify switch statements.
11187 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
11189         * config/darwin.c (darwin_override_options): Make a final check on PIC
11190         options.
11192 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
11194         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
11195         on for kernel code.
11197 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
11199         PR target/91068
11200         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
11201         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
11202         instead of matching them to "l" output operands.
11204 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
11206         * config/mips/mips.c (mips_split_move): Zero-initialize addr
11207         and check whether addr.reg is nonnull before using it.
11209 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
11211         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
11212         ctx->for_simd_scan_phase simd copy the outer var to the privatized
11213         variable(s).  For conditional lastprivate look through outer
11214         GIMPLE_OMP_SCAN context.
11215         (lower_omp_1): For conditional lastprivate look through outer
11216         GIMPLE_OMP_SCAN context.
11218         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
11219         member to combined_into_simd_safelen1.
11220         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
11221         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
11222         clauses if ctx->combined_into_simd_safelen1 put statements after the
11223         predicate conditionalized block rather than into it.
11225 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11227         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
11228         operand 1.
11229         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
11230         Make the choice of <mode> explicit, giving...
11231         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
11233 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11235         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
11236         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
11237         of .md attributes.
11238         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
11239         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
11240         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
11241         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
11242         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
11243         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
11244         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
11245         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
11246         (*avx512f_scatterdi<mode>): Likewise.
11247         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
11249 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11251         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
11252         specify the mode iterator referenced by <mode>, giving...
11253         (*push1_h8300hs_<QHI:mode>): ...this.
11255 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11257         * config/gcn/gcn-valu.md
11258         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
11259         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
11260         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
11261         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
11262         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
11263         but using the _exec comparison patterns.
11264         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
11265         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
11266         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
11267         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
11268         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
11269         but using the _exec comparison patterns.
11271 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11273         * config/arm/sync.md
11274         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
11275         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
11276         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
11277         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
11278         <SIDI:cas_cmp_str>.
11280 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
11282         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
11283         (maybe_lookup_ctx): Add forward declaration.
11284         (omp_find_scan): Likewise.  Walk into body of simd if composited
11285         with worksharing loop.
11286         (scan_omp_simd_scan): New function.
11287         (scan_omp_1_stmt): Call it.
11288         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
11289         ctx->for_simd_scan_phase.
11290         (lower_rec_input_clauses): Do much less work for inscan reductions
11291         in ctx->for_simd_scan_phase is_simd regions.
11292         (lower_omp_scan): Set is_simd also on simd constructs composited
11293         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
11294         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
11295         emit their body after in simd constructs composited with worksharing
11296         loop.
11297         (lower_omp_for_scan): Handle worksharing loop composited with simd.
11299         * omp-low.c (omp_find_scan): Make static.
11300         (lower_omp_for_scan): Fix order of merge arguments in input phase of
11301         the second loop, var2 represents the first partial sum and so needs
11302         to go before rprivb[ivar].
11304 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
11306         * config/rs6000/rs6000-logue.c: Remove unused code.
11308 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
11310         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
11312 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
11314         PR target/90712
11315         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
11316         check with a frame laid out check.
11318 2019-07-05  Richard Biener  <rguenther@suse.de>
11320         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
11321         when comparing against a store with possibly the same value.
11323 2019-07-05  Richard Biener  <rguenther@suse.de>
11325         PR tree-optimization/91091
11326         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
11327         (walk_non_aliased_vuses): Likewise.
11328         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
11329         (get_continuation_for_phi): New tbaa_p parameter and pass
11330         it down.
11331         (walk_non_aliased_vuses): Likewise.
11332         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
11333         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
11334         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
11335         Likewise.
11336         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
11337         (adjust_offsets_for_equal_base_address): New function.
11338         (vn_reference_lookup_3): Use it to catch more base equivalences.
11339         Handle and pass down tbaa_p flag.
11340         (vn_reference_lookup_pieces): Adjust.
11341         (vn_reference_lookup): Remove alias-set altering, instead pass
11342         down false as tbaa_p.
11344 2019-07-05  Richard Biener  <rguenther@suse.de>
11346         PR tree-optimization/91091
11347         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
11348         accesses can happen with -fno-strict-aliasing.
11350 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
11352         * tree-ssa-alias.c (alias_stats): Add
11353         nonoverlapping_component_refs_since_match_p_must_overlap.
11354         (dump_alias_stats): Print it.
11355         (nonoverlapping_component_refs_since_match_p): Add early exit.
11356         (nonoverlapping_component_refs_p): Do not account early exit.
11358 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
11360         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
11361         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
11362         (emit_eh_dispatch): Delete.
11363         (lower_catch): Emit the eh_dispatch manually and set the location of
11364         the first catch statement onto it.
11365         (lower_eh_filter): Emit the eh_dispatch manually and set location.
11366         (lower_eh_dispatch): Propagate location.
11367         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
11368         (eliminate_build): Likewise.
11370 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
11372         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
11373         phi nodes if possible.
11374         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
11375         location info on the newly created statement.
11376         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
11377         newly created increment if needed.
11379 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
11381         PR middle-end/78884
11382         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
11383         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
11384         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
11385         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
11386         ctx->add_safelen1 is set.
11388         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
11389         GOMP_loop_start at the start of second worksharing loop in a scan.
11390         For nowait, don't emit GOMP_loop_end_nowait at the end of first
11391         worksharing loop in a scan even if there are conditional lastprivates,
11392         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
11394 2019-07-04  Jan Hubicka  <jh@suse.cz>
11396         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11397         Fix check for match in the ref walk.
11399 2019-07-04  Martin Liska  <mliska@suse.cz>
11401         * tree-ssa-loop-niter.c
11402         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
11403         (estimate_numbers_of_iterations):
11404         Support __builtin_expect_with_probability for analysis
11405         of # of loop iterations.
11407 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
11409         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
11410         * except.c: Likewise.
11411         * expr.c (expand_expr_real_1): Reject it.
11412         * gimplify.c (gimplify_expr): Gimplify it, within
11413         TRY_FINALLY_EXPR.
11414         * tree-dump.c (dequeue_and_dump): Dump it.
11415         * tree-pretty-print.c (dump_generic_node): Likewise.
11416         * tree.c (block_may_fallthru): Handle it.
11417         * tree.def (EH_ELSE_EXPR): Introduce it.
11418         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
11419         with GIMPLE_EH_ELSE as try/finally/else.
11421 2019-07-04  Richard Biener  <rguenther@suse.de>
11423         PR ipa/91062
11424         * tree-pass.h (execute_all_ipa_transforms): Add a flag
11425         parameter whether to disable GC collection.
11426         * passes.c (execute_one_ipa_transform_pass): Likewise, and
11427         honor it.
11428         (execute_all_ipa_transforms): Likewise and pass it down.
11429         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
11430         collection from applying IPA transforms.
11431         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
11432         from applying IPA transforms.
11434 2019-07-04  Richard Biener  <rguenther@suse.de>
11436         PR tree-optimization/90911
11437         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
11438         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
11439         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11440         scalar_loop_scaling.
11441         (vect_transform_loop): Scale scalar loop profile if needed.
11442         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
11443         the loop copy from if-conversion adjust edge probabilities
11444         and scale the vectorized loop body profile, queue the scalar
11445         profile for updating after peeling.
11447 2019-07-04  Jan Hubicka  <jh@suse.cz>
11449         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
11450         parameters; return early for must-alias.
11451         (indirect_ref_may_alias_decl_p): Likewise; when establishing
11452         outer types match, try nonoverlapping_component_refs
11453         if must-alias is not obvious.
11454         (indirect_refs_may_alias_p): Likewise.
11455         (refs_may_alias_p_2): Likewise.
11457 2019-07-04  Richard Biener  <rguenther@suse.de>
11459         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
11460         argument.
11461         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
11462         globals into...
11463         (struct vn_walk_cb_data): New callback data struct.
11464         (vn_reference_lookup_2): Adjust.
11465         (vn_reference_lookup_3): Likewise.
11466         (vn_reference_lookup_pieces): Likewise.
11467         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
11468         (visit_reference_op_load): Adjust.
11470 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
11472         PR tree-optimization/91063
11473         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
11474         stmt from stmts sequence before calling vect_init_vector_1.
11475         Formatting fix.
11477 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11479         PR target/88833
11480         * fwprop.c (reg_single_def_p): New function.
11481         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
11482         (forward_propagate_into): New parameter reg_prop_only
11483         with default value false.
11484         Propagate def's src into loop only if SET_SRC and SET_DEST
11485         of def_set have single definitions.
11486         Likewise if reg_prop_only is set to true.
11487         (fwprop): New param fwprop_addr_p.
11488         Integrate fwprop_addr into fwprop.
11489         (fwprop_addr): Remove.
11490         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
11491         to true.
11492         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
11493         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
11494         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
11496 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
11498         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
11499         in worksharing loop scans.
11501         PR tree-optimization/91074
11502         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
11503         temporary.
11505         PR rtl-optimization/90756
11506         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
11507         for VECTOR_TYPE_P.
11509 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
11511         * config/aarch64/aarch64.md: Remove redundant constraints from
11512         define_expand but keep some patterns untouched if they are
11513         specially selected by TARGET_SECONDARY_RELOAD hook.
11514         * config/aarch64/aarch64-sve.md: Likewise.
11515         * config/aarch64/atomics.md: Remove redundant constraints from
11516         define_expand.
11517         * config/aarch64/aarch64-simd.md: Likewise.
11519 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
11521         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
11522         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
11523         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
11524         clauses.
11525         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
11526         DARWIN_NOPIE_SPEC.
11528 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
11530         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
11531         (STARTFILE_SPEC): Split crt3 into a separate spec.
11532         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
11533         (DARWIN_CRT2_SPEC): New.
11534         (DARWIN_CRT3_SPEC): New.
11535         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
11536         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
11537         (DARWIN_CRT3_SPEC): New.
11539 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
11541         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
11542         Change the RTL attribute "length" from "4" to "*" to allow the
11543         length attribute to be adjusted automatically for prefixed load,
11544         store, and add immediate instructions.
11545         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
11546         Likewise.
11547         (extendsi<mode>2, EXTSI iterator): Likewise.
11548         (movsi_internal1): Likewise.
11549         (movsi_from_sf): Likewise.
11550         (movdi_from_sf_zero_ext): Likewise.
11551         (mov<mode>_internal): Likewise.
11552         (movcc_internal1, QHI iterator): Likewise.
11553         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
11554         (movsf_from_si): Likewise.
11555         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
11556         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
11557         (mov<mode>, FMOVE128 iterator): Likewise.
11558         (movdi_internal64): Likewise.
11559         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
11560         Likewise.
11561         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
11562         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
11563         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
11564         (vsx_splat_v4sf): Likewise.
11566 2019-07-03  Mark Wielaard  <mark@klomp.org>
11568         PR debug/90981
11569         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
11570         DW_AT_addr_base if there is actually a .debug_addr section with
11571         addresses.
11572         (output_addr_table): Add DWARF5 table header generation here after
11573         checking there are actually any addresses from...
11574         (dwarf2out_finish): ...here.
11576 2019-07-03  Richard Biener  <rguenther@suse.de>
11578         PR middle-end/91069
11579         * match.pd (vec_perm -> bit_insert): Fix element read from
11580         first vector.
11582 2019-07-03  Martin Liska  <mliska@suse.cz>
11584         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
11585         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
11586         condition.
11587         * generic-match-head.c: Include dbgcnt.h.
11588         * gimple-match-head.c: Likewise.
11590 2019-07-03  Martin Liska  <mliska@suse.cz>
11592         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
11593         (GCOV_COUNTER_V_TOPN): New.
11594         (GCOV_COUNTER_V_INDIR): Use _topn.
11595         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
11596         (GCOV_TOPN_VALUES): New.
11597         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
11598         (GCOV_TOPN_VALUES_COUNTERS): New.
11599         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
11600         * tree-profile.c:
11601         (gimple_init_gcov_profiler): Rename variables from one_value
11602         to topn_values.
11603         (gimple_gen_one_value_profiler): Remove.
11604         (gimple_gen_topn_values_profiler): New function.
11605         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
11606         names instead of SINGLE_VALUE.
11607         (stream_out_histogram_value): Likewise.
11608         (stream_in_histogram_value): Likewise.
11609         (get_most_common_single_value): Likewise.
11610         (gimple_divmod_fixed_value_transform): Likewise.
11611         (gimple_stringops_transform): Likewise.
11612         (gimple_divmod_values_to_profile): Likewise.
11613         (gimple_stringops_values_to_profile): Likewise.
11614         (gimple_find_values_to_profile): Likewise.
11615         * value-prof.h (enum hist_type): Rename to TOPN.
11616         (gimple_gen_one_value_profiler): Remove.
11617         (gimple_gen_topn_values_profiler): New.
11619 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
11621         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
11622         if it has the DW_AT_data_member_location attribute.
11624 2019-07-03  Richard Biener  <rguenther@suse.de>
11626         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
11627         dumping.
11629 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
11631         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
11632         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
11633         (tlsdesc_small_sve_<mode>): Likewise.
11635 2019-07-03  Martin Liska  <mliska@suse.cz>
11637         * Makefile.in: Define ZSTD_LIB.
11638         * common.opt: Adjust compression level
11639         to support also zstd levels.
11640         * config.in: Regenerate.
11641         * configure: Likewise.
11642         * configure.ac: Add --with-zstd and --with-zstd-include options
11643         and detect ZSTD.
11644         * doc/install.texi: Mention zstd dependency.
11645         * gcc.c: Print supported LTO compression algorithms.
11646         * lto-compress.c (lto_normalized_zstd_level): Likewise.
11647         (lto_compression_zstd): Likewise.
11648         (lto_uncompression_zstd): Likewise.
11649         (lto_end_compression): Dispatch in between zlib and zstd.
11650         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
11651         (lto_uncompression_zlib): Make it static.
11652         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
11653         * lto-section-in.c (lto_get_section_data): Pass info
11654         about used compression.
11655         * lto-streamer-out.c: By default use zstd when possible.
11656         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
11657         (TV_IPA_LTO_COMPRESS): Likewise for compression.
11659 2019-07-03  Martin Liska  <mliska@suse.cz>
11661         * lto-section-in.c (lto_get_section_data): Add "lto" section.
11662         * lto-section-out.c (lto_destroy_simple_output_block): Never
11663         compress LTO_section_lto section.
11664         * lto-streamer-out.c (produce_asm): Do not set major_version
11665         and minor_version.
11666         (lto_output_toplevel_asms): Likewise.
11667         (produce_lto_section): New function.
11668         (lto_output): Call produce_lto_section.
11669         (lto_write_mode_table): Do not set major_version and
11670         minor_version.
11671         (produce_asm_for_decls): Likewise.
11672         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
11673         type.
11674         (struct lto_header): Remove.
11675         (struct lto_section): New struct.
11676         (struct lto_simple_header): Do not inherit from lto_header.
11677         (struct lto_file_decl_data): Add lto_section_header field.
11679 2019-07-03  Martin Liska  <mliska@suse.cz>
11681         * lra-eliminations.c (eliminate_regs_in_insn): Remove
11682         dead assignemts.
11683         * reg-stack.c (check_asm_stack_operands): Likewise.
11684         * tree-ssa-structalias.c (create_function_info_for): Likewise.
11685         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
11686         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
11687         force_expand_binop.
11689 2019-07-03  Martin Liska  <mliska@suse.cz>
11691         PR tree-optimization/90892
11692         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
11693         in string constants.
11695 2019-07-03  Martin Liska  <mliska@suse.cz>
11697         PR middle-end/90899
11698         * multiple_target.c (create_dispatcher_calls): Add to comdat
11699         group only if set for ifunc.
11701 2019-07-03  Martin Liska  <mliska@suse.cz>
11703         PR target/88056
11704         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
11705         Define local_object_name in outer scope in order to handle
11706         use-after-scope issue.
11708 2019-07-03  Martin Liska  <mliska@suse.cz>
11710         * common.opt: Add fprofile-note.
11711         * coverage.c (coverage_init): Append the option
11712         to bbg_file_name.
11713         * doc/invoke.texi: Document -fprofile-note.
11715 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
11717         PR tree-optimization/91033
11718         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
11719         vect_analyze_data_refs): Add bool * arguments.
11720         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
11721         if failure is due to scatter/gather, set *fatal to false if non-NULL.
11722         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11723         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
11724         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
11725         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
11726         vect_analyze_data_refs caller.
11728         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
11729         clause.
11730         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
11731         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
11732         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
11733         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11734         OMP_CLAUSE__SCANTEMP_ entry.
11735         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
11736         * tree-pretty-print.c (dump_omp_clause): Likewise.
11737         * tree-nested.c (convert_nonlocal_omp_clauses,
11738         convert_local_omp_clauses): Likewise.
11739         * omp-general.h (struct omp_for_data): Add have_scantemp and
11740         have_nonctrl_scantemp members.
11741         * omp-general.c (omp_extract_for_data): Initialize them.
11742         * omp-low.c (struct omp_context): Add scan_exclusive member.
11743         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
11744         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
11745         ctx->scan_exclusive.
11746         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
11747         of !ctx->scan_inclusive.
11748         (lower_rec_input_clauses): Simplify gimplification of dtors using
11749         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
11750         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
11751         loops.  Don't add barrier for reduction_omp_orig_ref if
11752         ctx->scan_??xclusive.
11753         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
11754         (lower_omp_scan): Use ctx->scan_exclusive instead
11755         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
11756         reductions.  Use new_vard != new_var instead of repeated
11757         omp_is_reference calls.
11758         (omp_find_scan, lower_omp_for_scan): New functions.
11759         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
11760         inscan reductions.
11761         * omp-expand.c (expand_omp_scantemp_alloc): New function.
11762         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
11763         and fd->have_scantemp.
11765         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
11766         on worksharing loop propagate it as shared clause to containing
11767         combined parallel.
11769         * omp-expand.c (expand_omp_for_static_nochunk,
11770         expand_omp_for_static_chunk): For nowait worksharing loop with
11771         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
11772         at the end.
11774 2019-07-02  qing zhao  <qing.zhao@oracle.com>
11776         PR preprocessor/90581
11777         * doc/cppopts.texi: Add document for -fmax-include-depth.
11778         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
11780 2019-07-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11782         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
11783         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
11784         (mmx_packssdw): Ditto.
11785         (mmx_punpckhbw): Ditto.
11786         (mmx_punpcklbw): Ditto.
11787         (mmx_punpckhwd): Ditto.
11788         (mmx_punpcklwd): Ditto.
11789         (mmx_punpckhdq): Ditto.
11790         (mmx_punpckldq): Ditto.
11791         (*vec_dupv4hi): Ditto.
11792         (*vec_dupv2si): Ditto.
11793         (mmx_pmovmskb): Ditto.
11794         * config/i386/sse.md (sse_cvtpi2ps): Use
11795         TARGET_SSE2 && SSE_REG_P in split condition.
11796         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
11797         TARGET_SSSE3 && SSE_REGNO_P in split condition.
11798         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
11799         (ssse3_pshufbv8qi3): Ditto.
11800         (ssse3_palignrdi): Ditto.
11802 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
11804         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
11805         with inlined save and restore.
11807 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
11809         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
11810         to be inserted on single successor edge of the entry block.  Then call
11811         commit_edge_insertions instead of inserting the instructions manually.
11812         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
11813         RTL expansion and rebuild jump labels chain.
11815 2019-07-02  Richard Biener  <rguenther@suse.de>
11817         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
11818         TI_CHREC_KNOWN.
11819         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
11820         Define here.
11821         * tree.c (build_common_tree_nodes): Initialize them.
11822         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
11823         Make declarations comments.
11824         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
11825         chrec_known): Remove definitions.
11826         (initialize_scalar_evolutions_analyzer): Remove.
11827         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
11828         * tree-streamer.c (preload_common_nodes): Do not preload
11829         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
11831 2019-07-02  Jan Hubicka  <jh@suse.cz>
11833         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
11834         sanity check.
11836 2019-07-02  Jan Hubicka  <jh@suse.cz>
11838         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
11839         to ..
11840         (nonoverlapping_component_refs_since_match_p): ... this one;
11841         handle also non-decl bases; return -1 if search gave up.
11842         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
11843         nonoverlapping_component_refs_of_decl_p_no_alias to
11844         nonoverlapping_component_refs_since_match_p_may_alias,
11845         nonoverlapping_component_refs_since_match_p_no_alias.
11846         (dump_alias_stats): Update dumping.
11847         (aliasing_matching_component_refs_p): Break out from ...;
11848         dispatch to nonoverlapping_component_refs_for_decl_p
11849         and nonoverlapping_component_refs_since_match_p.
11850         (aliasing_component_refs_p): ... here; call
11851         nonoverlapping_component_refs_p in scenarios where we can not
11852         precisely determine base match.
11853         (decl_refs_may_alias_p): Use
11854         nonoverlapping_component_refs_since_match_p.
11855         (indirect_ref_may_alias_decl_p): Do not call
11856         nonoverlapping_component_refs_p.
11857         (indirect_refs_may_alias_p): Likewise.
11859 2019-07-02  Jan Hubicka  <jh@suse.cz>
11861         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
11862         to clobber of return value.
11864 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11866         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
11867         for is_neon_type instructions that have not already been categorized.
11869 2019-07-02  Richard Biener  <rguenther@suse.de>
11871         PR tree-optimization/58483
11872         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
11873         for MEM_REF base hashing.
11874         (equal_mem_array_ref_p): Likewise for base comparison.
11876 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11878         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
11879         parameterized name.
11880         (signbit<mode>2): Use that name.  Simplify.
11882 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
11884         PR middle-end/66726
11885         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
11886         Tune heuristic from PR71016 to allow MIN / MAX.
11888 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11890         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
11891         parameterized name.
11892         (abs<mode>2): Use that name.  Simplify.
11894 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11896         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
11897         parameterized name.
11898         (neg<mode>2): Use that name.  Simplify.
11900 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11902         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
11903         name.
11904         (abs<mode>2): Use that name.  Simplify.
11906 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11908         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
11909         name.
11910         (neg<mode>2): Use that name.  Simplify.
11912 2019-07-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
11914         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
11915         ("enabled" attribute): Handle sse_noavx isa attribute.
11916         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
11917         Use TARGET_SSE && SSE_REGNO_P in split condition.
11918         (*vec_dupv2sf): Ditto.
11920 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11922         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
11923         name.
11924         (floatsi<mode>2): Use that name.  Simplify.
11926 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11928         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
11929         parameterized name.
11930         (extenddf<mode>2_vsx): Make this a parameterized name.
11931         (extenddf<mode>2): Use those names.  Simplify.
11933 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11935         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
11936         name.
11937         (eh_return): Use that name.  Simplify.
11939 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11941         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
11942         (doloop_end): Use that name.  Simplify.
11944 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11946         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
11947         parameterized name.
11948         (indirect_jump): Use that name.  Simplify.
11950 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11952         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
11953         parameterized name.
11954         (abs<mode>2): Use that name.  Simplify.
11956 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11958         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
11959         parameterized name.
11960         (fix_trunc<mode>si2): Use that name.  Simplify.
11962 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11964         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
11965         (allocate_stack): Use that name.  Simplify.
11967 2019-07-01  Martin Sebor  <msebor@redhat.com>
11969         PR middle-end/90923
11970         * hash-map.h (hash_map::put): On insertion invoke element ctor.
11971         (hash_map::get_or_insert): Same.  Reformat comment.
11972         * hash-set.h (hash_set::add): On insertion invoke element ctor.
11973         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
11974         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
11975         * hash-table.h (hash_table::operator=): Prevent copy assignment.
11976          (hash_table::hash_table (const hash_table&)): Use copy ctor
11977          instead of assignment to copy elements.
11979 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
11980             John David Anglin  <danglin@gcc.gnu.org>
11982         PR target/90963
11983         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
11984         using saved frame pointer.
11986 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
11988         PR middle-end/64242
11989         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
11990         Add frame clobber and schedule blockage.
11992 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
11994         * doc/invoke.texi (Link Options): Further editorial changes to
11995         -flinker-output docs.
11997 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
11999         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
12000         Load both operands of a PLUS into registers separately.
12002 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
12004         * config/s390/vector.md: Fix shift count operand printing.
12006 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12008         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
12010 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12012         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
12013         Use recog_data to test for an output operand.
12015 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12017         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
12018         exclude any others that are disparaged or that are bound to need
12019         a reload or spill.
12020         (ira_get_dup_out_num): Expand comment.
12022 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12024         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
12025         constraint string for each operand/alternative combo.  Only handle
12026         '%' at the start of constraint strings, and look for it outside
12027         the main loop.
12029 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12031         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
12032         alternative_mask instead of HARD_REG_SET to represent a
12033         bitmask of alternatives.
12034         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12035         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
12037 2019-07-01  Martin Liska  <mliska@suse.cz>
12039         * edit-context.c (test_applying_fixits_unreadable_file): Do not
12040         use () for a constructor call.
12041         (test_applying_fixits_line_out_of_range): Likewise.
12042         * ggc-page.c (alloc_page): Use (void *) for %p printf format
12043         argument.
12044         (free_page): Likewise.
12046 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
12048         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
12049         parameter names to match usage (no functional change).
12050         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
12052 2019-07-01  Richard Biener  <rguenther@suse.de>
12054         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
12055         pass parameter.
12056         (pass_fre::execute): Honor it.
12057         * passes.def: Adjust pass_fre invocations to allow iterating,
12058         add non-iterating pass_fre before late threading/dom.
12060 2019-07-01  Richard Biener  <rguenther@suse.de>
12062         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
12063         TARGET_MEM_REF handling to also handle address-taken ones.
12065 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
12067         * doc/sourcebuild.texi (Effective-Target Keywords, Other
12068         hardware attributes): Document avx512vp2intersect.
12070 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12072         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
12073         (abs<mode>2): New expander.
12074         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
12075         Use CODE_FOR_ssse3_absv8qi2.
12076         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
12077         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
12079 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12081         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
12082         to sse, sse_noavx and avx.  Update all uses.
12084 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12086         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
12087         (*mmx_<plusminus_insn><mode>3): Ditto.
12088         (*mmx_mulv4hi3"): Ditto.
12089         (*mmx_smulv4hi3_highpart): Ditto.
12090         (*mmx_umulv4hi3_highpart): Ditto.
12091         (*mmx_pmaddwd): Ditto.
12092         (*sse2_umulv1siv1di3): Ditto.
12093         (*mmx_<code>v4hi3): Ditto.
12094         (*mmx_<code>v8qi3): Ditto.
12095         (mmx_ashr<mode>3): Ditto.
12096         ("mmx_<shift_insn><mode>3): Ditto.
12097         (*mmx_eq<mode>3): Ditto.
12098         (mmx_gt<mode>3): Ditto.
12099         (mmx_andnot<mode>3): Ditto.
12100         (*mmx_<code><mode>3): Ditto.
12101         (*mmx_pinsrw): Ditto.
12102         (*mmx_pextrw): Ditto.
12103         (mmx_pshufw_1): Ditto.
12104         (*mmx_uavgv8qi3): Ditto.
12105         (*mmx_uavgv4hi3): Ditto.
12106         ("mmx_psadbw): Ditto.
12107         * config/i386/sse.md (sse_cvtps2pi): Ditto.
12108         (sse_cvttps2pi): Ditto.
12109         (ssse3_pmaddubsw): Ditto.
12110         (*ssse3_pmulhrswv4hi3): Ditto.
12111         (ssse3_psign<mode>3): Ditto.
12113 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12115         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
12116         adjustment for bit-fields to all aggregate types.
12118 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
12120         * config/rs6000/predicates.md (pcrel_address): Use
12121         SYMBOL_REF_LOCAL_P to determine if a label is local.
12122         (pcrel_external_address): New predicate.
12123         (non_prefixed_mem_operand): Delete, predicate not used.
12124         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
12125         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
12126         addressing.
12127         (SYMBOL_REF_PCREL_P): Likewise.
12129         PR target/91009
12130         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
12131         alternative.
12132         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
12133         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
12134         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
12136 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
12138         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
12139         override on extra_headers.
12141 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
12143         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
12144         * config/darwin-driver.c (darwin_default_min_version): Remove newline
12145         from warning.
12146         (darwin_driver_init): Likewise.
12148 2019-06-28  Jan Beulich  <jbeulich@suse.com>
12150         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12151         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
12152         Eliminate redundant alternative.
12154 2019-06-28  Jan Beulich  <jbeulich@suse.com>
12156         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12157         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
12158         Use vector_operand.
12160 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
12162         * config/arc/arc.c (arc_rtx_costs): All short instructions are
12163         having a lower cost regardless of the speed option.
12165 2019-06-28  Jan Beulich  <jbeulich@suse.com>
12167         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
12168         vector_operand plus, on both alternatives, "Bm" constraint.
12170 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
12172         * config/arm/arm.md: Remove redundant constraints from
12173         define_expand but leave reload_inm and reload_outm patterns
12174         untouched since they need special constraints to work.
12175         * config/arm/arm-fixed.md: Remove redundant constraints from
12176         define_expand.
12177         * config/arm/iwmmxt.md: Likewise.
12178         * config/arm/neon.md: Likewise.
12179         * config/arm/sync.md: Likewise.
12180         * config/arm/thumb1.md: Likewise.
12181         * config/arm/vec-common.md: Likewise.
12183 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
12185         * doc/install.texi: Document --disable-tm-clone-registry.
12187 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
12189         PR c++/91024
12190         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
12191         statements.
12193         PR tree-optimization/91010
12194         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
12195         return true.  Otherwise, don't call operand_equal_p if offset1 or
12196         offset2 is NULL and just return false.
12198 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
12200         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
12201         user-specified float mode choice for kernel mode code.
12203 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
12205         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
12206         spec.
12208 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
12210         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
12211         use longcall for 64b code.
12213 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
12215         * builtins.c (get_memory_rtx): Fix comment.
12216         * optabs.def (movmem_optab): Change to cpymem_optab.
12217         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
12218         (emit_block_move_hints): Change movmem to cpymem.
12219         * defaults.h: Change movmem to cpymem.
12220         * targhooks.c (get_move_ratio): Change movmem to cpymem.
12221         (default_use_by_pieces_infrastructure_p): Ditto.
12222         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
12223         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
12224         to cpymem.
12225         * config/aarch64/aarch64.h: Change movmem to cpymem.
12226         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
12227         * config/alpha/alpha.h: Change movmem to cpymem in comment.
12228         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
12229         movmem to cpymem.
12230         * config/arc/arc-protos.h: Change movmem to cpymem.
12231         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
12232         * config/arc/arc.h: Change movmem to cpymem in comment.
12233         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
12234         * config/arm/arm-protos.h: Change movmem to cpymem in names.
12235         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
12236         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
12237         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
12238         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
12239         * config/avr/avr-protos.h: Change movmem to cpymem.
12240         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
12241         avr_out_movmem): Change movmem to cpymem.
12242         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
12243         Change movmem to cpymem.
12244         * config/bfin/bfin-protos.h: Change movmem to cpymem.
12245         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
12246         Change movmem to cpymem.
12247         * config/bfin/bfin.h: Change movmem to cpymem in comment.
12248         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
12249         * config/c6x/c6x-protos.h: Change movmem to cpymem.
12250         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
12251         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
12252         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
12253         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
12254         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
12255         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
12256         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
12257         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
12258         expand_small_cpymem_or_setmem,
12259         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
12260         expand_set_or_cpymem_constant_prologue,
12261         ix86_expand_set_or_cpymem): Change movmem to cpymem.
12262         * config/i386/i386-protos.h: Change movmem to cpymem.
12263         * config/i386/i386.h: Change movmem to cpymem in comment.
12264         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
12265         (setmem<mode>): Change expansion function name.
12266         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
12267         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
12268         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
12269         * config/m32c/m32c-protos.h: Change movmem to cpymem.
12270         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
12271         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
12272         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
12273         to cpymem.
12274         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
12275         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
12276         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
12277         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
12278         Change movmem to cpymem.
12279         * config/mips/mips.h: Change movmem to cpymem.
12280         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
12281         * config/nds32/nds32-memory-manipulation.c
12282         (nds32_expand_movmemsi_loop_unknown_size,
12283         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
12284         nds32_expand_movmemsi_unroll,
12285         nds32_expand_movmemsi): Change movmem to cpymem.
12286         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
12287         * config/nds32/nds32-protos.h: Change movmem to cpymem.
12288         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
12289         (pa_adjust_insn_length): Change call to compute_movmem_length.
12290         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
12291         movmemdi, movmemdi_prereload,
12292         movmemdi_postreload): Change movmem to cpymem.
12293         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
12294         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
12295         * config/riscv/riscv.c: Change movmem to cpymem in comment.
12296         * config/riscv/riscv.h: Change movmem to cpymem.
12297         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
12298         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
12299         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
12300         movmem to cpymem.
12301         * config/s390/s390-protos.h: Change movmem to cpymem.
12302         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
12303         s390_expand_insv): Change movmem to cpymem.
12304         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
12305         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
12306         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
12307         * config/sparc/sparc.h: Change movmem to cpymem in comment.
12308         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
12309         for nonexistent function.
12310         * config/vax/vax.h: Change movmem to cpymem in comment.
12311         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
12312         * config/visium/visium.h: Change movmem to cpymem in comment.
12313         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
12314         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
12315         * doc/md.texi: Change movmem to cpymem and update description to match.
12316         * doc/rtl.texi: Change movmem to cpymem.
12317         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
12318         * doc/tm.texi: Regenerate.
12320 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
12322         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
12323         -fvariable-expansion-in-unroller by default.
12324         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
12325         default for Power.
12327 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
12329         Revert
12330         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
12331         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12333         * config.gcc(rs6000-*-*): Define target_gtfiles.
12335 2019-06-27  Jan Hubicka  <jh@suse.cz>
12337         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
12338         (add_type_duplicate): When odr hash is not allocated, to nothing.
12339         (odr_based_tbaa_p): New function.
12340         (set_type_canonical_for_odr_type): New function.
12341         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
12342         set_type_canonical_for_odr_type): New.
12343         * tree.c (gimple_canonical_types_compatible_p): ODR types with
12344         ODR based TBAA are not equivalent to non-ODR types.
12346 2019-06-27  Martin Liska  <mliska@suse.cz>
12348         PR tree-optimization/90974
12349         PR rtl-optimization/90975
12350         PR rtl-optimization/90976
12351         PR target/91016
12352         PR tree-optimization/91017
12353         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
12354         unused tmp.
12355         * lra.c (lra_set_insn_recog_data): Remove a leftover from
12356         initial commit of IRA.
12357         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
12358         of op0 and op1.
12359         * tree-vect-loop.c (vect_create_epilog_for_reduction):
12360         Remove unused mode1.
12361         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
12362         to new_stmt_info.
12364 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
12366         PR target/90991
12367         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
12368         instead of register_operand for operands[1], add m to its constraints
12369         if operands[2] uses "C" constraint.  Ensure in condition that if
12370         operands[2] is not 0, then operands[1] is not a MEM.  For last two
12371         alternatives, use unaligned loads instead of aligned if operands[1] is
12372         misaligned_operand.
12374 2019-06-27  Martin Liska  <mliska@suse.cz>
12376         * asan.c (asan_emit_allocas_unpoison): Remove obviously
12377         dead assignments.
12378         * bt-load.c (move_btr_def): Likewise.
12379         * builtins.c (expand_builtin_apply_args_1): Likewise.
12380         (expand_builtin_apply): Likewise.
12381         * cfgexpand.c (expand_asm_stmt): Likewise.
12382         (construct_init_block): Likewise.
12383         * cfghooks.c (verify_flow_info): Likewise.
12384         * cfgloopmanip.c (remove_path): Likewise.
12385         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
12386         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
12387         * combine.c (simplify_if_then_else): Likewise.
12388         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12389         (choose_basereg): Likewise.
12390         (ix86_expand_prologue): Likewise.
12391         (ix86_preferred_output_reload_class): Likewise.
12392         * cselib.c (cselib_record_sets): Likewise.
12393         * df-scan.c (df_scan_alloc): Likewise.
12394         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
12395         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
12396         * emit-rtl.c (try_split): Likewise.
12397         * graphite-scop-detection.c (assign_parameter_index_in_region):
12398         Likewise.
12399         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
12400         * ira-color.c (setup_profitable_hard_regs): Likewise.
12401         * ira.c (rtx_moveable_p): Likewise.
12402         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
12403         * read-rtl.c (read_subst_mapping): Likewise.
12404         * regrename.c (scan_rtx): Likewise.
12405         * reorg.c (fill_slots_from_thread): Likewise.
12406         * tree-inline.c (tree_function_versioning): Likewise.
12407         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
12408         * tree-ssa-sink.c (statement_sink_location): Likewise.
12409         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
12410         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
12411         (vect_create_epilog_for_reduction): Likewise.
12412         * tree.c (build_nonstandard_integer_type): Likewise.
12414 2019-06-27  Richard Biener  <rguenther@suse.de>
12416         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
12418 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
12420         PR tree-optimization/89772
12421         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
12422         out-of-bound accesses checking.
12424 2019-06-27  Martin Liska  <mliska@suse.cz>
12426         PR tree-optimization/91014
12427         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
12428         when LHS is NULL_TREE.
12430 2019-06-27  Martin Liska  <mliska@suse.cz>
12432         * symbol-summary.h (traverse): Pass
12433         argument a to the call of callback.
12434         (gt_ggc_mx): Mark arguments as unused.
12435         (gt_pch_nx): Likewise.
12437 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
12439         PR target/62147
12440         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
12441         finiteness.
12443 2019-06-26  Jeff Law  <law@redhat.com>
12445         PR tree-optimization/90883
12446         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
12447         (delete_dead_or_redundant_assignment): Likewise.
12449         PR tree-optimization/90883
12450         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
12451         * tree-ssa-dse.c: Update various comments to distinguish between
12452         dead and redundant stores.
12453         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
12454         (dse_optimize_redundant_stores): New function.
12455         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
12456         Distinguish between dead and redundant calls in dump output.  All
12457         callers updated.
12458         (delete_dead_or_redundant_assignment): Similarly for assignments.
12459         (dse_optimize_stmt): Handle _CHK variants.  For statements which
12460         store 0 into multiple memory locations, try to prove a subsequent
12461         store is redundant.
12463 2019-06-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12465         PR target/89021
12466         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
12467         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
12469 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
12471         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
12472         (branch_islands): New extern.
12473         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
12474         * config/rs6000/rs6000.c: .. here.
12476 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
12478         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
12479         (powerpc*-*-*) ... to here.
12481 2019-06-26  Jeff Law  <law@redhat.com>
12483         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
12484         memcpy, memmove and memset builtins.
12485         (maybe_trim_memstar_call): Likewise.
12487 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
12489         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
12491 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
12493         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12495 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
12497         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
12498         declaration.
12499         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
12500         "static".
12501         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
12502         declaration.
12504 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
12506         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
12508 2019-06-26  Richard Biener  <rguenther@suse.de>
12510         PR ipa/90982
12511         * tree-inline.c (remap_ssa_name): Copy SSA range info.
12513 2019-06-26  Richard Biener  <rguenther@suse.de>
12515         * lto-streamer.h (lto_bitmap_alloc): Remove.
12516         (lto_bitmap_free): Likewise.
12517         * lto-streamer.c (lto_bitmap_alloc): Remove.
12518         (lto_bitmap_free): Likewise.
12519         (lto_obstack): Likewise.
12520         (lto_obstack_initialized): Likewise.
12521         * lto-streamer-out.c (lto_output): Use own obstack for local
12522         bitmap, free it consistently.
12524 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
12526         PR target/90991
12527         * config/i386/sse.md
12528         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
12529         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
12530         insns if operands[2] is misaligned_operand.
12532 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
12534         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
12535         TARGET_POWERPC64.
12536         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
12537         to GPR.
12539 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
12541         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
12543 2019-06-26  Martin Liska  <mliska@suse.cz>
12545         PR tree-optimization/90973
12546         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
12547         epilogue_cost_vec instead of prologue_cost_vec for
12548         a epilogue cost.
12550 2019-06-26  Martin Liska  <mliska@suse.cz>
12552         * bb-reorder.c (connect_better_edge_p): Add missing else
12553         statement in the middle of if-else statements.
12555 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
12556             H.J. Lu  <hongjiu.lu@intel.com>
12557             Olga Makhotina  <olga.makhotina@intel.com>
12559         * common/config/i386/i386-common.c
12560         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
12561         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
12562         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
12563         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
12564         (ix86_handle_option): Handle -mavx512vp2intersect.
12565         * config/i386/avx512vp2intersectintrin.h: New.
12566         * config/i386/avx512vp2intersectvlintrin.h: New.
12567         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
12568         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12569         AVX512VP2INTERSECT.
12570         * config/i386/i386-builtin-types.def: Add new types.
12571         * config/i386/i386-builtin.def: Add new builtins.
12572         * config/i386/i386-builtins.c: (enum processor_features): Add
12573         F_AVX512VP2INTERSECT.
12574         (static const _isa_names_table isa_names_table): Ditto.
12575         * config/i386/i386-c.c (ix86_target_macros_internal): Define
12576         __AVX512VP2INTERSECT__.
12577         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
12578         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
12579         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
12580         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
12581         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
12582         * config/i386/i386-options.c (ix86_target_string): Add
12583         -mavx512vp2intersect.
12584         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
12585         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
12586         P2HImode and P2QImode.
12587         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
12588         number for P2QImode and P2HImode.
12589         (ix86_regmode_natural_size): New function.
12590         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
12591         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
12592         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
12593         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
12594         * config/i386/i386.opt: Add -mavx512vp2intersect.
12595         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
12596         avx512vp2intersectvlintrin.h.
12597         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
12598         (define_mode_iterator VI48_AVX512VP2VL): New.
12599         (avx512vp2intersect_2intersect<mode>,
12600         avx512vp2intersect_2intersectv16si): New define_insn patterns.
12601         * config.gcc: Add avx512vp2intersectvlintrin.h and
12602         avx512vp2intersectintrin.h to extra_headers.
12603         * doc/invoke.texi: Document -mavx512vp2intersect.
12605 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
12607         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
12609 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
12611         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
12612         savres_routine_syms, savres_routine_name, morestack_ref,
12613         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12614         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12615         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12616         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12617         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12618         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12619         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12620         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12621         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12622         get_stack_clash_protection_probe_interval,
12623         get_stack_clash_protection_guard_size,
12624         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12625         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12626         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12627         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12628         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12629         gen_frame_mem_offset, rs6000_savres_routine_name,
12630         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12631         ptr_regno_for_savres, rs6000_emit_savres_rtx,
12632         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12633         rs6000_global_entry_point_prologue_needed_p,
12634         rs6000_get_separate_components, rs6000_components_for_bb,
12635         rs6000_disqualify_components, rs6000_emit_prologue_components,
12636         rs6000_emit_epilogue_components, rs6000_set_handled_components,
12637         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12638         rs6000_output_savres_externs, rs6000_output_function_prologue,
12639         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12640         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12641         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12642         rs6000_output_function_epilogue, gen_add3_const,
12643         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12644         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12645         to rs6000-logue.c.
12646         (machine_function): Moved to rs6000.h.
12647         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
12648         rs6000-internal.h.
12649         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
12650         savres_routine_syms, savres_routine_name, morestack_ref,
12651         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12652         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12653         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12654         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12655         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12656         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12657         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12658         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12659         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12660         get_stack_clash_protection_probe_interval,
12661         get_stack_clash_protection_guard_size,
12662         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12663         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12664         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12665         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12666         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12667         gen_frame_mem_offset, rs6000_savres_routine_name,
12668         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12669         ptr_regno_for_savres, rs6000_emit_savres_rtx,
12670         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12671         rs6000_global_entry_point_prologue_needed_p,
12672         rs6000_get_separate_components, rs6000_components_for_bb,
12673         rs6000_disqualify_components, rs6000_emit_prologue_components,
12674         rs6000_emit_epilogue_components, rs6000_set_handled_components,
12675         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12676         rs6000_output_savres_externs, rs6000_output_function_prologue,
12677         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12678         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12679         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12680         rs6000_output_function_epilogue, gen_add3_const,
12681         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12682         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12683         to here from rs6000.c.
12684         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
12685         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
12686         quad_address_offset_p) Moved to here from rs6000.c.
12687         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
12688         * config/config.gcc: Add new source file rs6000-logue.c to garbage
12689         collector.
12691 2019-06-25  Martin Liska  <mliska@suse.cz>
12693         * hash-table.c (hashtab_chk_error): Move here from ...
12694         * hash-table.h (hashtab_chk_error): ... here.
12696 2019-06-25  Martin Liska  <mliska@suse.cz>
12698         PR tree-optimization/90978
12699         * df-scan.c (df_update_entry_block_defs): Remove dead else
12700         branch.
12701         (df_update_exit_block_uses): Likewise.
12703 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
12704             Andrew Stubbs  <ams@codesourcery.com>
12706         * config.gcc (thread_file): Set to gcn for AMD GCN.
12707         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
12708         (TARGET_EMUTLS_VAR_INIT): New hook.
12710 2019-06-25  Martin Jambor  <mjambor@suse.cz>
12712         PR ipa/90939
12713         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
12715 2019-06-25  Richard Biener  <rguenther@suse.de>
12717         PR tree-optimization/90930
12718         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
12719         into parallel form in the last pass instance.
12721 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
12723         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
12724         (arc_legitimize_pic_address): Simplify and cleanup the function.
12725         (SYMBOLIC_CONST): Remove.
12726         (prepare_pic_move): Likewise.
12727         (prepare_move_operands): Handle complex mov cases here.
12728         (arc_legitimize_address_0): Remove call to
12729         arc_legitimize_pic_address.
12730         (arc_legitimize_address): Remove call to
12731         arc_legitimize_tls_address.
12732         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
12733         (movhi_insn): Likewise.
12735 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
12737         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
12738         PTRDIFF_TYPE.
12739         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
12740         format of "__intN" types for UINTMAX_TYPE.
12741         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
12742         format of "__intN" types for SIZETYPE.
12743         * tree.c (build_common_tree_nodes): Accept "__intN__"
12744         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
12745         * doc/invoke.texi: Document that __intN__ disables pedantic
12746         warnings.
12748 2019-06-25  Jan Hubicka  <jh@suse.cz>
12750         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
12751         base2_alias_set is non-zero before doing TBAA based disambiguation.
12753 2019-06-25  Martin Liska  <mliska@suse.cz>
12755         PR tree-optimization/90973
12756         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
12757         of prologue and epilogue.
12759 2019-06-24  Jan Hubicka  <jh@suse.cz>
12761         * ipa-utils.h (type_with_linkage_p): Verify that type is
12762         CXX_ODR_P.
12763         (odr_type_p): Remove extra return.
12764         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
12765         hash STRING_FLAG only for arrays and integers.
12766         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
12767         Update analogously.
12768         * tree-streamer-out.c (pack_ts_type_common_value_fields):
12769         Likewise.
12770         * print-tree.c (print_node): Print cxx-odr-p
12771         and string-flag.
12772         * tree.c (need_assembler_name_p): Also check that type
12773         is CXX_ODR_TYPE_P
12774         (verify_type_variant): Update verification of SRING_FLAG;
12775         also check CXX_ODR_P.
12776         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
12777         (TYPE_STRING_FLAG): Use it.
12778         (TYPE_CXX_ODR_P): New macro.
12779         * dwarf2out.c (gen_array_type_die): First check that type
12780         is an array and then test string flag.
12782 2019-06-24  Richard Biener  <rguenther@suse.de>
12784         PR tree-optimization/90972
12785         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
12786         in common code, dealing with STRING_CST properly.
12788 2019-06-24  Richard Biener  <rguenther@suse.de>
12790         PR tree-optimization/90930
12791         PR tree-optimization/90316
12792         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
12793         decrement of limit.
12795 2019-06-24  Martin Sebor  <msebor@redhat.com>
12797         * tree-pretty-print.h: Remove unnecessary punctuation characters
12798         from a diagnostic.
12799         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
12801 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
12803         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
12804         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
12805         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
12807 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
12809         * config/rs6000/darwin.h: Handle GCC target pragma.
12811 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
12813         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
12815 2019-06-22  Jeff Law  <law@redhat.com>
12817         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12819 2019-06-22  Jan Hubicka  <jh@suse.cz>
12821         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
12822         give up on bitfields; continue searching for different refs
12823         appearing later.
12825 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
12827         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
12828         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
12829         containing the offset as possible simd lane access.  Look through
12830         widening conversion.  Move the
12831         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
12833 2019-06-21  Richard Biener  <rguenther@suse.de>
12835         PR tree-optimization/90930
12836         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
12837         flag on new stmts to avoid re-processing them.
12839 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
12841         PR c++/90875 - added -Wswitch-outside-range option
12842         * doc/invoke.texi (Wswitch-outside-range): Document.
12844 2019-06-21  Jeff Law  <law@redhat.com>
12846         PR tree-optimization/90949
12847         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
12848         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
12850 2019-06-21  Richard Biener  <rguenther@suse.de>
12852         PR debug/90914
12853         * dwarf2out.c (prune_unused_types_walk): Always consider
12854         function-local extern declarations as used.
12856 2019-06-21  Richard Biener  <rguenther@suse.de>
12858         PR tree-optimization/90913
12859         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
12860         the scalar variant of if-conversion versioning.
12862 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
12864         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
12865         create another "omp scan inscan exclusive" array if
12866         !ctx->scan_inclusive.
12867         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
12868         (lower_omp_scan): Likewise.
12869         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
12870         2-bit bitfield for simd_lane_access_p member.
12871         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
12872         aux == (void *)-4 as simd lane access.
12873         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
12874         comment with permutations to show the canonical permutation order.
12875         (vectorizable_scan_store): Handle exclusive scan.
12876         (vectorizable_store): Call vectorizable_scan_store even for
12877         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
12879         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
12880         "omp simd array" arrays with one byte elements.
12882 2019-06-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12884         * config/alpha/alpha.md (@unaligned_store<mode>):
12885         Rename from unaligned_store<mode>.
12886         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
12887         * config/alpha/sync.md (@load_locked_<mode>): Rename
12888         from load_locked_<mode>.
12889         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
12890         (@atomic_compare_and_swap<mode>_1): Rename
12891         from atomic_compare_and_swap<mode>_1.
12892         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
12893         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
12894         Use gen_reload_in_aligned and gen_unaligned_store.
12895         (emit_load_locked): Remove.
12896         (emit_store_conditional): Ditto.
12897         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
12898         (alpha_split_compare_and_swap): Ditto.
12899         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
12900         (alpha_split_compare_and_swap_12): Use gen_load_locked
12901         and gen_store_conditional.
12902         (alpha_split_atomic_exchange): Ditto.
12903         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
12904         (alpha_split_atomic_exchange_12): Use gen_load_locked
12905         and gen_store_conditional.
12907 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
12909         * config/aarch64/aarch64-errata.h: New file.
12910         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
12911         (CA53_ERR_843419_SPEC): Delete.
12912         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
12913         * config/aarch64/aarch64-linux.h: Likewise.
12914         * config/aarch64/aarch64-netbsd.h: Likewise.
12915         * config/aarch64/aarch64-freebsd.h: Likewise.
12917 2019-06-20  Marek Polacek  <polacek@redhat.com>
12919         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
12921 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
12923         * config/rs6000/rs6000.md (isa attribute): Add support for
12924         for a future processor.
12926 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
12928         PR target/54855
12929         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
12930         standard scalar operation pattern for V2DF.
12931         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
12932         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
12933         (*ieee_<ieee_maxmin><mode>3): Likewise.
12934         (vec_setv2df_0): Likewise.
12936 2019-06-20  Jan Hubicka  <jh@suse.cz>
12938         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
12939         parameter; it has no use in gimple memory model.
12940         (indirect_ref_may_alias_decl_p): Update.
12942 2019-06-20  Martin Liska  <mliska@suse.cz>
12944         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
12945         to 10.
12947 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
12949         * tree-vect-stmts.c (enum scan_store_kind): New type.
12950         (scan_store_can_perm_p): Change last argument from int * to
12951         vec<enum scan_store_kind> *, record precisely which permutations
12952         need whole vector left shift or that plus VEC_COND_EXPR.
12953         (vectorizable_scan_store): Adjust caller, use whole vector left shift
12954         and additional VEC_COND_EXPR only for those iterations that need it.
12956 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
12958         * config.gcc: Fix ARM --with-fpu checking and error message.
12960 2019-06-19  Marek Polacek  <polacek@redhat.com>
12962         PR c++/60364 - noreturn after first decl not diagnosed.
12963         * attribs.c (get_attribute_namespace): No longer static.
12964         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
12965         attributes.
12966         (attr_noreturn_exclusions): Make it extern.
12967         * attribs.h (get_attribute_namespace): Declare.
12968         * tree-inline.c (function_attribute_inlinable_p): Use
12969         get_attribute_name.
12971 2019-06-19  Martin Sebor  <msebor@redhat.com>
12973         PR tree-optimization/90626
12974         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
12976         PR tree-optimization/90626
12977         * tree-ssa-strlen.c (strxcmp_unequal): New function.
12978         (handle_builtin_string_cmp): Call it.
12980 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
12982         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
12983         and DARWIN_NOPIE_SPEC.
12984         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
12985         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
12986         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
12987         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
12988         (DARWIN_EXPORT_DYNAMIC): Delete.
12989         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
12990         and pie options processing to  darwin.h.
12991         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
12993 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
12995         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
12996         in computing the number of options to be moved.
12998 2019-06-19  Maya Rashish  <coypu@sdf.org>
13000         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
13001         (CLEAR_INSN_CACHE) Use it.
13003 2019-06-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13005         * config/i386/i386.md (cmpstrnsi): Remove dead code.
13007 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
13009         PR middle-end/84521
13010         * builtins.c (expand_builtin_setjmp_setup): Save
13011         hard_frame_pointer_rtx.
13012         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
13013         restore fp.
13014         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
13015         non-local goto.
13016         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
13017         elimination code.
13018         (remove_reg_equal_offset_note): Remove unused function.
13019         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
13020         code.
13021         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13022         (arc_builtin_setjmp_frame_value): Remove function.
13023         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13024         (avr_builtin_setjmp_frame_value): Remove function.
13025         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13026         (ix86_builtin_setjmp_frame_value): Remove function.
13027         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
13028         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13029         (sparc_builtin_setjmp_frame_value): Remove function.
13030         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13031         (vax_builtin_setjmp_frame_value): Remove function.
13032         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
13033         pointer if has_nonlocal_label.
13035 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
13037         * doc/md.texi: Document vec_shl_<mode> pattern.
13038         * optabs.def (vec_shl_optab): New optab.
13039         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
13040         argument, if == vec_shl_optab, check for left whole vector shift
13041         pattern rather than right shift.
13042         (expand_vec_perm_const): Add vec_shl_optab support.
13043         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
13044         in the comment.
13045         * tree-vect-generic.c (lower_vec_perm): Support permutations which
13046         can be handled by vec_shl_optab.
13047         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
13048         (check_scan_store): Use it.
13049         (vectorizable_scan_store): If target can't do normal permutations,
13050         try to use whole vector left shifts and if needed a VEC_COND_EXPR
13051         after it.
13052         * config/i386/sse.md (vec_shl_<mode>): New expander.
13054         * omp-low.c (lower_rec_input_clauses): Handle references properly
13055         in inscan clauses.
13056         (lower_omp_scan): Likewise.
13058 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
13060         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
13061         mem_mode is BLKmode.
13063 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
13065         PR target/90922
13066         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
13067         pointer adjustment for the case of no callee-saved registers and
13068         stack frame bigger than 128 bytes.
13070 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
13072         PR middle-end/90862
13073         * omp-low.c (check_omp_nesting_restrictions): Handle
13074         GF_OMP_TARGET_KIND_OACC_DECLARE.
13076 2019-06-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13078         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
13079         (@add<mode>3_carry): Rename from add<mode>3_carry.
13080         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
13081         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
13082         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
13083         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
13084         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
13085         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
13086         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
13087         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
13088         (cmpstrnsi): Use gen_cmp_1.
13089         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
13090         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
13091         (@umonitor_<mode>): Rename from umonitor_<mode>.
13092         * config/i386/i386-expand.c (ix86_expand_copysign):
13093         Use gen_copysign3_const and gen_copysign3_var.
13094         (ix86_expand_xorsign): Use gen_xorsign3_1.
13095         (ix86_expand_branch): Use gen_sub3_carry_ccc,
13096         gen_sub3_carry_ccgz and gen_cmp1.
13097         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
13098         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
13099         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
13100         (ix86_split_lshr): Ditto.
13101         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
13103 2019-06-18  Jason Merrill  <jason@redhat.com>
13105         * tree.c (build_constructor): Add MEM_STAT_DECL.
13107 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13109         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
13110         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
13111         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
13112         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
13113         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
13114         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
13115         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
13116         Use CC_NZC instead of CC.
13117         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
13118         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
13119         (aarch64_print_operand): Handle E_CC_NZCmode.
13120         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
13121         of gen_set_clobber_cc.
13123 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13125         * config/aarch64/aarch64-sve.md: Tabify file.
13127 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13129         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
13130         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
13131         * config/aarch64/aarch64-sve.md: Use it.
13133 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13135         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
13136         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
13137         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
13138         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
13139         (aarch64_expand_sve_vec_cmp_int): Use it.
13140         (aarch64_expand_sve_vec_cmp_float): Likewise.
13141         * config/aarch64/aarch64-sve.md: Likewise throughout.
13143 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13144             Kugan Vivekanandarajah  <kuganv@linaro.org>
13146         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
13147         (*cond_<optab><mode>_z): Fold into...
13148         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
13149         operand 4 can be tied to operand 0 (either inherently or via RA).
13151 2019-06-18  Richard Biener  <rguenther@suse.de>
13153         PR debug/90900
13154         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
13155         as if optimized away.
13157 2019-06-18  Tom de Vries  <tdevries@suse.de>
13159         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
13160         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
13161         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
13162         Rename to ...
13163         (define_insn "@set_softstack_<mode>"): ... this.
13164         (define_insn "omp_simt_enter_<mode>"): Rename to ...
13165         (define_insn "@omp_simt_enter_<mode>"): ... this.
13166         (define_insn "omp_simt_exit_<mode>"): Rename to ...
13167         (define_insn "@omp_simt_exit_<mode>"): ... this.
13169 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13171         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
13172         vf parameter.  Restore the previous iv step of nscalars_step,
13173         but give it iv_type rather than compare_type.  Tweak code order
13174         to match the comments.
13175         (vect_set_loop_condition_masked): Update accordingly.
13176         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
13177         for iv_precision.  Tweak comment formatting.
13179 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
13181         * config/darwin.c: Strip trailing whitespace.
13183 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
13185         * config/darwin.c (darwin_emit_unwind_label): New default to false.
13186         (darwin_override_options): Set darwin_emit_unwind_label as needed.
13188 2019-06-18  Martin Jambor  <mjambor@suse.cz>
13190         PR ipa/90889
13191         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
13192         caller does not have flag_ipa_cp set.
13194 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
13196         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
13197         from "*fold_left_plus_<mode>", updated operands order.
13198         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
13199         * internal-fn.c (mask_fold_left_direct): New define.
13200         (expand_mask_fold_left_optab_fn): Likewise.
13201         (direct_mask_fold_left_optab_supported_p): Likewise.
13202         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
13203         * optabs.def (mask_fold_left_plus_optab): New optab.
13204         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
13205         masked internal_fn for a reduction ifn.
13206         (vectorize_fold_left_reduction): Add support for masking reductions.
13208 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
13210         PR middle-end/80791
13211         * target.def (predict_doloop_p): New hook.
13212         * targhooks.h (default_predict_doloop_p): New declaration.
13213         * targhooks.c (default_predict_doloop_p): New function.
13214         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
13215         * doc/tm.texi: Regenerate.
13216         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
13217         (TARGET_PREDICT_DOLOOP_P): New macro.
13218         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
13220 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
13222         * omp-low.c (struct omp_context): Add scan_inclusive field.
13223         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
13224         if inclusive scan.
13225         (struct omplow_simd_context): Add lastlane member.
13226         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
13227         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
13228         1 or 2 argument.
13229         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
13230         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
13231         (lower_omp_scan): New function.
13232         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
13233         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
13234         check 3rd argument if present rather than 2nd.
13235         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
13236         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
13237         2-bit bitfield.
13238         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13239         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
13240         than 2nd.
13241         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
13242         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
13243         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
13244         init.
13245         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
13246         IFN_GOMP_SIMD_LANE argument.
13247         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
13248         encoded ->aux value.
13249         * tree-vect-stmts.c: Include attribs.h.
13250         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
13251         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
13252         functions.
13253         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
13254         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
13256 2019-06-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13258         PR target/62055
13259         * config/i386/i386.md (*nabstf2_1): New insn pattern.
13260         (*nabs<mode>2_1): Ditto.
13261         (nabs sse-reg splitter): New splitter.
13262         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
13264 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
13266         PR bootstrap/90873.
13267         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13268         TMR index check.
13270 2019-06-17  Tom de Vries  <tdevries@suse.de>
13272         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
13273         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
13274         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
13275         ...
13276         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
13277         match_operand 0.
13278         (define_insn "omp_simt_enter_insn"): Rename to ...
13279         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
13280         match_operand 0, 1 and 2, as well as the unspec_volatile result.
13281         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
13282         gen_omp_simt_enter_si.
13283         (define_expand "omp_simt_exit"): New.
13284         (define_insn "omp_simt_exit"): Rename to ...
13285         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
13286         match_operand 0.
13288 2019-06-17  Matthew Green  <mrg@eterna.com.au>
13289             Maya Rashish  <coypu@sdf.org>
13291         * config.gcc (aarch64*-*-netbsd*): New target.
13292         * config/aarch64/aarch64-netbsd.h: New file.
13293         * config/aarch64/t-aarch64-netbsd: Likewise.
13295 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
13297         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
13298         the access path from base to first VIEW_CONVERT_EXPR or
13299         BIT_FIELD_REF.
13301 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
13303         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
13304         access path on BIT_FIELD_REFs.
13306 2019-06-17  Martin Liska  <mliska@suse.cz>
13308         PR ipa/90874
13309         * ipa-utils.h (odr_type_p): Remove dead code.
13311 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13313         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
13314         alternative Solaris 11.4 format.
13315         * configure: Regenerate.
13317 2019-06-17  Tom de Vries  <tdevries@suse.de>
13319         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
13320         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
13321         match_operand 0.
13322         (define_insn "call_value_insn"): Rename to ...
13323         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
13324         match_operand 0.
13325         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
13326         DI.
13328 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
13330         PR middle-end/64242
13331         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
13332         frame clobbers and schedule block.
13333         (builtin_longjmp): Likewise.
13335 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13337         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
13338         describe how to perform MSPABI compliant 64-bit shift.
13339         * config/msp430/msp430.md (ashldi3): New define_expand.
13340         (ashrdi3): New define_expand.
13341         (lshrdi3): New define_expand.
13343 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13345         * doc/sourcebuild.texi: Document new effective target keyword
13346         longlong64.
13348 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
13350         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
13351         indirect_refs_may_alias_p): Revert accidental commits.
13353         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
13354         at the end of structures.
13356 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
13358         * config/darwin.c (machopic_indirect_call_target): Use renamed
13359         darwin_picsymbol_stubs to decide on output.
13360         (darwin_override_options): Handle darwin_picsymbol_stubs.
13361         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
13362         (LD64_VERSION): Revise default.
13363         * config/darwin.opt: (mpic-symbol-stubs): New option.
13364         (darwin_picsymbol_stubs): New variable.
13365         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
13366         rename to TARGET_MACHO_PICSYM_STUBS.
13367         * config/i386/i386.c (output_pic_addr_const): Likewise.
13368         * config/i386/i386.h Likewise.
13369         * config/rs6000/darwin.h: Likewise.
13370         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
13371         darwin_picsymbol_stubs.
13373 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
13375         * config/darwin.opt (prebind, noprebind, seglinkedit,
13376         noseglinkedit): Add RejectNegative.
13378 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
13380         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
13381         in my previous patch.
13383 2019-06-16  Tom de Vries  <tdevries@suse.de>
13385         PR tree-optimization/89376
13386         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
13388 2019-06-15  Maya Rashish  <coypu@sdf.org>
13390         * doc/invoke.texi (Spec Files): Update location of the
13391         Fortran spec file.
13393 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
13395         * doc/extend.texi (Common Function Attributes): Clarify
13396         no_sanitize.  Fix grammar.
13398 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
13400         * tree-ssa-alias.c (alias_stats): Add
13401         nonoverlapping_component_refs_p_may_alias,
13402         nonoverlapping_component_refs_p_no_alias,
13403         nonoverlapping_component_refs_of_decl_p_may_alias,
13404         nonoverlapping_component_refs_of_decl_p_no_alias.
13405         (dump_alias_stats): Dump them.
13406         (nonoverlapping_component_refs_of_decl_p): Add stats.
13407         (nonoverlapping_component_refs_p): Add stats; do not stop on first
13408         ARRAY_REF.
13410 2019-06-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13412         * config/i386/i386.md (and<mode>3): Generate zero-extends for
13413         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
13414         only.
13415         (*anddi3_doubleword): Split before reload. Merge with
13416         anddi->zext pre-reload splitter.
13417         (*andndi3_doubleword): Split before reload.
13418         (*<code>di3_doubleword): Ditto.
13419         (*one_cmpldi2_doubleword): Ditto.
13421 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
13423         PR middle-end/90779
13424         * gimplify.c: Include omp-offload.h and context.h.
13425         (gimplify_bind_expr): Add "omp declare target" attributes
13426         to static block scope variables inside of target region or target
13427         functions.
13429 2019-06-15  Tom de Vries  <tdevries@suse.de>
13431         PR tree-optimization/90009
13432         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
13433         Return NULL if bb contains IFN_UNIQUE.
13435 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
13437         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
13438         (un): New define_mode_attr.
13439         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
13440         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
13441         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
13442         merge into ...
13443         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
13445 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
13447         * config/darwin.opt: Add RejectNegative where needed, reorder
13448         and add minimal functional descriptions.
13450 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13452         PR rtl-optimization/90765
13453         * calls.c (update_stack_alignment_for_call): New function.
13454         (expand_call): Call update_stack_alignment_for_call when
13455         outgoing parameter is passed in the stack.
13456         (emit_library_call_value_1): Likewise.
13457         * function.c (locate_and_pad_parm): Don't update
13458         stack_alignment_needed and preferred_stack_boundary.
13460 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13462         PR target/90877
13463         * config/i386/i386-features.c
13464         (dimode_scalar_chain::compute_convert_gain): Replace
13465         mmxsse_to_integer with sse_to_integer.
13466         * config/i386/i386.c (ix86_register_move_cost): Verify that
13467         moves between MMX and non-MMX units require secondary memory.
13468         Correct costs of moves between SSE and integer units.
13469         * config/i386/i386.h (processor_costs): Rename cost of moving
13470         SSE register to integer to sse_to_integer.  Rename cost of
13472 2019-06-14  Matt Thomas  <matt@3am-software.com>
13473             Matthew Green  <mrg@eterna.com.au>
13474             Nick Hudson  <skrll@netbsd.org>
13475             Maya Rashish  <coypu@sdf.org>
13476             Richard Earnshaw  <rearnsha@arm.com>
13478         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
13479         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
13480         * config/arm/netbsd-eabi.h: New file.
13481         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
13482         redefining.
13483         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
13484         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
13485         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
13486         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
13488 2019-06-14  Richard Biener  <rguenther@suse.de>
13490         * tree-loop-distribution.c (classify_partition): Return
13491         whether a reduction appeared in all partitions and do not
13492         stop builtin detection because of this.
13493         (distribute_loop): Sort a non-builtin partition last if
13494         there's a reduction in all partitions and make sure the
13495         partition prevailing as last is not a builtin.
13497 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
13499         PR ipa/90401
13500         * ipa-prop.c (add_to_agg_contents_list): New function.
13501         (clobber_by_agg_contents_list_p): Likewise.
13502         (extract_mem_content): Likewise.
13503         (get_place_in_agg_contents_list): Delete.
13504         (determine_known_aggregate_parts): Renamed from
13505         determine_locally_known_aggregate_parts.  New parameter
13506         aa_walk_budget_p.
13508 2019-06-13  Martin Sebor  <msebor@redhat.com>
13510         PR tree-optimization/90662
13511         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
13512         to the same type.
13514 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
13516         PR bootstrap/90873
13517         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
13518         dbase is not TARGET_MEM_REF.
13520 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13522         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
13523         Update all uses.
13524         (and<mode>3): Use gen_extend_insn instead of indirect functions.
13525         Do not generate DImode extends for 32bit targets.
13526         (and->zext post-reload splitter): Use gen_extend_insn
13527         instead of indirect functions.
13528         (anddi->zext pre-reload splitter): New.
13529         (*zext<mode>_doubleword_and): Remove.
13530         (*zext<mode>_doubleword): Ditto.
13531         (*zextsi_doubleword): Dittto.
13533 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13535         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
13536         Use gen_sub3_insn instead of indirect function.
13537         (ix86_expand_ashl_const): Use gen_add2_insn instead of
13538         indirect function.
13539         (ix86_adjust_counter): Ditto.
13541 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
13542             Lijia He  <helijia@linux.ibm.com>
13544         PR tree-optimization/77820
13545         * tree-ssa-threadedge.c
13546         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
13547         function.
13548         (thread_across_edge): Add call to
13549         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
13551 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
13553         * config/darwin-driver.c (validate_macosx_version_min): New.
13554         (darwin_default_min_version): Cleanup and validate supplied version.
13555         (darwin_driver_init): Likewise and push cleaned version into opts.
13557 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
13559         PR tree-optimization/90869
13560         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
13561         converts in MEM_REF referencing decl rather than view converts
13562         from decl type to MEM_REF type.
13564 2019-06-13  Richard Biener  <rguenther@suse.de>
13566         PR tree-optimization/90856
13567         * tree-sra.c (build_ref_for_model): Only use
13568         build_reconstructed_reference when address-spaces are the same.
13570 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
13572         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
13573         wrap ei variable name in the declaration in ()s.
13574         (nvptx_single): Actually use mode_label variable.  Formatting fix.
13576 2019-06-13  Richard Biener  <rguenther@suse.de>
13578         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
13579         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
13580         also return the condition stmt.
13581         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
13582         loop we can version and version that, reusing the loop version
13583         created by if-conversion instead of versioning again.
13585 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
13587         * gimple-loop-versioning.cc (prune_loop_conditions): Use
13588         may_contain_p.
13589         * tree-vrp (value_range_base::may_contain_p): Call into
13590         value_inside_range.
13591         (value_inside_range): Make private inside value_range_base class.
13592         Take min/max from *this.
13593         (range_includes_p): Remove.
13594         * tree-vrp.h (value_range_base): Add value_inside_range.
13595         (range_includes_p): Remove.
13596         (range_includes_zero_p): Call may_contain_p.
13597         * vr-values.c (compare_range_with_value): Same.
13599 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
13601         * doc/extend.texi (ARC Function Attributes): Update info.
13603 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
13605         PR tree-optimization/89713
13606         * doc/invoke.texi (-ffinite-loops): Document new option.
13607         * common.opt (-ffinite-loops): New option.
13608         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
13609         IFN_GOACC_LOOP calls as necessary.
13610         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
13611         is finite.
13612         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
13613         IFN_GOACC_LOOP call is not used.
13614         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
13616 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
13618         PR target/88838
13619         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
13620         compare_type is not with Pmode size, we will create an IV with
13621         Pmode size with truncated use (i.e. converted to the correct type).
13622         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
13623         (vect_iv_limit_for_full_masking): New. Factored out of
13624         vect_set_loop_condition_masked.
13625         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
13626         (vect_iv_limit_for_full_masking): Declare.
13628 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
13630         PR target/88834
13631         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
13632         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
13633         (get_alias_ptr_type_for_ptr_address): Likewise.
13634         (add_iv_candidate_for_use): Add scaled index candidate if useful.
13635         * tree-ssa-address.c (preferred_mem_scale_factor): New.
13636         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
13637         allow_reg_index_p.
13639 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
13641         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
13643 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
13645         * common/config/pru/pru-common.c: New file.
13646         * config.gcc: Add PRU target.
13647         * config/pru/alu-zext.md: New file.
13648         * config/pru/constraints.md: New file.
13649         * config/pru/predicates.md: New file.
13650         * config/pru/pru-opts.h: New file.
13651         * config/pru/pru-passes.c: New file.
13652         * config/pru/pru-pragma.c: New file.
13653         * config/pru/pru-protos.h: New file.
13654         * config/pru/pru.c: New file.
13655         * config/pru/pru.h: New file.
13656         * config/pru/pru.md: New file.
13657         * config/pru/pru.opt: New file.
13658         * config/pru/t-pru: New file.
13659         * doc/extend.texi: Document PRU pragmas.
13660         * doc/invoke.texi: Document PRU-specific options.
13661         * doc/md.texi: Document PRU asm constraints.
13663 2019-06-12  Martin Sebor  <msebor@redhat.com>
13665         PR middle-end/90676
13666         * tree-pretty-print.c (dump_mem_ref): New function.  Include
13667         MEM_REF type in output when different size than operand.
13668         (dump_generic_node): Move code to dump_mem_ref and call it.
13670 2019-06-12  Martin Sebor  <msebor@redhat.com>
13672         PR tree-optimization/90662
13673         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
13674         to arrays.
13676 2019-06-12  Tom de Vries  <tdevries@suse.de>
13678         PR tree-optimization/90009
13679         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
13681 2019-06-12  Martin Liska  <mliska@suse.cz>
13683         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
13684         the created map.
13685         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
13686         * mem-stats.h (mem_alloc_description::mem_alloc_description):
13687         Do not sanitize created maps.
13689 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
13691         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
13692         value_range::singleton_p.
13693         * tree-vrp.c (value_range_constant_singleton): Remove.
13694         * tree-vrp.h (value_range_constant_singleton): Remove.
13695         * vr-values.c (vr_values::singleton): Use
13696         value_range::singleton_p.
13698 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
13700         PR target/90811
13701         * cfgexpand.c (align_local_variable): Add really_expand argument,
13702         don't SET_DECL_ALIGN if it is false.
13703         (add_stack_var): Add really_expand argument, pass it through to
13704         align_local_variable.
13705         (expand_one_stack_var_1): Pass true as really_expand to
13706         align_local_variable.
13707         (expand_one_ssa_partition): Pass true as really_expand to
13708         add_stack_var.
13709         (expand_one_var): Pass really_expand through to add_stack_var.
13711 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
13713         * config/arm/iterators.md (VABAL): New int iterator.
13714         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
13715         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
13716         UNSPEC_VABAL_U values.
13718 2019-06-12  Martin Liska  <mliska@suse.cz>
13720         * value-prof.c (stream_out_histogram_value): Only first value
13721         can't be negative.
13723 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
13725         PR c/90760
13726         * symtab.c (symtab_node::set_section): Allow being called on aliases
13727         as long as they aren't analyzed yet.
13729 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
13731         * config/mips/mips.c (mips_final_postscan_insn): Modify call
13732         to `mips_set_text_contents_type' to indicate whether a
13733         non-debug insn follows.
13735 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
13737         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
13738         enabling -mpcrel by default.
13739         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
13740         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
13741         that the test against -mcpu=future is done first.  Then test if
13742         -mprefixed-addr is on for -mpcrel.
13743         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
13745 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
13747         PR target/90811
13748         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
13749         instead of and.u%d.
13751 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
13753         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
13755 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
13757         PR c++/90449 - add -Winaccessible-base option.
13758         * doc/invoke.texi (Winaccessible-base): Document.
13760 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
13762         PR tree-optimization/62041
13763         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
13765 2019-06-11  Jason Merrill  <jason@redhat.com>
13767         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
13768         * tree.c (get_tree_code_name): Likewise.
13769         * print-tree.c (print_node): Only briefly print a node with an
13770         invalid code.
13772 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
13774         PR bootstrap/90819
13775         * trans-mem.c (tm_memopt_compute_available): Add assertion
13776         that blocks is not empty.  Formatting fix.
13778 2019-06-11  Martin Liska  <mliska@suse.cz>
13780         PR c++/87847
13781         * hash-table.h: Extend create_gcc, add one parameter
13782         that is passed into hash_table::hash_table.
13784 2019-06-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13786         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
13787         New prototype.
13788         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
13789         Emit clobber also for non-sse operations.
13790         (ix86_split_fp_absneg_operator): New function.
13791         * config/i386/i386.md (SSEMODEF): New mode iterator.
13792         (ssevecmodef): New mode attribute.
13793         (<code>tf2): Use absneg code iterator.
13794         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
13795         Add three-operand AVX alternatives.
13796         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
13797         Use absneg code iterator and X87MODEF mode iterator.
13798         (absneg fp_reg non-sse splitter): Call absneg code iterator
13799         and X87MODEF mode iterator.
13800         (absneg general_reg non-sse splitter): Use absneg code iterator
13801         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
13802         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
13803         code iterator.  Add three-operand AVX alternative.
13804         (absneg sse_reg splitter): Use absneg code iterator
13805         and SSEMODEF mode iterator.  Handle AVX operands.
13806         (absneg fp_reg splitter): Use absneg code iterator
13807         and MODEF mode iterator.
13808         (absneg general_reg splitter): Merge splitters using MODEF mode
13809         iterator.  Use absneg code iterator.  Call
13810         ix86_split_fp_absneg_operator.
13811         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
13812         Do not enable for non-sse modes before reload.
13813         (CSGNMODE): Remove.
13814         (CSGNVMODE): Ditto.
13815         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
13816         ssevecmodef mode attribute instaed of CSGNVMODE.
13817         (copysign<mode>3_const): Ditto.
13818         (copysign<mode>3_var): Ditto.
13819         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
13820         Use absneg code iterator.  Simplify code using std::swap.
13821         * config/i386/predicates.md (absneg_operator): Remove.
13823 2019-06-10  Martin Sebor  <msebor@redhat.com>
13825         * gimple-fold.c (get_range_strlen): Update comment that didn't
13826         make it into r267503 or related commits.
13828 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
13830         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
13831         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
13833 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
13835         * tree.def (OMP_SCAN): New tree code.
13836         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
13837         OMP_CLAUSE_EXCLUSIVE.
13838         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
13839         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
13840         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
13841         OMP_CLAUSE_{IN,EX}CLUSIVE.
13842         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
13843         * tree-nested.c (convert_nonlocal_reference_stmt,
13844         convert_local_reference_stmt, convert_gimple_call): Handle
13845         GIMPLE_OMP_SCAN.
13846         * tree-pretty-print.c (dump_omp_clause): Handle
13847         OMP_CLAUSE_{IN,EX}CLUSIVE.
13848         (dump_generic_node): Handle OMP_SCAN.
13849         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
13850         * gimple.h (gomp_scan): New type.
13851         (is_a_helper <gomp_scan *>::test,
13852         is_a_helper <const gomp_scan *>::test): New templates.
13853         (gimple_build_omp_scan): Declare.
13854         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
13855         gimple_omp_scan_set_clauses): New inline functions.
13856         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
13857         * gimple.c (gimple_build_omp_scan): New function.
13858         (gimple_copy): Handle GIMPLE_OMP_SCAN.
13859         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
13860         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
13861         GIMPLE_OMP_TASKGROUP.
13862         (dump_gimple_omp_scan): New function.
13863         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
13864         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
13865         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
13866         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
13867         (is_gimple_stmt): Handle OMP_SCAN.
13868         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
13869         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
13870         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
13871         mentioned in nested #pragma omp scan.  Handle
13872         OMP_CLAUSE_{IN,EX}CLUSIVE.
13873         (gimplify_expr): Handle OMP_SCAN.
13874         * omp-low.c (check_omp_nesting_restrictions): For parent context,
13875         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
13876         simd constructs.
13877         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
13878         GIMPLE_OMP_SCAN.
13880 2019-06-10  Martin Liska  <mliska@suse.cz>
13882         * ipa-cp.c (ignore_edge_p): New function.
13883         (build_toporder_info): Use it.
13884         * ipa-inline.c (ignore_edge_p): New function.
13885         (inline_small_functions): Use it.
13886         * ipa-pure-const.c (ignore_edge_for_nothrow):
13887         Verify opt_for_fn for caller and callee.
13888         (ignore_edge_for_pure_const): Likewise.
13889         * ipa-reference.c (ignore_edge_p): Extend to check
13890         for opt_for_fn.
13891         * ipa-utils.c (searchc): Refactor.
13892         * ipa-utils.h: Fix coding style.
13894 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
13896         * config/arc/arc.c (arc_rtx_costs): Update costs.
13898 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
13900         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
13901         (arc_split_ior): Likewise.
13902         (arc_check_mov_const): Likewise.
13903         (arc_split_mov_const): Likewise.
13904         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
13905         (arc_rtx_costs): Replace check Crr with Cax constraint.
13906         (prepare_move_operands): Cleanup, remove unused code.
13907         (arc_split_ior): New function.
13908         (arc_check_ior_const): Likewise.
13909         (arc_split_mov_const): Likewise.
13910         (arc_check_mov_const): Likewise.
13911         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
13912         in define_insn_and_split pattern.
13913         (iorsi3): Likewise.
13914         (mulsi3_v2): Add new matching variant.
13915         (andsi3_i): Cleanup pattern.
13916         (rotrsi3_cnt1): Update pattern.
13917         (rotrsi3_cnt8): New pattern.
13918         (ashlsi2_cnt8): Likewise.
13919         (ashlsi2_cnt16): Likewise.
13920         * config/arc/constraints.md (C0p): Update constraint.
13921         (Crr): Remove it.
13922         (C0x): New pattern.
13923         (Cax): New pattern.
13925 2019-06-10  Martin Liska  <mliska@suse.cz>
13927         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
13928         Update coding style.
13929         (sem_item_optimizer::dump_cong_classes):
13930         Print how many items are in a non-singular class.  Improve
13931         coding style.
13933 2019-06-10  Martin Liska  <mliska@suse.cz>
13935         * value-prof.c (dump_histogram_value): Change dump format.
13936         (gimple_mod_subtract_transform): Remove legacy comment.
13938 2019-06-10  Martin Liska  <mliska@suse.cz>
13940         * value-prof.c (dump_histogram_value): Print histogram values
13941         only if present.
13943 2019-06-10  Martin Liska  <mliska@suse.cz>
13945         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
13946         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
13947         * ipa-profile.c (ipa_profile_generate_summary):
13948         Use get_most_common_single_value.
13949         * tree-profile.c (gimple_init_gcov_profiler):
13950         Instrument with __gcov_one_value_profiler_v2
13951         and __gcov_indirect_call_profiler_v4.
13952         * value-prof.c (dump_histogram_value):
13953         Print all values for HIST_TYPE_SINGLE_VALUE.
13954         (stream_out_histogram_value): Update assert for
13955         N values.
13956         (stream_in_histogram_value): Set number of
13957         counters for HIST_TYPE_SINGLE_VALUE.
13958         (get_most_common_single_value): New.
13959         (gimple_divmod_fixed_value_transform):
13960         Use get_most_common_single_value.
13961         (gimple_ic_transform): Likewise.
13962         (gimple_stringops_transform): Likewise.
13963         (gimple_find_values_to_profile): Set number
13964         of counters for HIST_TYPE_SINGLE_VALUE.
13965         * value-prof.h (get_most_common_single_value): New.
13967 2019-06-10  Martin Liska  <mliska@suse.cz>
13969         * hash-map.h: Pass default value to hash_table ctor.
13970         * hash-table.h: Add default value to call of a ctor.
13972 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
13974         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
13975         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
13977 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
13979         PR target/90751
13980         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
13981         Call pa_output_function_label.
13982         (TARGET_ASM_FUNCTION_PROLOGUE): define.
13983         * config/pa/pa-protos.h (pa_output_function_label): Declare.
13984         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
13985         to declaration.
13986         (pa_linux_output_function_prologue): Declare.
13987         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
13988         (pa_output_function_label): New.
13989         (pa_output_function_prologue): Revise to use pa_output_function_label.
13990         (pa_linux_output_function_prologue): New.
13991         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
13993 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
13995         * tree-vrp.h (value_range_base::intersect): New.
13996         (value_range::intersect_helper): Move from here...
13997         (value_range_base::intersect_helper): ...to here.
13998         * tree-vrp.c (value_range::intersect_helper): Rename to...
13999         (value_range_base::intersect_helper): ...this, and rewrite to
14000         return a value instead of modifying THIS in place.
14001         Also, move equivalence handling...
14002         (value_range::intersect): ...here, while calling intersect_helper.
14003         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
14004         calling intersect.
14005         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
14006         Same.
14007         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
14009 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
14011         * Makefile.in (genprogerr): Add condmd.
14012         (genprog): Remove it here.
14014 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
14016         * doc/invoke.texi (AMD GCN Options): Add gfx906.
14018 2019-06-07  Richard Biener  <rguenther@suse.de>
14020         PR debug/90574
14021         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
14022         that appear after user labels.
14024 2019-06-07  Martin Liska  <mliska@suse.cz>
14026         * cselib.c (cselib_init): Disable hash table
14027         sanitization.
14028         * hash-set.h: Pass new default argument to m_table.
14029         * hash-table.c: Add global variable with hash table
14030         sanitization limit.
14031         * hash-table.h (Allocator>::hash_table): Add new argument
14032         to ctor.
14033         (hashtab_chk_error): New.
14034         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
14035         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
14036         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
14038 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
14040         * common.opt (flto-odr-type-merging): Ignore.
14041         * invoke.texi (-flto-odr-type-merging): Remove.
14042         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
14043         (can_be_vtable_hashed_p): Remove.
14044         (hash_odr_vtable): Remove.
14045         (odr_vtable_hasher::hash): Remove.
14046         (types_same_for_odr): Remove.
14047         (types_odr_comparable): Remove.
14048         (odr_vtable_hasher::equal): Remove.
14049         (odr_vtable_hash_type, odr_vtable_hash): Remove.
14050         (add_type_duplicate): Do not synchronize vtable and name hashtables.
14051         (get_odr_type): Do not use vtable hash.
14052         (dump_odr_type): Remove commented out code.
14053         (build_type_inheritance_graph): Do not allocate vtable hash.
14054         (rebuild_type_inheritance_graph): Do not delete vtable hash.
14055         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
14056         (odr_type_p): Likewise.
14057         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
14058         test.
14060 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
14062         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
14063         immediately after same_types_for_tbaa_p returns -1 and continue
14064         looking for possible exact match; if matching types are arrays
14065         watch for partial overlaps.
14066         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
14067         (indirect_refs_may_alias_p): Do type based disambiguation first;
14068         update comment.
14070 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
14072         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
14074 2019-06-07  Martin Liska  <mliska@suse.cz>
14076         * doc/invoke.texi: Remove param.
14077         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
14078         Remove.
14079         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
14080         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
14081         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
14082         * profile.c (instrument_values): Remove
14083         HIST_TYPE_INDIR_CALL_TOPN.
14084         * tree-profile.c (init_ic_make_global_vars):
14085         Always build __gcov_indirect_call only.
14086         (gimple_init_gcov_profiler): Remove usage
14087         of PARAM_INDIR_CALL_TOPN_PROFILE.
14088         (gimple_gen_ic_profiler): Likewise.
14089         * value-prof.c (dump_histogram_value): Likewise.
14090         (stream_in_histogram_value): Likewise.
14091         (gimple_indirect_call_to_profile): Likewise.
14092         (gimple_find_values_to_profile): Likewise.
14093         * value-prof.h (enum hist_type): Likewise.
14095 2019-06-07  Martin Liska  <mliska@suse.cz>
14097         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
14098         function.
14100 2019-06-07  Martin Liska  <mliska@suse.cz>
14102         PR tree-optimization/78902
14103         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
14104         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
14105         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14106         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14107         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
14108         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14109         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
14110         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
14111         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14112         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14113         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14114         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
14115         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
14116         New.
14117         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
14118         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
14119         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
14120         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14121         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14122         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
14123         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14124         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14125         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
14126         warn_unused_result attribute.
14127         (BUILT_IN_STRDUP): Likewise.
14128         (BUILT_IN_STRNDUP): Likewise.
14129         (BUILT_IN_ALLOCA): Likewise.
14130         (BUILT_IN_CALLOC): Likewise.
14131         (BUILT_IN_MALLOC): Likewise.
14132         (BUILT_IN_REALLOC): Likewise.
14134 2019-06-06  Jim Wilson  <jimw@sifive.com>
14136         PR target/89955
14137         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
14138         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
14139         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
14141 2019-06-06  Martin Sebor  <msebor@redhat.com>
14143         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
14144         (handle_builtin_malloc): Remove trailing spaces.
14145         (handle_builtin_memset): Same.
14146         (handle_builtin_memcmp): Same.
14147         (compute_string_length): Same.
14148         (determine_min_objsize): Same.
14149         (handle_builtin_string_cmp): Same.
14150         (handle_char_store): Same.  Break up excessively long line.
14152 2019-06-06  Martin Jambor  <mjambor@suse.cz>
14154         * tree-sra.c (build_reconstructed_reference): Drop the alignment
14155         check.
14157 2019-06-06  Martin Jambor  <mjambor@suse.cz>
14159         * tree-sra.c (struct access): New field grp_same_access_path.
14160         (dump_access): Dump it.
14161         (build_reconstructed_reference): New function.
14162         (build_ref_for_model): Use it if possible.
14163         (path_comparable_for_same_access): New function.
14164         (same_access_path_p): Likewise.
14165         (sort_and_splice_var_accesses): Set the new flag.
14166         (analyze_access_subtree): Likewise.
14167         (propagate_subaccesses_across_link): Propagate zero value of the new
14168         flag down the access tree.
14170 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
14172         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
14173         * config/gcn/gcn.opt (gpu_type): Add gfx906.
14174         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
14175         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
14176         Add gfx906.
14178 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14180         PR tree-optimization/90332
14181         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
14182         Handle VALS containing two vectors.
14183         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
14184         to...
14185         (@aarch64_combinez<mode>): ... This.
14186         (*aarch64_combinez_be<mode>): Rename to...
14187         (@aarch64_combinez_be<mode>): ... This.
14188         (vec_init<mode><Vhalf>): New define_expand.
14189         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
14191 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14193         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
14194         library functions only when not optimizing for size.
14195         (ashlsi3): Likewise.
14196         (ashrhi3): Likewise.
14197         (ashrsi3): Likewise.
14198         (lshrhi3): Likewise.
14199         (lshrsi3): Likewise.
14201 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
14203         PR rtl-optimization/88751
14204         * ira.c (ira): Use the number of the actually referenced registers
14205         when calculating the threshold.
14207 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
14209         * configure: Regenerate.
14211 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14213         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
14214         register if it is in memory, so the shift can be emulated with a rotate
14215         instruction.
14216         (ashrhi3): Likewise.
14217         (lshrhi3): Likewise.
14219 2019-06-06  Martin Liska  <mliska@suse.cz>
14221         PR tree-optimization/87954
14222         * match.pd: Simplify mult where both arguments are 0 or 1.
14224 2019-06-06  Richard Biener  <rguenther@suse.de>
14226         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
14227         put equivalences on UNDEFINED ranges.
14228         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
14229         Make sure to drop defs of stmts added during simplification
14230         to VARYING.
14232 2019-06-06  Richard Biener  <rguenther@suse.de>
14234         * tree-ssa-structalias.c: Include tree-cfg.h.
14235         (make_heapvar): Do not make heap vars artificial.
14236         (find_func_aliases_for_builtin_call): Handle stack allocation
14237         functions.
14238         (find_func_aliases): Delay processing of simple enough returns
14239         in non-IPA mode.
14240         (set_uids_in_ptset): Adjust.
14241         (find_what_var_points_to): Likewise.
14242         (solve_constraints): Do not dump points-to sets here.
14243         (compute_points_to_sets): Post-process return statements,
14244         amending the escaped solution.  Dump points-to sets afterwards.
14245         (ipa_pta_execute): Dump points-to sets.
14247 2019-06-06  Martin Liska  <mliska@suse.cz>
14249         PR web/87933
14250         * doc/install.texi: Fix HTML headers and
14251         titles for 'Installing GCC' pages.
14253 2019-06-06  Martin Liska  <mliska@suse.cz>
14255         * ipa-icf-gimple.h (dump_message_1): Remove.
14256         (dump_message): Likewise.
14257         (return_false_with_message_1): Print also file.
14258         (return_false_with_msg): Likewise.
14259         (return_with_result): Likewise.
14260         (return_with_debug): Likewise.
14261         * ipa-icf.c (sem_function::equals_private): Remove call
14262         to dump_message.
14264 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
14266         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
14267         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
14268         memory operand for it.
14269         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
14271 2019-06-05  Martin Sebor  <msebor@redhat.com>
14273         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
14274         Adjust quoting and hyphenation.
14275         * convert.c (convert_to_real_1): Same.
14276         * gcc.c (driver_wrong_lang_callback): Same.
14277         (driver::handle_unrecognized_options): Same.
14278         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
14279         * opts-common.c (cmdline_handle_error): Same.
14280         (read_cmdline_option): Same.
14281         * opts-global.c (complain_wrong_lang): Same.
14282         (print_ignored_options): Same.
14283         (handle_common_deferred_options): Same.
14284         * pretty-print.h: Same.
14285         * print-rtl.c (debug_bb_n_slim): Same.
14286         * sched-rgn.c (make_pass_sched_fusion): Same.
14287         * tree-cfg.c (verify_gimple_assign_unary): Same.
14288         (verify_gimple_label): Same.
14289         * tree-ssa-operands.c (verify_ssa_operands): Same.
14290         * varasm.c (do_assemble_alias): Same.
14291         (assemble_alias): Same.
14293 2019-06-05  Richard Henderson  <rth@twiddle.net>
14295         * config/alpha/alpha.c (direct_return): Move down after
14296         struct machine_function definition; use saved frame_size;
14297         return bool.
14298         (struct machine_function): Add sa_mask, sa_size, frame_size.
14299         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
14300         (alpha_compute_frame_layout): ... new function.
14301         (TARGET_COMPUTE_FRAME_LAYOUT): New.
14302         (alpha_initial_elimination_offset): Use saved sa_size.
14303         (alpha_vms_initial_elimination_offset): Likewise.
14304         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
14305         (alpha_expand_prologue): Use saved frame data.  Merge integer
14306         and fp register save loops.
14307         (alpha_expand_epilogue): Likewise.
14308         (alpha_start_function): Use saved frame data.
14309         * config/alpha/alpha-protos.h (direct_return): Update.
14310         (alpha_sa_size): Remove.
14312 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
14314         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
14315         multiplication by a power-of-two value.
14316         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
14317         and turn the modulo operation into a masking operation.
14319 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
14321         PR debug/90733
14322         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
14323         with VOIDmode inner operands.
14325 2019-06-05  Richard Biener  <rguenther@suse.de>
14327         PR middle-end/90726
14328         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14329         turn an expression graph into a tree.
14331 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
14333         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
14334         member.
14335         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
14336         treat it like explicit monotonic schedule modifier.
14337         (expand_omp_for): Initialize has_lastprivate_conditional.
14338         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
14339         schedule modifier.
14341         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
14342         references, lookup in in hash map MEM_REF operand instead of the
14343         MEM_REF itself.
14344         (lower_omp_1): When looking for lastprivate conditional assignments,
14345         handle MEM_REFs with REFERENCE_TYPE operands.
14347         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
14348         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
14349         and references a VLA.  Handle references to non-VLAs if is_simd
14350         all privatization clauses like reductions.
14351         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
14352         If omp_is_reference, use always omp simd arrays and set
14353         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
14354         fails, emit reference initialization.
14356 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
14358         PR target/89803
14359         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
14360         _mm_mask_fpclass_sd_mask): New intrinsics.
14361         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
14362         * config/i386/i386-builtin.def
14363         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
14364         New builtins.
14365         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
14366         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
14367         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
14368         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
14369         case QI_FTYPE_V2SF_INT): Ditto.
14370         * config/i386/sse.md
14371         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
14372         Extended to insnstructions with mask operands.
14374 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14376         * config/rs6000/constraints.md (define_register_constraint "wp"):
14377         Delete.
14378         (define_register_constraint "wq"): Delete.
14379         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14380         (rs6000_init_hard_regno_mode_ok): Adjust.
14381         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14382         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
14383         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
14384         (define_mode_attr VSa): Delete.
14385         (define_mode_attr VSisa): New.
14386         (rest of file): Adjust.
14387         * doc/md.texi (Machine Constraints): Adjust.
14389 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14391         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
14392         (define_attr "enabled"): Handle those new isa values.
14394 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14396         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
14397         (define_mode_attr VSr5): Delete.
14398         (define_mode_attr VStype_sqrt): Delete.
14399         (define_mode_iterator VSX_SPDP): Delete.
14400         (define_mode_attr VS_spdp_res): Delete.
14401         (define_mode_attr VS_spdp_insn): Delete.
14402         (define_mode_attr VS_spdp_type): Delete.
14403         (*vsx_sqrt<mode>2): Adjust.
14404         (vsx_<VS_spdp_insn>): Delete, split to...
14405         (vsx_xscvdpsp): ... this.  New.  And...
14406         (vsx_xvcvspdp): ... this.  New.  And...
14407         (vsx_xvcvdpsp): ... this.  New.
14409 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14411         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
14412         and V2DF.
14413         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
14414         (rest of file): Adjust.
14416 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14418         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
14419         (vsx_extract_<mode>_var): Ditto.
14421 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14423         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
14424         with just "wa".
14426 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14428         * config/rs6000/constraints.md (define_register_constraint "ww"):
14429         Delete.
14430         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14431         (rs6000_init_hard_regno_mode_ok): Adjust.
14432         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14433         RS6000_CONSTRAINT_ww.
14434         * config/rs6000/rs6000.md: Adjust.
14435         * config/rs6000/vsx.md: Adjust.
14436         * doc/md.texi (Machine Constraints): Adjust.
14438 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14440         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
14441         (define_mode_attr sd): New.
14442         (define_mode_attr s): New.
14443         (define_mode_attr Ftrad): Delete.
14444         (define_mode_attr Fvsx): Delete.
14445         (define_mode_attr Fs): Delete.
14446         (rest of file): Use the new mode attributes.
14447         * config.rs6000/vsx.md: Use the new mode attributes.
14449 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14451         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
14452         with just "wa".
14454 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14456         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
14457         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
14458         used with VSX_B, VSX_D, or VSX_F, with just "wa".
14460 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
14462         PR target/78263
14463         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
14464         C++ with strict ANSI requirements.
14466 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
14468         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
14469         computations when step is 1.
14471 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14473         * config/rs6000/constraints.md (define_register_constraint "wf"):
14474         Delete.
14475         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14476         (rs6000_init_hard_regno_mode_ok): Adjust.
14477         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14478         RS6000_CONSTRAINT_wf.
14479         * config/rs6000/rs6000.md: Adjust.
14480         * config/rs6000/vsx.md: Adjust.
14481         * doc/md.texi (Machine Constraints): Adjust.
14483 2019-06-04  Andrew Pinski  <apinski@marvell.com>
14485         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
14486         Fix ILP32 value.
14488 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14490         * config/rs6000/constraints.md (define_register_constraint "wd"):
14491         Delete.
14492         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14493         (rs6000_init_hard_regno_mode_ok): Adjust.
14494         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14495         RS6000_CONSTRAINT_wd.
14496         * config/rs6000/rs6000.md: Adjust.
14497         * config/rs6000/vsx.md: Adjust.
14498         * doc/md.texi (Machine Constraints): Adjust.
14500 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14502         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
14503         (rest of file): Adjust.
14505 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14507         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
14508         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
14509         (vsx_splat_<mode>_reg): Adjust.
14511 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14513         * config/rs6000/constraints.md (define_register_constraint "ws"):
14514         Delete.
14515         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14516         (rs6000_init_hard_regno_mode_ok): Adjust.
14517         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14518         RS6000_CONSTRAINT_ws.
14519         * config/rs6000/rs6000.md: Adjust.
14520         * config/rs6000/vsx.md: Adjust.
14521         * doc/md.texi (Machine Constraints): Adjust.
14523 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14525         * config/rs6000/constraints.md (define_register_constraint "wv"):
14526         Delete.
14527         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14528         (rs6000_init_hard_regno_mode_ok): Adjust.
14529         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14530         RS6000_CONSTRAINT_wv.
14531         * config/rs6000/rs6000.md: Adjust.
14532         * config/rs6000/vsx.md: Adjust.
14533         * doc/md.texi (Machine Constraints): Adjust.
14535 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14537         * config/rs6000/constraints.md (define_register_constraint "wi"):
14538         Delete.
14539         (define_register_constraint "wt"): Delete.
14540         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14541         (rs6000_init_hard_regno_mode_ok): Adjust.
14542         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14543         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
14544         * config/rs6000/rs6000.md: Adjust.
14545         * config/rs6000/vsx.md: Adjust.
14546         * doc/md.texi (Machine Constraints): Adjust.
14548 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14550         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
14551         const.
14552         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
14553         default_elf_asm_output_external.
14555 2019-06-04  Martin Liska  <mliska@suse.cz>
14557         * ipa-icf.c (INCLUDE_LIST): Remove.
14558         (sem_item_optimizer::execute): Remove call to init_wpa.
14559         * ipa-icf.h (init_wpa): Remove.
14561 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
14563         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
14564         conditional on combined for simd.
14565         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
14566         member.
14567         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
14568         constructs, don't remove lastprivate_conditional_map, but instead set
14569         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
14570         to parent construct temporaries.
14571         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
14572         like !ctx->lastprivate_conditional_map.
14573         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
14574         use up->outer context instead of up.
14575         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
14576         gimple_omp_for_combined_p.
14577         (expand_omp_for_static_nochunk): Likewise.
14578         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
14579         probably moved over into expand_omp_for_generic rather than being copied
14580         there.
14582 2019-06-04  Martin Liska  <mliska@suse.cz>
14584         * value-prof.c (dump_histogram_value): Fix typo.
14585         (gimple_mod_subtract_transform): Likewise.
14587 2019-06-04  Richard Biener  <rguenther@suse.de>
14589         PR middle-end/90726
14590         * tree-chrec.c (chrec_contains_symbols): Add to visited.
14591         (tree_contains_chrecs): Likewise.
14592         (chrec_contains_symbols_defined_in_loop): Move here and avoid
14593         exponential behaivor from ...
14594         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
14595         ... here.
14596         (expression_expensive_p): Avoid exponential behavior and compute
14597         expanded size, rejecting any expansion.
14598         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
14599         (idx_contains_abnormal_ssa_name_p): Likewise.
14600         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
14601         (contains_abnormal_ssa_name_p): Simplify and use
14602         walk_tree_without_duplicates.
14604 2019-06-04  Richard Biener  <rguenther@suse.de>
14606         PR tree-optimization/90738
14607         Revert
14608         2019-06-03  Richard Biener  <rguenther@suse.de>
14610         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14611         full reference tree and record in ref->ref.
14612         (vn_reference_lookup_3): Pass in original ref to
14613         ao_ref_init_from_vn_reference.
14614         (vn_reference_lookup): Likewise.
14615         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14616         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14617         Handle non-decl bases in the original reference.
14619 2019-06-04  Martin Liska  <mliska@suse.cz>
14621         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
14622         number of references.
14623         (sem_item_optimizer::do_congruence_step):
14624         (sem_item_optimizer::worklist_push): Dump how references
14625         a class has.
14626         (sem_item_optimizer::worklist_pop): Use heap.
14627         (sem_item_optimizer::process_cong_reduction): Likewise.
14628         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
14630 2019-06-04  Martin Liska  <mliska@suse.cz>
14632         * ipa-icf.h (struct sem_usage_pair_hash): New.
14633         (sem_usage_pair_hash::hash): Likewise.
14634         (sem_usage_pair_hash::equal): Likewise.
14635         (struct sem_usage_hash): Likewise.
14636         * ipa-icf.c (sem_item::sem_item): Initialize
14637         referenced_by_count.
14638         (sem_item::add_reference): Register a reference
14639         in ref_map and not in target->usages.
14640         (sem_item::setup): Remove initialization of
14641         dead vectors.
14642         (sem_item::~sem_item): Remove usage of dead vectors.
14643         (sem_item::dump): Remove dump of references.
14644         (sem_item_optimizer::sem_item_optimizer): Initialize
14645         m_references.
14646         (sem_item_optimizer::read_section): Remove useless
14647         dump.
14648         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
14649         (sem_item_optimizer::build_graph): Pass m_references
14650         to ::add_reference.
14651         (sem_item_optimizer::verify_classes): Remove usage of dead
14652         vectors.
14653         (sem_item_optimizer::traverse_congruence_split): Return true
14654         when a class is split.
14655         (sem_item_optimizer::do_congruence_step_for_index): Use
14656         hash_map for look up of (sem_item *, index). That brings
14657         significant speed up.
14658         (sem_item_optimizer::do_congruence_step): Return true
14659         when a split is done.
14660         (congruence_class::is_class_used): Use referenced_by_count.
14662 2019-06-04  Alan Modra  <amodra@gmail.com>
14664         PR target/90689
14665         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
14666         error.
14668 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
14670         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
14671         * config/rs6000/rs6000.c (direct_move_p): Adjust.
14672         (rs6000_secondary_reload_simple_move): Adjust.
14673         (rs6000_opt_masks): Neuter the "mfpgpr" option.
14674         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
14675         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
14676         comment.
14677         (power6x): Adjust.
14678         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
14679         (floatunssi<mode>2_lfiwzx): Adjust.
14680         (fix_trunc<mode>si2_stfiwx): Adjust.
14681         (fixuns_trunc<mode>si2_stfiwx): Adjust.
14682         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
14683         (mfpgpr): Mark as deprecated.
14684         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
14685         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
14686         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
14688 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
14690         * config/rs6000/constraints.md (define_register_constraint "wg"):
14691         Delete.
14692         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14693         RS6000_CONSTRAINT_wg.
14694         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14695         (rs6000_init_hard_regno_mode_ok): Adjust.
14696         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
14697         Delete "wg" alternatives.
14698         * doc/md.texi (Machine Constraints): Adjust.
14700 2019-06-03  Alan Modra  <amodra@gmail.com>
14702         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
14703         (get_uncond_jump_length): Assert length less than INT_MAX and
14704         non-negative.
14706 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
14708         PR middle-end/64242
14709         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
14710         block.
14711         (expand_builtin_nonlocal_goto): Likewise.
14713 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
14715         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
14716         (aarch64_asm_output_external): Declare.
14717         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
14718         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
14719         (aarch64_asm_output_alias): New.
14720         (aarch64_asm_output_external): New.
14721         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
14722         (ASM_OUTPUT_EXTERNAL): Define.
14724 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
14725         * tree-vrp.h (value_range_base::nonzero_p): New.
14726         (value_range_base::set_nonnull): Rename to...
14727         (value_range_base::set_nonzero): ...this.
14728         (value_range_base::set_null): Rename to...
14729         (value_range_base::set_zero): ...this.
14730         (value_range::set_nonnull): Remove.
14731         (value_range::set_null): Remove.
14732         * tree-vrp.c (range_is_null): Remove.
14733         (range_is_nonnull): Remove.
14734         (extract_range_from_binary_expr): Use value_range_base::*zero_p
14735         instead of range_is_*null.
14736         (extract_range_from_unary_expr): Same.
14737         (value_range_base::set_nonnull): Rename to...
14738         (value_range_base::set_nonzero): ...this.
14739         (value_range::set_nonnull): Remove.
14740         (value_range_base::set_null): Rename to...
14741         (value_range_base::set_zero): ...this.
14742         (value_range::set_null): Remove.
14743         (extract_range_from_binary_expr): Rename set_*null uses to
14744         set_*zero.
14745         (extract_range_from_unary_expr): Same.
14746         (union_helper): Same.
14747         * vr-values.c (get_value_range): Use set_*zero instead of
14748         set_*null.
14749         (vr_values::extract_range_from_binary_expr): Same.
14750         (vr_values::extract_range_basic): Same.
14752 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
14754         PR driver/90684
14755         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
14757 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14759         * config/aarch64/iterators.md (MAX_OPP): New code attr.
14760         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
14761         Rename to...
14762         (aarch64_<su>abd<mode>_3): ... This.
14763         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
14765 2019-06-03  Richard Biener  <rguenther@suse.de>
14767         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14768         full reference tree and record in ref->ref.
14769         (vn_reference_lookup_3): Pass in original ref to
14770         ao_ref_init_from_vn_reference.
14771         (vn_reference_lookup): Likewise.
14772         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14773         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14774         Handle non-decl bases in the original reference.
14776 2019-06-03  Martin Liska  <mliska@suse.cz>
14778         * doc/generic.texi: Remove Java Trees.
14780 2019-06-03  Martin Liska  <mliska@suse.cz>
14782         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
14783         returns 0 when operands are equal.
14785 2019-06-03  Richard Biener  <rguenther@suse.de>
14787         PR tree-optimization/90716
14788         * tree-loop-distribution.c (destroy_loop): Process blocks in
14789         correct order.
14791 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
14793         PR target/88837
14794         * vector-builder.h (vector_builder::count_dups): New method.
14795         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
14796         Declare prototype.
14797         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
14798         (vec_init<mode><Vel>): New pattern.
14799         * config/aarch64/aarch64.c (emit_insr): New function.
14800         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
14801         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
14802         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
14803         (aarch64_sve_expand_vector_init): Define two overloaded functions.
14805 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
14807         PR tree-optimization/90681
14808         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
14809         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
14810         special case for SLP, but fail on non-groupped loads.
14812 2019-06-03  Martin Liska  <mliska@suse.cz>
14814         * cfg.c (debug): Use TDF_DETAILS for debug and
14815         print edge info only once.
14817 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
14819         PR fortran/90539
14820         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
14822 2019-06-01  Martin Sebor  <msebor@redhat.com>
14824         PR middle-end/90694
14825         * tree-pretty-print.c (dump_generic_node): Add parentheses.
14827 2019-05-31  Jan Hubicka  <jh@suse.cz>
14829         * alias.c: Include ipa-utils.h.
14830         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
14831         * ipa-devirt.c (prevailing_odr_type): New.
14832         * ipa-utils.h (previaling_odr_type): Declare.
14834 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
14835             Hongtao Liu  <hongtao.liu@intel.com>
14837         PR target/89355
14838         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
14839         NOTE_INSN_DELETED_LABEL check.
14841 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
14842             Robert Suchanek  <robert.suchanek@mips.com>
14844         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
14845         and 3rd operands of the fmadd/fmsub/maddv builtin.
14847 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
14849         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
14850         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
14851         on OMP_SIMD if not nested inside of worksharing loop that also has
14852         lastprivate conditional clause for the same decl.
14853         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
14854         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
14855         on simd.
14856         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
14857         on simd construct.
14858         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
14859         on simd construct.
14860         (lower_lastprivate_clauses): Likewise.
14861         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
14862         calling lower_rec_input_clauses.
14863         (lower_omp_for): Likewise.
14864         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
14865         clause on simd construct.
14866         * omp-expand.c (expand_omp_simd): Initialize cond_var if
14867         OMP_CLAUSE__CONDTEMP_ clause is present.
14869         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
14870         ivar and lvar.
14872 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
14874         PR c/43673
14875         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
14876         TEX_D32, TEX_D64 or TEX_D128.
14878 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
14880         * match.pd (~(vec?cst1:cst2)): New transformation.
14882 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
14884         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
14885         ((size_t)(A /[ex] B) CMP C): New transformation.
14887 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
14889         * doc/md.texi: Document define_insn_and_rewrite.
14890         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
14891         * gensupport.c (queue_elem): Update comment.
14892         (replace_operands_with_dups): New function.
14893         (gen_rewrite_sequence): Likewise.
14894         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
14895         * read-rtl.c (apply_subst_iterator): Likewise.
14896         (add_condition_to_rtx, named_rtx_p): Likewise.
14897         (rtx_reader::read_rtx_operand): Likewise.
14898         * config/aarch64/aarch64-sve.md
14899         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
14900         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
14901         define_insn_and_rewrite.
14902         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
14903         Remove separate define_split.
14905 2019-05-31  Jan Hubicka  <jh@suse.cz>
14907         * tree-ssa-alias.c (type_has_components_p): New function.
14908         (aliasing_component_refs_p): Use it.
14910 2019-05-31  Martin Liska  <mliska@suse.cz>
14912         * gdbhooks.py: Add const_tree to TreePrinter.
14914 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
14916         PR debug/86964
14917         * common.opt (feliminate-unused-debug-symbols): Enable by default.
14918         * doc/invoke.texi (Debugging Options): Document new default of
14919         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
14921 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
14923         PR tree-optimization/90671
14924         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
14925         template_block used to be empty on the first call, don't use
14926         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
14927         seq with bb_seq and set it with set_bb_seq.
14929 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
14931         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
14933 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
14934             Michael Meissner  <meissner@linux.ibm.com>
14936         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
14937         (prefixed_mem_operand): Likewise.
14938         (non_prefixed_mem_operand): Likewise.
14939         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
14940         prototype.
14941         * config/rs6000/rs6000.c (print_operand_address): Handle
14942         PC-relative addresses.
14943         (mode_supports_prefixed_address_p): New function.
14944         (rs6000_prefixed_address): New function.
14945         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
14946         (SYMBOL_REF_PCREL_P): Likewise.
14948 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
14950         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
14951         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
14952         (gimplify_omp_for): If worksharing loop with lastprivate conditional
14953         is nested inside of parallel region, add _condtemp_ clause to both.
14954         * tree-nested.c (convert_nonlocal_omp_clauses,
14955         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
14956         assertion failure.
14957         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
14958         member.
14959         * omp-general.c (omp_extract_for_data): Compute it.
14960         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
14961         (lower_rec_input_clauses): Likewise.
14962         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
14963         clause is already present, just add one further one after it.
14964         (lower_lastprivate_clauses): Handle cond_ptr with array type.
14965         (lower_send_shared_vars): Clear _condtemp_ vars.
14966         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
14967         or section or taskgroup.
14968         * omp-expand.c (determine_parallel_type): Disallow combining only if
14969         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
14970         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
14971         (expand_omp_for_generic, expand_omp_for_static_nochunk,
14972         expand_omp_for_static_chunk, expand_omp_for): Use
14973         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
14974         determine if a special set of API routines are needed and if condtemp
14975         needs to be initialized, while always initialize cond_var if
14976         fd->lastprivate_conditional is non-zero.
14978 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
14979             Michael Meissner  <meissner@linux.ibm.com>
14981         * config/rs6000/constraints.md (eI): New constraint.
14982         * config/rs6000/predicates.md (cint34_operand): New predicate.
14983         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
14984         (SIGNED_34BIT_OFFSET_P): Likewise.
14985         * doc/md.texi (eI): Document constraint.
14987 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
14989         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
14991 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
14992             Michael Meissner  <meissner@linux.ibm.com>
14994         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
14995         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
14996         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
14997         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
14998         (OTHER_FUTURE_MASKS): Likewise.
14999         (POWERPC_MASKS): Likewise.
15000         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
15001         specified without -mprefixed-addr or -mcpu=future.  Error if
15002         -mprefixed-addr is specified without -mcpu=future.
15003         (rs6000_opt_masks): Add entry for prefixed-addr.
15004         * rs6000.opt (mprefixed-addr): New option.
15006 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
15008         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
15009         cfun->is_thunk check.
15011 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
15013         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
15014         to length.
15016 2019-05-30  Martin Liska  <mliska@suse.cz>
15018         * gdbinit.in: Fix 'ptc' command.  Add trt
15019         that prints TREE_TYPE($).
15021 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
15022             Alan Modra  <amodra@gmail.com>
15024         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
15025         calls here...
15026         (rs6000_indirect_call_template_1): ...and here.
15027         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
15028         plt16_ha, plt16_lo, mtctr indirect calls.  Use
15029         rs6000_pltseq_enum.
15030         (rs6000_decl_ok_for_sibcall): New function.
15031         (rs6000_function_ok_for_sibcall): Refactor.
15032         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
15033         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
15034         when pcrel.  Reorganize.
15035         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
15036         * rs6000.h (rs6000_pltseq_enum): New enum.
15037         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
15038         (*pltseq_tocsave): Use rs6000_pltseq_enum.
15039         (*pltseq_plt16_ha): Likewise.
15040         (*pltseq_plt16_lo): Likewise.
15041         (*pltseq_mtctr): Likewise.
15042         (*pltseq_plt_pcrel): New insn.
15043         (*call_local_aix): Handle @notoc calls.
15044         (*call_value_local_aix): Likewise.
15045         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
15046         (*call_value_nonlocal_aix): Likewise.
15047         (*call_indirect_pcrel): New insn.
15048         (*call_value_indirect_pcrel): Likewise.
15050 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15052         * config/i386/sse.md (*save_multiple<mode>): Rename from
15053         save_multiple<mode>.
15054         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
15055         (*restore_multiple_and_return<mode>): Rename from
15056         restore_multiple_and_return<mode>.
15057         (*restore_multiple_leave_return<mode>): Rename from
15058         restore_multiple_leave_return<mode>.
15060 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
15062         * config.gcc (rx-*-linux*): New target.
15063         * config/rx/elf.opt: New file.
15064         * config/rx/linux.h: Likewise.
15065         * config/rx/t-linux: Likewise.
15066         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
15067         make it zero.
15068         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
15069         (ASM_APP_OFF): Likewise.
15070         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
15071         moved elsewhere.
15073 2019-05-29  Jan Hubicka  <jh@suse.cz>
15075         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
15076         variants are pointer equivalent.
15078 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
15080         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
15081         * config/aarch64/aarch64-sve2.md: New file.
15082         (<u>avg<mode>3_floor): New pattern.
15083         (<u>avg<mode>3_ceil): Likewise.
15084         (*<sur>h<addsub><mode>): Likewise.
15085         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
15086         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
15088 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
15090         PR bootstrap/90543
15091         * optc-save-gen.awk: In cl_optimization_print, use correct condition
15092         for var_opt_string printing.  In cl_optimization_print_diff, print
15093         (null) instead of invoking undefined behavior if one of the
15094         var_opt_string pointers is NULL and use && instead of first || in the
15095         guarding condition.  For var_target_other options, handle const char *
15096         target variables similarly to const char * optimize node variables.
15098 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
15100         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
15101         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
15102         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
15103         Add autib1716 and pacib1716 initialisation.
15104         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
15105         for autib1716 and pacib1716.
15106         * config/aarch64/aarch64-protos.h (aarch64_key_type,
15107         aarch64_post_cfi_startproc): Define.
15108         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
15109         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
15110         aarch64_handle_pac_ret_protection): Set default sign key to A.
15111         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
15112         aarch64_expand_prologue): Add check for b-key.
15113         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
15114         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
15115         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
15116         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
15117         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
15118         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
15119         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15120         * config/aarch64/aarch64.md (do_return): Add check for b-key.
15121         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
15122         pauth_hint_num_a with pauth_hint_num.
15123         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
15124         pauth_hint_num_a with pauth_hint_num.
15125         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
15126         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
15127         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15128         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
15129         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
15130         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
15131         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
15132         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15133         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
15134         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
15135         UNSPEC_AUTIA1716 respectively.
15136         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
15137         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
15138         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
15139         * doc/invoke.texi (-mbranch-protection): Add b-key type.
15140         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
15141         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
15143 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
15145         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
15146         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
15147         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
15148         explicit clause on combined parallel into implicit shared clause.
15149         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
15150         and firstprivate if the decl has one too from combined parallel to
15151         the worksharing construct.
15153 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
15154             Michael Meissner  <meissner@linux.ibm.com>
15156         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
15158 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
15160         * rtl.h (LABEL_REF_P): New #define.
15162 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
15164         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
15166 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
15168         * internal-fn.c: Marked mask_load_direct as vectorizable.
15169         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
15170         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
15171         combined even if masks different with allow_slp_p param.
15172         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
15173         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
15174         dissolve SLP-only vectorizable groups when SLP has been discarded.
15175         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
15176         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
15177         masks.
15178         (vect_build_slp_tree_1): Fixed comment typo.
15179         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
15180         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
15181         loads for SLP only.
15182         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
15183         vectorizable.
15184         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
15186 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15188         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
15189         Remove obsolete use_thunk reference.
15190         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
15191         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
15192         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
15193         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
15194         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
15195         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15196         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
15197         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
15198         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
15200 2019-05-28  Nathan Sidwell  <nathan@acm.org>
15202         * tree.h (IDENTIFIER_ANON_P): New.
15203         (anon_aggrname_format, anon_aggname_p): Don't declare.
15204         (make_anon_name): Declare.
15205         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
15206         (hash_tree): Likewise.
15207         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
15208         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
15209         (anon_cnt, make_anon_name): New.
15211 2019-05-28  Martin Liska  <mliska@suse.cz>
15213         PR other/90315
15214         * opts-global.c (decode_options): Print help for all
15215         help_option_arguments.
15216         * opts.c (print_help): Add new argument.
15217         (common_handle_option): Remember all values into
15218         help_option_arguments.
15219         * opts.h (print_help): Add new argument.
15221 2019-05-28  Martin Liska  <mliska@suse.cz>
15223         PR ipa/90555
15224         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
15225         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
15226         (func_checker::compare_bb): Call compare_loops.
15228 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
15230         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
15231         on sections construct.
15232         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
15233         construct.
15234         (lower_omp_sections): Handle lastprivate conditional.
15235         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
15236         lastprivate_conditional_map.
15237         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
15239         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
15240         critical, taskgroup and section regions when looking for a region
15241         with non-NULL lastprivate_conditional_map.
15243 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15245         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
15246         (*ix86_gen_sub3): Ditto.
15247         (*ix86_gen_sub3_carry): Ditto.
15248         (*ix86_gen_one_cmpl2): Ditto.
15249         (*ix86_gen_andsp): Ditto.
15250         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
15251         (gen_and2_insn): New static function.
15252         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
15253         Use gen_add3_insn instead of ix86_gen_add3.
15254         (ix86_expand_split_stack_prologue): Use gen_add2_insn
15255         instead of ix86_gen_add3.
15256         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
15257         Use gen_sub3_insn instead of ix86_gen_sub3.
15258         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
15259         instead of ix86_gen_add3.
15260         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
15261         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
15262         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
15263         * config/i386/i386-options.c (ix86_option_override_internal):
15264         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
15265         ix86_gen_one_cmpl2 and ix86_gen_andsp.
15267 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15269         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
15270         and DW_OP_GNU_const_index opcodes.
15272 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15274         * config/i386/i386.h (STACK_SIZE_MODE): Define.
15276 2019-05-27  Richard Biener  <rguenther@suse.de>
15278         PR tree-optimization/90637
15279         * tree-ssa-sink.c (statement_sink_location): Honor the
15280         computed sink location for single-uses.
15282 2019-05-27  Richard Biener  <rguenther@suse.de>
15284         PR middle-end/90610
15285         * match.pd (vec_perm): Avoid clobbering op0 when not generating
15286         a bit-insert.
15288 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15290         * config/i386/i386.md (@sub<mode>3_carry): Rename
15291         from sub<mode>3_carry.
15292         (@leave_<mode>): New expander.
15293         (*leave): Rename from leave.
15294         (*leave_rex64): Rename from leave_rex64.
15295         (@monitorx_<mode>): Rename from monitorx_<mode>.
15296         (@clzero_<mode>): Rename from clzero_<mode>.
15297         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
15298         from sse3_monitor_<mode>.
15299         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
15300         (*ix86_gen_leave): Ditto.
15301         (*ix86_gen_monitor): Ditto.
15302         (*ix86_gen_monitorx): Ditto.
15303         (*ix86_gen_clzero): Ditto.
15304         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
15305         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
15306         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
15307         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
15308         Use gen_sse3_monitor instead of ix86_gen_monitor.
15309         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
15310         instead of ix86_gen_monitorx.
15311         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
15312         instead of ix86_gen_clzero.
15313         * config/i386/i386-options.c (ix86_option_override_internal):
15314         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
15315         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
15317 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15319         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
15320         Rename from tls_global_dynamic_64_<mode>.
15321         (@tls_local_dynamic_base_64_<mode>): Rename from
15322         tls_local_dynamic_base_64_<mode>.
15323         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
15324         Remove indirect function.
15325         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
15326         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
15327         instead of ix86_gen_tls_global_dynamic_64.
15328         Use gen_tls_local_dynamic_base_64 instead of
15329         ix86_gen_tls_local_dynamic_base_64.
15330         * config/i386/i386-options.c (ix86_option_override_internal):
15331         Do not initialize ix86_gen_tls_global_dynamic_64 and
15332         ix86_gen_tls_local_dynamic_base_64.
15334 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15336         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
15337         Rename from pro_epilogue_adjust_stack_<mode>_add.
15338         (@pro_epilogue_adjust_stack_sub_<mode>)
15339         Rename from pro_epilogue_adjust_stack_<mode>_sub.
15340         (@allocate_stack_worker_probe_<mode>):
15341         Rename from allocate_stack_worker_probe_<mode>.
15342         (allocate_stack): Use gen_allocate_stack_worker_probe.
15343         (probe_stack): Use gen_probe_stack_1.
15344         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
15345         (@adjust_stack_and_probe_<mode>): Rename from
15346         adjust_stack_and_probe<mode>.
15347         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
15348         (stack_protect_set): Use gen_stack_protect_set_1.
15349         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
15350         (stack_protect_test): Use gen_stack_protect_test_1.
15351         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
15352         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
15353         Remove indirect function.
15354         (*ix86_gen_adjust_stack_and_probe): Ditto.
15355         (*ix86_gen_probe_stack_range): Ditto.
15356         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
15357         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
15358         (ix86_adjust_stack_and_probe_stack_clash): Use
15359         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
15360         (ix86_adjust_stack_and_probe): Ditto.
15361         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
15362         of ix86_gen_probe_stack_range.
15363         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
15364         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
15365         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
15366         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
15367         CODE_FOR_stack_protect_test_{si,di}.
15368         * config/i386/i386-options.c (ix86_option_override_internal):
15369         Do not initialize ix86_gen_allocate_stack_worker,
15370         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
15372 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
15374         * doc/invoke.texi (Link Options): Many editorial changes around
15375         -flinker-output.
15377 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15379         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
15380         pre-Solaris 11 referene and most Studio compiler details.
15382 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
15384         PR target/90530
15385         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
15386         DImode to SImode in floating-point registers on 64-bit target.
15387         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
15388         register_operand in xmpyu patterns.
15390 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
15392         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
15393         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
15394         OMP_CLAUSE__REDUCTEMP_.
15395         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15396         OMP_CLAUSE__CONDTEMP_.
15397         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
15398         * tree-pretty-print.c (dump_omp_clause): Likewise.
15399         * tree-nested.c (convert_nonlocal_omp_clauses,
15400         convert_local_omp_clauses): Likewise.
15401         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
15402         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
15403         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
15404         on OMP_FOR.
15405         (gimplify_omp_for): Warn and disable conditional modifier from
15406         lastprivate on loop iterators.
15407         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
15408         member.
15409         * omp-general.c (omp_extract_for_data): Initialize it.
15410         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
15411         member.
15412         (delete_omp_context): Delete it.
15413         (lower_lastprivate_conditional_clauses): New function.
15414         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
15415         handle lastprivate conditional clauses.
15416         (lower_reduction_clauses): Add CLIST argument, emit it into
15417         the critical section if any.
15418         (lower_omp_sections): Adjust lower_lastprivate_clauses and
15419         lower_reduction_clauses callers.
15420         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
15421         to lower_lastprivate_clauses.
15422         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
15423         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
15424         clist into a critical section if not emitted there already by
15425         lower_reduction_clauses.
15426         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
15427         callers.
15428         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
15429         conditional variables.
15430         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
15431         clause is present.
15432         (expand_omp_for_generic, expand_omp_for_static_nochunk,
15433         expand_omp_for_static_chunk): Handle lastprivate conditional.
15434         (expand_omp_for): Handle fd.lastprivate_conditional like
15435         fd.have_reductemp.
15437 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
15439         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
15440         kernel does not exit cleanly.
15441         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
15443 2019-05-24  Jason Merrill  <jason@redhat.com>
15445         Revert:
15446         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15448 2019-05-24  Richard Biener  <rguenther@suse.de>
15450         PR testsuite/90607
15451         * tree-loop-distribution.c (struct partition): Add location
15452         member.
15453         (partition_alloc): Initialize all fields.
15454         (generate_memset_builtin): Use the location recorded in the
15455         partition for the generated call.
15456         (generate_memcpy_builtin): Likewise.
15457         (classify_partition): Record the location of a single store
15458         as location for the partition.
15460 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
15462         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
15463         for lo-part.
15465 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
15467         PR target/90588
15468         * common/config/aarch64/aarch64-common.c
15469         (aarch64_rewrite_selected_cpu): Change local temporary variable
15470         type from unsigned long to uint64_t.
15471         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
15472         aarch64_get_extension_string_for_isa_flags): Change declaration to
15473         match new definition by replacing unsigned long with uint64_t.
15475 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
15477         PR target/90568
15478         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
15479         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
15480         Handle stack_protect_test_<mode> codegen similarly to corresponding
15481         sub instruction.
15483 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
15485         * config/i386/darwin.h: Reject -mfentry*.
15486         * doc/sourcebuild.texi: Document mfentry target support.
15488 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
15490         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
15491         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
15492         false for PC-relative functions.
15493         (rs6000_output_function_prologue): Change called function name to
15494         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
15495         name,1" for PC-relative functions.
15496         (rs6000_elf_declare_function_name): Change called function name to
15497         rs6000_global_entry_point_prologue_needed_p.
15499 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15501         PR target/90552
15502         * config/i386/i386.c (gen_rtx_cost):
15503         Use ix86_tune_cost instead of ix86_cost.
15505 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
15506             Michael Meissner  <meissner@linux.ibm.com>
15507             Segher Boessenkool  <segher@kernel.crashing.org>
15509         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
15510         OPTION_MASK_PCREL.
15511         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
15512         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
15513         (rs6000_fndecl_pcrel_p): Likewise.
15514         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
15515         error if -mpcrel is requested without -mcpu=future.
15516         (rs6000_opt_masks): Add entry for pcrel.
15517         (rs6000_fndecl_pcrel_p): New function.
15518         (rs6000_pcrel_p): Likewise.
15519         * config/rs6000/rs6000.opt (mpcrel): New option.
15520         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
15522 2019-05-23  Jan Hubicka  <jh@suse.cz>
15523             Martin Liska  <mliska@suse.cz>
15525         PR tree-optimization/90576
15526         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
15527         poly_int_tree_p.
15528         (aliasing_component_refs_p): Fix three way size compare conditional;
15529         give up earlier in case we can not decide on equivalence.
15531 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
15532             Michael Meissner  <meissner@linux.ibm.com>
15533             Segher Boessenkool  <segher@kernel.crashing.org>
15535         * config.gcc: Add future cpu.
15536         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
15537         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
15538         #define.
15539         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
15540         (RS6000_CPU): New instantiation for future cpu.
15541         * config/rs6000/rs6000-opts.h (enum processor_type): Add
15542         PROCESSOR_FUTURE.
15543         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
15544         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
15545         * config/rs6000/rs6000-tables.opt: Regenerate.
15546         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
15547         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
15548         (rs6000_machine_from_flags): Handle future cpu.
15549         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
15550         PROCESSOR_POWER9 for now.
15551         (rs6000_adjust_cost): Likewise.
15552         (rs6000_issue_rate): Likewise.
15553         (rs6000_register_move_cost): Likewise.
15554         (rs6000_opt_masks): Add entry for future.
15555         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
15556         (MASK_FUTURE): New #define.
15557         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
15558         * config/rs6000/rs6000.opt (mfuture): New target option.
15559         * doc/invoke.texi (mcpu): Add future cpu.
15561 2019-05-23  Martin Liska  <mliska@suse.cz>
15563         PR c++/90587
15564         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
15565         operation points to a temporary (pointed via tree_to_wide_ref)
15566         that is out of scope after the &.
15568 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
15570         PR c++/90592
15571         * doc/extend.texi (Function Names): Add missing word.
15573 2019-05-23  Richard Biener  <rguenther@suse.de>
15575         PR tree-optimization/88440
15576         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
15577         at -O[2s]+.
15578         * tree-loop-distribution.c (generate_memset_builtin): Fold the
15579         generated call.
15580         (generate_memcpy_builtin): Likewise.
15581         (distribute_loop): Pass in whether to only distribute patterns.
15582         (prepare_perfect_loop_nest): Also allow size optimization.
15583         (pass_loop_distribution::execute): When optimizing a loop
15584         nest for size allow pattern replacement.
15586 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
15588         PR target/90568
15589         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
15590         of xor.
15592 2019-05-23  Martin Liska  <mliska@suse.cz>
15594         PR sanitizer/90570
15595         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
15596         expression similarly to gimplify_decl_expr.
15598 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15600         * cse.c (cse_dump_path): s/dump_file/f.
15602 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
15604         PR c++/90462
15605         * diagnostic-format-json.cc: Include "selftest.h".
15606         (json_from_expanded_location): Only add "file" key for non-NULL
15607         file strings.
15608         (json_from_location_range): Don't add "start" and "finish"
15609         children if they are UNKNOWN_LOCATION.
15610         (selftest::test_unknown_location): New selftest.
15611         (selftest::test_bad_endpoints): New selftest.
15612         (selftest::diagnostic_format_json_cc_tests): New function.
15613         * json.cc (json::object::get): New function.
15614         (selftest::test_object_get): New selftest.
15615         (selftest::json_cc_tests): Call it.
15616         * json.h (json::object::get): New decl.
15617         * selftest-run-tests.c (selftest::run_tests): Call
15618         selftest::diagnostic_format_json_cc_tests.
15619         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
15620         decl.
15622 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
15623             Andrew Stubbs  <amd@codesourcery.com>
15625         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
15626         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
15627         (kernel): Rename to...
15628         (main_kernel): ... this.
15629         (load_image): Load _init_array and _fini_array kernels.
15630         (run): Add argument for kernel to run.
15631         (main): Run init_array_kernel before main_kernel, and
15632         fini_array_kernel after.
15633         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
15634         amdgpu_hsa_kernel attribute on functions.
15635         (gcn_disable_constructors): Delete.
15636         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
15637         * config/gcn/crt0.c (size_t): Define.
15638         (_init_array, _fini_array): New.
15639         (__preinit_array_start, __preinit_array_end,
15640         __init_array_start, __init_array_end,
15641         __fini_array_start, __fini_array_end): Declare weak references.
15643 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
15645         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
15647 2019-05-22  Jason Merrill  <jason@redhat.com>
15649         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15651 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
15653         PR target/88483
15654         * config/i386/i386-options.c (ix86_init_machine_status): Set
15655         stack_frame_required to true.
15656         * config/i386/i386.c (ix86_get_frame_size): New function.
15657         (ix86_frame_pointer_required): Replace get_frame_size with
15658         ix86_get_frame_size.
15659         (ix86_compute_frame_layout): Likewise.
15660         (ix86_find_max_used_stack_alignment): Changed to void.  Set
15661         stack_frame_required.
15662         (ix86_finalize_stack_frame_flags): Always call
15663         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
15664         ix86_get_frame_size.
15665         * config/i386/i386.h (machine_function): Add stack_frame_required.
15667 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15669         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
15671 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
15673         * common/config/aarch64/aarch64-common.c
15674         (struct aarch64_option_extension, struct processor_name_to_arch,
15675         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
15676         aarch64_contains_opt,
15677         aarch64_get_extension_string_for_isa_flags): Change type of
15678         variables storing flags to uint64_t.
15679         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
15680         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
15681         * config/aarch64/aarch64.c (struct processor,
15682         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
15683         aarch64_validate_march, aarch64_override_options,
15684         aarch64_option_print, aarch64_handle_attr_isa_flags,
15685         aarch64_declare_function_name, aarch64_start_file): Make flag
15686         variables uint64_t.
15687         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
15688         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
15689         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
15690         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
15691         * config/aarch64/driver-aarch64.c
15692         (struct aarch64_arch_extension, struct aarch64_core_data,
15693         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
15694         flag variables uint64_t.
15695         * doc/invoke.texi: Add documentation for new arguments.
15697 2019-05-22  Richard Biener  <rguenther@suse.de>
15699         * alias.c (ao_ref_from_mem): Move stack-slot sharing
15700         rewrite ...
15701         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
15703 2019-05-22  Martin Liska  <mliska@suse.cz>
15705         PR lto/90500
15706         * doc/extend.texi: Document the change.
15708 2019-05-22  Richard Biener  <rguenther@suse.de>
15710         PR tree-optimization/90450
15711         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
15712         (mem_ref_hasher::equal): Check it.
15713         (mem_ref_alloc): Initialize it.
15714         (gather_mem_refs_stmt): Set it.
15716 2019-05-22  Richard Biener  <rguenther@suse.de>
15718         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
15719         Add ABS_EXPR.
15720         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
15721         as ABSU_EXPR.
15723 2019-05-22  Alan Modra  <amodra@gmail.com>
15725         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
15726         (ASM_CPU_SPEC): Conditionally add -many.
15727         * config/rs6000/rs6000.c (rs6000_machine): New static var.
15728         (rs6000_machine_from_flags, emit_asm_machine): New functions..
15729         (rs6000_file_start): ..extracted from here, and modified to
15730         test all ISA bits.
15731         (rs6000_output_function_prologue): Emit .machine as necessary.
15733 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
15735         PR middle-end/90553
15736         * ira-lives.c (process_bb_node_lives): Consider defs
15737         for a call insn to be die before the call, not after.
15739         * function.c (assign_parm_setup_block): Raise alignment of
15740         stacked parameter only for STRICT_ALIGNMENT targets.
15742 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
15744         * config/rs6000/constraints.md (define_register_constraint "wz"):
15745         Delete.
15746         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15747         RS6000_CONSTRAINT_wz.
15748         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15749         (rs6000_init_hard_regno_mode_ok): Adjust.
15750         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
15751         * doc/md.texi (Machine Constraints): Adjust.
15753 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
15755         * config/rs6000/constraints.md (define_register_constraint "wl"):
15756         Delete.
15757         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15758         RS6000_CONSTRAINT_wl.
15759         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15760         (rs6000_init_hard_regno_mode_ok): Adjust.
15761         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
15762         * doc/md.texi (Machine Constraints): Adjust.
15764 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
15766         * config/rs6000/constraints.md (define_register_constraint "wm"):
15767         Delete.
15768         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15769         RS6000_CONSTRAINT_wm.
15770         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15771         (rs6000_init_hard_regno_mode_ok): Adjust.
15772         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
15773         * doc/md.texi (Machine Constraints): Adjust.
15775 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
15777         * config/rs6000/constraints.md (define_register_constraint "wk"):
15778         Delete.
15779         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15780         RS6000_CONSTRAINT_wk.
15781         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15782         (rs6000_init_hard_regno_mode_ok): Adjust.
15783         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
15784         * doc/md.texi (Machine Constraints): Adjust.
15786 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
15788         * config/rs6000/constraints.md (define_register_constraint "wj"):
15789         Delete.
15790         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15791         RS6000_CONSTRAINT_wj.
15792         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15793         (rs6000_init_hard_regno_mode_ok): Adjust.
15794         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
15795         (VS_64dm): Delete.
15796         * config/rs6000/vsx.md: Ditto.
15797         * doc/md.texi (Machine Constraints): Adjust.
15799 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
15801         * config/rs6000/constraints.md (define_register_constraint "wh"):
15802         Delete.
15803         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15804         RS6000_CONSTRAINT_wh.
15805         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15806         (rs6000_init_hard_regno_mode_ok): Adjust.
15807         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
15808         * doc/md.texi (Machine Constraints): Adjust.
15810 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15812         PR target/90547
15813         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
15814         Avoid calling gen_lowpart with CONST operand.
15816 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
15818         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
15819         field template_last_to_copy.
15820         (ssa_create_duplicates): Set it, and use it.  Attempt to
15821         preserve more debug stmts.
15823 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15825         * config/i386/sse.md (VF1_AVX2): New mode iterator.
15826         (signbit<mode>2): New expander
15828 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
15830         PR bootstrap/87338
15831         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
15832         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
15834 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15836         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
15837         %ebx and %ecx bafore calling cpuid with leaf 1 or
15838         non-constant leaf argument.
15840 2019-05-21  Alan Modra  <amodra@gmail.com>
15842         PR target/90545
15843         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
15844         power9 direct move cost.
15846 2019-05-21  Richard Biener  <rguenther@suse.de>
15848         PR middle-end/90510
15849         * fold-const.c (fold_read_from_vector): New function.
15850         * fold-const.h (fold_read_from_vector): Declare.
15851         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
15852         single-element insert permutations.  Canonicalize selector
15853         further and fix issue with last commit.
15855 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
15857         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
15858         parameter with default value false to declaration.
15859         (split_edges_for_insertion): New inline function.  Wrapper for
15860         split_critical_edges with for_edge_insertion_p = true.
15861         * tree-cfg.c (split_critical_edges): Don't split non-critical
15862         edges if for_edge_insertion_p is false.  Fix whitespace.
15863         * tree-ssa-pre.c (pass_pre::execute): Call
15864         split_edges_for_insertion instead of split_critical_edges.
15865         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
15866         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
15867         (pass_data_sink_code): Update function name in the comment.
15869 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
15871         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
15872         around is_value_included_in that knows how to handle BIT_AND_EXPR.
15873         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
15874         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
15875         positives.
15877 2019-05-21  Martin Liska  <mliska@suse.cz>
15879         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
15880         an extra newline.
15881         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
15882         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
15883         vec_lvsr.
15884         * config/rs6000/rs6000.c (rs6000_option_override_internal):
15885         Quote a C type.
15886         (rs6000_function_arg): Likewise.
15887         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
15888         (rs6000_expand_ternop_builtin): Use interval syntax.
15889         (get_element_number): Likewise.
15890         (altivec_expand_builtin): Likewise.
15891         (rs6000_get_function_versions_dispatcher): Quote target_clones.
15893 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
15895         PR c++/59813
15896         PR target/90418
15897         * function.h (struct function): Add calls_eh_return member.
15898         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
15899         gimplifying __builtin_eh_return call.
15900         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
15901         to cfun.
15902         (expand_call_inline): Or in src_cfun->calls_eh_return into
15903         dst_cfun->calls_eh_return.
15904         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
15905         cfun->calls_eh_return.
15906         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
15907         * lto-streamer-out.c (output_struct_function_base): Write
15908         calls_eh_return.
15910 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
15912         PR rtl-optimization/43147
15913         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
15914         IX86_BUILTIN_SHUFPD.
15916 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
15918         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
15919         (refs_may_alias_p_1): ... here; update stats.
15920         (refs_may_alias_p): Do not update stats here.
15922 2019-05-20  Richard Biener  <rguenther@suse.de>
15924         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
15925         doesn't produce pointers.
15926         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
15927         the first operand points to.
15929 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
15931         * tree-ssa-alias.c (compare_sizes): New function.
15932         (sompare_type_sizes): New function
15933         (aliasing_component_refs_p): Use it.
15934         (indirect_ref_may_alias_decl_p): Likewise.
15936 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15938         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
15940 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15942         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
15943         (LIBLSAN_EARLY_SPEC): Likewise.
15944         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
15946 2019-05-20  Martin Liska  <mliska@suse.cz>
15948         * config/i386/i386.c (ix86_libc_has_fast_function):
15949         Add ATTRIBUTE_UNUSED for the argument.
15951 2019-05-20  Richard Biener  <rguenther@suse.de>
15953         * gimple-match-head.c: Include vec-perm-indices.h.
15954         * generic-match-head.c: Likewise.
15955         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
15956         is included.
15957         * fold-const.c (fold_vec_perm): Export.
15958         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
15959         (match.pd): ...here.
15961 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
15963         * cfgloop.h (struct loop): Add simdlen member.
15964         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
15965         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
15966         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
15967         as new argument to autovectorize_vector_sizes target hook.  If
15968         loop->simdlen, pick up vector size where the vectorization factor
15969         is equal to loop->simd, and if there is none, fall back to the first
15970         successful one.
15971         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
15972         caller.
15973         * omp-low.c (omp_clause_aligned_alignment): Likewise.
15974         * omp-general.c (omp_max_vf): Likewise.
15975         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
15976         * tree-vect-slp.c (vect_slp_bb): Likewise.
15977         * target.def (autovectorize_vector_sizes): Add ALL argument and
15978         document it.
15979         * doc/tm.texi: Adjust documentation.
15980         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
15981         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
15982         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
15983         bool argument.
15984         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
15985         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
15986         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
15987         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
15988         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
15989         preferred vector size is not 512-bit or 256-bit, just put those
15990         unpreferred ones last.
15992 2019-05-20  Martin Liska  <mliska@suse.cz>
15994         * targhooks.c (default_libc_has_fast_function): New function.
15995         * targhooks.h (default_libc_has_fast_function): Likewise.
15997 2019-05-20  Martin Liska  <mliska@suse.cz>
15999         PR middle-end/90263
16000         * builtins.c (expand_builtin_memory_copy_args): When having a
16001         target with fast mempcpy implementation do now use memcpy.
16002         * config/i386/i386.c (ix86_libc_has_fast_function): New.
16003         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
16004         * doc/tm.texi: Likewise.
16005         * doc/tm.texi.in: Likewise.
16006         * target.def:
16007         * expr.c (emit_block_move_hints): Add 2 new arguments.
16008         * expr.h (emit_block_move_hints): Bail out when libcall
16009         to memcpy would be used.
16011 2019-05-20  Martin Liska  <mliska@suse.cz>
16013         * profile-count.c: Add vertical spacing in order
16014         to separate functions.
16015         * profile-count.h: Likewise.
16017 2019-05-20  Martin Liska  <mliska@suse.cz>
16019         * profile-count.h: Do not use full qualified
16020         names if possible.
16021         * profile-count.c (profile_count::to_frequency): Likewise.
16023 2019-05-20  Martin Liska  <mliska@suse.cz>
16025         * profile-count.h (enum profile_quality): Use capital letters
16026         for enum value names.  Use the adjusted names.
16027         * profile-count.c: Use the adjusted names.
16029 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16031         * config/rs6000/constraints.md (define_register_constraint "wH"):
16032         Delete.
16033         (define_register_constraint "wI"): Delete.
16034         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16035         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
16036         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16037         (rs6000_init_hard_regno_mode_ok): Adjust.
16038         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
16039         resp. "d", or with "wa" as appropriate, all with "p8v".
16040         * config/rs6000/vsx.md: Ditto.
16041         * doc/md.texi (Machine Constraints): Adjust.
16043 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16045         * config/rs6000/constraints.md (define_register_constraint "wy"):
16046         Delete.
16047         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16048         RS6000_CONSTRAINT_wy.
16049         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16050         (rs6000_init_hard_regno_mode_ok): Adjust.
16051         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
16052         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
16053         (define_mode_attr Fisa): New.
16054         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
16055         * doc/md.texi (Machine Constraints): Adjust.
16057 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16059         * config/rs6000/constraints.md (define_register_constraint "wu"):
16060         Delete.
16061         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16062         RS6000_CONSTRAINT_wu.
16063         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16064         (rs6000_init_hard_regno_mode_ok): Adjust.
16065         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
16066         both with "p8v".
16067         (define_mode_attr Fa): Delete.
16068         * config/rs6000/vsx.md: Ditto.
16069         * doc/md.texi (Machine Constraints): Adjust.
16071 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16073         * config/rs6000/constraints.md (define_register_constraint "wJ"):
16074         Delete.
16075         (define_register_constraint "wK"): Delete.
16076         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16077         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
16078         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16079         (rs6000_init_hard_regno_mode_ok): Adjust.
16080         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
16081         Replace "wK" constraint by "wH" with "p9v".
16082         * config/rs6000/vsx.md: Ditto.
16083         * doc/md.texi (Machine Constraints): Adjust.
16085 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16087         * config/rs6000/constraints.md (define_register_constraint "wb"):
16088         Delete.
16089         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16090         RS6000_CONSTRAINT_wb.
16091         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16092         (rs6000_init_hard_regno_mode_ok): Adjust.
16093         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
16094         * config/rs6000/vsx.md: Ditto.
16095         * doc/md.texi (Machine Constraints): Adjust.
16097 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16099         * config/rs6000/constraints.md (define_register_constraint "wo"):
16100         Delete.
16101         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16102         RS6000_CONSTRAINT_wo.
16103         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16104         (rs6000_init_hard_regno_mode_ok): Adjust.
16105         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
16106         * config/rs6000/altivec.md: Ditto.
16107         * doc/md.texi (Machine Constraints): Adjust.
16109 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
16111         * config/darwin-c.c (darwin_register_objc_includes): Do not
16112         prepend the sysroot when building gnu-runtime header search
16113         paths.
16115 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
16117         * config/darwin.c (darwin_file_end): Use switch_to_section ()
16118         instead of direct output of the asm.
16120 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
16122         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
16123         argument to be type bool (was int before).
16124         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
16125         at first use.  Use type bool for some variables.  Fix a theoretical
16126         eh_return bug for svr4.
16128 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
16130         * config/rs6000/rs6000.md (isa): New attribute.
16131         (enabled): New attribute.
16133 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
16135         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
16136         assemble_start_function and assemble_end_function.
16138 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
16140         PR middle-end/89433
16141         * omp-general.c (oacc_verify_routine_clauses): Change formal
16142         parameters.  Add checking if already marked with an OpenACC
16143         'routine' directive.  Adjust all users.
16145         PR middle-end/89433
16146         * omp-general.c (oacc_build_routine_dims): Move some of its
16147         processing into...
16148         (oacc_verify_routine_clauses): ... this new function.
16149         * omp-general.h (oacc_verify_routine_clauses): New prototype.
16151 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
16153         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
16154         formating of picbase labels to match other ports.
16156 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
16158         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
16159         in the generated code.
16161 2019-05-16  Martin Sebor  <msebor@redhat.com>
16163         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
16164         identifiers, keywords, operators, and types in diagnostics.  Correct
16165         quoting, spelling, and sentence capitalization issues.
16166         (expand_builtin_atomic_is_lock_free): Same.
16167         (fold_builtin_next_arg): Same.
16168         * cfgexpand.c (expand_one_var): Same.
16169         (tree_conflicts_with_clobbers_p): Same.
16170         (expand_asm_stmt): Same.
16171         (verify_loop_structure): Same.
16172         * cgraphunit.c (process_function_and_variable_attributes): Same.
16173         * collect-utils.c (collect_execute): Same.
16174         * collect2.c (maybe_run_lto_and_relink): Same.
16175         (is_lto_object_file): Same.
16176         (scan_prog_file): Same.
16177         * convert.c (convert_to_real_1): Same.
16178         * dwarf2out.c (dwarf2out_begin_prologue): Same.
16179         * except.c (verify_eh_tree): Same.
16180         * gcc.c (execute): Same.
16181         (eval_spec_function): Same.
16182         (run_attempt): Same.
16183         (driver::set_up_specs): Same.
16184         (compare_debug_auxbase_opt_spec_function): Same.
16185         * gcov-tool.c (unlink_gcda_file): Same.
16186         (do_merge): Same.
16187         (do_rewrite): Same.
16188         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
16189         * gimplify.c (gimplify_asm_expr): Same.
16190         (gimplify_adjust_omp_clauses): Same.
16191         * hsa-gen.c (gen_hsa_addr_insns): Same.
16192         (gen_hsa_insns_for_load): Same.
16193         (gen_hsa_cmp_insn_from_gimple): Same.
16194         (gen_hsa_insns_for_operation_assignment): Same.
16195         (gen_get_level): Same.
16196         (gen_hsa_alloca): Same.
16197         (omp_simple_builtin::generate): Same.
16198         (gen_hsa_atomic_for_builtin): Same.
16199         (gen_hsa_insns_for_call): Same.
16200         * input.c (dump_location_info): Same.
16201         * ipa-devirt.c (compare_virtual_tables): Same.
16202         * ira.c (ira_setup_eliminable_regset): Same.
16203         * lra-assigns.c (lra_assign): Same.
16204         * lra-constraints.c (lra_constraints): Same.
16205         * lto-streamer-in.c (lto_input_mode_table): Same.
16206         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
16207         (merge_and_complain): Same.
16208         (compile_offload_image): Same.
16209         (compile_images_for_offload_targets): Same.
16210         (debug_objcopy): Same.
16211         (run_gcc): Same.
16212         (main): Same.
16213         * opts.c (print_specific_help): Same.
16214         (parse_no_sanitize_attribute): Same.
16215         (print_help): Same.
16216         (handle_param): Same.
16217         * plugin.c (add_new_plugin): Same.
16218         (parse_plugin_arg_opt): Same.
16219         (try_init_one_plugin): Same.
16220         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
16221         operators, and types in diagnostics.  Correct quoting and spelling
16222         issues.
16223         * read-rtl-function.c (parse_edge_flag_token): Same.
16224         (function_reader::parse_enum_value): Same.
16225         * reg-stack.c (check_asm_stack_operands): Same.
16226         * regcprop.c (validate_value_data): Same.
16227         * sched-rgn.c (make_pass_sched_fusion): Same.
16228         * stmt.c (check_unique_operand_names): Same.
16229         * targhooks.c (default_target_option_pragma_parse): Same.
16230         * tlink.c (recompile_files): Same.
16231         * toplev.c (process_options): Same.
16232         (do_compile): Same.
16233         * trans-mem.c (diagnose_tm_1): Same.
16234         (ipa_tm_scan_irr_block): Same.
16235         (ipa_tm_diagnose_transaction): Same.
16236         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
16237         format a tree code name in a diagnostic.
16238         (verify_types_in_gimple_min_lval): Same.
16239         (verify_types_in_gimple_reference): Same.
16240         (verify_gimple_call): Same.
16241         (verify_gimple_assign_unary): Same.
16242         (verify_gimple_assign_binary): Same.
16243         (verify_gimple_assign_ternary): Same.
16244         (verify_gimple_assign_single): Same.
16245         (verify_gimple_switch): Same.
16246         (verify_gimple_label): Same.
16247         (verify_gimple_phi): Same.
16248         (verify_gimple_in_seq): Same.
16249         (verify_eh_throw_stmt_node): Same.
16250         (collect_subblocks): Same.
16251         (gimple_verify_flow_info): Same.
16252         (do_warn_unused_result): Same.
16253         * tree-inline.c (expand_call_inline): Same.
16254         * tree-into-ssa.c (update_ssa): Same.
16255         * tree.c (tree_int_cst_elt_check_failed): Same.
16256         (tree_vec_elt_check_failed): Same.
16257         (omp_clause_operand_check_failed): Same.
16258         (verify_type_variant): Same.
16259         (verify_type): Same.
16260         * value-prof.c (verify_histograms): Same.
16261         * varasm.c (assemble_start_function): Same.
16263 2019-05-16  Martin Sebor  <msebor@redhat.com>
16265         * config/i386/i386-expand.c (get_element_number): Quote keywords
16266         and other internal names in diagnostics.  Adjust other diagnostic
16267         formatting issues noted by -Wformat-diag.
16268         * config/i386/i386-features.c
16269         (ix86_mangle_function_version_assembler_name): Same.
16270         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
16271         * config/i386/i386.c (ix86_function_type_abi): Same.
16272         (ix86_function_ms_hook_prologue): Same.
16273         (classify_argument): Same.
16274         (ix86_expand_prologue): Same.
16275         (ix86_md_asm_adjust): Same.
16276         (ix86_memmodel_check): Same.
16278 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
16280         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
16281         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
16282         and fpxx modes.
16284 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16286         PR target/90497
16287         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
16288         intrinsics without SSE/SSE2/SSSE3.
16289         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
16290         check.
16291         (*mmx_uavgv8qi3): Likewise.
16293 2019-05-17  Richard Biener  <rguenther@suse.de>
16295         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
16296         VEC_PERM_EXPR as __VEC_PERM with -gimple.
16298 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
16300         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
16301         vec_sldw insn pattern.
16303 2019-05-17  Richard Biener  <rguenther@suse.de>
16305         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
16307 2019-05-17  Martin Liska  <mliska@suse.cz>
16309         PR driver/90496
16310         * toplev.c (output_stack_usage): With LTO and sanitizer it
16311         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
16312         has no file location.
16314 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
16316         PR c++/90484
16317         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
16318         sz0 is equal to sz1, instead return false in that case.
16320         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
16321         has non-constant expression, force sctx.lane and use two
16322         argument IFN_GOMP_SIMD_LANE instead of single argument.
16323         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
16324         two argument IFN_GOMP_SIMD_LANE without lhs.
16325         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
16326         member.
16327         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
16328         Define.
16329         (LOOP_REQUIRES_VERSIONING): Or in
16330         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
16331         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
16332         simd_if_cond.
16333         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
16334         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
16335         from simd if clause if needed.
16337 2019-05-16  Richard Biener  <rguenther@suse.de>
16339         * tree-affine.c (expr_to_aff_combination): New function split
16340         out from...
16341         (tree_to_aff_combination): ... here.
16342         (aff_combination_expand): Avoid building a GENERIC tree.
16344 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
16346         * cgraphunit.c (cgraph_node::expand_thunk): Remove
16347         assemble_start_function and assemble_end_function calls.
16348         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
16349         assemble_start_function and assemble_end_function.
16350         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
16351         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
16352         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
16353         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
16354         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
16355         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
16356         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
16357         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
16358         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16359         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16360         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16361         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
16362         Likewise.
16363         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
16364         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
16365         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
16366         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
16367         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16368         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16369         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
16370         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
16371         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16372         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16373         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16374         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16375         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
16376         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
16377         Likewise.
16378         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16379         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16380         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
16382 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
16384         * tree-ssa-alias.c (alias_stats): Add
16385         aliasing_component_refs_p_may_alias and
16386         aliasing_component_refs_p_no_alias.
16387         (dump_alias_stats): Print aliasing_component_refs_p stats.
16388         (aliasing_component_refs_p): Update stats.
16390 2019-05-16  Martin Liska  <mliska@suse.cz>
16392         PR lto/90500
16393         * multiple_target.c (expand_target_clones): Do not allow
16394         target_clones being used with a symbol that is an alias.
16396 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
16398         PR tree-optimization/90394
16399         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
16400         positives rather than ICE for cases where (code2 == NE_EXPR
16401         && code1 == BIT_AND_EXPR).
16403 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
16405         PR fortran/90329
16406         * tree-core.h (struct tree_decl_common): Document
16407         decl_nonshareable_flag for PARM_DECLs.
16408         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
16409         * calls.c (expand_call): Don't try tail call if caller
16410         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
16411         passed on the stack and callee needs to pass any arguments on the
16412         stack.
16413         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16414         else if instead of series of mutually exclusive ifs.  Handle
16415         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
16416         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16418         * lto-streamer.h (LTO_major_version): Bump to 9.
16420 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
16422         PR tree-optimization/90106
16423         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
16424         new parameter as new internal function call, also move it to new
16425         basic block.
16426         (use_internal_fn): Pass internal function call to
16427         shrink_wrap_one_built_in_call_with_conds.
16429 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
16431         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
16432         max_vf to 1.
16433         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
16434         safelen_int and set loop->dont_vectorize.
16436 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16438         PR target/89021
16439         * config/i386/i386-builtin.def: Enable MMX intrinsics with
16440         SSE/SSE2/SSSE3.
16441         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
16442         Likewise.
16443         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
16444         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
16445         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
16446         is defined.
16448 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16450         PR target/89021
16451         * config/i386/mmx.md (*vec_dupv2sf): Changed to
16452         define_insn_and_split to support SSE emulation.
16453         (*vec_extractv2sf_0): Likewise.
16454         (*vec_extractv2sf_1): Likewise.
16455         (*vec_extractv2si_0): Likewise.
16456         (*vec_extractv2si_1): Likewise.
16457         (*vec_extractv2si_zext_mem): Likewise.
16458         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
16459         (vec_extractv2sf_1 splitter): Likewise.
16460         (vec_extractv2sfsf): Likewise.
16461         (vec_setv2si): Likewise.
16462         (vec_extractv2si_1 splitter): Likewise.
16463         (vec_extractv2sisi): Likewise.
16464         (vec_setv4hi): Likewise.
16465         (vec_extractv4hihi): Likewise.
16466         (vec_setv8qi): Likewise.
16467         (vec_extractv8qiqi): Likewise.
16468         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
16469         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
16470         (vec_extractv2sisi): Likewise.
16471         (vec_extractv4hihi): Likewise.
16472         (vec_extractv8qiqi): Likewise.
16473         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
16474         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
16475         (vec_initv2sisi): Likewise.
16476         (vec_initv4hihi): Likewise.
16477         (vec_initv8qiqi): Likewise.
16478         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
16479         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
16480         (vec_setv4hi): Likewise.
16481         (vec_setv8qi): Likewise.
16483 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16485         PR target/89021
16486         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
16487         TARGET_MMX_WITH_SSE.
16488         (MMXMODE:*mov<mode>_internal): Likewise.
16489         (MMXMODE:movmisalign<mode>): Likewise.
16491 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16493         PR target/89021
16494         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
16495         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
16496         (sse2_cvtpd2pi): Ditto.
16497         (sse2_cvttpd2pi): Ditto.
16498         (*vec_concatv2sf_sse4_1): Ditto.
16499         (*vec_concatv2sf_sse): Ditto.
16500         (*vec_concatv2si_sse4_1): Ditto.
16501         (*vec_concatv2si): Ditto.
16502         (*vec_concatv4si_0): Ditto.
16503         (*vec_concatv2di_0): Ditto.
16505 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16507         PR target/89021
16508         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
16510 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16512         PR target/89021
16513         * config/i386/sse.md (ssse3_palignrdi): Changed to
16514         define_insn_and_split to support SSE emulation.
16516 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16518         PR target/89021
16519         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
16521 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16523         PR target/89021
16524         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
16525         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
16526         SSE emulation.
16528 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16530         PR target/89021
16531         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
16532         or TARGET_MMX_WITH_SSE.
16533         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
16535 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16537         PR target/89021
16538         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
16540 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16542         PR target/89021
16543         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
16544         Changed to define_insn_and_split to support SSE emulation.
16546 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16548         PR target/89021
16549         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
16550         Changed to define_insn_and_split to support SSE emulation.
16552 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16554         PR target/89021
16555         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
16556         (*mmx_<emms>): This.
16557         (mmx_<emms>): New expander.
16559 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16561         PR target/89021
16562         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
16563         support.
16564         (*sse2_umulv1siv1di3): Add SSE2 emulation.
16566 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16568         PR target/89021
16569         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
16571 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16573         PR target/89021
16574         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
16576 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16578         PR target/89021
16579         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
16580         TARGET_MMX_WITH_SSE.
16581         (*mmx_uavgv4hi3): Add SSE emulation.
16583 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16585         PR target/89021
16586         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
16587         and TARGET_MMX_WITH_SSE.
16588         (*mmx_uavgv8qi3): Add SSE emulation.
16590 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16592         PR target/89021
16593         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
16594         maskmovdqu for __MMX_WITH_SSE__.
16596 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16598         PR target/89021
16599         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
16600         TARGET_MMX and TARGET_MMX_WITH_SSE.
16601         (*mmx_umulv4hi3_highpart): Add SSE emulation.
16603 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16605         PR target/89021
16606         * config/i386/mmx.md (mmx_pmovmskb): Changed to
16607         define_insn_and_split to support SSE emulation.
16609 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16611         PR target/89021
16612         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
16613         and TARGET_MMX_WITH_SSE.
16614         (mmx_<code>v8qi3): Likewise.
16615         (smaxmin:<code>v4hi3): New.
16616         (umaxmin:<code>v8qi3): Likewise.
16617         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
16618         (umaxmin:*mmx_<code>v8qi3): Likewise.
16620 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16622         PR target/89021
16623         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
16624         TARGET_MMX_WITH_SSE.
16625         (*mmx_pinsrw): Add SSE emulation.
16627 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16629         PR target/89021
16630         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
16632 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16634         PR target/89021
16635         * config/i386/sse.md (sse_cvtpi2ps): Changed to
16636         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
16637         SSE emulation.
16639 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16641         PR target/89021
16642         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
16643         (sse_cvttps2pi): Likewise.
16645 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16647         PR target/89021
16648         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
16649         TARGET_MMX_WITH_SSE.
16650         (mmx_pshufw_1): Add SSE emulation.
16651         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
16652         TARGET_MMX_WITH_SSE to support SSE emulation.
16654 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16656         PR target/89021
16657         * config/i386/constraints.md (Yw): New constraint.
16658         * config/i386/mmx.md (*vec_dupv2si): Changed to
16659         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
16660         support SSE emulation.
16662 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16664         PR target/89021
16665         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
16666         TARGET_MMX_WITH_SSE.
16667         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
16668         support.
16669         (mmx_gt<mode>3): Likewise.
16671 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16673         PR target/89021
16674         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
16675         TARGET_MMX_WITH_SSE.  Add SSE support.
16677 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16679         PR target/89021
16680         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
16681         TARGET_MMX_WITH_SSE.
16682         (any_logic:<code><mode>3): New.
16683         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
16684         Add SSE support.
16686 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16688         PR target/89021
16689         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
16690         TARGET_MMX_WITH_SSE.  Add SSE emulation.
16691         (mmx_<shift_insn><mode>3): Likewise.
16692         (ashr<mode>3): New.
16693         (<shift_insn><mode>3): Likewise.
16695 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16697         PR target/89021
16698         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
16699         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
16701 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16703         PR target/89021
16704         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
16705         TARGET_MMX_WITH_SSE.
16706         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
16707         SSE support.
16709 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16711         PR target/89021
16712         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
16713         TARGET_MMX_WITH_SSE.
16714         (mulv4hi3): New.
16715         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
16716         support.
16718 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16720         PR target/89021
16721         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
16722         (plusminus:mmx_<plusminus_insn><mode>3): Check
16723         TARGET_MMX_WITH_SSE.
16724         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
16725         (<plusminus_insn><mode>3): New.
16726         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
16727         (*mmx_<plusminus_insn><mode>3): Likewise.
16729 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16731         PR target/89021
16732         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
16733         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
16734         prototype.
16735         * config/i386/mmx.m (mmx_punpckhbw): Changed to
16736         define_insn_and_split to support SSE emulation.
16737         (mmx_punpcklbw): Likewise.
16738         (mmx_punpckhwd): Likewise.
16739         (mmx_punpcklwd): Likewise.
16740         (mmx_punpckhdq): Likewise.
16741         (mmx_punpckldq): Likewise.
16743 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16744             Uros Bizjak  <ubizjak@gmail.com>
16746         PR target/89021
16747         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
16748         New function.
16749         (ix86_split_mmx_pack): Likewise.
16750         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
16751         New prototype.
16752         (ix86_split_mmx_pack): Likewise.
16753         * config/i386/i386.md (mmx_isa): New.
16754         (enabled): Also check mmx_isa.
16755         * config/i386/mmx.md (any_s_truncate): New code iterator.
16756         (s_trunsuffix): New code attr.
16757         (mmx_packsswb): Removed.
16758         (mmx_packssdw): Likewise.
16759         (mmx_packuswb): Likewise.
16760         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
16761         MMX packsswb/packuswb with SSE2.
16762         (mmx_packssdw): Likewise.
16763         * config/i386/predicates.md (register_mmxmem_operand): New.
16765 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16767         PR target/89021
16768         * config/i386/i386-c.c (ix86_target_macros_internal): Define
16769         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
16770         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
16771         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
16772         (ix86_vector_mode_supported_p): Likewise.
16773         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
16775 2019-05-15  Martin Liska  <mliska@suse.cz>
16777         PR middle-end/90478
16778         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
16779         Check for overflow.
16781 2019-05-15  Richard Biener  <rguenther@suse.de>
16783         * tree-into-ssa.c (pass_build_ssa::execute): Run
16784         update_address_taken before going into SSA.
16786 2019-05-15  Richard Biener  <rguenther@suse.de>
16788         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
16789         as __BIT_FIELD_REF with type with -gimple.
16791 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
16793         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
16794         semantically equivalent branches (left over after prior refactorings).
16796 2019-05-15  Richard Biener  <rguenther@suse.de>
16798         PR tree-optimization/88828
16799         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
16800         bogus check.
16802 2019-05-14  Richard Biener  <rguenther@suse.de>
16804         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
16805         as __VIEW_CONVERT with -gimple.
16807 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
16809         PR target/82920
16810         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
16811         Darwin.
16813 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
16815         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
16816         define_split to become a define_insn_and_split.
16818 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
16820         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
16821         arguments.
16822         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
16823         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
16824         (sibcall_epilogue): Adjust.
16825         (epilogue): Adjust.
16827 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16829         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
16830         to unsupported ones.
16831         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
16832         * config.host: Likewise.
16833         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
16834         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
16835         __svr4__]: Remove "brand" fallback.
16836         [!KSTAT_DATA_STRING]: Remove.
16837         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
16838         to *-*-solaris2*.
16839         (comdat_group): Likewise.
16840         (set_have_as_tls): Likewise.
16841         (gcc_cv_target_dl_iterate_phdr): Likewise.
16842         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
16843         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
16844         * configure: Regenerate.
16845         * doc/install.texi: Simplify Solaris target triplets.
16846         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
16847         (Specific, *-*-solaris2*): Document Solaris 10 removal.
16848         Remove Solaris 10 references.
16849         Remove obsolete Solaris bug reference.
16850         (Specific, sparc-sun-solaris2.10): Remove.
16852 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16854         * config/i386/i386.md (any_div): New code iterator.
16855         (paired_mod): New code attribute.
16856         (sgnprefix): Handle DIV and UDIV RTXes.
16857         (u): Ditto.
16858         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
16859         and udivmod<mode>4 patterns using any_div code iterator.
16860         (divmod splitters): Macroize splitters using any_div code iterator.
16861         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
16862         (*udivmodsi4_pow2_zext_2): Ditto.
16863         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
16864         and *udivmod<mode>4_noext patterns using any_div code iterator.
16865         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
16866         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
16867         patterns using any_div code iterator.
16868         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
16869         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
16870         patterns using any_div code iterator.
16871         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
16872         udivmodhiqi3 patterns using any_extend code iterator.
16874 2019-05-14  Richard Biener  <rguenther@suse.de>
16875             H.J. Lu  <hongjiu.lu@intel.com>
16877         PR tree-optimization/88828
16878         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
16879         permuting in a single non-constant element not extracted
16880         from a vector.
16882 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
16884         * internal-fn.def (SIGNBIT): New.
16885         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
16886         defined.
16887         (signbitv4sf2): Likewise.
16889 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
16891         PR target/90357
16892         * config/mips/mips.c (mips_split_move): Skip forward SRC into
16893         next insn when the SRC reg is dead.
16895 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
16897         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
16898         (alloc_cand_and_find_basis): Ditto.
16899         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
16900         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
16901         (create_add_imm_cand, slsr_process_cast): Ditto.
16902         (slsr_process_copy, replace_mult_candidate): Ditto.
16903         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
16904         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
16905         (pass_strength_reduction::execute): Init the first NULL element.
16907 2019-05-13  Nathan Sidwell  <nathan@acm.org>
16909         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
16910         (run_attempt): Reformat line break.
16912 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
16914         PR target/90418
16915         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
16916         data registers in sibcall epilogues.
16917         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
16919 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16921         PR target/89221
16922         * configure.ac (--enable-frame-pointer):
16923         Disable by default for cygwin and mingw.
16924         * configure: Regenerate.
16926 2019-05-13  Nathan Sidwell  <nathan@acm.org>
16928         * dwarf2out.c (breakout_comdat_types): Move comment to correct
16929         piece of code.
16930         (const_ok_for_output_1): Balance parens around #if/#else/#endif
16931         (gen_member_die): Move abstract origin check earlier.  Only VARs
16932         can be static_inline_p.  Simplify splicing control flow.
16934 2019-05-13  Richard Biener  <rguenther@suse.de>
16936         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
16937         VIEW_CONVERT_EXPR.
16938         (vect_build_slp_tree_1): Likewise.
16940 2019-05-13  Richard Biener  <rguenther@suse.de>
16942         PR tree-optimization/90402
16943         * tree-if-conv.c (tree_if_conversion): Value number only
16944         the loop body by making the latch an exit of the region
16945         as well.
16946         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
16947         processing PHIs.
16948         (do_rpo_vn): Deal with multiple edges into the entry block
16949         that are not backedges inside the region by skipping PHIs
16950         of the entry block.
16952 2019-05-13  Richard Biener  <rguenther@suse.de>
16954         PR tree-optimization/90316
16955         * tree-ssa-pre.c (insert_aux): Fold into ...
16956         (insert): ... this function.  Use a RPO walk to reduce the
16957         number of required iterations.
16959 2019-05-13  Martin Liska  <mliska@suse.cz>
16961         PR tree-optimization/90416
16962         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
16963         string instead of passing the second part as va_arg argument.
16965 2019-05-13  Martin Liska  <mliska@suse.cz>
16967         PR gcov-profile/90380
16968         * gcov.c (handle_cycle): Do not support zero cycle count,
16969         it should not be possible.
16970         (path_contains_zero_cycle_arc): New function.
16971         (circuit): Ignore zero cycle arc counts.
16973 2019-05-13  Martin Liska  <mliska@suse.cz>
16975         PR gcov-profile/90380
16976         * gcov.c (enum loop_type): Remove the enum and
16977         the operator.
16978         (handle_cycle): Assert that we should not reach
16979         a negative count.
16980         (circuit): Use loop_found instead of a tri-state loop_type.
16981         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
16982         happen.
16984 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
16986         PR target/82920
16987         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
16988         (ix86_output_indirect_branch_via_reg): Use output mechanism
16989         accounting for __USER_LABEL_PREFIX__.
16990         (ix86_output_indirect_branch_via_push): Likewise.
16991         (ix86_output_function_return): Likewise.
16992         (ix86_output_indirect_function_return): Likewise.
16994 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
16996         * doc/md.texi: Document use of code attributes in rtx patterns.
16997         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
16998         * read-rtl.c (find_code): Split out search loops into...
16999         (maybe_find_code): ...this new function.
17000         (check_code_iterator): Make the error message more informative.
17001         (check_code_attribute): New function.
17002         (rtx_reader::rtx_alloc_for_name): Likewise.
17003         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
17004         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
17005         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
17006         <max_opp> directly as an rtx code instead of via a match_operator.
17007         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
17008         (<su>abd<mode>_3): Update accordingly.
17010 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
17012         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
17013         is given, print the state of the EH "save world" computation for
17014         Darwin.
17016 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
17018         PR c++/59813
17019         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
17020         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
17022 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17024         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
17025         Use pinsrd for TARGET_SSE4_1.
17026         * config/i386/sse.md (movdi_to_sse): Ditto.
17028 2019-05-10  Richard Biener  <rguenther@suse.de>
17030         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
17031         (do_rpo_vn): Initialize next_value_id.
17033 2019-05-10  Martin Liska  <mliska@suse.cz>
17035         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17036         Fix plural form.
17038 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
17040         PR tree-optimization/90385
17041         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
17042         arguments of the exit phis.
17044         PR c++/90383
17045         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
17046         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
17047         id->do_not_fold.
17048         (copy_tree_body_r): Likewise.
17049         (copy_fn): Set id.do_not_fold to true.
17051 2019-05-10  Martin Liska  <mliska@suse.cz>
17053         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
17054         Reapply changes from r269790.
17056 2019-05-10  Martin Liska  <mliska@suse.cz>
17058         PR middle-end/90340
17059         * doc/invoke.texi: New params.
17060         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
17061         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
17062         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
17063         Use it.
17064         * tree-switch-conversion.h (struct jump_table_cluster):
17065         Likewise.
17067 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
17069         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
17071 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
17073         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
17075 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
17077         PR rtl-optimization/88879
17078         * sel-sched.c (sel_target_adjust_priority): Remove assert.
17080 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
17082         PR target/90405
17083         * config/arm/arm.c (callee_saved_reg_p): Move before
17084         thumb_find_work_register.
17085         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
17086         thumb_find_work_register.  Only call df_get_live_out once.
17087         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
17088         (thumb_find_work_register): Use
17089         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
17090         algorithms to locate a spare call clobbered reg.
17092 2019-05-09  Martin Liska  <mliska@suse.cz>
17094         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
17095         and MAX_EXPR in GIMPLE FE format.
17097 2019-05-09  Martin Liska  <mliska@suse.cz>
17099         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
17100         * gimple-pretty-print.c (dump_gimple_bb_header):
17101         Dump BB count.
17102         (pp_cfg_jump): Dump edge probability.
17103         * profile-count.c (profile_quality_as_string): Simplify
17104         with a static array.
17105         (parse_profile_quality): New function.
17106         (profile_count::dump): Simplify with a static array.
17107         (profile_count::from_gcov_type): Add new argument.
17108         * profile-count.h (parse_profile_quality): Likewise.
17109         * predict.h (set_hot_bb_threshold): New.
17110         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17111         New param.
17112         * predict.c (get_hot_bb_threshold): Set from the new param.
17113         (set_hot_bb_threshold): New.
17115 2019-05-09  Richard Biener  <rguenther@suse.de>
17117         PR tree-optimization/90395
17118         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
17119         rewrite vector stores that throw internally.
17121 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
17123         * cif-code.def (CHKP): Remove.
17125         PR target/89221
17126         * configure.ac (--enable-frame-pointer): Disable by default for
17127         GNU systems.
17128         * configure: Regenerate.
17130 2019-05-09  Alan Modra  <amodra@gmail.com>
17132         PR target/89271
17133         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
17134         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
17135         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
17136         cost for general <-> vsx when direct moves are available.
17137         Cost union classes at minimal cost for any reg in the class.
17138         Correct calculation for moves between vsx, float, and altivec.
17139         Don't return a low cost for moves between special regs.  Don't
17140         use hard coded register numbers.
17141         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
17142         (rs6000_ira_change_pseudo_allocno_class): New function.
17143         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
17144         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
17145         alternatives.
17146         (movsi_internal1): Don't disparage vector alternatives.
17147         (mov<mode>_internal): Likewise, excepting alternative that
17148         will be split.
17149         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
17150         we <- b alternative.
17152 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
17154         PR c++/59813
17155         PR tree-optimization/89060
17156         * tree-ssa-live.h (live_vars_map): New typedef.
17157         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
17158         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
17159         (struct compute_live_vars_data): New type.
17160         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
17161         live_vars_at_stmt, destroy_live_vars): New functions.
17162         * tree-tailcall.c: Include tree-ssa-live.h.
17163         (live_vars, live_vars_vec): New global variables.
17164         (find_tail_calls): Perform variable life analysis before punting.
17165         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
17166         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
17167         member.
17168         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
17169         Perform variable life analysis to select variables that really need
17170         clobbers added.
17171         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
17172         instead set id->eh_landing_pad_dest and assert it is the same.
17173         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
17175 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
17176             Richard Earnshaw  <rearnsha@arm.com>
17178         PR target/88167
17179         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
17180         function.
17181         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
17182         (thumb1_compute_save_core_reg_mask): Don't force a spare work
17183         register if both the epilogue and prologue can use call-clobbered
17184         regs.
17185         (thumb1_unexpanded_epilogue): Use
17186         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
17187         picking temporaries for restoring high regs to match that of the
17188         prologue where possible.
17189         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
17190         the list of work registers.  Detect if the return address is still live
17191         at the end of the prologue and avoid using it for a work register if so.
17192         If the return address is not live, add LR to the list of pushable regs
17193         after the first pass.
17195 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
17197         PR tree-optimization/90078
17198         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
17199         (INFTY): Increase the value for infinite cost.
17200         (struct comp_cost): Promote type of members to int64_t.
17201         (infinite_cost): Don't set complexity in initialization.
17202         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
17203         overflows to infinite_cost.
17204         (adjust_setup_cost): Promote type of parameter and cost computation
17205         to int64_t.
17206         (struct ainc_cost_data, struct iv_ca): Promote type of member to
17207         int64_t.
17208         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
17209         cost computation to int64_t.
17210         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
17211         int64_t's format specifier in dump.
17213 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
17215         PR tree-optimization/90240
17216         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
17217         with respect to scaling factor pre-computed for each basic block.
17218         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
17219         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
17220         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
17221         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
17222         live range for array of loop's basic blocks.  Cleanup aux field of
17223         loop's basic blocks.
17225 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
17227         PR tree-optimization/90356
17228         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
17230 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
17232         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
17233         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
17234         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
17235         (ix86_handle_option): Handle -mavx512bf16.
17236         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
17237         to extra_headers.
17238         * config/i386/avx512bf16vlintrin.h: New.
17239         * config/i386/avx512bf16intrin.h: New.
17240         * config/i386/cpuid.h (bit_AVX512BF16): New.
17241         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
17242         * config/i386/i386-builtin-types.def: Add new types.
17243         * config/i386/i386-builtin.def: Add new builtins.
17244         * config/i386/i386-c.c (ix86_target_macros_internal): Define
17245         __AVX512BF16__.
17246         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
17247         (ix86_option_override_internal): Handle BF16.
17248         (ix86_valid_target_attribute_inner_p): Ditto.
17249         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
17250         * config/i386/i386-builtin.c (enum processor_features): Add
17251         F_AVX512BF16.
17252         (static const _isa_names_table isa_names_table): Ditto.
17253         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
17254         (PTA_AVX512BF16): Ditto.
17255         * config/i386/i386.opt: Add -mavx512bf16.
17256         * config/i386/immintrin.h: Include avx512bf16intrin.h
17257         and avx512bf16vlintrin.h.
17258         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
17259         avx512f_cvtneps2bf16_<mode><mask_name>,
17260         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
17261         * config/i386/subst.md (mask_half): Add new subst.
17262         * doc/invoke.texi: Document -mavx512bf16.
17264 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
17266         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
17267         Delete declaration.
17268         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
17269         (rs6000_debug_legitimize_reload_address): Delete.
17270         (rs6000_legitimize_reload_address_ptr): Delete.
17271         (rs6000_option_override_internal): Adjust.
17272         (mem_operand_gpr): Adjust comment.
17273         (legitimate_lo_sum_address_p): Ditto.
17274         (rs6000_legitimize_reload_address): Delete.
17275         (rs6000_debug_legitimize_reload_address): Delete.
17276         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
17278 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17280         PR target/89765
17281         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17282         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
17283         to compute vector element selector for both constant and variable
17284         operands.
17286 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17288         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
17289         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
17290         ashrdi3_cvt using SWI48 mode iterator.
17292 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
17294         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
17295         (aarch64_<su>abd<mode>_3): Likewise.
17296         (*aarch64_<su>abd<mode>_3): New define_insn.
17297         (<sur>sad<vsi2qi>): New define_expand.
17298         * config/aarch64/iterators.md: Added MAX_OPP attribute.
17299         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
17300         (build_vect_cond_expr): Likewise.
17302 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17304         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
17305         clobbers outside of accessible_reg_set.
17306         * config/i386/i386.c (ix86_conditional_register_usage):
17307         Disable register sets by clearing corresponding bits in
17308         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
17309         call_used_regs and don't clear corresponding reg_names array members.
17311 2019-05-07  Richard Biener  <rguenther@suse.de>
17313         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
17314         not specified still compute a comp_vectype for invariant
17315         compares.
17317 2019-05-07  Richard Biener  <rguenther@suse.de>
17319         PR tree-optimization/90316
17320         * tree-ssa-pre.c (translate_vuse_through_block): When
17321         same_valid is NULL do not bother to search for a virtual
17322         PHI continuation.
17323         (phi_translate_1): When operands changed we cannot keep
17324         the same value-number so do not bother to ask whether
17325         that's possible from translate_vuse_through_block.
17327 2019-05-07  Martin Liska  <mliska@suse.cz>
17329         * bitmap.c (bitmap_register): Come up with
17330         alloc_descriptor_max_uid and assign it for
17331         a new bitmap.
17332         (register_overhead): Use get_descriptor as
17333         a descriptor.
17334         (release_overhead): New.
17335         (bitmap_elem_to_freelist): Call it.
17336         (bitmap_elt_clear_from): Likewise.
17337         (bitmap_obstack_free): Likewise.
17338         (bitmap_move): Sensitively release memory.
17339         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
17340         (bitmap_initialize): Initialize alloc_descriptor to zero.
17341         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
17343 2019-05-07  Richard Biener  <rguenther@suse.de>
17345         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
17346         we build a SLP node.  Remove max_size and limiting.
17347         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
17349 2019-05-07  Richard Biener  <rguenther@suse.de>
17351         PR tree-optimization/90316
17352         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
17353         limit by reference.
17354         (walk_non_aliased_vuses): Take walking limit argument.
17355         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
17356         walking if it is reached instead of just counting.
17357         (get_continuation_for_phi): Likewise.
17358         (walk_non_aliased_vuses): Likewise, instead of leaving counter
17359         limiting to the callback.
17360         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
17361         (vn_reference_lookup_3): Likewise.
17362         (vn_reference_lookup_pieces): Likewise.
17363         (vn_reference_lookup): Likewise.
17364         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
17365         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
17366         (avail_exprs_stack::lookup_avail_expr): Likewise.
17368 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
17370         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
17371         for comparaible types in the second direction even if first one
17372         hits incomparable type.
17374 2019-05-07  Richard Biener  <rguenther@suse.de>
17376         PR lto/90369
17377         * lto-wrapper.c (debug_objcopy): Use the original filename
17378         including archive offset for the filename used for -save-temps.
17380 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
17382         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
17383         detection.
17385 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17386             Hongtao Liu  <hongtao.liu@intel.com>
17388         PR target/89750
17389         PR target/86444
17390         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
17391         Modified, original implementation isn't correct.
17393 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17395         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
17396         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
17397         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
17398         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
17399         (FRAME_POINTER_REGNUM): Change numbering.
17400         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
17401         (alt_reg_names): Adjust.
17402         (rs6000_conditional_register_usage): Don't mark hard register 64 as
17403         fixed.
17404         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17405         (DWARF_FRAME_REGISTERS): Delete.
17406         (DWARF2_FRAME_REG_OUT): Fix whitespace.
17407         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17408         Adjust.
17409         (REG_ALLOC_ORDER): Adjust.
17410         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
17411         (REG_CLASS_CONTENTS): Adjust.
17412         (RETURN_ADDR_RTX): Change comment.
17413         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
17414         instead of 67.
17415         (REGISTER_NAMES): Adjust.
17416         (ADDITIONAL_REGISTER_NAMES): Adjust.
17417         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17419 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17421         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
17422         Delete.
17423         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17424         (DWARF_FRAME_REGISTERS): Adjust.
17425         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17426         Adjust.
17427         (REG_ALLOC_ORDER): Adjust.
17428         (enum reg_class): Delete SPR_REGS.
17429         (REG_CLASS_NAMES): Delete SPR_REGS.
17430         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
17431         (REGISTER_NAMES): Adjust.
17432         (ADDITIONAL_REGISTER_NAMES): Adjust.
17433         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17434         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
17435         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
17436         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
17437         (htm_spr_regno): Delete.
17438         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
17439         argument.
17440         (rs6000_dbx_register_number): Adjust.
17442 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17444         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
17446 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17448         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
17449         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
17451 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
17453         PR tree-optimization/88709
17454         PR tree-optimization/90271
17455         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
17456         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
17457         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
17458         variable.
17459         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
17460         of the store merging group is larger than
17461         PARAM_STORE_MERGING_MAX_SIZE parameter.
17462         (split_group): Add bzero_first argument.  If set, always emit first
17463         the first store which must be = {} of the whole area and then for the
17464         rest of the stores consider all zero bytes as paddings.
17465         (imm_store_chain_info::output_merged_store): Check if first store
17466         is = {} of the whole area and if yes, determine which setting of
17467         bzero_first for split_group gives smaller number of stores.  Adjust
17468         split_group callers.
17469         (lhs_valid_for_store_merging_p): Allow decls.
17470         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
17471         no elts.
17472         (pass_store_merging::process_store): Likewise.
17474 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17476         PR target/89424
17477         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17478         handling of V1TImode.
17480 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17482         PR target/89221
17483         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
17484         and enable_frame_pointer ...
17485         * configure.ac: ... here.  Update help strings for
17486         --enable-frame-pointer.
17487         * configure: Regenerate.
17488         * config/i386/i386-options.c (ix86_option_override_internal): Remove
17489         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
17490         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
17491         (USE_X86_64_FRAME_POINTER): Ditto.
17493 2019-05-06  Martin Liska  <mliska@suse.cz>
17495         * config.gcc: Append to target_gtfiles and fix indentation.
17497 2019-05-06  Richard Biener  <rguenther@suse.de>
17499         PR tree-optimization/90358
17500         * tree-vect-stmts.c (get_group_load_store_type): Properly
17501         detect unused upper half of load.
17502         (vectorizable_load): Likewise.
17504 2019-05-06  Richard Biener  <rguenther@suse.de>
17506         PR tree-optimization/88828
17507         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
17508         (simplify_vector_constructor): ...here.  Handle constants in
17509         the constructor.
17511 2019-05-06  Richard Biener  <rguenther@suse.de>
17513         PR tree-optimization/90328
17514         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
17515         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
17516         is valid in the loop nest before using it.
17517         (initialize_data_dependence_relation): Adjust.
17518         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
17519         loop as loop-nest to dr_may_alias_p.
17521 2019-05-06  Richard Biener  <rguenther@suse.de>
17523         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
17525 2019-05-06  Richard Biener  <rguenther@suse.de>
17527         PR tree-optimization/90316
17528         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
17529         compute target on demand.
17530         (get_continuation_for_phi): Remove code walking stmts to
17531         get to a target virtual operand which could end up being
17532         quadratic.
17534 2019-05-06  Martin Liska  <mliska@suse.cz>
17536         PR sanitizer/90312
17537         * config/i386/i386-options.c (ix86_option_override_internal): Error only
17538         when -mabi is selected to a non-default version.
17540 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
17541             Martin Liska  <mliska@suse.cz>
17543         * Makefile.in: Add lto-dump.texi.
17544         * cgraph.h: Add new functions get_visibility_string and
17545         get_symtab_type_string.
17546         * doc/gcc.texi: Include lto-dump section.
17547         * doc/lto-dump.texi: New file.
17548         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
17549         (parse_dump_option): Factor out this function.
17550         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
17551         (parse_dump_option): Export the function.
17552         * symtab.c (symtab_node::get_visibility_string): New function.
17553         (symtab_node::get_symtab_type_string): Likewise.
17555 2019-05-06  Martin Liska  <mliska@suse.cz>
17557         * config/i386/i386-builtins.c: New file.
17558         * config/i386/i386-builtins.h: New file.
17559         * config/i386/i386-expand.c: New file.
17560         * config/i386/i386-expand.h: New file.
17561         * config/i386/i386-features.c: New file.
17562         * config/i386/i386-features.h: New file.
17563         * config/i386/i386-options.c: New file.
17564         * config/i386/i386-options.h: New file.
17565         * config.gcc: Add new files into extra_objs and
17566         target_gtfiles.
17567         * config/i386/i386.c: Split content of the file
17568         into newly introduced files.
17569         * config/i386/i386.h: Declare common variables
17570         and macros.
17571         * config/i386/t-i386: Define dependencies for new files.
17573 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
17575         PR target/89400
17576         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
17577         Restrict 'all' variant to 32-bit configurations.
17578         (unaligned_loadhiu): Likewise.
17579         (unaligned_storehi): Likewise.
17580         (unaligned_storesi): Likewise.
17581         (unaligned_loadhis): Disable when compiling for thumb1.
17583 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
17585         PR tree-optimization/90269
17586         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
17587         Ignore clobbers.
17589 2019-05-03  Martin Liska  <mliska@suse.cz>
17591         * hash-map.h: Add is_empty function.
17592         * hash-set.h: Likewise.
17593         * hash-table.h: Likewise.
17594         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
17595         elements () == 0 (and similar usages).
17596         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
17597         * gimplify.c (gimplify_bind_expr): Likewise.
17598         (gimplify_switch_expr): Likewise.
17599         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
17600         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
17601         * postreload-gcse.c (dump_hash_table): Likewise.
17602         (gcse_after_reload_main): Likewise.
17603         * predict.c (combine_predictions_for_bb): Likewise.
17604         * tree-parloops.c (reduction_phi): Likewise.
17605         (separate_decls_in_region): Likewise.
17606         (transform_to_exit_first_loop): Likewise.
17607         (gen_parallel_loop): Likewise.
17608         (gather_scalar_reductions): Likewise.
17609         (try_create_reduction_list): Likewise.
17610         * var-tracking.c (dump_vars): Likewise.
17611         (emit_notes_for_changes): Likewise.
17612         (vt_emit_notes): Likewise.
17614 2019-05-03  Richard Biener  <rguenther@suse.de>
17616         PR tree-optimization/90316
17617         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
17618         before running VN.
17620 2019-05-03  Richard Biener  <rguenther@suse.de>
17622         * tree-vect-stmts.c (get_group_load_store_type): Avoid
17623         peeling for gaps by loading only lower halves of vectors
17624         if possible.
17625         (vectorizable_load): Likewise.
17627 2019-05-03  Richard Biener  <rguenther@suse.de>
17629         PR middle-end/89518
17630         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
17632 2019-05-03  Richard Biener  <rguenther@suse.de>
17634         PR middle-end/87314
17635         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
17636         Handle STRING_CST vs DECL or STRING_CST.
17638 2019-05-03  Richard Biener  <rguenther@suse.de>
17640         PR tree-optimization/88963
17641         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
17642         vector loads feeding only BIT_FIELD_REFs to component
17643         loads.  Rewrite stores fed by CONSTRUCTORs to component
17644         stores.
17646 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
17648         * opts.h (finish_options): Remove lang_mask argument.
17649         (print_help, help_option_argument): Declare.
17650         * opts.c (print_help): Remove forward declaration, no longer static.
17651         (finish_options): Remove lang_mask argument, don't call print_help
17652         here.
17653         * opts-global.c (decode_options): Adjust finish_option caller, call
17654         print_help here.
17656         PR tree-optimization/90303
17657         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
17658         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
17660 2019-05-03  Richard Biener  <rguenther@suse.de>
17662         PR tree-optimization/89698
17663         * gimple-fold.c (canonicalize_constructor_val): Early out
17664         for constants, handle unfolded INTEGER_CSTs as they appear in
17665         C++ virtual table ctors.
17667 2019-05-03  Richard Biener  <rguenther@suse.de>
17669         * passes.c (execute_function_todo): Remove dead code.
17671 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
17673         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
17674         the internal register number, for any "real" register.
17676 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
17678         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
17679         correct numbers for TFHAR, TFIAR, TEXASR.
17681 2019-05-02  Richard Biener  <rguenther@suse.de>
17683         PR tree-optimization/89653
17684         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
17685         update-address-taken before the pass.
17686         * passes.def (pass_tree_loop_init): Put comment before it.
17688 2019-05-02  Richard Biener  <rguenther@suse.de>
17690         PR tree-optimization/89509
17691         * tree-ssa-structalias.c (compute_dependence_clique): Look
17692         at the first subvar when determining whether it is restrict.
17694 2019-05-02  Richard Biener  <rguenther@suse.de>
17696         PR tree-optimization/90273
17697         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
17698         useless debug stmts.
17700 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
17702         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
17703         ACLE branch.
17704         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
17705         SVE ACLE branch.
17706         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
17707         VEC_COND_EXPR be inserted to emulate a conditional internal function.
17708         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
17709         (vectorizable_reduction): Use the functions above to vectorize in a
17710         fully masked loop codes that don't have a conditional internal
17711         function.
17713 2019-05-02  Martin Liska  <mliska@suse.cz>
17715         * cgraphclones.c: Call valid_attribute_p with 1 for
17716         target_clone.
17717         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
17718         it's for target attribute.
17719         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
17720         Add new boolean argument.
17721         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
17722         Likewise.
17723         (ix86_valid_target_attribute_tree): Pass target_clone_attr
17724         to ix86_valid_target_attribute_inner_p.
17725         (ix86_valid_target_attribute_p): Pass flags argument to
17726         ix86_valid_target_attribute_inner_p.
17727         (get_builtin_code_for_version): Use 0 as it's target attribute.
17729 2019-05-02  Martin Liska  <mliska@suse.cz>
17731         * gcc.c (process_command): Add dummy file only
17732         if n_infiles == 0.
17733         * opts-global.c (decode_options): Pass lang_mask.
17734         * opts.c (print_help): New function.
17735         (finish_options): Print --help if help_option_argument
17736         is set.
17737         (common_handle_option): Factor out content of OPT__help_
17738         into print_help.
17739         * opts.h (finish_options): Add new argument.
17741 2019-05-02  Martin Liska  <mliska@suse.cz>
17743         PR target/88809
17744         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
17745         With -minline-all-stringops use inline expansion using 4B loop.
17746         * doc/invoke.texi: Document the change of
17747         -minline-all-stringops.
17749 2019-05-01  Jeff Law  <law@redhat.com>
17751         PR tree-optimization/88797
17752         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
17753         PHI feeds a conditional on the RHS of an assignment.
17755 2019-04-30  Andrew Waterman  <andrew@sifive.com>
17756             Jim Wilson  <jimw@sifive.com>
17758         * config/riscv/constraints.md (L): New.
17759         * config/riscv/predicates.md (lui_operand): New.
17760         (sfb_alu_operand): New.
17761         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
17762         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
17763         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
17764         * config/riscv/risc.md (type): Add sfb_alu.
17765         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
17766         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
17767         (branch_zero<mode>): Delete.
17768         (mov<mode>cc): New.
17769         (mov<GPR:mode><X:mode>cc): Likewise.
17770         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
17772 2019-04-30  Nathan Sidwell  <nathan@acm.org>
17774         * tree.h (MARK_TS_EXP): New.
17776 2019-04-30  Martin Liska  <mliska@suse.cz>
17778         * opts.c (enable_warning_as_error): Provide hints
17779         for unknown options.
17781 2019-04-30  Martin Liska  <mliska@suse.cz>
17783         PR debug/90288
17784         * doc/invoke.texi: Add missing dash for gas-locview-support
17785         and gno-as-locview-support.
17787 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
17789         PR target/89093
17790         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
17791         whitespace at the start of target attribute string.
17793 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
17795         PR target/86538
17796         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
17797         Define __ARM_FEATURE_ATOMICS.
17799 2019-04-30  Martin Liska  <mliska@suse.cz>
17801         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
17802         into built_in_function enum. Remove code for endp == 2 and
17803         use BUILT_IN_* constants.
17804         (gimple_fold_builtin): Call the function with fcode.
17806 2019-04-30  Martin Liska  <mliska@suse.cz>
17808         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
17809         DECL_FUNCTION_CODE into ix86_builtins enum before
17810         the switch statement.
17812 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
17814         PR tree-optimization/89475
17815         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
17816         calls.
17818 2019-04-30  Martin Liska  <mliska@suse.cz>
17820         PR translation/90274
17821         * opts.c (print_filtered_help): Wrap string in _(...).
17823 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
17825         PR tree-optimization/90240
17826         Revert:
17827         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
17829         PR tree-optimization/90078
17830         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
17831         checks for infinite_cost overflow.
17833 2019-04-29  Jeff Law  <law@redhat.com>
17835         * passes.def: Move -Wrestrict pass after copy propagation.
17837 2019-04-29  Maya Rashish  <coypu@sdf.org>
17839         * config.gcc (default_gnu_indirect_function): Default to yes
17840         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
17841         sparc*-*-netbsd*, x86_64-*-netbsd*.
17843 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
17845         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
17846         where cond2 is NE_EXPR.
17847         (is_value_included_in): Update comment.
17849 2019-04-29  Richard Biener  <rguenther@suse.de>
17851         PR tree-optimization/90278
17852         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
17853         EH on comparison simplification.
17855 2019-04-29  Jason Merrill  <jason@redhat.com>
17857         PR c++/82081 - tail call optimization breaks noexcept
17858         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
17859         nothrow function to a might-throw function into a tail call.
17861 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
17863         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
17864         (DDR_INNER_LOOP): Likewise.
17865         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
17866         (initialize_data_dependence_relation): Likewise.
17867         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
17869 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
17871         PR rtl-optimization/90257
17872         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
17873         return value.
17875         Revert the revert:
17876         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
17878         PR target/90178
17879         Revert:
17880         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
17882         Revert the revert:
17883         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
17885         Revert:
17886         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
17888         * lra-spills.c (lra_final_code_change): Remove useless move insns.
17890 2019-04-29  Richard Biener  <rguenther@suse.de>
17892         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
17893         rhs issue a reset.
17895 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
17897         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
17898         varasm.h, and netbsd-protos.h.
17900 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17902         PR target/89261
17903         * config/i386/i386-protos.h (ix86_data_alignment): Change
17904         the second argument type to unsigned int.
17905         * config/i386/i386.c (ix86_data_alignment): Change "align"
17906         argument type to unsigned int.
17908 2019-04-27  Martin Liska  <mliska@suse.cz>
17910         PR middle-end/90258
17911         * opt-suggestions.c (option_proposer::build_option_suggestions):
17912         When get_valid_option_values returns empty values, add the
17913         misspelling candidate.
17915 2019-04-26  Jim Wilson  <jimw@sifive.com>
17917         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
17918         parameter.
17919         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
17920         Pass orig_mode to riscv_build_integer.
17921         (riscv_split_integer): Pass mode to riscv_move_integer.
17922         (riscv_legitimize_const_move): Likewise.
17923         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
17924         promoted_mode.  Replace force_reg call with code to load constant into
17925         promoted reg and then subreg it for the store.
17926         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
17927         riscv_move_integer.
17929 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
17931         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
17932         corrupt codes.
17934 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
17936         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
17937         commentary about the encoding of precision.
17939 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
17941         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
17942         * config/i386/t-freebsd64: New file.
17943         * config.gcc: Add the t-freebsd64 for multilib support.
17945 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17947         * doc/extend.texi (vector_size): Add missing comma after @xref.
17949 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
17951         * BASE-VER: Set to 10.0.0.
17953 2019-04-25  Richard Biener  <rguenther@suse.de>
17955         PR middle-end/89765
17956         * gimplify.c (gimplify_expr): Avoid turning a lvalue
17957         VIEW_CONVERT_EXPR into one operating on an rvalue.
17959 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
17961         PR target/89929
17962         * config/i386/i386.c (feature_priority): Moved to file scope.
17963         (processor_features): Likewise.
17964         (processor_model): Likewise.
17965         (_arch_names_table): Likewise.
17966         (arch_names_table): Likewise.
17967         (_feature_list): Removed.
17968         (feature_list): Likewise.
17969         (_isa_names_table): Moved to file scope.  Add priority.
17970         (isa_names_table): Likewise.
17971         (get_builtin_code_for_version): Replace feature_list with
17972         isa_names_table.  Update error message for P_ZERO priority.
17974 2019-04-25  Richard Biener  <rguenther@suse.de>
17976         * tree-pass.h (make_pass_phi_only_cprop): Remove.
17977         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
17979 2019-04-24  Jeff Law  <law@redhat.com>
17981         PR tree-optimization/90037
17982         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
17983         * passes.def: Replace all instance of phi-only cprop with the
17984         lattice propagator.  Move propagation pass from after erroneous
17985         path isolation to before erroneous path isolation.
17986         * tree-ssa-phionlycprop.c: Remove.
17988 2019-04-24  Richard Biener  <rguenther@suse.de>
17990         PR middle-end/90213
17991         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
17992         by size and BITS_PER_UNIT on poly-wide-ints.
17994 2019-04-25  Richard Biener  <rguenther@suse.de>
17996         PR middle-end/90194
17997         * match.pd: Add pattern to simplify view-conversion of an
17998         empty constructor.
18000 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
18002         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
18003         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
18004         for Go on 32 bit AIX.
18005         * config/rs6000/aix72.h: Likewise.
18007 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
18009         PR target/90193
18010         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
18011         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
18013 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
18015         PR target/89952
18016         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
18017         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
18018         for restored hard frame pointer.
18019         (s390_sched_dependencies_evaluation): Implement new target hook.
18020         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
18022 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
18024         * config/arc/arc-options.def: Fix typos and spelling mistakes.
18025         * config/arc/arc.c (arc_init): Cleanup warning message.
18026         (arc_override_options): Likewise.
18028 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
18030         PR target/90187
18031         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
18032         a register if both if_true and if_false are MEMs.
18034         PR tree-optimization/90208
18035         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
18036         after labels of new_bb, not before them.
18038         PR tree-optimization/90211
18039         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
18040         which are not SSA_NAMEs.
18042 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
18044         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
18045         AArch64.
18046         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
18048 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
18050         PR rtl-optimization/87979
18051         * modulo-sched.c (sms_schedule): Start ii value "mii" should
18052         not equal zero.
18054 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
18056         PR rtl-optimization/84032
18057         * modulo-sched.c (ps_insn_find_column): Change condition so that
18058         branch will always be the last insn in a row inside partial
18059         schedule.
18061 2019-04-23  Richard Biener  <rguenther@suse.de>
18063         PR debug/90131
18064         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
18065         dest_single_pred_p argument.
18066         (remove_forwarder_block): Adjust.
18067         (remove_forwarder_block_with_phi): Likewise.
18069 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18070             Bernd Edlinger  <bernd.edlinger@hotmail.de>
18071             Jakub Jelinek  <jakub@redhat.com>
18073         PR target/89093
18074         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
18075         if used with general-regs-only.
18076         (arm_conditional_register_usage): Don't add non-general regs if
18077         general-regs-only.
18078         (arm_valid_target_attribute_rec): Handle general-regs-only.
18079         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
18080         general-regs-only.
18081         (TARGET_HARD_FLOAT_SUB): Define.
18082         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
18083         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
18084         (TARGET_REALLY_IWMMXT2): Likewise.
18085         * config/arm/arm.opt: Add -mgeneral-regs-only.
18086         * doc/extend.texi: Document ARM general-regs-only target.
18087         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
18089 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
18091         PR tree-optimization/90078
18092         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
18093         checks for infinite_cost overflow.
18095 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
18097         PR tree-optimization/90021
18098         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
18099         and check univariate against it.
18100         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
18101         * tree-data-ref.c (add_other_self_distances): Pass new argument.
18103 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
18105         PR target/90178
18106         Revert:
18107         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
18109         Revert the revert:
18110         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
18112         Revert:
18113         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
18115         * lra-spills.c (lra_final_code_change): Remove useless move insns.
18117 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
18119         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
18120         names using operand format, rather than hard-wired.
18121         (speculation_barrier): Likewise.
18123 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
18125         PR tree-optimization/88055
18126         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
18127         (gen_one_condition): Use it if !HONOR_NANS.
18129 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
18131         PR middle-end/90139
18132         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
18133         assign_temp instead of gen_reg_rtx.
18135 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
18137         PR translation/90118
18138         * config/aarch64/aarch64.c (aarch64_override_options_internal):
18139         Add missing space before %<.
18141 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
18143         PR rtl-optimization/87871
18144         * ira-lives.c (make_object_dead): Don't add conflicts to
18145         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
18147 2019-04-18  Martin Sebor  <msebor@redhat.com>
18149         PR middle-end/89797
18150         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
18151         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
18152         assuming type size fits in SHWI.
18154 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
18156         PR ipa/85051
18157         * ipa-inline.c (flatten_function): New parameter UPDATE.
18158         (ipa_inline, early_inliner): Use it.
18160 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
18162         * fold-const.c (int_const_binop): Return early on failure.
18164 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
18166         PR middle-end/85164
18167         * combine.c (force_int_to_mode): Cast the argument rather than
18168         the result of known_alignment.
18169         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
18171 2019-04-18  Richard Biener  <rguenther@suse.de>
18173         PR debug/90131
18174         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
18175         out from ...
18176         (remove_forwarder_block): ... here.
18177         (remove_forwarder_block_with_phi): Also move debug stmts here.
18179 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
18181         PR translation/79183
18182         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
18183         inform where appropriate.
18185 2019-04-18  Richard Biener  <rguenther@suse.de>
18187         * tree.c (get_qualified_type): Put found type variants at the
18188         head of the variant list.
18190 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
18192         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
18194 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
18196         PR target/90125
18197         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
18198         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
18199         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
18200         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
18201         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
18203 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
18205         * ira-conflicts.c (print_allocno_conflicts): Always print something,
18206         even for allocno's with no conflicts.
18207         (print_conflicts): Print an extra newline.
18209 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
18211         * auto-inc-dec.c (attempt_change): Set the alignment of the
18212         temporary memory to that of the original.
18214 2019-04-17  Joao Moreira  <jmoreira@suse.de>
18216         * targhooks.c (default_print_patchable_function_entry): Emit
18217         __patchable_function_entries section with writable flags to allow
18218         relocation resolution.
18220 2019-04-17  Jonny Grant  <jg@jguk.org>
18222         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
18224 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
18226         PR middle-end/90095
18227         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
18228         on lowpart SUBREGs.
18230 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
18232         * config/arc/arc.c (arc_init): Format diagnostic string.
18233         (arc_override_options): Likewise.
18234         (check_if_valid_regno_const): Likewise.
18235         (arc_reorg): Likewise.
18237 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
18239         PR target/17108
18240         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
18241         name.
18242         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
18243         name.
18244         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
18245         (*movdi_update1): Use Pmode.
18246         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
18247         (movdi_<mode>_update_stack): Rename to ...
18248         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
18249         use Pmode.
18250         (*movsi_update1): Use Pmode.
18251         (*movsi_update2): Use Pmode.
18252         (movsi_update): Rename to ...
18253         (movsi_<mode>_update): ... this.  Use Pmode.
18254         (movsi_update_stack): Fix condition.
18255         (*movhi_update1): Use Pmode.  Fix argument to
18256         avoiding_indexed_address_p.
18257         (*movhi_update2): Ditto.
18258         (*movhi_update3): Ditto.
18259         (*movhi_update4): Ditto.
18260         (*movqi_update1): Ditto.
18261         (*movqi_update2): Ditto.
18262         (*movqi_update3): Ditto.
18263         (*movsf_update1, *movdf_update1): Merge, rename to...
18264         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
18265         avoiding_indexed_address_p.  Add "size" attribute.
18266         (*movsf_update2, *movdf_update2): Merge, rename to...
18267         (*mov<mode>_update2): This.  Ditto.
18268         (*movsf_update3): Use Pmode.  Fix argument to
18269         avoiding_indexed_address_p.
18270         (*movsf_update4): Ditto.
18271         (allocate_stack): Simplify condition.  Adjust pattern names.
18273 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
18275         PR target/89093
18276         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
18277         whitespace at the start of target attribute string.
18279 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
18281         PR target/84369
18282         * config/rs6000/power9.md: Add store forwarding bypass.
18284 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
18286         PR debug/89528
18287         * valtrack.c (dead_debug_insert_temp): Reset debug references
18288         to the return value of a call being removed.
18290 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
18292         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
18293         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
18294         implement target hook.
18295         (arc_memory_move_cost): New function.
18296         (TARGET_REGISTER_MOVE_COST): Define.
18297         (TARGET_MEMORY_MOVE_COST): Likewise.
18298         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
18299         (MEMORY_MOVE_COST): Likewise.
18301 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
18303         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
18304         (sibcall_value_insn): Likewise.
18305         * config/arc/constraints.md (Rs5): Remove.
18307 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
18309         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
18310         for last two fake registers.
18311         (arc_conditional_register_usage): Make sure fake frame and arg
18312         pointer regs are in general regs class.
18313         (FRAME_POINTER_MASK): Remove.
18314         (RETURN_ADDR_MASK): Remove.
18315         (arc_must_save_register): Use hard frame regnum.
18316         (frame_restore_reg): Use hard_frame_pointer_rtx.
18317         (arc_save_callee_saves): Likewise.
18318         (arc_restore_callee_saves): Likewise.
18319         (arc_save_callee_enter): Likewise.
18320         (arc_restore_callee_leave): Likewise.
18321         (arc_save_callee_milli): Likewise.
18322         (arc_eh_return_address_location): Likewise.
18323         (arc_check_multi): Use hard frame regnum.
18324         (arc_can_eliminate): Likewise.
18325         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
18326         for register allocator.
18327         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
18328         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
18329         (FRAME_POINTER_REGNUM): Change it to a fake register.
18330         (HARD_FRAME_POINTER_REGNUM): Defined.
18331         (ARG_POINTER_REGNUM): Change it to a new fake register.
18332         (ELIMINABLE_REGS): Update.
18333         (REGISTER_NAMES): Update names.
18334         * config/arc/arc.md (LP_START): Remove.
18335         (LP_END): Likewise.
18336         (shift_si3_loop): Update pattern.
18338 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
18340         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
18341         to avoid delay slot scheduling.
18342         (arc_must_save_register): Don't save SP.
18343         * config/arc/arc.md (stack_tie): Remove.
18344         (UNSPEC_ARC_STKTIE): Likewise.
18346 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
18347             Shiva Chen  <shiva0217@gmail.com>
18349         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
18350         code gen with large shift amount.
18352 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18354         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
18355         subreg.
18357 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
18359         PR target/90096
18360         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
18361         print -m64/-mx32/-m32 if it is true.
18362         (ix86_debug_options, ix86_function_specific_print): Pass true as
18363         ADD_ABI_P to ix86_target_string.
18364         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
18365         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
18366         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
18368         PR rtl-optimization/90082
18369         * dce.c (can_delete_call): New function.
18370         (deletable_insn_p, mark_insn): Use it.
18372         PR tree-optimization/90090
18373         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
18374         throw internally.
18375         (is_division_by_square): Likewise.  Formatting fix.
18377 2019-04-16  Richard Biener  <rguenther@suse.de>
18379         PR tree-optimization/56049
18380         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
18381         equality check if alias-set zero will prevail.
18383 2019-04-15  Jeff Law  <law@redhat.com>
18385         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
18386         size and alignment as unsigned.
18388 2019-04-15  Richard Biener  <rguenther@suse.de>
18390         PR debug/90074
18391         * tree-loop-distribution.c (destroy_loop): Preserve correct
18392         debug info.
18394 2019-04-15  Richard Biener  <rguenther@suse.de>
18396         PR tree-optimization/90071
18397         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
18398         abnormal operands from def stmts.
18400 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
18402         PR rtl-optimization/89794
18403         * combine.c (count_auto_inc): New function.
18404         (try_combine): Count how many auto_inc expressions there were in the
18405         original instructions.  Ensure we have the same number in the new
18406         instructions.  Remove the code that tried to ensure auto_inc side
18407         effects on i1 and i0 are not lost.
18409 2019-04-15  Richard Biener  <rguenther@suse.de>
18411         PR ipa/88936
18412         * tree.h (auto_var_p): Declare.
18413         * tree.c (auto_var_p): New function, split out from ...
18414         (auto_var_in_fn_p): ... here.
18415         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
18416         member.
18417         (new_var_info): Initialize it.
18418         (set_uids_in_ptset): Also set the shadow variable uid if required.
18419         (ipa_pta_execute): Postprocess points-to solutions assigning
18420         shadow variable uids for locals that may reach their containing
18421         function recursively.
18422         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
18423         assert but instead check whether the points-to solution is
18424         a singleton.
18426 2019-04-15  Martin Jambor  <mjambor@suse.cz>
18428         PR ipa/pr89693
18429         * cgraph.c (clone_of_p): Loop over clone chain for each step in
18430         the thunk chain.
18432 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
18434         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
18436 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
18437             Kito Cheng  <kito.cheng@gmail.com>
18438             Shiva Chen  <shiva0217@gmail.com>
18440         * config/nds32/nds32-md-auxiliary.c
18441         (nds32_legitimize_pic_address): Use new PIC pattern.
18442         (nds32_legitimize_tls_address): Use new TLS pattern.
18443         (nds32_output_symrel): New.
18444         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
18445         (nds32_alloc_relax_group_id): Ditto.
18446         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
18447         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
18448         relax_group_id.
18449         (nds32_group_tls_insn): Ditto.
18450         (nds32_group_float_insns): Ditto.
18451         * config/nds32/nds32.md (tls_le): New.
18452         (sym_got): Ditto.
18454 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
18456         * configure: Add nds32 target for dwarf2 debug_line checking.
18457         * configure.ac: Regenerated.
18459 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
18461         PR lto/89358
18462         * ipa-devirt.c (skip_in_fields_list_p): New.
18463         (odr_types_equivalent_p): Use it.
18465 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
18467         PR target/89093
18468         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
18469         instead of strncmp when checking for thumb and arm.  Formatting fixes.
18471 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
18473         * doc/install.texi: Document --with-target-system-zlib.
18475 2019-04-12  Martin Sebor  <msebor@redhat.com>
18477         PR c/88383
18478         PR c/89288
18479         PR c/89798
18480         PR c/89797
18481         * targhooks.c (default_vector_alignment): Avoid assuming
18482         argument fits in SHWI.
18483         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
18484         a shift expression.
18485         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
18487 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
18489         PR rtl-optimization/89965
18490         * dce.c: Include rtl-iter.h.
18491         (struct check_argument_load_data): New type.
18492         (check_argument_load): New function.
18493         (find_call_stack_args): Check for loads from stack slots still tracked
18494         in sp_bytes and punt if any is found.
18496         * config/mips/loongson-mmiintrin.h: Fix up #error message.
18498 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
18500         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
18501         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
18503 2019-04-12  Martin Liska  <mliska@suse.cz>
18505         PR middle-end/89970
18506         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
18507         in error message.
18508         (separate_attrs): Handle multiple 'default's.
18509         (expand_target_clones): Rework error handling code.
18511 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18513         PR target/87532
18514         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
18515         mode of vector rather than mode of destination for move instruction.
18516         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
18517         Use QI inner mode with V16QI vector mode.
18519 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
18521         PR target/52726
18522         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
18523         "invalid %%t operand" in output_operand_lossage message.
18525 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
18527         * config/s390/predicates.md (permute_pattern_operand): New
18528         predicate.
18529         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
18530         operand for the permute pattern.
18531         ("*vec_perm<mode>"): New insn definition.
18532         ("bswap<mode>"): Generate the permute pattern operand in the
18533         expander and perform the operand reloads for pre arch13 level
18534         already.
18535         ("*bswap<mode>_emu"): Rename to ...
18536         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
18537         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
18538         Add the USE operand for the permute pattern.
18539         ("*vec_set_bswap_vec<mode>"): Likewise.
18541 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
18543         PR c/89946
18544         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
18545         and gcc_unreachable if it fails, just call tree_to_uhwi which
18546         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
18547         Start warning message with a lower-case letter.  Formatting fixes.
18549         PR rtl-optimization/90026
18550         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
18551         successors, look for BARRIERs inside of the whole BB_FOOTER chain
18552         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
18553         in cfglayout mode, use emit_barrier_after_bb.
18555 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
18557         PR rtl-optimization/87763
18558         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
18559         New Instruction.
18561 2019-04-11  Tom de Vries  <tdevries@suse.de>
18563         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
18564         max macro using statement expression.
18566 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
18568         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
18569         * xcoffout.c (xcoff_private_rodata_section_name): Define.
18570         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
18571         read_only_private_data_section using xcoff_private_rodata_section_name.
18572         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
18574 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
18576         PR target/90016
18577         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
18579 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
18581         PR rtl-optimization/89965
18582         * dce.c (sp_based_mem_offset): New function.
18583         (find_call_stack_args): Use sp_based_mem_offset.
18585 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
18587         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
18589 2019-04-11  Richard Biener  <rguenther@suse.de>
18591         PR tree-optimization/90020
18592         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
18593         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
18594         * tree-ssa-pre.c (compute_avail): Use it to not put
18595         possibly trapping references after a call that might not
18596         return into EXP_GEN.
18597         * gcse.c (compute_hash_table_work): Do not elide
18598         marking a block containing a call if the call might not
18599         return.
18601 2019-04-11  Richard Biener  <rguenther@suse.de>
18603         PR tree-optimization/90018
18604         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
18605         Test both SLP and interleaving variants.
18607 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
18609         * config/s390/8561.md: New file.
18610         * config/s390/driver-native.c (s390_host_detect_local_cpu):
18611         Add arch13 cpu model.
18612         * config/s390/s390-opts.h (enum processor_type): Likewise.
18613         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
18614         (s390_get_unit_mask): Likewise.
18615         (s390_is_fpd): Likewise.
18616         (s390_is_fxd): Likewise.
18617         * config/s390/s390.h (s390_tune_attr): Likewise.
18618         * config/s390/s390.md: Include arch13 pipeline description.
18619         * config/s390/s390.opt: Add arch13.
18621 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
18623         PR rtl-optimization/87763
18624         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
18625         New prototype.
18626         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
18627         New function.
18628         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
18629         New instruction.
18630         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
18631         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
18632         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
18633         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
18635 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
18637         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
18638         "Although" in -fipa-icf documentation.
18640         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
18641         of using multiple -g options.
18643 2019-04-10  Martin Liska  <mliska@suse.cz>
18645         PR gcov-profile/89959
18646         * doc/gcov.texi: Make documentation of -x option
18647         more precise.
18649 2019-04-10  Richard Biener  <rguenther@suse.de>
18651         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
18652         member.
18653         (DR_GROUP_SAME_DR_STMT): Remove.
18654         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
18655         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
18656         replace with assert.
18657         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
18658         (vect_record_grouped_load_vectors): Remove unreachable code.
18660 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
18662         PR target/90016
18663         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
18664         obsolete reference to N.
18666 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
18668         PR middle-end/90025
18669         * expr.c (store_expr): Set properly size on the MEM passed to
18670         clear_storage.
18672         PR c++/90010
18673         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
18674         with strlen in between hostsz-3 and hostsz-1 inclusive when no
18675         translation is needed, and when translation is needed, only append
18676         ... if the string length is hostsz or more bytes long.  Avoid using
18677         strncpy or strcat.
18679 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
18681         PR target/90024
18682         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
18683         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
18684         into three.
18685         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
18686         differences directly.
18687         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
18689 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
18691         PR translation/90011
18692         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
18693         from diagnostics.
18694         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
18695         diagnostics.
18696         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
18697         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
18698         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
18699         trailing space from -gsplit-dwarf diagnostics.
18701         PR tree-optimization/89998
18702         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
18703         instead of integer_type_node if possible, don't add ranges if return
18704         type is not compatible with int.
18705         * gimple-fold.c (gimple_fold_builtin_sprintf,
18706         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
18707         integer_type_node.
18709 2019-04-09  Martin Liska  <mliska@suse.cz>
18711         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
18712         * doc/install.texi: Document the new config.
18714 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
18716         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
18717         use gimple_expr_type for load and store calls.  Skip over the
18718         condition argument in a conditional internal function.
18719         Protect use of TREE_INT_CST_LOW.
18721 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
18723         PR target/90015
18724         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
18725         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
18726         trailing period from it too.
18728 2019-04-08  wu yuan  <wuyuan5@huawei.com>
18730         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
18731         * config/aarch64/aarch64.md : Add "tsv110.md"
18732         * config/aarch64/tsv110.md: New file.
18734 2019-04-08  Richard Biener  <rguenther@suse.de>
18736         PR tree-optimization/90006
18737         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
18738         calls like lrint.
18740 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
18742         PR target/83033
18743         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
18744         construction.
18745         (fma_root_node): Likewise.
18746         (func_fma_steering): Likewise.
18748 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
18750         PR rtl-optimization/89865
18751         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
18753         PR rtl-optimization/89865
18754         * config/i386/i386.md
18755         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
18756         numbers not to clash with the additional operands[4].
18757         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
18758         with extra register copy in the middle.
18760 2019-04-08  Martin Liska  <mliska@suse.cz>
18762         PR gcov-profile/89961
18763         * doc/gcov.texi: Document data_file.
18764         * gcov.c (generate_results): Add data_info into JSON output.
18766 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
18768         PR tree-optimization/89725
18769         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
18770         loop's chrec as invariant symbol.
18771         * tree-chrec.h (chrec_contains_symbols): New parameter.
18772         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
18773         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
18774         function of loops not in DDR's loop_nest.
18775         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
18777 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
18779         PR target/89623
18780         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
18781         Mask.
18783 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18785         PR target/89945
18786         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18787         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
18789 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
18791         * sched-deps.c (sched_macro_fuse_insns): Check return value of
18792         targetm.fixed_condition_code_regs.
18794 2019-04-05  Richard Biener  <rguenther@suse.de>
18796         PR debug/89892
18797         PR debug/89905
18798         * tree-cfgcleanup.c (remove_forwarder_block): Always move
18799         debug bind stmts but reset them if they are not valid at the
18800         destination.
18802 2019-04-05  Martin Liska  <mliska@suse.cz>
18804         PR translation/89936
18805         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
18806         order to wrap keywords or arguments.
18807         * collect2.c (main): Likewise.
18808         (scan_prog_file): Likewise.
18809         (scan_libraries): Likewise.
18810         * common/config/riscv/riscv-common.c
18811         (riscv_subset_list::parsing_subset_version): Likewise.
18812         (riscv_subset_list::parse_std_ext): Likewise.
18813         * config/aarch64/aarch64.c (aarch64_override_options_internal):
18814         Likewise.
18815         * config/arm/arm.c (arm_option_override): Likewise.
18816         * config/cris/cris.c (cris_print_operand): Likewise.
18817         * config/darwin-c.c (darwin_pragma_options): Likewise.
18818         (darwin_pragma_unused): Likewise.
18819         (darwin_pragma_ms_struct): Likewise.
18820         * config/ft32/ft32.c (ft32_print_operand): Likewise.
18821         * config/i386/i386.c (print_reg): Likewise.
18822         (ix86_print_operand): Likewise.
18823         * config/i386/xm-djgpp.h: Likewise.
18824         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
18825         * config/m32c/m32c.c (m32c_option_override): Likewise.
18826         * config/msp430/msp430.c (msp430_option_override): Likewise.
18827         * config/nds32/nds32.c (nds32_option_override): Likewise.
18828         * config/nvptx/mkoffload.c (main): Likewise.
18829         * config/rx/rx.c (rx_print_operand): Likewise.
18830         (valid_psw_flag): Likewise.
18831         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
18832         (vms_pragma_nomember_alignment): Likewise.
18833         (vms_pragma_extern_model): Likewise.
18834         * lto-wrapper.c (compile_offload_image): Likewise.
18835         * omp-offload.c (oacc_parse_default_dims): Likewise.
18836         * symtab.c (symtab_node::verify_base): Likewise.
18837         * tlink.c (recompile_files): Likewise.
18838         (start_tweaking): Likewise.
18839         * tree-profile.c (parse_profile_filter): Likewise.
18841 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
18843         PR tree-optimization/89956
18844         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
18845         multiple negates of the same value.
18847 2019-04-04  Martin Sebor  <msebor@redhat.com>
18849         PR middle-end/89957
18850         PR middle-end/89911
18851         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
18852         have the same precision since the function crashes otherwise.
18853         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
18854         has non-zero arguments.
18856 2019-04-04  Martin Sebor  <msebor@redhat.com>
18858         PR middle-end/89934
18859         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
18860         out if the number of arguments is less than expected.
18862 2019-04-04  Jeff Law  <law@redhat.com>
18864         PR rtl-optimization/89399
18865         * ree.c (combine_set_extension): Use single_set rather than
18866         digging into PATTERN for items on the candidate list.
18867         (combine_reaching_defs): Likewise.
18869 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
18871         PR rtl-optimization/46590
18872         * loop-invariant.c (find_defs): Move df_remove_problem and
18873         df_process_deferred_rescans to move_invariants.
18874         Move df_live_add_problem and df_live_set_all_dirty calls
18875         to move_invariants.
18876         (move_invariants): Likewise.
18877         (move_loop_invariants): Likewise, making the df_live calls
18878         conditional on -O.  Remove the problem again if we added it
18879         locally.
18881 2019-04-03  qing zhao  <qing.zhao@oracle.com>
18883         PR tree-optimization/89730
18884         * ipa-inline.c (can_inline_edge_p): Delete the checking for
18885         -flive-patching=inline-only-static.
18886         (can_inline_edge_by_limits_p): Add the checking for
18887         -flive-patching=inline-only-static and grant always_inline
18888         even when -flive-patching=inline-only-static is specified.
18890 2019-04-03  Jeff Law  <law@redhat.com>
18892         PR rtl-optimization/81025
18893         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
18895 2019-04-03  Richard Biener  <rguenther@suse.de>
18897         PR tree-optimization/84101
18898         * tree-vect-stmts.c: Include explow.h for hard_function_value,
18899         regs.h for hard_regno_nregs.
18900         (cfun_returns): New helper.
18901         (vect_model_store_cost): When vectorizing a store to a decl
18902         we return and the function ABI returns in a multi-reg location
18903         account for the possible spilling that will happen.
18905 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
18907         * config/s390/s390.c (s390_legitimate_address_p): Reject long
18908         displacement addresses for vector mode operands.
18910 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
18912         * config/arc/arc.c (GMASK_LEN): Define.
18913         (arc_restore_callee_saves): Restore first blink when
18914         !optimize_size.
18916 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
18918         * doc/extend.texi: Add deprecated comment on sign-return-address
18919         function attribute and add mbranch-protection.
18920         * doc/invoke.texi: Add bti to the options for mbranch-protection.
18922 2019-04-03  Richard Biener  <rguenther@suse.de>
18924         PR lto/89896
18925         * lto-wrapper.c (run_gcc): Avoid implicit rules making
18926         the all target phony.
18928 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18930         PR target/89902
18931         PR target/89903
18932         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
18933         Return false for variable DImode shifts.
18934         (dimode_scalar_chain::compute_convert_gain): Do not handle
18935         register count operand in variable DImode shifts.
18936         (dimode_scalar_chain::make_vector_copies): Remove support to copy
18937         count argument of a variable shift instruction to a vector register.
18938         (dimode_scalar_chain::convert_reg): Remove support to convert
18939         count argument of a variable shift instruction.
18941 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
18943         PR rtl-optimization/84206
18944         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
18945         iterating over loop headers.
18947 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
18949         PR rtl-optimization/85876
18950         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
18951         beyond the original fence.
18953 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
18955         * config.gcc: Mark spu* targets as deprecated/obsolete.
18957 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
18959         * config/s390/s390-builtin-types.def: New builtin function type
18960         definitions. Remove unused types.
18961         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
18962         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
18963         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
18964         overloaded builtins.
18965         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
18966         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
18967         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
18968         (vec_double, vec_signed, vec_unsigned): Define to use the new
18969         overloaded builtins.
18970         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
18971         Remove expanders.
18973 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
18975         * config/s390/s390-builtin-types.def: New builtin function type
18976         definitions.
18977         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
18978         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
18979         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
18980         (s390_vstrszh, s390_vstrszf): New low-level builtins.
18981         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
18982         constant definitions.
18983         * config/s390/vecintrin.h (vec_search_string_cc)
18984         (vec_search_string_until_zero_cc): New builtin name definitions.
18985         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
18986         expanders.
18987         ("vec_vstrs<mode>"): New insn definition.
18989 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
18991         * config/s390/s390-builtin-types.def: Add new builtin function
18992         types.
18993         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
18994         New overloaded builtins.
18995         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
18996         s390_vsrd.
18997         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
18998         (UNSPEC_VEC_SLDBYTE): ... this.
18999         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
19000         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
19001         definitions.
19002         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
19003         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
19004         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
19006 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19008         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
19009         New insn definition.
19010         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
19011         * config/s390/vector.md (V_HW_HSD): ... here.
19013 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19015         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
19016         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
19017         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
19018         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
19019         New insn definitions.
19021 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19023         * config/s390/s390-builtin-types.def: Add new builtin function type.
19024         * config/s390/s390-builtins.def: Add overloaded builtin
19025         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
19026         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
19027         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
19028         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
19029         ("eltswap<mode>"): New expander.
19030         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
19031         insn definitions.
19033 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19035         * config/s390/s390-builtin-types.def: Add new builtin function types.
19036         * config/s390/s390-builtins.def: Add overloaded builtin
19037         s390_vec_revb. Add low-level builtins for vlbr and vstbr
19038         instructions.
19039         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
19040         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
19041         ("bswap<mode>"): New expander.
19042         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
19044 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19046         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
19047         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
19048         vector builtin version number in __VEC__.
19050 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19052         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
19053         iterators.
19054         (SFSI): New mode attribute.
19055         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
19056         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
19057         rename to ...
19058         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
19059         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
19060         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
19061         ("floatsi<mode>2"): Add wcefb instruction.
19063 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19065         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
19066         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
19067         mode iterators.
19068         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
19069         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
19070         support 32 bit fp-int conversions. Rename to ...
19071         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
19072         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
19073         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
19074         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
19075         ... to these.
19077 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19079         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
19080         if-then-else constructs if we can use the select instruction.
19081         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
19083 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19085         * config/s390/s390.md ("*popcountdi_arch13_cc")
19086         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
19087         definition.
19088         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
19089         Append _z196 to make it ...
19090         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
19091         ("popcounthi2_z196"): ... this.
19092         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
19093         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
19095 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19097         * config/s390/s390.c (s390_canonicalize_comparison): Convert
19098         certain compares for arch13 in order to make use of the condition
19099         code result produced by the new instructions.
19100         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
19101         nxrk, and nxgrk instruction patterns.
19102         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
19103         (inv_no): Add new code iterator together with some attributes.
19104         ("*andc_split_<mode>"): Disable splitter for arch13.
19105         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
19106         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
19107         ("*<ANDOR:bitops_name>c<GPR:mode>")
19108         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
19109         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
19110         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
19111         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
19113 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19115         * common/config/s390/s390-common.c (processor_flags_table): New
19116         entry for arch13.
19117         * config.gcc: Support arch13 with the --with-arch= configure flag.
19118         * config/s390/driver-native.c (s390_host_detect_local_cpu):
19119         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
19120         * config/s390/s390.c (s390_get_sched_attrmask)
19121         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
19122         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
19123         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
19124         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
19125         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
19126         definitions.
19127         * config/s390/s390.opt: Support arch13 as processor type in
19128         command line options.
19130 2019-04-02  Martin Liska  <mliska@suse.cz>
19132         PR translation/89912
19133         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
19134         Fix param description of graphite-max-arrays-per-scop.
19136 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
19138         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
19139         (ASAN_CC1_SPEC): Use it in 64-bit mode.
19140         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
19142 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
19144         PR rtl-optimization/85412
19145         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
19146         sel_sched_region_1, not after.
19148 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
19150         PR rtl-optimization/86928
19151         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
19152         compute_live if necessary.
19153         (sel_redirect_edge_and_branch): Likewise.
19155 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
19157         PR rtl-optimization/89865
19158         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
19159         register if it is a part of small class.
19161 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
19163         PR rtl-optimization/87273
19164         * sel-sched-ir.c (merge_fences): Remove assert.
19166 2019-04-01  Richard Biener  <rguenther@suse.de>
19168         PR tree-optimization/46590
19169         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
19170         (dom_walker::m_reachability): Add in place of...
19171         (dom_walker::m_skip_unreachable_blocks): ...this.
19172         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
19173         Move complex initialization ...
19174         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
19175         lazily and initialize edge flags on each invocation.
19176         (dom_walker::bb_reachable): Use m_reachability.
19178 2019-04-01  Martin Liska  <mliska@suse.cz>
19180         PR driver/89861
19181         * opt-suggestions.c (option_proposer::build_option_suggestions):
19182         Add variant without any argument in order to provide better
19183         hints.
19185 2019-04-01  Richard Biener  <rguenther@suse.de>
19187         PR c/71598
19188         * gimple.c: Include langhooks.h.
19189         (gimple_get_alias_set): Treat enumeral types as the underlying
19190         integer type.
19192 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
19193             Eric Botcazou  <ebotcazou@adacore.com>
19195         PR rtl-optimization/89862
19196         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
19197         that operates on the full registers for WORD_REGISTER_OPERATIONS
19198         architectures.
19200 2019-03-29  Jim Wilson  <jimw@sifive.com>
19202         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
19203         Clear MASK_RVC and then set if C subset supported.
19205 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
19207         PR c/89872
19208         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
19209         non-addressable complit into its initializer if it is volatile.
19211 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
19213         * opts-common.c (integral_argument): Set errno properly in one case.
19215 2019-03-29  Martin Liska  <mliska@suse.cz>
19217         * doc/invoke.texi: Remove -Wchkp from documentation.
19219 2019-03-29  Martin Liska  <mliska@suse.cz>
19221         * dbgcnt.c (print_limit_reach): New function.
19222         (dbg_cnt): Use it.
19224 2019-03-29  Martin Liska  <mliska@suse.cz>
19226         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
19227         (dbg_cnt_process_opt): Parse first tokens aas
19228         dbg_cnt_process_single_pair is also using strtok.
19230 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
19232         PR rtl-optimization/87485
19233         * function.c (expand_function_end): Move stack_protect_epilogue
19234         before loading of return value into hard register(s).
19236 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
19238         PR middle-end/89621
19239         * tree-inline.h (struct copy_body_data): Add
19240         dont_remap_vla_if_no_change flag.
19241         * tree-inline.c (remap_type_3, remap_type_2): New functions.
19242         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
19243         and remap_type_2 returns false.
19244         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
19245         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
19246         only from where it is copied to nested contexts.
19248 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19250         PR target/89865
19251         * config/i386/i386.md (RMW operation with LEA peephole):
19252         Use LEAMODE mode attribute instead of SWI mode iterator for
19253         LEA pattern.
19255 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19257         PR target/89848
19258         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
19259         Also process XEXP (src, 0) of a shift insn.
19261 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
19263         PR middle-end/89725
19264         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
19265         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
19267 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
19269         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
19270         test.
19271         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
19272         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
19273         immediately after first one with df_analyze in between, but rather
19274         process all bbs, queueing ones that need second pass in a worklist,
19275         df_analyze, process queued debug insn changes and if second pass is
19276         needed, process bbs from worklist, df_analyze, process queued debug
19277         insns again.
19279         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
19280         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
19281         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
19283 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
19285         PR c/79022
19286         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
19287         definition.
19289 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
19291         PR target/85667
19292         * config/i386/i386.c (ix86_function_value_1): Call the newly added
19293         function for 32-bit MS_ABI.
19294         (function_value_ms_32): New function.
19296 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
19298         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
19299         (movdi): Call gen_movdi_symbol_save_scc.
19300         (gen_movdi_symbol_save_scc): New insn and split.
19302 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
19304         PR rtl-optimization/89313
19305         * function.c (matching_constraint_num): New static function.
19306         (match_asm_constraints_1): Use it.  Fixup white space and comment.
19307         Don't replace inputs with non-matching constraints which conflict
19308         with early clobber outputs.
19310 2019-03-27  Jeff Law  <law@redhat.com>
19312         PR rtl-optimization/87761
19313         PR rtl-optimization/89826
19314         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
19315         slightly later.
19316         (pass_cprop_hardreg::execute): Call df_analyze after adding the
19317         note problem to get REG_DEAD/REG_UNUSED notes updated.
19319 2019-03-27  Richard Biener  <rguenther@suse.de>
19321         PR tree-optimization/89463
19322         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
19323         queue edges to remove.
19324         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
19325         dead stmts.  Delay edge removal until PHIs are removed to
19326         make debug-stmt creation not confused by seemingly degenerate
19327         PHIs.
19329 2019-03-27  Alan Modra  <amodra@gmail.com>
19331         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
19332         throughout file.
19333         * config/rs6000/darwin.h: Likewise.
19334         * config/rs6000/rs6000.c: Likewise.
19336 2019-03-27  Alan Modra  <amodra@gmail.com>
19338         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
19339         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
19341 2019-03-26  Andrew Waterman  <andrew@sifive.com>
19342             Jim Wilson  <jimw@sifive.com>
19344         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
19345         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
19346         (generic_idivdi, generic_fmul_single, generic_fmul_double)
19347         (generic_fdiv, generic_fsqrt): Add check for generic tune.
19348         (generic_alu): Add auipc to type list.
19349         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
19350         (riscv_microarchitecture): Declare.
19351         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
19352         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
19353         field.
19354         (riscv_microarchitecture): New.
19355         (sifive_7_tune_info): New.
19356         (riscv_cpu_info_table): Add microarchitecture value for rocket and
19357         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
19358         entries.
19359         (riscv_store_data_bypass_p): New.
19360         (riscv_option_override): Set riscv_microarchitecture from
19361         cpu->microarchitecture.
19362         * config/riscv/riscv.md: Include sifive-7.md.
19363         (type): Add auipc.
19364         (tune): New.
19365         (auipc<mode>): Change type to auipc.
19366         (restore_stack_nonlocal): New.
19367         * config/riscv/sifive-7.md: New.
19368         * doc/invoke.texi (RISC-V Options): Update mtune docs.
19370 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19372         PR target/89827
19373         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19374         Also process XEXP (src, 0) of a shift insn.
19376 2019-03-26  Richard Biener  <rguenther@suse.de>
19378         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
19379         (copy_debug_stmt): Likewise.
19380         (expand_call_inline): Likewise.
19381         (copy_bb): Avoid redundant lookup & set of gimple_block.
19382         * gimple-low.c (lower_gimple_return): Likewise.
19383         (lower_builtin_setjmp): Likewise.
19385 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
19387         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
19388         is constant 0, turn into static const data member initialized to false.
19389         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
19390         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
19392 2019-03-26  Jason Merrill  <jason@redhat.com>
19393             Jakub Jelinek  <jakub@redhat.com>
19395         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
19396         method.
19397         (mem_alloc_description::release_object_overhead): Fix comment typos.
19398         * hash-table.h (hash_table::~hash_table): Call
19399         release_instance_overhead only if m_entries is non-NULL, otherwise
19400         call unregister_descriptor.
19402 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
19404         PR tree-optimization/81740
19405         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19406         In case of outer loop vectorization, check for backward dependence
19407         at the inner loop if outer loop dependence is reversed.
19409 2019-03-26  Alan Modra  <amodra@gmail.com>
19411         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
19412         rs6000_vector_mem init.  Correct wI and wJ comment.
19414 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
19416         PR rtl-optimization/88347
19417         PR rtl-optimization/88423
19418         * sched-deps.c (sched_analyze_insn): Take into account that for
19419         tablejumps the barrier appears after a label and a jump_table_data.
19421 2019-03-25  Martin Sebor  <msebor@redhat.com>
19423         PR c/89812
19424         * c-common.c (check_user_alignment): Rename local.  Correct maximum
19425         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
19426         convert it to UHWI when it fits.
19428 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
19430         PR debug/86964
19431         * dwarf2out.c (premark_used_variables): New function.
19432         (prune_unused_types_walk): Do not mark not premarked external
19433         variables.
19434         (prune_unused_types): Call premark_used_variables.
19436 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
19438         PR rtl-optimization/89676
19439         * lra-constraints.c (curr_insn_transform): Do match reload for
19440         early clobbers when the match was successful only for different
19441         registers.
19443 2019-03-25  Martin Sebor  <msebor@redhat.com>
19445         * doc/extend.texi (Common Type Attributes): Document vector_size.
19446         (Common Variable Attributes): Mention size constraint.  Correct
19447         quoting and typos.
19448         (Vector Extensions): Use @dfn when defining bas type.  Clarify
19449         base type and size constraints.
19451 2019-03-25  Richard Biener  <rguenther@suse.de>
19453         PR tree-optimization/89789
19454         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
19455         changes from non-undefined back to undefined.
19457 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
19459         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
19460         heap string and a gc string, but since this variable is unknown to
19461         ggc the gc string might get reused and corrupted. Fixed by always
19462         using a heap string.
19464 2019-03-25  Richard Biener  <rguenther@suse.de>
19466         PR tree-optimization/89779
19467         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
19468         to remove IV defs, delay actual removal.
19469         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
19470         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
19471         very end, properly also reset loop control IV information.
19473 2019-03-25  Richard Biener  <rguenther@suse.de>
19475         PR tree-optimization/89802
19476         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
19477         move EH data to folded stmt.
19479 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
19481         * config/s390/s390-builtin-types.def: Remove few unused types and
19482         fix sort order for others.
19484 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
19486         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
19487         expected and found types with -mdebug during builtin matching.
19489 2019-03-25  Richard Biener  <rguenther@suse.de>
19491         PR middle-end/89790
19492         * fold-const.c (operand_equal_p): Revert last change with
19493         updated comment.
19495 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
19497         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
19498         notes for the result of the __tls_get_addr calls.
19499         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
19501 2019-03-24  Jeff Law  <law@redhat.com>
19503         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
19505         PR rtl-optimization/87761
19506         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
19507         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
19508         as needed.
19509         (pass_cprop_hardreg::execute): Add df note problem and defer insn
19510         rescans.  Reprocess blocks as needed, calling df_analyze before
19511         reprocessing.  Always call df_analyze before fixing up debug bind
19512         insns.
19514 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
19516         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
19517         big endian.
19519 2019-03-22  Andrew Pinski  <apinski@marvell.com>
19521         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
19522         attrribute for uxtw.
19524 2019-03-26  Jeff Law  <law@redhat.com>
19526         PR rtl-optimization/87761
19527         * config/mips/mips-protos.h (mips_split_move): Add new argument.
19528         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
19529         (mips_split_move): Accept new INSN argument.  Try to forward SRC
19530         into the next instruction.
19531         (mips_split_move_insn): Pass INSN through to mips_split_move.
19533 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
19535         PR rtl-optimization/89676
19536         * lra-constraints.c (curr_insn_transform): Do match reload for
19537         early clobbers even if the match was successful.
19539 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
19541         PR c++/87481
19542         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
19544 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
19546         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
19548 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
19550         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
19551         <avx512>_fmsub_<mode>_mask3<round_name>,
19552         <avx512>_fnmadd_<mode>_mask3<round_name>,
19553         <avx512>_fnmsub_<mode>_mask3<round_name>,
19554         avx512f_vmfmadd_<mode>_mask3<round_name>,
19555         avx512f_vmfmsub_<mode>_mask3<round_name>,
19556         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
19557         instead of register_operand and %v instead of v for match_operand 1.
19558         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
19559         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
19560         <round_nimm_predicate> instead of register_operand and %v instead of v
19561         for match_operand 1.
19563         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
19564         <avx512>_fmadd_<mode>_mask3<round_name>,
19565         <avx512>_fmsub_<mode>_mask<round_name>,
19566         <avx512>_fmsub_<mode>_mask3<round_name>,
19567         <avx512>_fnmadd_<mode>_mask<round_name>,
19568         <avx512>_fnmadd_<mode>_mask3<round_name>,
19569         <avx512>_fnmsub_<mode>_mask<round_name>,
19570         <avx512>_fnmsub_<mode>_mask3<round_name>,
19571         <avx512>_fmaddsub_<mode>_mask<round_name>,
19572         <avx512>_fmaddsub_<mode>_mask3<round_name>,
19573         <avx512>_fmsubadd_<mode>_mask<round_name>,
19574         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
19575         <round_nimm_predicate> instead of nonimmediate_operand.
19576         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
19577         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
19578         Use register_operand instead of <round_nimm_predicate> for the
19579         operand that needs to match output.
19580         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
19581         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
19582         Likewise.  Formatting fixes.
19584         PR target/89784
19585         * config/i386/i386.c (enum ix86_builtins): Remove
19586         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
19587         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
19588         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
19589         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
19590         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
19591         __builtin_ia32_vfmsubss3_mask3): New builtins.
19592         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
19593         avx512f_vmfmadd_<mode>_mask3<round_name>,
19594         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
19595         *avx512f_vmfmsub_<mode>_mask<round_name>,
19596         avx512f_vmfmsub_<mode>_mask3<round_name>,
19597         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
19598         *avx512f_vmfnmadd_<mode>_mask<round_name>,
19599         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
19600         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
19601         *avx512f_vmfnmsub_<mode>_mask<round_name>,
19602         avx512f_vmfnmsub_<mode>_mask3<round_name>,
19603         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
19604         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
19605         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
19606         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
19607         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
19608         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
19609         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
19610         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
19611         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
19612         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
19613         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
19614         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
19615         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
19616         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
19617         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
19618         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
19619         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
19620         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
19621         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
19622         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
19623         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
19624         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
19626 2019-03-21  Martin Sebor  <msebor@redhat.com>
19628         PR tree-optimization/89350
19629         * builtins.c (compute_objsize): Also ignore offsets whose upper
19630         bound is negative.
19631         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
19632         (builtin_memref::builtin_memref): Initialize new member.
19633         Allow EXPR to be null.
19634         (builtin_memref::extend_offset_range): Replace local with a member.
19635         Avoid assuming pointer offsets are unsigned.
19636         (builtin_memref::set_base_and_offset): Determine base object
19637         before computing offset range.
19638         (builtin_access::builtin_access): Handle memset.
19639         (builtin_access::generic_overlap): Replace local with a member.
19640         (builtin_access::strcat_overlap): Same.
19641         (builtin_access::overlap): Same.
19642         (maybe_diag_overlap): Same.
19643         (maybe_diag_access_bounds): Same.
19644         (wrestrict_dom_walker::check_call): Handle memset.
19645         (check_bounds_or_overlap): Same.
19647 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
19648             Jakub Jelinek  <jakub@redhat.com>
19650         PR lto/89692
19651         * tree.c (fld_type_variant, fld_incomplete_type_of,
19652         fld_process_array_type): Call fld->pset.add and don't call
19653         add_tree_to_fld_list if it returns true.
19654         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
19655         non-marked types from TYPE_NEXT_VARIANT list.
19656         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
19658 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
19660         * hash-table.h (hash_table): Add Lazy template parameter defaulted
19661         to false, if true, don't alloc_entries during construction, but defer
19662         it to the first method that needs m_entries allocated.
19663         (hash_table::hash_table, hash_table::~hash_table,
19664         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
19665         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
19666         hash_table::clear_slot, hash_table::traverse_noresize,
19667         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
19668         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
19669         false.
19670         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
19671         NO_INSERT instead of find_with_hash.
19672         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
19673         hash_set::m_table): Add Lazy to template params of hash_table.
19674         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
19675         * attribs.c (test_attribute_exclusions): Likewise.
19676         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
19677         hash_set.  Add tests for hash_set with Lazy = true.
19679 2019-03-21  Richard Biener  <rguenther@suse.de>
19681         PR tree-optimization/89779
19682         * tree.c (tree_nop_conversion): Consolidate and fix defensive
19683         checks with respect to released SSA names now having error_mark_node
19684         type.
19685         * fold-const.c (operand_equal_p): Likewise.
19687 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
19689         PR target/89775
19690         * config/s390/s390.c (global_not_special_regno_p): Move to make it
19691         available to ...
19692         (s390_optimize_register_info): Use global_not_special_regno_p to
19693         check for global regs.
19695 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
19697         PR target/89752
19698         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
19699         update this_alternative nor this_alternative_set.
19701 2019-03-19  Jim Wilson  <jimw@sifive.com>
19703         PR target/89411
19704         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
19705         align, size, offset.  Use them to handle a BLKmode reference.  Update
19706         comment.
19707         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
19709 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
19711         PR rtl-optimization/89768
19712         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
19713         instead of GEN_INT.
19714         (unroll_loop_runtime_iterations): Likewise.
19716 2019-03-19  Martin Sebor  <msebor@redhat.com>
19718         PR tree-optimization/89644
19719         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
19720         rather than endptr as an indicator of nul-termination.
19722         PR tree-optimization/89644
19723         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
19724         arrays in determining sequence sizes in strncpy and stpncpy.
19726 2019-03-19  Martin Liska  <mliska@suse.cz>
19728         PR middle-end/89737
19729         * predict.c (combine_predictions_for_bb): Empty likely_edges and
19730         unlikely_edges if there's an edge that belongs to both these sets.
19732 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
19734         PR target/89746
19735         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
19736         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
19737         go via a stack temporary.
19739 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
19741         PR target/89378
19742         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
19743         instead of gen_rtx_SUBREG.
19744         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
19746 2019-03-19  Richard Biener  <rguenther@suse.de>
19748         PR debug/88389
19749         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
19751 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
19753         PR lto/87809
19754         PR lto/89335
19755         * tree.c (free_lang_data_in_decl): Do not free context of C++
19756         destrutors.
19758 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
19760         PR target/89506
19761         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
19762         subs for the first alternative except when operands[3] is 1.
19764         PR target/89752
19765         * gimplify.c (gimplify_asm_expr): For output argument with
19766         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
19767         diagnose error.
19769 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
19771         PR rtl-optimization/89753
19772         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
19773         explicit unrolling factor even more robust.
19775 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
19777         PR target/89726
19778         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
19779         compensation use x2 += 1 instead of x2 -= -1 and when honoring
19780         signed zeros, do another copysign after the compensation.
19782 2019-03-18  Martin Sebor  <msebor@redhat.com>
19784         PR tree-optimization/89720
19785         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
19786         more conservatively, the same as anti-range.
19788 2019-03-18  Richard Biener  <rguenther@suse.de>
19790         PR middle-end/88945
19791         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
19792         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
19793         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
19794         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
19796 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
19798         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
19799         Extend queue to 1024 entries.
19800         Add "consumed" field.
19801         (gomp_print_output): Remove print_index parameter.
19802         Add final parameter.
19803         Change limit to unsigned.
19804         Use consumed field to implement circular buffer.
19805         Detect interrupted print in final pass.
19806         Flush output at the end.
19807         (run): Update gomp_print_output usage.
19808         (main): Initialize kernargs->output_data.consumed.
19810 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
19812         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
19813         calculation of the minimum number of scalar iterations for
19814         fully-predicated loops.
19816 2019-03-18  Martin Jambor  <mjambor@suse.cz>
19818         PR tree-optimization/89546
19819         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
19820         any propagation to its children took place.
19822 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
19824         PR target/89627
19825         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
19826         parameter, and make use of it.
19827         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
19829 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
19831         * config/arc/arc.opt (mcode-density-frame): Get the inital value
19832         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
19833         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
19834         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
19835         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
19836         match what the ops is doing.
19837         (push_multi_fp_blink): Likewise.
19838         * config/arc/arc.c (arc_override_options): Enable enter/leave when
19839         compiling for size and elf target.
19840         (arc_save_callee_enter): Adjust note to match what enter/leave
19841         operation does.
19843 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
19845         * config/arc/arc.md (tst_movb): Fix constraint.
19847 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
19849         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
19851 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
19853         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
19854         * config/arc/arc.c (arc_conditional_register_usage): Remove all
19855         reg_alloc_order references.
19856         (size_alloc_order): Define.
19857         (arc_adjust_reg_alloc_order): New function.
19858         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
19859         order.
19860         (ADJUST_REG_ALLOC_ORDER): Define.
19861         (HONOR_REG_ALLOC_ORDER): Likewise.
19863 2019-03-18  Richard Biener  <rguenther@suse.de>
19865         PR target/87561
19866         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
19867         loads and stores a bit more.
19869 2019-03-18  Richard Biener  <rguenther@suse.de>
19871         PR target/87561
19872         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
19873         load pessimization to stores as well.
19875 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
19877         PR middle-end/86979
19878         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
19879         successor, use NULL as its av set.
19881 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
19883         PR rtl-optimization/89721
19884         * lra-constraints (invariant_p): Return false if side_effects_p holds.
19886 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19888         PR target/87532
19889         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19890         When handling vec_extract, use modular arithmetic to allow
19891         constant selectors greater than vector length.
19892         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
19893         V1TImode vectors to have constant selector values greater than 0.
19894         Use modular arithmetic to compute vector index.
19895         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
19896         index for in-memory vectors.  Correct code generation for
19897         in-register vectors.
19898         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
19899         compute index.
19901 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
19903         PR c++/88534
19904         PR c++/88537
19905         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
19906         VAR_DECL args.
19908 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
19910         PR c++/89709
19911         * tree.c (inchash::add_expr): Strip any location wrappers.
19912         * fold-const.c (operand_equal_p): Move stripping of location wrapper
19913         after hash verification.
19915         PR debug/89704
19916         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
19917         SIGN_EXTEND and ZERO_EXTEND.
19919 2019-03-14  Jason Merrill  <jason@redhat.com>
19920             Jakub Jelinek  <jakub@redhat.com>
19922         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
19923         than if is_empty (*slot).
19924         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
19925         existing elt and for elt removal.
19926         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
19927         of already removed elt.
19929 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
19931         PR target/89650
19932         * config/i386/i386.c (remove_partial_avx_dependency): Handle
19933         REG_EH_REGION note.
19935 2019-03-14  Martin Liska  <mliska@suse.cz>
19937         PR other/89712
19938         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
19940 2019-03-14  Richard Biener  <rguenther@suse.de>
19942         PR target/89711
19943         * config/i386/i386.c (make_resolver_func): Properly set
19944         DECL_CONTEXT on the RESULT_DECL.
19945         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
19947 2019-03-14  Richard Biener  <rguenther@suse.de>
19949         * gimple-pretty-print.c: Include cfgloop.h.
19950         (dump_gimple_phi): Adjust.
19951         (dump_gimple_bb_header): Dump loop header for GIMPLE.
19952         (pp_cfg_jump): Adjust.
19953         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
19954         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
19955         (lower_phi_internal_fn): Remove.
19956         (verify_gimple_call): Remove IFN_PHI special-casing.
19957         (dump_function_to_file): Dump IL state.
19958         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
19959         done to deal with PHI nodes being present in non-SSA state.
19961 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
19963         PR ipa/89684
19964         * multiple_target.c (create_dispatcher_calls): Change
19965         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
19966         In the node->iterate_referring loop, push *ref rather than ref, call
19967         ref->remove_reference () and always pass 0 to iterate_referring.
19969         PR rtl-optimization/89679
19970         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
19971         would contain a paradoxical SUBREG.
19973 2019-03-14  Richard Biener  <rguenther@suse.de>
19975         PR tree-optimization/89710
19976         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
19977         safe_dyn_cast.
19979 2019-03-14  Martin Liska  <mliska@suse.cz>
19981         * coverage.c (coverage_begin_function): Stream also
19982         end_column.
19983         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
19984         documentation about function declaration location.
19985         * gcov-dump.c (tag_function): Print whole range
19986         of function declaration.
19987         * gcov.c (struct function_info): Add end_column field.
19988         (function_info::function_info): Initialize it.
19989         (output_json_intermediate_file): Output {start,end}_column
19990         fields.
19991         (read_graph_file): Read end_column.
19993 2019-03-14  Richard Biener  <rguenther@suse.de>
19995         PR middle-end/89698
19996         * fold-const.c (operand_equal_p): For INDIRECT_REF check
19997         that the access types are similar.
19999 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
20001         PR tree-optimization/89703
20002         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
20003         aren't compatible also with builtin_decl_explicit.  Check pure
20004         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
20005         and BUILT_IN_STPNCPY{,_CHK}.
20007 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
20009         PR target/89523
20010         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
20011         addr32 prefix to VSIB address for X32.
20012         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
20013         "%M2" to opcode.
20014         (*avx512pf_gatherpf<mode>df_mask): Likewise.
20015         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
20016         (*avx512pf_scatterpf<mode>df_mask): Likewise.
20017         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
20018         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
20019         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
20020         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
20021         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
20022         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
20023         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
20024         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
20025         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
20026         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
20027         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
20028         (*avx512f_scatterdi<mode>): Likewise.
20030 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
20032         PR target/85860
20033         * lra-constraints.c (inherit_in_ebb): Update
20034         potential_reload_hard_regs along with live_hard_regs.
20036 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
20038         PR debug/89498
20039         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
20040         DWARF_OFFSET_SIZE.
20041         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
20043 2019-03-13  Martin Sebor  <msebor@redhat.com>
20045         PR tree-optimization/89662
20046         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
20047         has a size.
20049 2019-03-13  Richard Biener  <rguenther@suse.de>
20051         PR middle-end/89677
20052         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
20053         throw FP expressions at tree-affine.
20055 2019-03-14  Richard Biener  <rguenther@suse.de>
20057         * tree-pretty-print.c (dump_generic_node): For -gimple properly
20058         dump negative integer constants using _Literal (type) -num.
20060 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
20062         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
20063         nonlocal_value member.
20065         PR middle-end/88588
20066         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
20067         (ipa_simd_modify_function_body): Handle PHIs.
20069 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
20071         * config/s390/s390.c (s390_option_override_internal): Use more
20072         aggressive inlining parameters.
20074 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
20076         * config/s390/3906.md: New file.
20077         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
20078         (LONGRUNNING_THRESHOLD): Remove.
20079         (MAX_SCHED_MIX_SCORE): Decrease.
20080         (MAX_SCHED_MIX_DISTANCE): Decrease.
20081         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
20082         (struct s390_sched_state): New struct to hold scheduling state.
20083         (S390_SCHED_STATE_NORMAL): Remove.
20084         (S390_SCHED_STATE_CRACKED): Remove.
20085         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
20086         (s390_get_sched_attrmask): Use new attribute.
20087         (s390_get_unit_mask): Use new units.
20088         (s390_is_fpd): New function.
20089         (s390_is_fxd): New function.
20090         (s390_is_longrunning): New function.
20091         (s390_sched_score): Use new functions.
20092         (s390_sched_reorder): Likewise.
20093         (s390_sched_variable_issue): Rework and use new functions.
20094         (s390_sched_init): Use new functions.
20095         * config/s390/s390.h (s390_tune_attr): Add z14.
20096         * config/s390/s390.md: Add z14.
20098 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
20100         * config/s390/2964.md: Update pipeline description.
20101         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
20102         (LONGRUNNING_THRESHOLD): Remove.
20103         (LATENCY_FACTOR): Remove.
20104         (s390_get_unit_mask): Add unit.
20105         (s390_sched_score): Use fxd/fpd.
20106         (s390_sched_variable_issue): Use fxd/fpd.
20108 2019-03-12  Martin Liska  <mliska@suse.cz>
20110         * config/i386/i386.c: Reword an error message.
20112 2019-03-12  Martin Jambor  <mjambor@suse.cz>
20114         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
20115         terminate with newline.
20117 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
20119         PR target/52726
20120         * config/s390/s390.md (tabort): Use %wd instead of
20121         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
20122         letters and periods.
20123         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
20124         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
20125         's with %< and %>.
20127         PR middle-end/89663
20128         * builtins.c (expand_builtin_int_roundingfn,
20129         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
20130         gcc_unreachable if validate_arglist fails.
20132 2019-03-12  Richard Biener  <rguenther@suse.de>
20134         PR tree-optimization/89664
20135         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
20136         free the occurance tree after the early out.
20138 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
20140         PR middle-end/89655
20141         PR bootstrap/89656
20142         * vr-values.c (vr_values::update_value_range): If
20143         old_vr->varying_p (), don't update it, make new_vr also VARYING
20144         and return false.
20146 2019-03-11  Martin Liska  <mliska@suse.cz>
20148         * config/aarch64/aarch64.c (aarch64_override_options_internal):
20149         Fix double string quoting.
20151 2019-03-11  Martin Liska  <mliska@suse.cz>
20153         * collect-utils.c (collect_wait): Wrap apostrophes
20154         in gcc internal format with %'.
20155         * collect2.c (main): Likewise.
20156         (scan_prog_file): Likewise.
20157         (scan_libraries): Likewise.
20158         * config/i386/i386.c (ix86_expand_call): Likewise.
20159         (ix86_handle_interrupt_attribute): Likewise.
20160         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
20161         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20162         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
20163         * lto-wrapper.c (find_crtoffloadtable): Likewise.
20164         * symtab.c (symtab_node::verify_base): Likewise.
20165         * tree-cfg.c (verify_gimple_label): Likewise.
20166         * tree.c (verify_type_variant): Likewise.
20168 2019-03-11  Martin Liska  <mliska@suse.cz>
20170         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
20171         in a string format message and fix GNU coding style.
20172         (expand_builtin_set_thread_pointer): Likewise.
20173         * common/config/aarch64/aarch64-common.c
20174         (aarch64_rewrite_selected_cpu): Likewise.
20175         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
20176         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
20177         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
20178         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
20179         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
20180         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
20181         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
20182         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
20183         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
20184         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
20185         Likewise.
20186         * common/config/riscv/riscv-common.c
20187         (riscv_subset_list::parsing_subset_version): Likewise.
20188         (riscv_subset_list::parse_std_ext): Likewise.
20189         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20190         (riscv_subset_list::parse): Likewise.
20191         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
20192         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
20193         (aarch64_override_options_internal): Likewise.
20194         (aarch64_validate_mcpu): Likewise.
20195         (aarch64_validate_march): Likewise.
20196         (aarch64_validate_mtune): Likewise.
20197         (aarch64_override_options): Likewise.
20198         * config/alpha/alpha.c (alpha_option_override): Likewise.
20199         * config/arc/arc.c (arc_init): Likewise.
20200         (parse_mrgf_banked_regs_option): Likewise.
20201         (arc_override_options): Likewise.
20202         (arc_expand_builtin_aligned): Likewise.
20203         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
20204         (arm_expand_builtin): Likewise.
20205         * config/arm/arm.c (arm_option_check_internal): Likewise.
20206         (arm_configure_build_target): Likewise.
20207         (arm_option_override): Likewise.
20208         (arm_options_perform_arch_sanity_checks): Likewise.
20209         (arm_handle_cmse_nonsecure_entry): Likewise.
20210         (arm_handle_cmse_nonsecure_call): Likewise.
20211         (arm_tls_referenced_p): Likewise.
20212         (thumb1_expand_prologue): Likewise.
20213         * config/avr/avr.c (avr_option_override): Likewise.
20214         * config/bfin/bfin.c (bfin_option_override): Likewise.
20215         * config/c6x/c6x.c (c6x_option_override): Likewise.
20216         * config/cr16/cr16.c (cr16_override_options): Likewise.
20217         * config/cris/cris.c (cris_option_override): Likewise.
20218         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
20219         * config/darwin-c.c (macosx_version_as_macro): Likewise.
20220         * config/darwin.c (darwin_override_options): Likewise.
20221         * config/frv/frv.c (frv_expand_builtin): Likewise.
20222         * config/h8300/h8300.c (h8300_option_override): Likewise.
20223         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
20224         (ix86_option_override_internal): Likewise.
20225         (warn_once_call_ms2sysv_xlogues): Likewise.
20226         (ix86_expand_prologue): Likewise.
20227         (split_stack_prologue_scratch_regno): Likewise.
20228         (ix86_warn_parameter_passing_abi): Likewise.
20229         * config/ia64/ia64.c (fix_range): Likewise.
20230         * config/m68k/m68k.c (m68k_option_override): Likewise.
20231         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
20232         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
20233         (mips_set_compression_mode): Likewise.
20234         * config/mmix/mmix.c (mmix_option_override): Likewise.
20235         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
20236         * config/msp430/msp430.c (msp430_option_override): Likewise.
20237         * config/nds32/nds32.c (nds32_option_override): Likewise.
20238         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
20239         (nios2_option_override): Likewise.
20240         (nios2_expand_custom_builtin): Likewise.
20241         * config/nvptx/mkoffload.c (main): Likewise.
20242         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
20243         * config/pa/pa.c (fix_range): Likewise.
20244         (pa_option_override): Likewise.
20245         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
20246         (riscv_option_override): Likewise.
20247         * config/rl78/rl78.c (rl78_option_override): Likewise.
20248         * config/rs6000/aix61.h: Likewise.
20249         * config/rs6000/aix71.h: Likewise.
20250         * config/rs6000/aix72.h: Likewise.
20251         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
20252         * config/rs6000/freebsd64.h: Likewise.
20253         * config/rs6000/linux64.h: Likewise.
20254         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
20255         (rs6000_expand_zeroop_builtin): Likewise.
20256         (rs6000_expand_mtfsb_builtin): Likewise.
20257         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
20258         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
20259         (rs6000_invalid_builtin): Likewise.
20260         (rs6000_expand_split_stack_prologue): Likewise.
20261         * config/rs6000/rtems.h: Likewise.
20262         * config/rx/rx.c (valid_psw_flag): Likewise.
20263         (rx_expand_builtin): Likewise.
20264         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
20265         * config/s390/s390.c (s390_expand_builtin): Likewise.
20266         (s390_function_profiler): Likewise.
20267         (s390_option_override_internal): Likewise.
20268         (s390_option_override): Likewise.
20269         * config/sh/sh.c (sh_option_override): Likewise.
20270         (sh_builtin_saveregs): Likewise.
20271         (sh_fix_range): Likewise.
20272         * config/sh/vxworks.h: Likewise.
20273         * config/sparc/sparc.c (sparc_option_override): Likewise.
20274         * config/spu/spu.c (spu_option_override): Likewise.
20275         (fix_range): Likewise.
20276         * config/visium/visium.c (visium_option_override): Likewise.
20277         (visium_handle_interrupt_attr): Likewise.
20278         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
20279         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
20280         (dbg_cnt_process_opt): Likewise.
20281         * dwarf2out.c (output_dwarf_version): Likewise.
20282         * except.c (expand_eh_return): Likewise.
20283         * gcc.c (defined): Likewise.
20284         (driver_handle_option): Likewise.
20285         (process_command): Likewise.
20286         (compare_files): Likewise.
20287         (driver::prepare_infiles): Likewise.
20288         (driver::do_spec_on_infiles): Likewise.
20289         (driver::maybe_run_linker): Likewise.
20290         * omp-offload.c (oacc_parse_default_dims): Likewise.
20291         * opts-global.c (handle_common_deferred_options): Likewise.
20292         * opts.c (parse_sanitizer_options): Likewise.
20293         (common_handle_option): Likewise.
20294         (enable_warning_as_error): Likewise.
20295         * passes.c (enable_disable_pass): Likewise.
20296         * plugin.c (parse_plugin_arg_opt): Likewise.
20297         (default_plugin_dir_name): Likewise.
20298         * targhooks.c (default_expand_builtin_saveregs): Likewise.
20299         (default_pch_valid_p): Likewise.
20300         * toplev.c (init_asm_output): Likewise.
20301         (process_options): Likewise.
20302         (toplev::run_self_tests): Likewise.
20303         * tree-cfg.c (verify_gimple_call): Likewise.
20304         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
20305         (tree_inlinable_function_p): Likewise.
20306         * var-tracking.c (vt_find_locations): Likewise.
20308 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
20310         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
20311         only on the else branch.
20313 2019-03-11  Martin Liska  <mliska@suse.cz>
20315         * gcov.c (output_intermediate_json_line): Print function
20316         name of each line.
20317         (output_json_intermediate_file): Add new argument.
20318         * doc/gcov.texi: Document the change.
20320 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
20322         PR rtl-optimization/89588
20323         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20324         explicit unrolling factor more robust.
20326 2019-03-11  Richard Biener  <rguenther@suse.de>
20328         PR tree-optimization/89649
20329         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
20330         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
20331         on the prolog and epilog loops.
20332         (vect_loop_versioning): Return copy of loop.
20333         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
20334         on the non-vectorized version of the loop.
20336 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20338         PR target/68924
20339         * config/i386/sse.md (*vec_extractv2di_0_sse):
20340         Add (=r,x) alternative and corresponding splitter.
20342 2019-03-10  Martin Jambor  <mjambor@suse.cz>
20344         PR tree-optimization/85762
20345         PR tree-optimization/87008
20346         PR tree-optimization/85459
20347         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
20348         it points to if there is a type changing MEM_REF.  Adjust all callers.
20349         (build_accesses_from_assign): Disable total scalarization if
20350         contains_vce_or_bfcref_p returns true through the new parameter, for
20351         both rhs and lhs.
20353 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
20355         PR c/88568
20356         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
20357         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
20359         PR target/79645
20360         * common.opt (fdiagnostics-show-labels,
20361         fdiagnostics-show-line-numbers, fdiagnostics-format=,
20362         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
20363         gas-locview-support, ginline-points, ginternal-reset-location-views):
20364         Terminate description text with a dot.
20365         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
20366         * config/mcore/mcore.opt (m210, m340): Likewise.
20367         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
20368         mnops=): Start description text with a capital letter.
20369         * config/arc/arc.opt (msize-level=): Likewise.
20370         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
20371         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
20372         mnewlib): Likewise.
20373         * config/ft32/ft32.opt (msim): Likewise.
20374         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
20375         (mnodiv, mnopm): Terminate description text with a dot.
20376         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
20377         a colon.
20378         * config/i386/i386.opt (prefer_vector_width, instrument_return):
20379         Likewise.
20380         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
20381         text.
20383         PR rtl-optimization/89634
20384         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
20385         are modified in BB_END (e->src) instruction.
20387 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
20389         PR target/79926
20390         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
20391         messages more amenable to translation, and improve wording.
20393 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
20395         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
20396         ud- and du-chains between phases.
20398 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
20400         PR debug/89631
20401         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
20402         instead of POLY_INT_CST.
20404 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
20406         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
20407         requirement.
20409 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20411         PR target/68924
20412         PR target/78782
20413         PR target/87558
20414         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
20415         (_mm_storeu_si64): Ditto.
20417 2019-03-08  Martin Liska  <mliska@suse.cz>
20419         PR target/86952
20420         * config/i386/i386.c (ix86_option_override_internal): Disable
20421         jump tables when retpolines are used.
20423 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
20425         PR go/63560
20426         * ipa-split.c (execute_split_functions): Do not split
20427         'noinline' or 'section' function.
20429 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
20431         PR target/79846
20432         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
20433         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
20434         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
20436         PR ipa/80000
20437         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20438         from diagnostics.  Formatting fixes.
20440         PR target/85665
20441         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
20442         warn_odr diagnostics.
20444         PR other/80058
20445         * lra-constraints.c (process_alt_operands): Avoid one space before
20446         " at the end of line and another after " on another line in a string
20447         literal.
20448         * attribs.c (handle_dll_attribute): Likewise.
20449         * config/avr/avr-devices.c (avr_texinfo): Likewise.
20451         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
20452         warning_at or inform messages in G_() if there is no ?:.
20454         PR tree-optimization/89550
20455         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
20456         returned true.  Formatting fixes.
20457         (expand_builtin_strnlen): Formatting fixes.
20458         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
20459         if warning_at returned true.
20460         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
20462 2019-03-08  Richard Biener  <rguenther@suse.de>
20464         PR middle-end/89578
20465         * cfgloop.h (struct loop): Add owned_clique field.
20466         * cfgloopmanip.c (copy_loop_info): Copy it.
20467         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
20468         cliques.
20469         * tree-inline.c (copy_loops): Remap owned_clique.
20470         * lto-streamer-in.c (input_cfg): Stream owned_clique.
20471         * lto-streamer-out.c (output_cfg): Likewise.
20473 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
20475         PR target/80190
20476         * config/darwin.c: Include intl.h.
20477         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
20478         composing the message out of two separate parts.
20480 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
20482         PR target/80003
20483         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
20484         doesn't start with a capital letter and doesn't end with a dot.
20485         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
20486         with a capital letter.
20487         (ix86_mangle_function_version_assembler_name): Likewise.
20488         (ix86_generate_version_dispatcher_body): Likewise.
20489         (fold_builtin_cpu): Likewise.
20490         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
20491         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
20492         translators, wrap full type name in %qs.
20494         PR translation/79999
20495         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
20496         depend clause with source (or sink) modifier.
20497         * omp-expand.c (expand_omp_ordered_sink): Likewise.
20499         PR target/89602
20500         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
20501         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
20502         (avx512f_load<mode>_mask): New define_expand.
20503         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
20504         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
20505         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
20506         __builtin_ia32_movess_mask): New builtins.
20507         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
20508         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
20509         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
20510         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
20512 2019-03-07  Martin Jambor  <mjambor@suse.cz>
20514         PR lto/87525
20515         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
20516         for extern inline functions.
20518 2019-03-07  Martin Jambor  <mjambor@suse.cz>
20520         PR ipa/88235
20521         * cgraph.h (cgraph_node): New inline method former_thunk_p.
20522         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
20523         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
20524         have multiple callees.  At the end check if declarations match as
20525         opposed to cgraph_nodes.
20527 2019-03-07  Martin Liska  <mliska@suse.cz>
20529         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
20530         which is equivalent to searching for this in clones chain.
20531         * symtab.c (symtab_node::verify_base): Similarly compare ASM
20532         names with a neighbour and special case first node in a chain.
20534 2019-01-25  Jason Merrill  <jason@redhat.com>
20536         PR c++/80916 - spurious "static but not defined" warning.
20537         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
20538         for an internal symbol with DECL_EXTERNAL.
20540 2019-04-07  Richard Biener  <rguenther@suse.de>
20542         PR middle-end/89618
20543         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
20544         * tree-inline.c (copy_loops): Simplify.
20546 2019-03-07  Martin Liska  <mliska@suse.cz>
20548         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
20550 2019-03-07  Richard Biener  <rguenther@suse.de>
20552         PR tree-optimization/89595
20553         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
20554         stmt iterator as reference, take boolean output parameter to
20555         indicate whether the stmt was removed and thus the iterator
20556         already advanced.
20557         (dom_opt_dom_walker::before_dom_children): Re-iterate over
20558         stmts created by folding.
20560 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
20562         PR c++/89585
20563         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
20564         at toplevel.
20566 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
20568         PR rtl-optimization/88845
20569         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
20570         LRA.
20571         * lra.c (remove_scratches_1): New function.
20572         (remove_scratches): Use it.
20573         (lra_emit_move): Likewise.
20575 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
20577         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
20578         unaligned_access variable.
20579         * config/arc/arc.c (arc_override_options): Set unaligned access
20580         default on for HS CPUs.
20581         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
20583 2019-03-06  Martin Liska  <mliska@suse.cz>
20585         PR gcov-profile/89577
20586         * doc/gcov.texi: Prefer to use --coverage.
20587         * doc/sourcebuild.texi: Likewise.
20589 2019-03-02  Jason Merrill  <jason@redhat.com>
20591         PR c++/86485 - -Wmaybe-unused with empty class ?:
20592         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
20594 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
20596         PR target/89587
20597         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
20598         if_multiarch.
20600         PR middle-end/89590
20601         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
20602         exactly one argument.
20604 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
20605             Richard Sandiford  <richard.sandiford@arm.com>
20607         PR tree-optimization/89570
20608         * match.pd (vec_cond into cond_op simplification): Don't use
20609         get_conditional_internal_fn, use as_internal_fn (cond_op).
20611 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
20613         PR target/89222
20614         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
20615         to decide when to split off a non-zero offset from a symbol.
20616         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
20617         in function symbols.
20619 2019-03-05  Richard Biener  <rguenther@suse.de>
20621         PR tree-optimization/89594
20622         * tree-if-conv.c (pass_if_conversion::execute): Handle
20623         case where .LOOP_VECTORIZED_FUNCTION was removed.
20625 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
20627         PR bootstrap/89560
20628         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
20629         instead alloca it only when needed with the needed size.
20631         PR tree-optimization/89570
20632         * match.pd (vec_cond into cond_op simplification): Guard with
20633         vectorized_internal_fn_supported_p test and #if GIMPLE.
20635         PR tree-optimization/89566
20636         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
20637         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
20638         Punt if get_user_idx_format succeeds, but idx_format argument is
20639         not provided or doesn't have pointer type, or if idx_args is above
20640         number of provided arguments.
20642 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
20644         PR tree-optimization/89437
20645         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
20647 2019-03-04  Richard Biener  <rguenther@suse.de>
20649         PR middle-end/89572
20650         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
20651         safe_dyn_cast.
20653 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
20655         PR tree-optimization/89487
20656         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
20657         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
20658         (distribute_loop): Don't do runtime alias check if there is non-
20659         addressable data reference.
20660         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
20661         is a register variable.
20663 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
20665         PR target/89506
20666         * config/arm/arm.md (cmpsi2_addneg): Use
20667         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
20668         If operands[2] is 0 or INT_MIN, force use of subs.
20669         (*compare_scc splitter): Use gen_int_mode.
20670         (*negscc): Likewise.
20671         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
20673 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
20674             Monk Chiang  <sh.chiang04@gmail.com>
20676         * common/config/riscv/riscv-common.c: Include sstream.
20677         (riscv_subset_list::to_string): New.
20678         (riscv_arch_str): Likewise.
20679         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
20680         * config.in: Regen.
20681         * config/riscv/riscv-protos.h (riscv_arch_str): New.
20682         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
20683         (riscv_emit_attribute): New.
20684         (riscv_file_start): Emit attribute if needed.
20685         (riscv_option_override): Init riscv_emit_attribute_p.
20686         * config/riscv/riscv.opt (mriscv-attribute): New option.
20687         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
20688         * configure: Regen.
20689         * doc/install.texi: Document --with-riscv-attribute.
20690         * doc/invoke.texi: Document -mriscv-attribute.
20692         * common/config/riscv/riscv-common.c:
20693         Include config/riscv/riscv-protos.h.
20694         (INCLUDE_STRING): Defined.
20695         (RISCV_DONT_CARE_VERSION): Defined.
20696         (riscv_subset_t): Declare.
20697         (riscv_subset_t::riscv_subset_t): New.
20698         (riscv_subset_list): Declare.
20699         (riscv_subset_list::riscv_subset_list): New.
20700         (riscv_subset_list::~riscv_subset_list): Likewise.
20701         (riscv_subset_list::parsing_subset_version): Likewise.
20702         (riscv_subset_list::parse_std_ext): Likewise.
20703         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20704         (riscv_subset_list::add): Likewise.
20705         (riscv_subset_list::lookup): Likewise.
20706         (riscv_subset_list::xlen): Likewise.
20707         (riscv_subset_list::parse): Likewise.
20708         (riscv_supported_std_ext): Likewise.
20709         (current_subset_list): Likewise.
20710         (riscv_parse_arch_string): Using riscv_subset_list::parse to
20711         parse.
20713 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
20715         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20716         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
20717         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
20719 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
20721         PR rtl-optimization/85899
20722         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
20723         fallthru edges leading to the exit block.
20725 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
20727         PR target/89517
20728         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
20729         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
20731 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
20733         PR tree-optimization/89535
20734         * tree-vect-stmts.c (vectorizable_call): Record the vector types
20735         for each operand.  Calculate the fallback choice for mask operands
20736         and pass it to vect_get_vec_def_for_operand.
20738 2019-03-01  Richard Biener  <rguenther@suse.de>
20740         PR middle-end/89541
20741         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
20742         get virtual operands.
20743         (get_expr_operands): Handle CONST_DECL like other decls.
20745 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
20747         PR middle-end/89503
20748         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
20749         on DECL_P and EXPR_P.
20751 2019-03-01  Richard Biener  <rguenther@suse.de>
20753         PR middle-end/89497
20754         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
20755         argument, defaulted to zero.
20756         * passes.c (execute_function_todo): Pass down SSA update flags
20757         to cleanup_tree_cfg.
20758         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
20759         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
20760         form if requested.
20761         (cleanup_tree_cfg): Get and pass down SSA update flags.
20763 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
20765         PR bootstrap/89539
20766         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
20767         early_lto_debug argument.
20769 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
20771         PR tree-optimization/89536
20772         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
20773         only whether bit #0 of the value is 0 instead of the entire value.
20775 2019-02-28  Marek Polacek  <polacek@redhat.com>
20777         PR c++/87068 - missing diagnostic with fallthrough statement.
20778         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
20779         at the end of a seq, save its location to walk_stmt_info.
20780         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
20781         a switch.
20783 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
20785         PR lto/88585
20786         * tree.c (find_atomic_core_type): Move ahead in file.
20787         (check_base_type): Correctly compare alignments of atomic types.
20789 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
20791         PR target/89455
20792         * config/i386/i386.c (get_builtin_code_for_version): Identify
20793         Westmere from PCLMUL, instead of AES.
20795 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
20797         PR target/89434
20798         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
20799         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
20800         -UINTVAL (...).
20802 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
20804         PR target/88530
20805         * config/aarch64/aarch64-option-extensions.def: Document it.
20806         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
20807         if empty hwcaps.
20809 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
20811         PR c/89520
20812         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
20813         builtins if they don't have a single scalar floating point argument.
20814         Formatting fixes.
20816 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20818         PR rtl-optimization/89490
20819         * varasm.c (get_block_for_section): Bail out for mergeable sections.
20820         (default_use_anchors_for_symbol_p, output_object_block): Assert the
20821         block section is not mergeable.
20823 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
20825         PR target/70341
20826         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
20827         old define_insn to ...
20828         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
20829         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
20830         Rename old define_insn to ...
20831         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
20832         (thumb2_casesi_internal_pic): New define_expand.  Rename old
20833         define_insn to ...
20834         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
20835         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
20836         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
20838 2019-02-27  Richard Biener  <rguenther@suse.de>
20840         PR debug/88878
20841         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
20843 2019-02-27  Richard Biener  <rguenther@suse.de>
20845         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
20846         building.
20848 2019-02-27  Richard Biener  <rguenther@suse.de>
20850         PR debug/88878
20851         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
20852         parameter, prefix section name with .gnu.debuglto_ if true.
20853         (dwarf2out_finish): Pass false to output_comdat_type_unit.
20854         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
20856 2019-02-27  Richard Biener  <rguenther@suse.de>
20858         PR debug/89514
20859         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
20860         rather than on use_debug_types, doing what output_die does.
20861         (value_format): Likewise.
20863 2019-02-27  Martin Jambor  <mjambor@suse.cz>
20864             Martin Sebor  <msebor@redhat.com>
20866         * doc/invoke.texi (Warning Options): Reword description of
20867         -Wno-absolute-value.
20869 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
20871         PR tree-optimization/89280
20872         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
20873         builtin_setjmp_setup_bb): New functions.
20874         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
20875         When visiting __builtin_setjmp_setup block, queue in special
20876         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
20877         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
20878         from visited after the loop if they don't have any visited successor
20879         blocks.
20881 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
20883         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
20884         New function.
20885         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
20887 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
20889         PR c++/89507
20890         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
20891         with types other than sizetype/ssizetype.
20893 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
20895         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
20896         (enum sparc_processor_type): ...this.
20897         (enum sparc_code_model_type): New enumeration type.
20898         (enum sparc_memory_model_type): Tweak comments.
20899         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
20900         (mtune): Likewise.
20901         (mcmodel): Use sparc_code_model enumeration and variable.
20902         (sparc_code_model): New enumeration.
20903         (mdebug): Add Undocumented marker.
20904         * config/sparc/sparc.h (enum cmodel): Delete.
20905         (sparc_cmodel): Likewise.
20906         (TARGET_CM_MEDLOW): Adjust to above renaming.
20907         (TARGET_CM_MEDMID): Likewise.
20908         (TARGET_CM_MEDANY): Likewise.
20909         (TARGET_CM_EMBMEDANY): Likewise.
20910         * config/sparc/sparc.c (sparc_cmodel): Delete.
20911         (sparc_option_override): Remove string/value mapping support for the
20912         code model.  Move code and memory model support to after the handling
20913         of target flags.  Do private machine setup last.
20914         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
20915         (sparc_legitimize_reload_address): Likewise.
20916         (sparc_output_mi_thunk): Likewise.
20917         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
20919 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
20921         PR tree-optimization/89500
20922         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
20923         (handle_builtin_strlen): Remove noncst_bound variable.  Always
20924         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
20925         cst if the first cst bytes starting at x are known to be non-zero,
20926         even if the string is not zero terminated.  Don't try to modify
20927         *si for strnlen.  Update strlen_to_stridx only for strlen or if
20928         we can prove strnlen returns the same value as strlen would.
20930 2019-02-26  Martin Liska  <mliska@suse.cz>
20932         * alloc-pool.h (struct pool_usage): Remove extra
20933         print_dash_line.
20934         * bitmap.h (struct bitmap_usage): Likewise.
20935         * ggc-common.c (struct ggc_usage): Likewise.
20936         * mem-stats.h (struct mem_usage): Likewise.
20937         (mem_alloc_description::dump): Print dash lines
20938         here and repeat header at the end of a table report.
20939         It's then more readable.
20940         * tree-phinodes.c (phinodes_print_statistics): Make
20941         horizontal alignment.
20942         * tree-ssanames.c (ssanames_print_statistics): Likewise.
20943         * vec.c (struct vec_usage): Remove extra print_dash_line.
20944         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
20946 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20948         * doc/extend.texi (__builtin_object_size):
20949         Use @pxref instead of @xref inside parenthesis.
20950         (__builtin_has_attribute): Add missing comma after @xref.
20951         (__builtin_object_size): Ditto.
20952         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
20954 2019-02-26  Jeff Law  <law@redhat.com>
20956         PR rtl-optimization/87761
20957         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
20958         detect obviously dead insns and delete them.
20960 2019-02-26  Richard Biener  <rguenther@suse.de>
20962         PR tree-optimization/89505
20963         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
20964         to handle restrict pointed-to vars with multiple subvars
20965         correctly.
20967 2019-02-26  Richard Biener  <rguenther@suse.de>
20969         PR tree-optimization/89489
20970         * tree-parloops.c (create_loop_fn): Copy over last_clique.
20972 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
20974         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
20975         and move around comment.
20976         <BIT_AND_EXPR>: Likewise.
20977         <BIT_NOT_EXPR>: Add specific handling for boolean types.
20979 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
20981         PR target/89474
20982         * config/i386/i386.c (remove_partial_avx_dependency): Call
20983         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
20984         after changing possibly many instructions to use that pseudo.  Fix up
20985         insertion of v4sf_const0 setter at the start of bb.
20987 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
20989         PR c/80409
20990         * doc/extend.texi (Variadic Pointer Args): New section.
20992 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
20993             Martin Sebor  <msebor@gmail.com>
20995         * common.opt (Wattribute-alias): Likewise.
20996         * doc/invoke.texi (Option Summary): List general form of
20997         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
20998         (-Wmissing-attributes): Invert entry, rewrite and correct default.
20999         Add cross-references.
21000         (-Wattribute-alias): Rewrite and correct default.  Mention
21001         considered attributes (same as for -Wmissing-attributes).
21003 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
21005         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
21006         (_mm_cvtpd_ps): Likewise.
21007         (_mm_cvttpd_epi32): Likewise.
21009         PR target/89338
21010         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
21011         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
21013         PR target/89339
21014         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
21016 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
21018         PR target/88530
21019         * common/config/aarch64/aarch64-common.c
21020         (struct aarch64_option_extension): Add is_synthetic.
21021         (all_extensions): Use it.
21022         (TARGET_OPTION_INIT_STRUCT): Define hook.
21023         (struct gcc_targetm_common): Moved to end.
21024         (all_extensions_by_on): New.
21025         (opt_ext_cmp, typedef opt_ext): New.
21026         (aarch64_option_init_struct): New.
21027         (aarch64_contains_opt): New.
21028         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
21029         * config/aarch64/aarch64-option-extensions.def
21030         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
21031         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
21032         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
21033         Set is_synthetic to false.
21034         (crypto): Set is_synthetic to true.
21035         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
21036         SYNTHETIC.
21038 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
21040         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
21041         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
21042         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
21043         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
21044         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
21045         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
21046         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
21047         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
21048         Rename ...
21049         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
21050         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
21051         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
21052         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
21053         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
21054         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
21055         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
21056         vfmlsl_laneq_high_f16): ... To this.
21057         * config/arm/neon.md: Update comments.
21059 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
21061         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
21062         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
21063         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
21064         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
21065         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
21066         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
21067         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
21068         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
21069         Rename ...
21070         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
21071         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
21072         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
21073         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
21074         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
21075         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
21076         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
21077         vfmlslq_laneq_high_f16): ... To this.
21079 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
21081         PR rtl-optimization/86096
21082         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
21083         comparing mw_order values.
21085 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
21087         PR target/89434
21088         * config/arm/arm.md (*subsi3_carryin_const): Use
21089         arm_neg_immediate_operand predicate instead of
21090         arm_not_immediate_operand, "L" constraint instead of "K" and
21091         print it using %n2 instead of %B2.
21092         (*subsi3_carryin_const0): New define_insn.
21093         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
21094         instead of arm_not_operand and "I" constraint instead of "K" and
21095         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
21096         another match_operand and in the condition check that it is negation
21097         of operands[2].
21098         (*subsi3_carryin_compare_const0): New define_ins.
21099         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
21100         *subsi3_carryin_const.
21101         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
21102         split into *subsi3_carryin_compare_const0 if the highpart is zero.
21104         PR target/89438
21105         * config/arm.vfp.md (*negdf2_vfp): Use
21106         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
21107         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
21109 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
21111         PR rtl-optimization/89445
21112         * simplify-rtx.c (simplify_ternary_operation): Don't use
21113         simplify_merge_mask on operands that may trap.
21114         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
21115         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
21116         second operand is CONST_VECTOR, check if any element could be zero.
21117         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
21118         their operands can trap.
21120 2019-02-23  Martin Sebor  <msebor@redhat.com>
21122         * gimple-ssa-sprintf.c (target_strtol): Rename...
21123         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
21124         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
21125         check for range error.
21127 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
21129         PR driver/69471
21130         * opts-common.c (prune_options): Also prune joined switches
21131         with Negative and RejectNegative.
21132         * config/i386/i386.opt (march=): Add Negative(march=).
21133         (mtune=): Add Negative(mtune=).
21134         * doc/options.texi: Document Negative used together with Joined
21135         and RejectNegative.
21137 2019-02-22  Martin Sebor  <msebor@redhat.com>
21139         * doc/extend.texi (Other Builtins): Add
21140         __builtin_is_constant_evaluated.
21142 2019-02-22  Richard Biener  <rguenther@suse.de>
21144         PR tree-optimization/87609
21145         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
21147 2019-02-22  Jeff Law  <law@redhat.com>
21149         PR rtl-optimization/87761
21150         * config/mips/mips.md: Add new combiner pattern to recognize
21151         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
21153 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
21155         PR target/89324
21156         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
21157         destination register in peepholes generating patterns for ADDS/SUBS.
21158         (add<mode>3_compare0,
21159         *addsi3_compare0_uxtw, add<mode>3_compareC,
21160         add<mode>3_compareV_imm, add<mode>3_compareV,
21161         *adds_<optab><ALLX:mode>_<GPI:mode>,
21162         *subs_<optab><ALLX:mode>_<GPI:mode>,
21163         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
21164         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
21165         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
21166         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
21167         sub<mode>3_compare1): Allow stack pointer for source register.
21168         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
21170 2019-02-22  Martin Sebor  <msebor@redhat.com>
21172         PR tree-optimization/88993
21173         PR tree-optimization/88853
21174         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
21175         New helper.
21176         (sprintf_dom_walker::call_info::is_string_func): New helper.
21177         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
21178         for formatted string functions.
21179         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
21181 2019-02-22  Martin Sebor  <msebor@redhat.com>
21183         PR c/89425
21184         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
21185         unreachable subexpressions.
21187 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
21188             Hongtao Liu  <hongtao.liu@intel.com>
21189             Sunil K Pandey  <sunil.k.pandey@intel.com>
21191         PR target/87007
21192         * config/i386/i386-passes.def: Add
21193         pass_remove_partial_avx_dependency.
21194         * config/i386/i386-protos.h
21195         (make_pass_remove_partial_avx_dependency): New.
21196         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
21197         New function.
21198         (pass_data_remove_partial_avx_dependency): New.
21199         (pass_remove_partial_avx_dependency): Likewise.
21200         (make_pass_remove_partial_avx_dependency): Likewise.
21201         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
21202         (*extendsfdf2): Add avx_partial_xmm_update.
21203         (truncdfsf2): Likewise.
21204         (*float<SWI48:mode><MODEF:mode>2): Likewise.
21205         (SF/DF conversion splitters): Disabled for TARGET_AVX.
21207 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
21209         PR middle-end/85598
21210         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
21211         analysis for pass.
21213 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
21215         PR target/89444
21216         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
21217         (PTA_SKYLAKE): Add PTA_AES.
21218         (PTA_GOLDMONT): Likewise.
21220 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
21222         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
21223         instruction if enabled.
21224         (aarch64_override_options): Remove reference to return address key.
21226 2019-02-22  Richard Biener  <rguenther@suse.de>
21228         PR tree-optimization/89440
21229         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
21230         not necessary assert.
21232 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
21234         PR fortran/72741
21235         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
21236         (oacc_replace_fn_attrib_attr): ... this new function.
21237         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
21238         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
21240 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21242         * config/arm/arm-cpus.in (ares): Rename to...
21243         (neoverse-n1): ... This.  Add ares as alias.
21244         * config/arm/arm-tables.opt: Regenerate.
21245         * config/arm/arm-tune.md: Likewise.
21246         * doc/invoke.txt (ARM Options): Document neoverse-n1.
21248 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21250         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
21251         * config/aarch64/aarch64-tune.md: Regenerate.
21252         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
21254 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21256         * config/aarch64/aarch64.c (ares_tunings): Rename to...
21257         (neoversen1_tunings): ... This.
21258         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
21259         (neoverse-n1): New CPU.
21260         * config/aarch64/aarch64-tune.md: Regenerate.
21261         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
21263 2019-02-22  Richard Biener  <rguenther@suse.de>
21265         PR middle-end/87609
21266         * cfghooks.h (dependence_hash): New typedef.
21267         (struct copy_bb_data): New type.
21268         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
21269         (duplicate_block): Likewise.
21270         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
21271         (copy_bbs): Create and pass down copy_bb_data.
21272         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
21273         (rtl_duplicate_bb): Likewise.
21274         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
21275         remap dependence info.
21277 2019-02-22  Richard Biener  <rguenther@suse.de>
21279         PR tree-optimization/87609
21280         * tree-core.h (tree_base): Document special clique values.
21281         * tree-inline.c (remap_dependence_clique): Do not use the
21282         special clique value of one.
21283         (maybe_set_dependence_info): Use clique one.
21284         (clear_dependence_clique): New callback.
21285         (compute_dependence_clique): Clear clique one from all refs
21286         before assigning it (again).
21288 2019-02-21  Martin Sebor  <msebor@redhat.com>
21290         * doc/extend.texi (__clear_cache): Correct signature.
21292 2019-02-21  Ian Lance Taylor  <iant@golang.org>
21294         PR go/89170
21295         * varasm.c (decode_addr_const): Call lookup_constant_def rather
21296         than output_constant_def.
21297         (add_constant_to_table): New static function.
21298         (output_constant_def): Call add_constant_to_table.
21299         (tree_output_constant_def): Likewise.
21301 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
21303         PR c++/89285
21304         * builtins.c (fold_builtin_arith_overflow): If first two args are
21305         INTEGER_CSTs, set intres and ovfres to constants rather than calls
21306         to ifn.
21308 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
21310         PR target/87412
21311         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
21312         error for -mindirect-branch/-mfunction-return with incompatible
21313         -fcf-protection.
21315 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
21317         PR bootstrap/88714
21318         * constraints.md (q): Remove.
21319         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
21320         instead of q.
21322 2019-02-21  Martin Jambor  <mjambor@suse.cz>
21324         PR hsa/89302
21325         * omp-general.c (omp_extract_for_data): Removed a duplicate call
21326         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
21327         (omp_adjust_for_condition): ...here.  Added necessary parameters.
21328         * omp-general.h (omp_adjust_for_condition): Updated declaration.
21329         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
21330         proper values to new parameters of omp_adjust_for_condition.
21332 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
21334         PR middle-end/89412
21335         * expr.c (expand_assignment): If result is a MEM, use change_address
21336         instead of simplify_gen_subreg.
21338 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
21339             David Malcolm  <dmalcolm@redhat.com>
21341         PR middle-end/89091
21342         * fold-const.c (decode_field_reference): Return NULL_TREE if
21343         lang_hooks.types.type_for_size returns NULL.  Check it before
21344         overwriting *exp_.  Use return NULL_TREE instead of return 0.
21346 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
21348         PR middle-end/88074
21349         PR middle-end/89415
21350         * toplev.c (do_compile): Double the emin/emax exponents to workaround
21351         buggy mpc_norm.
21353 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21355         PR target/89397
21356         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
21357         TARGET_SSE in addition to TARGET_SSE_MATH.
21359         (ix86_excess_precision): Ditto.
21360         (ix86_float_exceptions_rounding_supported_p): Ditto.
21361         (use_rsqrt_p): Ditto.
21362         * config/i386/sse.md (rsqrt<mode>2): Ditto.
21364 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
21366         PR c/89410
21367         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
21368         linenum_arith_t when determining if two adjacent line spans are
21369         close enough to merge.
21370         (diagnostic_show_locus): Use linenum_arith_t when iterating over
21371         lines within each line_span.
21373 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21375         PR target/86487
21376         * lra-constraints.c(uses_hard_regs_p): Fix handling of
21377         paradoxical SUBREGS.
21379 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
21381         PR target/88100
21382         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
21383         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
21384         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
21385         range checking it.
21387 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
21389         * config/gcn/gcn.c (print_operand): Fix typo.
21391 2019-02-19  Richard Biener  <rguenther@suse.de>
21393         PR middle-end/88074
21394         * toplev.c (do_compile): Initialize mpfr's exponent range
21395         based on available float modes.
21397 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
21399         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
21400         as long as the epilogue isn't completed.
21402 2019-02-18  Martin Sebor  <msebor@redhat.com>
21404         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
21405         __has_cpp_attribute, and __has_include.
21407 2019-02-18  Martin Sebor  <msebor@redhat.com>
21409         * doc/invoke.texi (-Wreturn-type): Correct and expand.
21411 2019-02-18  Martin Sebor  <msebor@redhat.com>
21413         PR middle-end/89294
21414         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
21415         expression.
21416         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
21418 2019-02-18  Richard Biener  <rguenther@suse.de>
21420         PR tree-optimization/89296
21421         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
21422         of no-warning flag to cases that might emit the bogus warning.
21424 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
21426         PR bootstrap/88714
21427         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
21428         "q" constraint.
21429         * config/arm/vfp.md (*movdi_vfp): Likewise.
21430         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
21431         "q" constraint for operands[0].
21433         PR target/89369
21434         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
21435         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
21436         pattern in a temporary buffer.
21437         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
21438         than 64-operands[2].
21440         PR target/89361
21441         * config/s390/s390.c (s390_indirect_branch_attrvalue,
21442         s390_indirect_branch_settings): Define unconditionally.
21443         (s390_set_current_function): Likewise, but guard the whole body except
21444         the s390_indirect_branch_settings call with
21445         #if S390_USE_TARGET_ATTRIBUTE.
21446         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
21448         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
21449         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
21450         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
21451         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
21452         HOST_WIDE_INT_1U instead of 1ULL.
21453         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
21454         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
21455         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
21456         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
21457         instead of 1UL.
21458         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
21459         instead of 1ul.
21461 2019-02-18  Martin Jambor  <mjambor@suse.cz>
21463         PR tree-optimization/89209
21464         * tree-sra.c (create_access_replacement): New optional parameter
21465         reg_tree.  Use it as a type if non-NULL and access type is not of
21466         a register type.
21467         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
21468         to create_access_replacement.
21469         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
21470         Check lacc is non-NULL before attempting to re-create it on the RHS.
21472 2019-02-18  Martin Liska  <mliska@suse.cz>
21474         PR ipa/89306
21475         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
21476         by default.
21477         (symbol_table::free_edge): Recycle m_summary_id.
21478         * cgraph.h (get_summary_id): New.
21479         (symbol_table::release_symbol): Set m_summary_id to -1
21480         by default.
21481         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
21482         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
21483         function_summary to fast_function_summary.
21484         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
21485         * ipa-pure-const.c (class funct_state_summary_t):
21486         Switch from function_summary to fast_function_summary.
21487         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
21488         (class ipa_ref_opt_summary_t): Switch from function_summary
21489         to fast_function_summary.
21490         * symbol-summary.h (class function_summary_base): New class
21491         that is created from base of former function_summary.
21492         (function_summary_base::unregister_hooks): New.
21493         (class function_summary): Inherit from function_summary_base.
21494         (class call_summary_base): New class
21495         that is created from base of former call_summary.
21496         (class call_summary): Inherit from call_summary_base.
21497         (struct is_same): New.
21498         (class fast_function_summary): New summary class.
21499         (class fast_call_summary): New summary class.
21500         * vec.h (vec_safe_grow_cleared): New function.
21502 2019-02-18  Martin Liska  <mliska@suse.cz>
21504         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
21505         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
21506         * doc/tm.texi: Document new target hook.
21507         * doc/tm.texi.in: Likewise.
21508         * target.def: Add new target macro.
21509         * gcc.c (find_fortran_preinclude_file): Do not search multilib
21510         suffixes.
21512 2019-02-17  Alan Modra  <amodra@gmail.com>
21514         PR target/89271
21515         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
21516         output reg on add insn.
21517         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
21519 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
21521         PR target/89372
21522         * config/i386/sse.md (ssedoublemode): Remove V4HI.
21523         (PMULHRSW): Likewise.
21524         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
21525         TARGET_AVX2.
21526         (ssse3_pmulhrswv4hi3): New expander.
21528 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
21530         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
21531         MMX.  Add isa attribute.
21533 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
21535         PR rtl-optimization/66152
21536         * builtins.h (c_readstr): Declare.
21537         * builtins.c (c_readstr): Remove forward declaration.  Add
21538         null_terminated_p argument, if false, read all bytes from the
21539         string instead of stopping after '\0'.
21540         * expr.c (string_cst_read_str): New function.
21541         (store_expr): Use string_cst_read_str instead of
21542         builtin_strncpy_read_str.  Try to store by pieces the whole
21543         exp_len first, and only if that fails, split it up into
21544         store by pieces followed by clear_storage.  Formatting fix.
21546         * config/i386/i386.md (*movqi_internal): Remove static from
21547         buf variable.  Use output_asm_insn (buf, operands); return "";
21548         instead of return buf;.
21549         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
21550         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
21551         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
21553 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
21555         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
21556         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
21557         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
21558         (CC1_SPEC): Likewise.
21559         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
21561 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
21563         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
21564         the base address on 64-bit strict-alignment platforms.
21566 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
21568         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
21570 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21572         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
21574 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
21576         PR rtl-optimization/88308
21577         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
21578         on copied instruction.
21580 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
21582         * final.c (insn_current_reference_address): Replace test on JUMP_P
21583         with test on jump_to_label_p.
21584         * config/visium/visium-passes.def: New file.
21585         * config/visium/t-visium (PASSES_EXTRA): Define.
21586         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
21587         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
21588         (TRAMPOLINE_ALIGNMENT): Define.
21589         * config/visium/visium.c (visium_option_override): Do not register
21590         the machine-specific reorg pass here.
21591         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
21592         for the GR6.
21593         (output_branch): Adjust threshold for long branch instruction.
21594         * config/visium/visium.md (cpu): Move around.
21595         (length): Adjust for the GR6.
21597 2019-02-15  Richard Biener  <rguenther@suse.de>
21598             Jakub Jelinek  <jakub@redhat.com>
21600         PR tree-optimization/89278
21601         * tree-loop-distribution.c: Include tree-eh.h.
21602         (generate_memset_builtin, generate_memcpy_builtin): Call
21603         rewrite_to_non_trapping_overflow on builtin->size before passing it
21604         to force_gimple_operand_gsi.
21606 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
21608         PR other/89342
21609         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
21610         optimize_debug.
21611         * opth-gen.awk: Likewise.
21613 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21615         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
21616         Enable MMX, SSE and SSE2 by default.
21617         * config/i386/i386.c (ix86_option_override_internal): Do not
21618         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
21620 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
21622         PR rtl-optimization/89354
21623         * combine.c (make_extraction): Punt if extraction_mode is narrower
21624         than len bits.
21626 2019-02-14  Maya Rashish  <coypu@sdf.org>
21628         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
21629         * config/netbsd-d.c: New file.
21630         * config/t-netbsd: Add netbsd-d.o
21632 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
21634         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
21635         affects_type_identity to true for aarch64_vector_pcs.
21636         (aarch64_comp_type_attributes): New function.
21637         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
21639 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
21641         PR target/88850
21642         * config/arm/iterators.md (ANY64): Add V4HF.
21644 2019-02-14  Martin Liska  <mliska@suse.cz>
21646         PR rtl-optimization/89242
21647         * dce.c (delete_unmarked_insns): Call free_dominance_info we
21648         process a transformation.
21650 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
21652         PR tree-optimization/89314
21653         * fold-const.c (fold_binary_loc): Cast strlen argument to
21654         const char * before dereferencing it.  Formatting fixes.
21656         PR middle-end/89284
21657         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
21659 2019-02-13  Ian Lance Taylor  <iant@golang.org>
21661         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
21662         and set current index for other optimizations.
21664 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21666         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
21667         nonimmediate_operand as operand 2 predicate.
21668         (vec_set<VF2_512_256:mode>_0): Ditto.
21669         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
21670         (*vec_concatv2si): Remove alternative 2.
21671         (*vec_concatv4si_0): Use vm constraint for alternative 0.
21672         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
21673         (vec_concatv2di): Split alternatives 4,5,6 to ...
21674         (*vec_concatv2di_0) ... new pattern.
21676 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
21678         PR target/89190
21679         * config/arm/arm.c (ldm_stm_operation_p) Set
21680         addr_reg_in_reglist correctly for first register.
21681         (load_multiple_sequence): Remove dead base check.
21682         (gen_ldm_seq): Correctly set write_back for Thumb-1.
21684 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
21686         PR target/88847
21687         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
21688         Expose as @aarch64_pred_mov.
21689         * config/aarch64/aarch64.c (aarch64_classify_address):
21690         Use expand_insn which legitimizes operands.
21692 2019-02-13  Martin Liska  <mliska@suse.cz>
21694         * builtins.h (expand_builtin_with_bounds): Remove declaration.
21695         * calls.c (struct arg_data): Remove special_slot, pointer_arg
21696         and pointer_offset fields.
21697         (initialize_argument_information): Remove usage of dead
21698         fields.
21699         * cgraph.h (struct cgraph_thunk_info): Remove
21700         add_pointer_bounds_args.
21701         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
21702         fields.
21703         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
21704         fields.
21705         * config/i386/i386.c (ix86_function_arg_advance): Remove
21706         unrelated comment.
21707         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
21708         (def_builtin): Remove usage of dead fields.
21709         (ix86_add_new_builtins): Likewise.
21710         * ipa-fnsummary.c (compute_fn_summary): Likewise.
21711         * ipa-icf.c (sem_function::equals_wpa): Likewise.
21712         (sem_function::init): Likewise.
21713         (sem_variable::merge): Likewise.
21714         * ipa-visibility.c (function_and_variable_visibility): Likewise.
21715         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
21716         * lto-cgraph.c (lto_output_node): Likewise.
21717         (lto_output_varpool_node): Likewise.
21718         (input_node): Likewise.
21719         (input_varpool_node): Likewise.
21720         * lto-streamer-out.c (lto_output): Likewise.
21721         * tree-inline.c (expand_call_inline): Remove usage of
21722         assign_stmts.
21723         * tree-inline.h (struct copy_body_data): Likewise.
21724         * varpool.c (varpool_node::dump): Likewise.
21726 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
21728         PR middle-end/89303
21729         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
21730         into pt->vars_contains_escaped_heap instead of setting
21731         pt->vars_contains_escaped_heap to it.
21733         PR middle-end/89281
21734         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
21735         INTVAL (size), compare it to GET_MODE_MASK instead of
21736         1 << GET_MODE_BITSIZE.
21738         PR target/89290
21739         * config/i386/predicates.md (x86_64_immediate_operand): Allow
21740         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
21741         -mcmodel=large.
21743 2019-02-13  Martin Liska  <mliska@suse.cz>
21745         PR lto/88858
21746         * cfgrtl.c (remove_barriers_from_footer): New function.
21747         (try_redirect_by_replacing_jump): Use it.
21748         (cfg_layout_redirect_edge_and_branch): Likewise.
21750 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
21752         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
21753         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
21754         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
21755         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
21756         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
21757         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
21758         New BU_CRYPTO_2.
21759         * config/rs6000/rs6000.c (builtin_function_type)
21760         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
21761         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
21762         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
21763         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
21764         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
21766 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
21768         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
21769         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
21771 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
21773         PR target/89229
21774         * config/i386/i386.md (*movoi_internal_avx): Revert revision
21775         268678 and revision 268657.
21776         (*movti_internal): Likewise.
21778 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
21780         PR target/89233
21781         * config/s390/s390.c (s390_decompose_address): Update comment.
21782         (s390_check_qrst_address): Reject invalid address forms after
21783         LRA.
21785 2019-02-12  Martin Liska  <mliska@suse.cz>
21787         PR lto/88876
21788         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
21789         we need default values of funct_state for a function that
21790         is not optimized.
21792 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
21794         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
21795         the object to pick the size of stores on strict-alignment platforms.
21797         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
21798         (*movdi_insn_sp32): Likewise.
21799         (*movdi_insn_sp64): Likewise.
21801 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
21803         PR lto/88677
21804         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
21805         types that needs constructiong.
21806         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
21808 2019-02-12  Richard Biener  <rguenther@suse.de>
21810         PR tree-optimization/89253
21811         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
21812         duplicate the loop.
21814 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
21816         PR lto/88147
21817         * input.c (selftest::test_line_offset_overflow): New selftest.
21818         (selftest::input_c_tests): Call it.
21820 2019-02-11  Martin Sebor  <msebor@redhat.com>
21822         PR tree-optimization/88771
21823         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
21824         when -Wstringop-overflow is set.
21825         (builtin_memref::builtin_memref): Adjust excessive upper bound
21826         only when lower bound is not excessive.
21827         (maybe_diag_overlap): Detect and diagnose excessive bounds via
21828         -Wstringop-ovefflow.
21829         (maybe_diag_offset_bounds): Rename...
21830         (maybe_diag_access_bounds): ...to this.
21831         (check_bounds_or_overlap): Adjust for name change above.
21833 2019-02-11  Martin Sebor  <msebor@redhat.com>
21835         PR c++/87996
21836         * builtins.c (max_object_size): Move from here...
21837         * builtins.h (max_object_size): ...and here...
21838         * tree.c (max_object_size): ...to here...
21839         * tree.h (max_object_size): ...and here.
21841 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
21843         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
21844         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
21845         for correct semantics.
21847 2019-02-11  Alan Modra  <amodra@gmail.com>
21849         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
21850         -mlongcall and -mpltseq.
21851         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
21852         (RS/6000 and PowerPC Options <-mpltseq>): Document.
21853         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
21854         * config/rs6000/sysv4.opt (mpltseq): New option.
21855         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
21856         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
21857         support is lacking.  Don't allow -mpltseq with -mbss-plt.
21858         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
21859         -mpltseq given for ELFv1.
21860         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
21861         Only use UNSPEC_PLTSEQ for inline PLT calls.
21862         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
21863         use UNSPEC_PLTSEQ for inline PLT calls.
21864         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
21865         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
21866         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
21867         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
21868         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
21869         (pltseq_mtctr_<mode>): Likewise.
21871 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21873         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
21874         Solaris ld.
21875         * configure: Regenerate.
21877 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
21879         PR bootstrap/88714
21880         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
21881         instead of r.
21883 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
21885         * function.c (assign_parm_setup_block): Use the stored
21886         size, not the passed size, when allocating stack-space,
21887         also for a parameter with alignment larger than
21888         MAX_SUPPORTED_STACK_ALIGNMENT.
21890 2019-02-11  Martin Liska  <mliska@suse.cz>
21892         PR ipa/89009
21893         * ipa-cp.c (build_toporder_info): Remove usage of a param.
21894         * ipa-inline.c (inline_small_functions): Likewise.
21895         * ipa-pure-const.c (propagate_pure_const): Likewise.
21896         (propagate_nothrow): Likewise.
21897         * ipa-reference.c (propagate): Likewise.
21898         * ipa-utils.c (struct searchc_env): Remove unused field.
21899         (searchc): Always search across AVAIL_INTERPOSABLE.
21900         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
21901         the only called IPA pure const can properly not propagate
21902         across interposable boundary.
21903         * ipa-utils.h (ipa_reduced_postorder): Remove param.
21905 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
21907         * config/nds32/nds32.md (call_internal, call_value_internal,
21908         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
21910 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
21912         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
21913         typo.
21915 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
21917         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
21918         in comments
21920 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
21922         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
21924 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
21926         PR tree-optimization/89268
21927         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
21928         if preds is non-NULL.
21930 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
21932         PR lto/89272
21933         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
21934         polymorphic types.
21936 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
21938         * config/nds32/nds32.md (trap): New pattern.
21940 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
21942         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
21943         dwarf span.
21945 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
21947         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
21948         to split POST_INC.
21950 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
21952         * ipa-visibility.c (localize_node): Also do not localize
21953         LDPR_PREVAILING_DEF_IRONLY_EXP.
21955 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
21957         PR lto/87957
21958         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
21959         instead of type_with_linkage.
21961 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
21963         PR ipa/88755
21964         * params.def (uninlined-function-insns, uninlined-function-time,
21965         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
21966         bound so we don't get overflows.
21968 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
21970         * config/rs6000/rs6000-string.c (expand_compare_loop,
21971         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
21972         memcmp/strncmp.
21974 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
21976         PR middle-end/89246
21977         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21978         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
21979         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
21981 2019-02-09  Alan Modra  <amodra@gmail.com>
21983         PR target/88343
21984         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
21985         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
21986         setup.
21988 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
21990         PR middle-end/88560
21991         * lra-constraints.c (process_alt_operands): Don't increase reject
21992         for memory when offset memory is required.
21994 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
21996         * config/s390/vector.md: Implement vector copysign.
21998 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
22000         * expr.c (expand_constructor): Correct indentations.
22002 2019-02-08  Richard Biener  <rguenther@suse.de>
22004         PR tree-optimization/89247
22005         * tree-if-conv.c: Include tree-cfgcleanup.h.
22006         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
22007         (tree_if_conversion): Pass through predicate vector.
22008         (pass_if_conversion::execute): Do CFG cleanup and SSA update
22009         inline, see if any if-converted loops we refrece in
22010         LOOP_VECTORIZED calls vanished and fixup.
22011         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
22013 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
22015         * config/s390/constraints.md (jdd): New constraint.
22017 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
22019         PR target/89229
22020         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
22021         upper 16 vector registers without TARGET_AVX512VL.
22022         (*movti_internal): Likewise.
22024 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
22026         PR rtl-optimization/89234
22027         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
22028         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
22029         (copy_reg_eh_region_note_backward): Likewise.
22031 2019-02-08  Richard Biener  <rguenther@suse.de>
22033         PR middle-end/89223
22034         * tree-data-ref.c (initialize_matrix_A): Fail if constant
22035         doesn't fit in HWI.
22036         (analyze_subscript_affine_affine): Handle failure from
22037         initialize_matrix_A.
22039 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
22041         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
22042         cfun everywhere.
22044 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
22046         PR tree-optimization/86637
22047         PR tree-optimization/89235
22048         * tree-vect-loop.c (optimize_mask_stores): Add an
22049         auto_purge_vect_location sentinel to ensure that vect_location is
22050         purged on exit.
22051         * tree-vectorizer.c
22052         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
22053         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
22054         to ensure that vect_location is purged on exit.
22055         (pass_slp_vectorize::execute): Likewise, replacing the manual
22056         reset.
22057         * tree-vectorizer.h (class auto_purge_vect_location): New class.
22059 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22061         * config/aarch64/iterators.md (max_opp): New code_attr.
22062         (USMAX): New code iterator.
22063         * config/aarch64/predicates.md (aarch64_smin): New predicate.
22064         (aarch64_smax): Likewise.
22065         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
22066         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
22067         MINUS (MAX MIN).
22069 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
22071         PR target/89229
22072         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
22073         for TARGET_AVX512VL.
22074         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
22076 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
22078         * config/s390/s390-builtin-types.def: Add new types.
22079         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
22080         (s390_vec_xlw4): Make the memory operand into a const pointer.
22081         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
22082         float.
22083         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
22084         a new vector type with the alignment of the scalar memory operand.
22086 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
22087             Jakub Jelinek  <jakub@redhat.com>
22089         PR bootstrap/88714
22090         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
22091         arm_count_ldrdstrd_insns): New declarations.
22092         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
22093         MINUS.
22094         (valid_operands_ldrd_strd): New function.
22095         (arm_count_ldrdstrd_insns): New function.
22096         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
22097         sets instead of single DImode set and define new insns to match this.
22099 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
22101         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
22102         Make it a C initializer.
22104 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
22106         PR/target 88850
22107         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
22109 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22111         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
22112         Use neon_dot<q> for type.
22113         (neon_<sup>dot_lane<vsi2qi>): Likewise.
22115 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22117         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
22118         Use neon_dot<q> for type.
22119         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
22120         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
22122 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
22124         PR rtl-optimization/89225
22125         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
22126         sizes check.
22128 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
22130         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
22131         after restoring registers saved to allocate the frame on Windows.
22133 2019-02-06  Richard Biener  <rguenther@suse.de>
22135         PR tree-optimization/89182
22136         * graphite.h (cached_scalar_evolution_in_region): Declare.
22137         * graphite.c (struct seir_cache_key): New.
22138         (struct sese_scev_hash): Likewise.
22139         (seir_cache): New global.
22140         (cached_scalar_evolution_in_region): New function.
22141         (graphite_transform_loops): Allocate and release seir_cache.
22142         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
22143         cached_scalar_evolution_in_region.
22144         * graphite-scop-detection.c (scop_detection::can_represent_loop):
22145         Simplify.
22146         (scop_detection::graphite_can_represent_expr: Use
22147         cached_scalar_evolution_in_region.
22148         (scop_detection::stmt_simple_for_scop_p): Likewise.
22149         (find_params_in_bb): Likewise.
22150         (gather_bbs::before_dom_children): Likewise.
22151         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
22152         (add_loop_constraints): Likewise.
22154 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
22156         PR middle-end/89210
22157         * fold-const-call.c (fold_const_vec_convert): Pass true as last
22158         operand to new_unary_operation only if both element types are integral
22159         and it isn't a widening conversion.  Return NULL_TREE if
22160         new_unary_operation failed.
22162 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
22164         PR target/88856
22165         * config/s390/s390.md: Remove load and test FP splitter.
22167 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
22169         PR target/89112
22170         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
22171         expand_compare_loop, expand_block_compare_gpr,
22172         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
22173         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
22174         #include "profile-count.h" and "predict.h" for types and functions
22175         needed to work with REG_BR_PROB notes.
22177 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
22179         PR target/89112
22180         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
22181         for the long branch case.
22183 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
22185         PR target/89188
22186         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
22187         can throw, non-call exceptions are enabled and we can't delete
22188         dead exceptions or alter cfg.  Set must_clean if
22189         delete_insn_and_edges returns true, don't set it blindly for calls.
22190         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
22192         PR rtl-optimization/89195
22193         * combine.c (make_extraction): For MEMs, don't extract bytes outside
22194         of the original MEM.
22196 2019-02-05  Martin Liska  <mliska@suse.cz>
22198         PR gcov-profile/89000
22199         * gcov.c (function_summary): Remove argument.
22200         (file_summary): New function.
22201         (print_usage): Replace tabs with spaces.
22202         (generate_results): Use new function file_summary.
22204 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
22206         PR target/89186
22207         * optabs.c (prepare_cmp_insn): Pass x and y to
22208         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
22210 2019-02-05  Richard Biener  <rguenther@suse.de>
22212         PR middle-end/89150
22213         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
22214         (struct bitmap_element): Drop chain_prev so we properly recurse on
22215         the prev member, supporting tree views.
22216         (struct bitmap_head): GTY skip the obstack member.
22218 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
22220         PR c/88698
22221         * doc/extend.texi (Vector Extensions): Add an example of using vector
22222         types together with x86 intrinsics.
22224 2019-02-04  Alan Modra  <amodra@gmail.com>
22226         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
22227         str[] size to 160, and comment.
22229 2019-02-04  Alan Modra  <amodra@gmail.com>
22231         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
22232         (rs6000_pltseq_template): Guard output of TLS markers with
22233         TARGET_TLS_MARKERS.
22234         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
22235         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
22236         to use inline PLT sequences.
22237         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
22238         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
22239         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
22241 2019-02-04  Martin Liska  <mliska@suse.cz>
22243         PR ipa/88985
22244         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
22245         out when ipa_fn_summaries does not contain entry for callee.
22247 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
22249         * config/sparc/sparc.h: Remove superfluous blank lines.
22250         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
22251         (got_register_rtx): ...this.
22252         (sparc_got): Adjust to above renaming.
22253         (sparc_tls_got): Likewise.
22254         (sparc_delegitimize_address): Likewise.
22255         (sparc_output_mi_thunk): Likewise.
22256         (sparc_init_pic_reg): Likewise.
22257         (save_local_or_in_reg_p): Fix test on the GOT register.
22258         (USE_HIDDEN_LINKONCE): Move around.
22259         (get_pc_thunk_name): Likewise.
22260         (gen_load_pcrel_sym): Likewise.
22261         (load_got_register): Likewise.
22263 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
22265         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
22266         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
22268 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22270         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
22271         into consideration.
22273 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22275         * config.gcc (with_nds32_lib, glibc):
22276         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
22277         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
22278         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
22280 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22282         PR target/89071
22283         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
22284         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
22285         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
22286         (*rcpsf2_sse): Ditto.
22287         (*rsqrtsf2_sse): Ditto.
22288         (sse4_1_round<mode<2): Ditto.
22290 2019-02-03  Richard Biener  <rguenther@suse.de>
22292         PR debug/87295
22293         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
22294         orig.
22296 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
22298         PR middle-end/87887
22299         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22300         Punt with warning on aggregate return or argument types.  Ignore
22301         type/mode checking for uniform arguments.
22303 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
22305         * combine.c (try_combine): Do not print "Can't combine" messages unless
22306         printing failed combination attempts.
22308 2019-02-01  Martin Jambor  <mjambor@suse.cz>
22310         PR hsa/87863
22311         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
22312         segment and global segment variables before making them static.
22314 2019-02-01  Martin Jambor  <mjambor@suse.cz>
22316         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
22317         missed optimization dump with dump_enabled_p.
22319 2019-02-01  Richard Biener  <rguenther@suse.de>
22321         PR middle-end/88597
22322         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
22323         the instantiate cache.
22324         (instantiate_scev_binary): Elide second operand procesing
22325         if equal to the first.
22326         * tree-chrec.c (chrec_contains_symbols): Add visited set.
22327         (chrec_contains_undetermined): Likewise.
22328         (tree_contains_chrecs): Likewise.
22330 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
22332         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
22334 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
22336         PR tree-optimization/89143
22337         * wide-int-range.h (wide_int_range_absu): Declare.
22338         * wide-int-range.cc (wide_int_range_absu): New function.
22339         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
22341         PR tree-optimization/88107
22342         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
22343         instead of assertion that eh_region_outermost is non-NULL, if it
22344         is NULL, set *ALL to true and return NULL.
22345         (move_sese_region_to_fn): Adjust caller, if all is set, call
22346         duplicate_eh_regions with NULL region.
22348 2019-02-01  Richard Biener  <rguenth@suse.de>
22350         PR rtl-optimization/88593
22351         * mode-switching.c (optimize_mode_switching): Free dominators before
22352         calling cleanup_cfg.
22354 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
22356         PR tree-optimization/88932
22357         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
22359 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
22361         PR middle-end/89137
22362         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
22363         bogus clang warning.
22365 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22367         PR target/89071
22368         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
22369         alternative to avoid partial SSE register stall for TARGET_AVX.
22370         (truncdfsf2): Ditto.
22371         (sse4_1_round<mode>2): Ditto.
22373 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
22375         PR tree-optimization/89008
22376         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
22377         process anything of the form X * 0.
22379 2019-01-31  Richard Biener  <rguenther@suse.de>
22381         PR tree-optimization/89135
22382         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
22383         with abnormal preds.
22385 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
22387         PR sanitizer/89124
22388         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
22389         always_inline callees into no_sanitize_address callers.
22391 2019-01-31  Richard Biener  <rguenther@suse.de>
22393         PR rtl-optimization/89115
22394         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
22396 2019-01-30  Martin Sebor  <msebor@redhat.com>
22398         PR other/89106
22399         * doc/extend.texi (cast to a union): Correct and expand.
22401 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
22403         PR rtl-optimization/87246
22404         * lra-constraints.c (simplify_operand_subreg): Reload memory
22405         in subreg if the address became invalid.
22407 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
22409         PR target/87064
22410         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
22411         Disable for little-endian.
22413 2019-01-30  Richard Biener  <rguenther@suse.de>
22415         PR rtl-optimization/89115
22416         * opts.c (default_options_optimization): Reduce
22417         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
22418         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
22419         to the default.
22421 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
22423         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
22424         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
22425         type of vector element when vec_extract is implemented by direct
22426         move.
22428 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
22430         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
22432 2019-01-30  Richard Biener  <rguenther@suse.de>
22434         PR tree-optimization/89111
22435         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
22436         canonicalization to appropriately sized access types.
22438 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
22440         PR c++/89105
22441         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
22442         for arguments to functions that are TU-local and shouldn't be
22443         referenced by assembly.
22445 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
22447         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
22448         after '='.
22450 2019-01-29  Martin Sebor  <msebor@redhat.com>
22452         PR c/88956
22453         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
22455 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
22457         PR c++/66676
22458         PR ipa/89104
22459         * omp-simd-clone.c (simd_clone_clauses_extract)
22460         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
22461         OMP_CLAUSE_ALIGNED_ALIGNMENT.
22463 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
22465         * config.gcc: Force .init_array for ARC.
22467 2019-01-29  Richard Biener  <rguenther@suse.de>
22469         PR debug/87295
22470         * dwarf2out.c (collect_skeleton_dies): New helper.
22471         (copy_decls_for_unworthy_types): Call it.
22472         (build_abbrev_table): Assert we do not try to replace
22473         DW_AT_signature refs with local refs.
22475 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
22477         PR middle-end/89002
22478         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
22479         for lastprivate/linear IV, push gimplify context around gimplify_assign
22480         and, if it needed any temporaries, pop it into a gimple bind around the
22481         sequence.
22483 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22485         * common.opt (-Wattribute-alias): Remove "no-" from name.
22486         Make -Wattribute-alias command line option and
22487         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
22489 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
22491         PR target/89073
22492         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
22493         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
22494         x86 ISA options.
22495         (bmi2): Add missing @opindex.
22496         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
22497         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
22498         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
22499         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
22500         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
22501         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
22502         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
22503         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
22504         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
22505         xsavec, xsaveopt and xsaves options.
22507 2019-01-28  Richard Biener  <rguenther@suse.de>
22509         PR debug/89076
22510         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
22511         support removal.
22513 2019-01-28  Richard Biener  <rguenther@suse.de>
22515         PR tree-optimization/88739
22516         * tree-cfg.c (verify_types_in_gimple_reference): Verify
22517         BIT_FIELD_REFs only are applied to mode-precision operands
22518         when they are integral.
22519         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
22520         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
22521         BIT_FIELD_REFs of non-mode-precision integral operands.
22523 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
22525         PR target/87214
22526         * config/i386/sse.md
22527         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
22528         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
22529         first constants in pairs are multiples of 2.  Formatting fixes.
22530         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
22531         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
22532         first constants in each quadruple are multiples of 4.  Formatting fixes.
22534 2019-01-26  Martin Jambor  <mjambor@suse.cz>
22536         PR ipa/88933
22537         * tree-inline.c: Include tree-cfgcleanup.h.
22538         (delete_unreachable_blocks_update_callgraph): Move...
22539         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
22540         ...here, make externally visible, make second argument bool, adjust
22541         all callers.
22542         * tree-cfgcleanup.c: Include cgraph.h.
22543         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
22544         Declare.
22545         * ipa-prop.c: Include tree-cfgcleanup.h.
22546         (ipcp_transform_function): Call
22547         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
22549 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
22551         PR rtl-optimization/88846
22552         * ira.c (process_set_for_memref_referenced_p): New.
22553         (memref_referenced_p): Add new param.  Use
22554         process_set_for_memref_referenced_p.  Add new switch cases.
22555         (memref_used_between_p): Pass new arg to memref_referenced_p.
22557 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
22559         PR target/88469
22560         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
22561         argument ABI_BREAK.  Set to true if the calculated alignment has
22562         changed in gcc-9.  Check bit-fields for their base type alignment.
22563         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
22564         (aarch64_function_arg_boundary): Likewise.
22565         (aarch64_gimplify_va_arg_expr): Likewise.
22567 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
22569         PR middle-end/89037
22570         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
22571         instead of accessing TREE_INT_CST_ELT directly.
22573 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
22575         * doc/sourcebuild.texi (Environment attributes): Add fenv and
22576         fenv_exceptions description.
22578 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
22580         PR rtl-optimization/87763
22581         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
22582         Allow SUBREG when matching CC_NZmode compare.
22584 2019-01-25  Richard Biener  <rguenther@suse.de>
22586         PR tree-optimization/89049
22587         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
22588         Look at the pattern stmt to determine if the stmt is vectorized.
22590 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
22592         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
22593         (pred_mov<mode>): Handle all-register forms using both a new
22594         alternative and a split.
22596 2019-01-25  Richard Biener  <rguenther@suse.de>
22598         PR tree-optimization/86865
22599         * graphite-scop-detection.c (scop_detection::can_represent_loop):
22600         Reject non-do-while loops.
22602 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
22604         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
22605         * config/rs6000/constraints.md (Q constraint): Use REG_P.
22606         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
22607         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22608         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
22609         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22610         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
22611         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
22612         vlogical_operand, gpc_reg_operand, int_reg_operand,
22613         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
22614         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
22615         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
22616         (save_world_operation, restore_world_operation, lmw_operation,
22617         stmw_operation): Use MEM_P and REG_P.
22618         (tie_operand): Use MEM_P.
22619         (vrsave_operation, crsave_operation): Use REG_P.
22620         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
22621         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
22622         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
22623         (call_operand): Use HARD_REGISTER_P.
22624         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
22625         Use CONST_INT_P.
22626         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
22627         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
22628         quad_aligned_load_p, replace_swapped_aligned_store,
22629         recombine_lvx_pattern, replace_swapped_aligned_load,
22630         recombine_stvx_pattern): Use MEM_P.
22631         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
22632         Use MEM_P and SYMBOL_REF_P.
22633         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
22634         (insn_is_swappable_p): Use REG_P and MEM_P.
22635         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
22636         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
22637         Use CONST_INT_P.
22638         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
22639         Use CONST_DOUBLE_P.
22640         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
22641         CONST_WIDE_INT_P.
22642         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
22643         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
22644         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
22645         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
22646         reg_or_subregno:
22647         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22648         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
22649         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
22650         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
22651         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
22652         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
22653         rs6000_split_logical_di): Use CONST_INT_P.
22654         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
22655         REG_P and SYMBOL_REF_P.
22656         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
22657         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
22658         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
22659         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
22660         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
22661         (small_data_operand, print_operand_address): Use CONST_INT_P and
22662         SYMBOL_REF_P.
22663         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
22664         (rs6000_init_hard_regno_mode_ok, direct_move_p):
22665         Use HARD_REGISTER_NUM_P.
22666         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
22667         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
22668         SUBREG_P and SYMBOL_REF_P.
22669         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
22670         and HARD_REGISTER_NUM_P.
22671         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
22672         reg_or_subregno.
22673         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
22674         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
22675         MEM_P and REG_P.
22676         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
22677         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
22678         find_addr_reg): Use REG_P.
22679         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
22680         (rs6000_emit_le_vsx_move): Use SUBREG_P.
22681         (offsettable_ok_by_alignment, constant_pool_expr_p,
22682         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
22683         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
22684         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
22685         rs6000_assemble_integer, create_TOC_reference,
22686         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
22687         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
22688         (rs6000_split_vec_extract_var): Use reg_or_subregno.
22689         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22690         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22691         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22692         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22693         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
22694         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
22695         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
22696         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
22697         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
22698         and cbranch<mode>4): Use CONST_INT_P.
22699         (multiple define_splits): Use REG_P and SUBREG_P.
22700         (define_expands call, call_value): Use MEM_P.
22701         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
22702         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
22703         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
22704         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
22705         and HARD_REGISTER_NUM_P.
22706         (multiple define_splits): Use HARD_REGISTER_NUM_P.
22708 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22710         PR rtl-optimization/88948
22711         * rtl.h (prepare_copy_insn): New prototype.
22712         * gcse.c (prepare_copy_insn): New function, split out from
22713         process_insert_insn.
22714         (process_insert_insn): Use prepare_copy_insn.
22715         * store-motion.c (replace_store_insn): Use prepare_copy_insn
22716         instead of gen_move_insn.
22718 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
22720         PR debug/89006
22721         * config/i386/i386.c (ix86_pic_register_p): Return true for
22722         UNSPEC_SET_GOT too.
22724         PR tree-optimization/88964
22725         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
22726         punt if HONOR_SNANS (chrec).
22728         PR middle-end/89015
22729         * tree-nested.c (convert_nonlocal_reference_stmt,
22730         convert_local_reference_stmt, convert_tramp_reference_stmt,
22731         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
22732         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
22733         or GIMPLE_OMP_TASK.
22735         PR tree-optimization/89027
22736         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
22737         for "omp simd array" variables.
22739 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
22741         PR target/88469
22742         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
22743         force the alignment of m_val.
22745 2019-01-24  Richard Biener  <rguenther@suse.de>
22747         PR lto/87187
22748         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
22749         When in "legacy" debug mode make sure to reset self-origins.
22751 2019-01-24  Martin Liska  <mliska@suse.cz>
22753         PR gcov-profile/88994
22754         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
22755         result will be always smaller or equal to the original.
22756         * gcov.c (mangle_name): Fix else branch where we should
22757         also copy to PTR and shift the pointer.
22759 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
22761         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
22762         * vr-values.c (find_case_label_ranges): Fix a comment typo.
22764 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
22766         * common/config/i386/i386-common.c
22767         (OPTION_MASK_ISA_ENQCMD_SET,
22768         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
22769         (ix86_handle_option): Handle -menqcmd.
22770         * config.gcc (enqcmdintrin.h): New header file.
22771         * config/i386/cpuid.h (bit_ENQCMD): New bit.
22772         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22773         -menqcmd.
22774         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
22775         function type.
22776         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
22777         __builtin_ia32_enqcmds): New builtins.
22778         * config/i386/i386-c.c (__ENQCMD__): New macro.
22779         * config/i386/i386-option.c (ix86_target_string): Add
22780         -menqcmd.
22781         (ix86_valid_target_attribute_inner_p): Likewise.
22782         * config/i386/i386-expand.c
22783         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
22784         IX86_BUILTIN_ENQCMDS.
22785         * config/i386/i386.h (TARGET_ENQCMD): New.
22786         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
22787         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
22788         (movdir64b_<mode>): Parameterize to enable share expansion code
22789         with ENQCMD in function ix86_expand_builtin.
22790         * config/i386/i386.opt: Add -menqcmd.
22791         * config/i386/immintrin.h: Include enqcmdintrin.h.
22792         * config/i386/enqcmdintrin.h: New intrinsic file.
22793         * doc/invoke.texi: Add -menqcmd.
22795 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
22796             Steve Ellcey  <sellcey@marvell.com>
22798         PR target/85711
22799         * recog.c (address_operand): Return false on wrong mode for address.
22800         (constrain_operands): Check for mode with 'p' constraint.
22802 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22804         PR target/88998
22805         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
22806         Disparage MMX alternative.
22807         (sse2_cvtpd2pi): Ditto.
22808         (sse2_cvttpd2pi): Ditto.
22810 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
22812         PR driver/89014
22813         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
22814         use-after-free of the result of
22815         aarch64_get_extension_string_for_isa_flags.
22817 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
22819         PR c/44715
22820         * doc/extend.texi: Document break and continue behavior in
22821         statement expressions.
22823 2019-01-23  Richard Biener  <rguenther@suse.de>
22825         PR tree-optimization/89008
22826         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
22827         not leave another stray operand.
22829 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
22831         * BASE-VER: Bump to 9.0.1.
22833 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
22835         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
22836         thunk that returns by reference, use the type of the return object
22837         of the thunk instead of that of the alias to build the dereference.
22839 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
22841         * config/arc/atomic.md: Add operand to DMB instruction.
22843 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
22845         PR tree-optimization/88964
22846         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
22847         build_zero_cst instead of build_int_cst.  Return false for loop
22848         invariants which honor signed zeros.
22850 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
22852         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
22854 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
22856         PR target/88965
22857         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
22858         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
22859         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
22861         PR middle-end/88968
22862         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
22863         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
22865         PR target/87064
22866         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
22867         Disable for little endian.
22869 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
22871         PR target/88469
22872         * config/arm/arm.c (arm_needs_double_word_align): Check
22873         DECL_BIT_FIELD_TYPE.
22875 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
22876             H.J. Lu  <hongjiu.lu@intel.com>
22878         PR target/88909
22879         * config/i386/i386-builtin.def: Add mask2 to all builtin
22880         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
22881         SPECIAL_ARGS.
22882         * config/i386/i386.c (BDESC): Add mask2 to the definition.
22883         (BDESC_FIRST): Likewise.
22884         (define_builtin): Add an argument for mask2.  Updated to handle
22885         both ix86_isa_flags and ix86_isa_flags2.
22886         (define_builtin_const): Likewise.
22887         (define_builtin_pure): Likewise.
22888         (define_builtin2): Deleted.
22889         (define_builtin_const2): Likewise.
22890         (builtin_description): Add a member, mask2.
22891         (bdesc_*): Add mask2 to builtin initializations.
22892         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
22893         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
22894         support.
22895         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
22897 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
22899         PR target/88954
22900         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
22901         noplt attribute.
22903 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
22905         PR target/88469
22906         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
22907         alignment is dominated by a bitfield with 64-bit aligned base type.
22908         (arm_function_arg): Emit a warning if the alignment has changed since
22909         earlier GCC releases.
22910         (arm_function_arg_boundary): Likewise.
22911         (arm_setup_incoming_varargs): Likewise.
22913 2019-01-22  Richard Biener  <rguenther@suse.de>
22915         PR tree-optimization/88862
22916         * graphite-scop-detection.c
22917         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
22919 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
22921         * doc/extend.tex (AMD GCN Function Attributes): New section.
22922         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
22923         * doc/invoke.texi (AMD GCN Options): New section.
22924         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
22926 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
22928         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
22929         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
22931 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
22933         PR tree-optimization/88044
22934         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
22935         is false in the first iteration, but !every_iteration, return false
22936         instead of true with niter->niter zero.
22938         PR rtl-optimization/88904
22939         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
22940         any nonequal registers before processing BB_END (b).
22942         PR target/88905
22943         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
22944         GET_MODE (op0).
22945         (expand_binop_directly, expand_doubleword_clz,
22946         expand_doubleword_popcount, expand_ctz, expand_ffs,
22947         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
22949         PR rtl-optimization/49429
22950         PR target/49454
22951         PR rtl-optimization/86334
22952         PR target/88906
22953         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
22954         addressable from here...
22955         (emit_block_op_via_libcall): ... to here.
22957 2019-01-22  Richard Biener  <rguenther@suse.de>
22959         * tree-vect-loop.c (vect_analyze_loop_operations): Use
22960         auto_vec for cost vector to fix memleak.
22961         (vectorize_fold_left_reduction): Properly gather SLP defs.
22962         (vectorizable_comparison): Do not swap operands to properly
22963         gather SLP defs.
22965 2019-01-22  Alan Modra  <amodra@gmail.com>
22967         PR target/88614
22968         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
22969         stays a reg.  Allow a const_int.
22970         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
22971         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
22972         (IS_NOMARK_TLSGETADDR): Define.
22973         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
22974         (rs6000_output_tlsargs): New function.
22975         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
22976         __tls_get_addr call takes an arg.
22977         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
22978         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
22979         delete split..
22980         (call_value_nonlocal_sysv): ..or here, delete split.
22981         (tls_gdld_nomark): Delete.
22982         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
22983         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
22984         (call_value_nonlocal_sysv): Likewise.
22985         (call_value_nonlocal_sysv_secure): Likewise.
22986         (call_value_nonlocal_aix): Likewise.
22987         (call_value_indirect_aix): Likewise.
22988         (call_value_indirect_elfv2): Likewise.
22989         (call_value_local32, call_value_local64): Disable for no-mark tls.
22990         (call_value_local_aix): Likewise.
22992 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22994         PR target/88938
22995         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
22996         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
22998 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
23000         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
23001         string contents as hash_map keys.
23003 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23005         PR c/88928
23006         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
23007         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
23008         instead of TYPE_ALIGN.
23009         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
23010         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
23011         pointer from TYPE_STUB_DECL.
23013 2019-01-21  Richard Biener  <rguenther@suse.de>
23015         PR tree-optimization/88934
23016         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
23017         at the possibly non-constant operand.
23018         (vect_get_constant_vectors): Adjust.
23020 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
23022         PR target/71659
23023         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
23024         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
23025         instead of _X86INTRIN_H_INCLUDED.
23026         * onfig/i386/clwbintrin.h: Likewise.
23027         * config/i386/pkuintrin.h: Likewise.
23028         * config/i386/prfchwintrin.h: Likewise.
23029         * config/i386/rdseedintrin.h: Likewise.
23030         * config/i386/wbnoinvdintrin.h: Likewise.
23031         * config/i386/xsavecintrin.h: Likewise.
23032         * config/i386/xsavesintrin.h: Likewise.
23033         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
23034         * config/i386/xsaveintrin.h: Likewise.
23035         * config/i386/xsaveoptintrin.h: Likewise.
23036         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
23037         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
23038         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
23039         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
23040         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
23041         * config/i386/immintrin.h: Here.
23043 2019-01-20  Martin Jambor  <mjambor@suse.cz>
23045         PR ipa/87615
23046         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
23047         with aa_walk_budget.
23048         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
23049         aa_walk_budget_p parameter.
23050         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
23051         walk.  Updated all callers.
23052         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
23053         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
23054         unmodified_parm.
23055         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
23056         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
23057         and to unmodified_parm.
23058         (phi_result_unknown_predicate): New parameter fbi, removed parameter
23059         info, updated call to will_be_nonconstant_expr_predicate.
23060         (param_change_prob): New parameter fbi, limit AA walking.
23061         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
23062         calls to various above functions.
23063         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
23064         parameter.  Use it to limit AA walking.
23065         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
23066         fbi, limit AA walk.
23067         (detect_type_change): New parameter fbi, pass it on to
23068         detect_type_change_from_memory_writes.
23069         (detect_type_change_ssa): Likewise.
23070         (aa_overwalked): Removed.
23071         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
23072         accordingly, adjust to the neew AA limiting scheme.
23073         (parm_ref_data_preserved_p): Likewise.
23074         (ipa_compute_jump_functions_for_edge): Adjust call to
23075         get_dynamic_type.
23076         (ipa_analyze_call_uses): Likewise.
23077         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
23078         (ipa_analyze_node): Initialize aa_walk_budget.
23079         (ipcp_transform_function): Likewise.
23080         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
23081         to get_dynamic_type.
23083 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
23085         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
23086         outside of #if CHECKING_P code.
23088 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
23090         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
23091         New function, split out from...
23092         (loop_versioning::analyze_stride): ...here.
23093         (loop_versioning::find_per_loop_multiplication): Use gassign.
23094         (loop_versioning::analyze_term_using_scevs): Return a success code.
23095         (loop_versioning::analyze_arbitrary_term): New function.
23096         (loop_versioning::analyze_address_fragment): Use
23097         analyze_arbitrary_term if all else fails.
23099 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
23101         PR target/88892
23102         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
23103         operands.
23105 2019-01-18  Richard Biener  <rguenther@suse.de>
23107         PR tree-optimization/88903
23108         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
23109         scalar stmts a SLP shift amount is composed of when detecting
23110         shifts by scalars.
23112 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
23114         PR target/88799
23115         * config/arm/arm-cpus.in (mp): New feature.
23116         (sec): New feature.
23117         (fgroup ARMv7ve): Add mp and sec features.
23118         (arch armv7-a): Add options to allow mp and sec extensions.
23119         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
23120         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
23121         extenstions to the base architecture.
23122         (cpu cortex-a8): Add sec extension to the base architecture.
23123         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
23124         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
23125         variants down to the base v7-a varaint.
23126         * config/arm/t-multilib (v7_a_arch_variants): New variable.
23127         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
23128         of permitted extensions for -march=armv7-a and for
23129         -mcpu=generic-armv7-a.
23131 2019-01-18  Martin Liska  <mliska@suse.cz>
23133         * params.def: Fix comment.
23134         * tree-profile.c (gimple_init_gcov_profiler): Bump function
23135         name.
23136         (gimple_gen_ic_func_profiler): Likewise.
23138 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23140         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
23141         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
23142         and put in error checks for stack protector guard options.
23143         (aarch64_stack_protect_guard): New.
23144         (TARGET_STACK_PROTECT_GUARD): Define.
23145         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
23146         (reg_stack_protect_address<mode>): New.
23147         (stack_protect_set): Adjust for SSP_GLOBAL.
23148         (stack_protect_test): Likewise.
23149         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
23150         (-mstack-protector-guard): Likewise.
23151         (-mstack-protector-guard-offset): Likewise.
23153 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
23155         PR tree-optimization/86214
23156         * tree-inline.h (struct copy_body_data): Add
23157         add_clobbers_to_eh_landing_pads member.
23158         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
23159         (copy_edges_for_bb): Call it if EH edge destination is <
23160         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
23161         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
23162         if flag_stack_reuse != SR_NONE and clear it afterwards.
23164 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
23166         PR target/85596
23167         * doc/install.texi (with-multilib-list): Document for aarch64.
23169 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
23171         PR target/88734
23172         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
23173         (("..."))) with ("...").
23175 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23177         * doc/extend.texi (Built-in Functions for Memory Model Aware
23178         Atomic Operations): Document atomic fetch and nand.
23180 2019-01-18  Martin Liska  <mliska@suse.cz>
23181             Richard Biener  <rguenther@suse.de>
23183         PR middle-end/88587
23184         * cgraph.h (create_version_clone_with_body): Add new argument
23185         with attributes.
23186         * cgraphclones.c (cgraph_node::create_version_clone): Add
23187         DECL_ATTRIBUTES to a newly created decl.  And call
23188         valid_attribute_p so that proper cl_target_optimization_node
23189         is set for the newly created declaration.
23190         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
23191         for declaration.
23192         (expand_target_clones): Do not call valid_attribute_p, it must
23193         be already done.
23194         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
23195         vector types.
23197 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
23199         PR target/88734
23200         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
23201         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
23202         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
23204 2019-01-17  Martin Sebor  <msebor@redhat.com>
23206         PR middle-end/88273
23207         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
23208         Handle anti-ranges the same as no range at all.
23210 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
23212         * config/aarch64/aarch64.c (cgraph.h): New include.
23213         (intl.h): New include.
23214         (supported_simd_type): New function.
23215         (currently_supported_simd_type): Ditto.
23216         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
23217         (aarch64_simd_clone_adjust): Ditto.
23218         (aarch64_simd_clone_usable): Ditto.
23219         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
23220         (TARGET_SIMD_CLONE_ADJUST): Ditto.
23221         (TARGET_SIMD_CLONE_USABLE): Ditto.
23222         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
23223         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
23224         call.
23226 2019-01-17  Martin Sebor  <msebor@redhat.com>
23228         PR tree-optimization/88800
23229         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
23230         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
23231         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
23232         redundant argument.  Add new argument and issue diagnostics under
23233         its control.  Detect out-of-bounds access even with warnings
23234         disabled.
23235         (check_bounds_or_overlap): Change return type.  Add argument.
23236         (wrestrict_dom_walker::check_call): Adjust.
23237         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
23238         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
23239         check_bounds_or_overlap's return value.
23240         (handle_builtin_stxncpy): Same.
23241         (handle_builtin_strcat): Same.
23243 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23244             Kwok Cheung Yeung  <kcy@codesourcery.com>
23245             Julian Brown  <julian@codesourcery.com>
23246             Tom de Vries  <tom@codesourcery.com>
23248         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
23250 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23252         * doc/sourcebuild.texi: Document dg-require-effective-target
23253         llvm_binutils and offload_gcn.
23255 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23256             Kwok Cheung Yeung  <kcy@codesourcery.com>
23257             Julian Brown  <julian@codesourcery.com>
23258             Tom de Vries  <tom@codesourcery.com>
23260         * doc/sourcebuild.texi: Document dg-required-effective-target
23261         exceptions.
23263 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23264             Kwok Cheung Yeung  <kcy@codesourcery.com>
23265             Julian Brown  <julian@codesourcery.com>
23266             Tom de Vries  <tom@codesourcery.com>
23267             Jan Hubicka  <hubicka@ucw.cz>
23268             Martin Jambor  <mjambor@suse.cz>
23270         * config.gcc: Add amdgcn*-*-amdhsa configuration.
23271         * configure.ac: Check for dlopen.
23272         * configure: Regenerate.
23274 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23275             Kwok Cheung Yeung  <kcy@codesourcery.com>
23276             Julian Brown  <julian@codesourcery.com>
23277             Tom de Vries  <tom@codesourcery.com>
23278             Jan Hubicka  <hubicka@ucw.cz>
23279             Martin Jambor  <mjambor@suse.cz>
23281         * common/config/gcn/gcn-common.c: New file.
23282         * config/gcn/driver-gcn.c: New file.
23283         * config/gcn/gcn-builtins.def: New file.
23284         * config/gcn/gcn-hsa.h: New file.
23285         * config/gcn/gcn-modes.def: New file.
23286         * config/gcn/gcn-opts.h: New file.
23287         * config/gcn/gcn-passes.def: New file.
23288         * config/gcn/gcn-protos.h: New file.
23289         * config/gcn/gcn-run.c: New file.
23290         * config/gcn/gcn-tree.c: New file.
23291         * config/gcn/gcn.c: New file.
23292         * config/gcn/gcn.h: New file.
23293         * config/gcn/gcn.opt: New file.
23294         * config/gcn/t-gcn-hsa: New file.
23296 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23297             Kwok Cheung Yeung  <kcy@codesourcery.com>
23298             Julian Brown  <julian@codesourcery.com>
23299             Tom de Vries  <tom@codesourcery.com>
23300             Jan Hubicka  <hubicka@ucw.cz>
23301             Martin Jambor  <mjambor@suse.cz>
23303         * config/gcn/constraints.md: New file.
23304         * config/gcn/gcn-valu.md: New file.
23305         * config/gcn/gcn.md: New file.
23306         * config/gcn/predicates.md: New file.
23308 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
23310         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
23311         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
23312         (stmt_uses_0_or_null_in_undefined_way): Likewise.
23313         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
23315 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
23317         PR target/88851
23318         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
23319         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
23320         it and document registers.
23322 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23324         * config/aarch64/aarch64.c (ares_tunings): Define.
23325         * config/aarch64/aarch64-cores.def (ares): Use the above.
23327 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
23329         PR target/88794
23330         Revert:
23331         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
23333         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
23334         (_mm512_fixupimm_round_pd): Update parameters and builtin.
23335         (_mm512_maskz_fixupimm_round_pd): Ditto.
23336         (_mm512_fixupimm_round_ps): Ditto.
23337         (_mm512_maskz_fixupimm_round_ps): Ditto.
23338         (_mm_fixupimm_round_sd): Ditto.
23339         (_mm_maskz_fixupimm_round_sd): Ditto.
23340         (_mm_fixupimm_round_ss): Ditto.
23341         (_mm_maskz_fixupimm_round_ss): Ditto.
23342         (_mm512_fixupimm_pd): Ditto.
23343         (_mm512_maskz_fixupimm_pd): Ditto.
23344         (_mm512_fixupimm_ps): Ditto.
23345         (_mm512_maskz_fixupimm_ps): Ditto.
23346         (_mm_fixupimm_sd): Ditto.
23347         (_mm_maskz_fixupimm_sd): Ditto.
23348         (_mm_fixupimm_ss): Ditto.
23349         (_mm_maskz_fixupimm_ss): Ditto.
23350         (_mm512_mask_fixupimm_round_pd): Update builtin.
23351         (_mm512_mask_fixupimm_round_ps): Ditto.
23352         (_mm_mask_fixupimm_round_sd): Ditto.
23353         (_mm_mask_fixupimm_round_ss): Ditto.
23354         (_mm512_mask_fixupimm_pd): Ditto.
23355         (_mm512_mask_fixupimm_ps): Ditto.
23356         (_mm_mask_fixupimm_sd): Ditto.
23357         (_mm_mask_fixupimm_ss): Ditto.
23358         * config/i386/avx512vlintrin.h:
23359         (_mm256_fixupimm_pd): Update parameters and builtin.
23360         (_mm256_maskz_fixupimm_pd): Ditto.
23361         (_mm256_fixupimm_ps): Ditto.
23362         (_mm256_maskz_fixupimm_ps): Ditto.
23363         (_mm_fixupimm_pd): Ditto.
23364         (_mm_maskz_fixupimm_pd): Ditto.
23365         (_mm_fixupimm_ps): Ditto.
23366         (_mm_maskz_fixupimm_ps): Ditto.
23367         (_mm256_mask_fixupimm_pd): Update builtin.
23368         (_mm256_mask_fixupimm_ps): Ditto.
23369         (_mm_mask_fixupimm_pd): Ditto.
23370         (_mm_mask_fixupimm_ps): Ditto.
23371         * config/i386/i386-builtin-types.def: Add new types and remove
23372         useless ones.
23373         * config/i386/i386-builtin.def: Update builtin definitions.
23374         * config/i386/i386.c: Handle new builtin types and remove useless ones.
23375         * config/i386/sse.md: Update VFIXUPIMM* patterns.
23376         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23377         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23378         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
23379         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23380         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23381         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
23382         * config/i386/subst.md:
23383         (round_saeonly_sd_mask_operand4): Add new subst_attr.
23384         (round_saeonly_sd_mask_op4): Ditto.
23385         (round_saeonly_expand_operand5): Ditto.
23386         (round_saeonly_expand): Update.
23388 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
23390         PR target/88794
23391         Revert:
23392         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
23394         * config/i386/sse.md: Combine VFIXUPIMM* patterns
23395         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23396         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23397         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
23398         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23399         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23400         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
23402 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
23404         PR target/88794
23405         Revert:
23406         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
23408         PR target/88489
23409         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
23410         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
23411         instead of UNSPEC_FIXUPIMM.
23413 2019-01-17  Richard Biener  <rguenther@suse.de>
23415         PR lto/86736
23416         * dwarf2out.c (want_pubnames): Never generate pubnames sections
23417         and friends for the LTO part of debug info.
23419 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
23421         PR tree-optimization/86214
23422         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
23423         if x == y.
23425         PR rtl-optimization/88870
23426         * dce.c (deletable_insn_p): Never delete const/pure calls that can
23427         throw if we can't alter the cfg or delete dead exceptions.
23428         (mark_insn): Don't call find_call_stack_args for such calls.
23430 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
23432         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
23433         prototypes for vec_st.
23434         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
23435         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
23436         mainly on signed/unsigned long long and double.
23438 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
23440         PR target/88861
23441         * combine.c (delete_noop_moves): Convert to "bool" return,
23442         returning true if any edges are eliminated.
23443         (combine_instructions): Also return true if delete_noop_moves
23444         returns true.
23446 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
23448         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
23449         correct max nunits for endian swap.
23450         (aarch64_expand_fcmla_builtin): Correct subreg code.
23451         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23452         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
23453         lane endianness.
23455 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23457         * config/alpha/alpha.c (alpha_gimplify_va_arg):
23458         Handle split indirect COMPLEX_TYPE arguments.
23460 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
23462         PR target/86891
23463         * config/aarch64/aarch64-modes.def: Add comment about how the carry
23464         bit is set by add and compare.
23465         (CC_ADC): New CC_MODE.
23466         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
23467         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
23468         comparison.  Add detection for CC_ADCmode.
23469         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
23470         CC_ADCmode.
23471         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
23472         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
23473         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
23474         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
23475         to eliminate the need for zero-extending the operands.
23476         (add<mode>3_compareC_imm): Delete.  Merge into ...
23477         (add<mode>3_compareC): ... this.  Restructure the comparison to
23478         eliminate the need for zero-extending the operands.
23479         (add<mode>3_carryin): Use LTU for the overflow detection.
23480         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
23481         Reexpress comparison for overflow.
23482         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
23483         (add<mode>3_carryinC): Likewise.
23484         (add<mode>3_carryinV): Use LTU for carry between partials.
23485         * config/aarch64/predicates.md (aarch64_carry_operation): Update
23486         handling of CC_Cmode and add CC_ADCmode.
23487         (aarch64_borrow_operation): Likewise.
23489 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
23491         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
23492         Remove patternmode.
23493         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
23494         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23495         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
23496         Remove endianness conversion.
23498 2019-01-16  Martin Liska  <mliska@suse.cz>
23500         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
23501         for GCC driver.
23502         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
23503         a new argument.
23504         * gcc.c (add_sysrooted_hdrs_prefix): New function.
23505         (path_prefix_reset): Move up in the source file.
23506         (find_fortran_preinclude_file): Make complex search for the
23507         fortran header files.
23509 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
23511         * godump.c (go_output_typedef): When outputting a typedef, refer
23512         to the underlying type by its name and not its structure.
23514 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
23516         PR c++/88795
23517         * tree.c (build_function_type): Assert that arg_types is not
23518         error_mark_node.
23520 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
23522         PR inline-asm/52813
23523         * doc/extend.texi: Document that listing the stack pointer in the
23524         clobber list of an asm is a deprecated feature.
23525         * common.opt (Wdeprecated): Moved from c-family/c.opt.
23526         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
23527         warning instead of an error for clobbers of the stack pointer.
23528         Add a note explaining why.
23530 2019-01-15  Richard Biener  <rguenther@suse.de>
23532         PR debug/88046
23533         * dwarf2out.c (gen_member_die): Do not generate inheritance
23534         DIEs late.
23536 2019-01-15  Richard Biener  <rguenther@suse.de>
23538         PR tree-optimization/88855
23539         * tree-if-conv.c (combine_blocks): Collect
23540         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
23542 2019-01-15  Tom de Vries  <tdevries@suse.de>
23544         PR target/80547
23545         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
23546         lhs == NULL_TREE for gang-level reduction.
23548 2019-01-15  Richard Biener  <rguenther@suse.de>
23549             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23551         PR ipa/88788
23552         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
23553         return true if SSA_NAME is already marked in visited bitmap.
23554         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
23556 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
23558         PR tree-optimization/88775
23559         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
23560         equal == 0 equality pointer comparisons some more if compared in
23561         integral types and either one points to an automatic var and the
23562         other to a global, or we can prove at least one points to the middle
23563         or both point to start or both point to end.
23565 2019-01-14  Andi Kleen  <ak@linux.intel.com>
23567         * Makefile.in: Lower autofdo sampling rate by 10x.
23568         * Makefile.tpl: Dito.
23570 2019-01-14  Tom Honermann  <tom@honermann.net>
23572         * defaults.h: Define CHAR8_TYPE.
23574 2019-01-14  Martin Sebor  <msebor@redhat.com>
23576         PR target/88638
23577         * doc/extend.texi (Darwin Format Checks): Clarify.
23579 2019-01-14  Richard Biener  <rguenther@suse.de>
23581         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
23582         whether we are in (simplify ...) or (match ...) context.
23584 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
23586         PR rtl-optimization/88796
23587         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
23588         * cfgexpand.c (stack_protect_prologue): Initialize
23589         crtl->stack_protect_guard_decl.
23590         * function.c (stack_protect_epilogue): Use it instead of calling
23591         targetm.stack_protect_guard again.
23592         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
23593         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
23594         crtl->stack_protect_guard_decl.
23595         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
23596         on the returned MEM_EXPR.
23598 2019-01-12  Tom de Vries  <tdevries@suse.de>
23600         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
23601         vector length using -fopenacc-dim.
23603 2019-01-12  Tom de Vries  <tdevries@suse.de>
23605         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
23606         lengths into account.
23608 2019-01-12  Svante Signell  <svante.signell@gmail.com>
23610         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
23611         (TARGET_CAN_SPLIT_STACK): Define.
23612         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
23614 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
23616         * params.def (inline-unit-growth): Set to 40.
23618 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
23620         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
23622 2019-01-12  Tom de Vries  <tdevries@suse.de>
23624         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
23625         region calling vector-partitionable routine, set default_vector_length
23626         to WARP_SIZE.
23628 2019-01-12  Tom de Vries  <tdevries@suse.de>
23630         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
23631         variable default_vector_length.
23633 2019-01-12  Tom de Vries  <tdevries@suse.de>
23635         PR middle-end/88703
23636         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
23637         from oacc_default_dims, as oacc_validate_dims would do it, and apply
23638         dimensions limits.
23640 2019-01-12  Tom de Vries  <tdevries@suse.de>
23642         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
23643         (nvptx_goacc_validate_dims): Add used parameter.
23644         * doc/tm.texi: Regenerate.
23645         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
23646         argument to call to targetm.goacc.validate_dims.
23647         (default_goacc_validate_dims): Add used
23648         parameter.
23649         * target.def (validate_dims): Add used parameter in DEFHOOK.
23650         * targhooks.h (default_goacc_validate_dims): Add used parameter.
23652 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
23654         PR middle-end/85956
23655         PR lto/88733
23656         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
23657         field.
23658         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
23659         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
23660         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
23661         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
23663 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
23665         PR rtl-optimization/87305
23666         * lra-assigns.c
23667         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
23668         for little endian pseudos used as paradoxical subreg.
23670 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
23672         PR tree-optimization/88693
23673         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
23674         for STRING_CSTs that don't contain any NUL characters in the first
23675         TREE_STRING_LENGTH bytes.
23677 2019-01-11  Alan Modra  <amodra@gmail.com>
23679         PR 88777
23680         PR 88614
23681         * genattrtab.c (min_fn): Don't translate values.
23682         (min_attr_value): Return INT_MAX when the value can't be calculated.
23683         Return minimum among any values that can be calculated.
23684         (max_attr_value): Adjust.
23686 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
23688         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
23690 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
23692         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23693         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
23694         (aarch64_return_call_with_max_clobbers): New function.
23695         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
23696         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
23697         argument.
23698         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
23699         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
23700         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
23701         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
23702         * cselib.c (cselib_process_insn): Add argument to
23703         targetm.hard_regno_call_part_clobbered call.
23704         * ira-conflicts.c (ira_build_conflicts): Ditto.
23705         * ira-costs.c (ira_tune_allocno_costs): Ditto.
23706         * lra-constraints.c (inherit_reload_reg): Ditto.
23707         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
23708         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
23709         argument.  Call targetm.return_call_with_max_clobbers.
23710         Add argument to targetm.hard_regno_call_part_clobbered call.
23711         (calls_have_same_clobbers_p): New function.
23712         (process_bb_lives): Add call_insn and last_call_insn variables.
23713         Pass call_insn to check_pseudos_live_through_calls.
23714         Modify if stmt to check targetm.return_call_with_max_clobbers.
23715         Update setting of flush variable.
23716         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
23717         to false.
23718         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
23719         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
23720         targetm.hard_regno_call_part_clobbered call.
23721         * reginfo.c (choose_hard_reg_mode): Ditto.
23722         * regrename.c (check_new_reg_p): Ditto.
23723         * reload.c (find_equiv_reg): Ditto.
23724         * reload1.c (emit_reload_insns): Ditto.
23725         * sched-deps.c (deps_analyze_insn): Ditto.
23726         * sel-sched.c (init_regs_for_mode): Ditto.
23727         (mark_unavailable_hard_regs): Ditto.
23728         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
23729         * target.def (hard_regno_call_part_clobbered): Add insn argument.
23730         (return_call_with_max_clobbers): New target function.
23731         * doc/tm.texi: Regenerate.
23732         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
23733         * hooks.c (hook_bool_uint_mode_false): Change to
23734         hook_bool_insn_uint_mode_false.
23735         * hooks.h (hook_bool_uint_mode_false): Ditto.
23737 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
23739         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23740         (aarch64_remove_extra_call_preserved_regs): New function.
23741         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
23742         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
23743         * doc/tm.texi: Regenerate.
23744         * final.c (get_call_reg_set_usage): Call new hook.
23745         * target.def (remove_extra_call_preserved_regs): New hook.
23746         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
23747         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
23749 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
23751         PR bootstrap/88714
23752         * passes.c (finish_optimization_passes): Call print_combine_total_stats
23753         inside of pass_combine_1 dump rather than pass_profile_1.
23755 2019-01-11  Tom de Vries  <tdevries@suse.de>
23757         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
23758         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
23759         (PTX_NUM_PER_WORKER_BARRIERS): Define.
23760         (nvptx_apply_dim_limits): Prevent vector_length 64 and
23761         num_workers 16.
23763 2019-01-11  Tom de Vries  <tdevries@suse.de>
23765         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
23767 2019-01-11  Jan Beulich  <jbeulich@suse.com>
23769         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
23770         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
23771         sse2_cvtsi2sd): Add {l}.
23772         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
23773         syntax.
23775 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
23777         PR target/88785
23778         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
23779         define_expand.
23780         (*float<floatunssuffix>v2div2sf2): New define_insn.
23781         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
23782         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
23783         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
23784         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
23785         match_operands with "const0_operand" "C".
23787 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
23789         * config/aarch64/aarch64-builtins.c
23790         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
23791         (aarch64_init_simd_builtins): ...Here
23793 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
23795         PR rtl-optimization/87305
23796         * lra-assigns.c
23797         (setup_live_pseudos_and_spill_after_risky_transforms): Check
23798         allocation for big endian pseudos used as paradoxical subregs and
23799         spill them if it is wrong.
23800         * lra-constraints.c (lra_constraints): Add a comment.
23802 2019-01-10  Richard Biener  <rguenther@suse.de>
23804         PR tree-optimization/88792
23805         * tree-ssa-pre.c (get_representative_for): Do not return a
23806         value-number here.
23808 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
23810         PR middle-end/84877
23811         PR bootstrap/88450
23812         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
23813         (assign_parm_setup_block): Do the argument slot realignment here
23814         instead.
23816 2019-01-10  Stefan Agner  <stefan@agner.ch>
23818         PR target/88648
23819         * config/arm/arm.c (arm_option_override_internal): Force
23820         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
23822 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
23824         PR c/88568
23825         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
23826         DECL_EXTERNAL.
23828 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
23830         * config/arm/arm-builtins.c
23831         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
23832         (MAC_LANE_PAIR_QUALIFIERS): New.
23833         (arm_expand_builtin_args): Use it.
23834         (arm_expand_builtin_1): Likewise.
23835         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
23836         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
23837         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
23838         * config/arm/arm_neon.h:
23839         (vcadd_rot90_f16): New.
23840         (vcaddq_rot90_f16): New.
23841         (vcadd_rot270_f16): New.
23842         (vcaddq_rot270_f16): New.
23843         (vcmla_f16): New.
23844         (vcmlaq_f16): New.
23845         (vcmla_lane_f16): New.
23846         (vcmla_laneq_f16): New.
23847         (vcmlaq_lane_f16): New.
23848         (vcmlaq_laneq_f16): New.
23849         (vcmla_rot90_f16): New.
23850         (vcmlaq_rot90_f16): New.
23851         (vcmla_rot90_lane_f16): New.
23852         (vcmla_rot90_laneq_f16): New.
23853         (vcmlaq_rot90_lane_f16): New.
23854         (vcmlaq_rot90_laneq_f16): New.
23855         (vcmla_rot180_f16): New.
23856         (vcmlaq_rot180_f16): New.
23857         (vcmla_rot180_lane_f16): New.
23858         (vcmla_rot180_laneq_f16): New.
23859         (vcmlaq_rot180_lane_f16): New.
23860         (vcmlaq_rot180_laneq_f16): New.
23861         (vcmla_rot270_f16): New.
23862         (vcmlaq_rot270_f16): New.
23863         (vcmla_rot270_lane_f16): New.
23864         (vcmla_rot270_laneq_f16): New.
23865         (vcmlaq_rot270_lane_f16): New.
23866         (vcmlaq_rot270_laneq_f16): New.
23867         (vcadd_rot90_f32): New.
23868         (vcaddq_rot90_f32): New.
23869         (vcadd_rot270_f32): New.
23870         (vcaddq_rot270_f32): New.
23871         (vcmla_f32): New.
23872         (vcmlaq_f32): New.
23873         (vcmla_lane_f32): New.
23874         (vcmla_laneq_f32): New.
23875         (vcmlaq_lane_f32): New.
23876         (vcmlaq_laneq_f32): New.
23877         (vcmla_rot90_f32): New.
23878         (vcmlaq_rot90_f32): New.
23879         (vcmla_rot90_lane_f32): New.
23880         (vcmla_rot90_laneq_f32): New.
23881         (vcmlaq_rot90_lane_f32): New.
23882         (vcmlaq_rot90_laneq_f32): New.
23883         (vcmla_rot180_f32): New.
23884         (vcmlaq_rot180_f32): New.
23885         (vcmla_rot180_lane_f32): New.
23886         (vcmla_rot180_laneq_f32): New.
23887         (vcmlaq_rot180_lane_f32): New.
23888         (vcmlaq_rot180_laneq_f32): New.
23889         (vcmla_rot270_f32): New.
23890         (vcmlaq_rot270_f32): New.
23891         (vcmla_rot270_lane_f32): New.
23892         (vcmla_rot270_laneq_f32): New.
23893         (vcmlaq_rot270_lane_f32): New.
23894         (vcmlaq_rot270_laneq_f32): New.
23895         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
23896         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
23897         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
23898         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
23899         vcmlaq_lane270): New.
23900         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23901         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
23902         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
23903         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
23904         (arm_option_reconfigure_globals): Use them.
23905         * config/arm/iterators.md (VDF, VQ_HSF): New.
23906         (VCADD, VCMLA): New.
23907         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
23908         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
23909         New.
23910         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
23911         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
23913 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
23915         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
23916         Add qualifier_lane_pair_index.
23917         (emit-rtl.h): Include.
23918         (TYPES_QUADOP_LANE_PAIR): New.
23919         (aarch64_simd_expand_args): Use it.
23920         (aarch64_simd_expand_builtin): Likewise.
23921         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
23922         New.
23923         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
23924         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
23925         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
23926         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
23927         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
23928         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
23929         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
23930         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
23931         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
23932         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
23933         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
23934         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
23935         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
23936         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
23937         Add __ARM_FEATURE_COMPLEX.
23938         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
23939         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
23940         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
23941         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
23942         fcmlaq_lane270): New.
23943         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23944         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
23945         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
23946         * config/aarch64/arm_neon.h:
23947         (vcadd_rot90_f16): New.
23948         (vcaddq_rot90_f16): New.
23949         (vcadd_rot270_f16): New.
23950         (vcaddq_rot270_f16): New.
23951         (vcmla_f16): New.
23952         (vcmlaq_f16): New.
23953         (vcmla_lane_f16): New.
23954         (vcmla_laneq_f16): New.
23955         (vcmlaq_lane_f16): New.
23956         (vcmlaq_rot90_lane_f16): New.
23957         (vcmla_rot90_laneq_f16): New.
23958         (vcmla_rot90_lane_f16): New.
23959         (vcmlaq_rot90_f16): New.
23960         (vcmla_rot90_f16): New.
23961         (vcmlaq_laneq_f16): New.
23962         (vcmla_rot180_laneq_f16): New.
23963         (vcmla_rot180_lane_f16): New.
23964         (vcmlaq_rot180_f16): New.
23965         (vcmla_rot180_f16): New.
23966         (vcmlaq_rot90_laneq_f16): New.
23967         (vcmlaq_rot270_laneq_f16): New.
23968         (vcmlaq_rot270_lane_f16): New.
23969         (vcmla_rot270_laneq_f16): New.
23970         (vcmlaq_rot270_f16): New.
23971         (vcmla_rot270_f16): New.
23972         (vcmlaq_rot180_laneq_f16): New.
23973         (vcmlaq_rot180_lane_f16): New.
23974         (vcmla_rot270_lane_f16): New.
23975         (vcadd_rot90_f32): New.
23976         (vcaddq_rot90_f32): New.
23977         (vcaddq_rot90_f64): New.
23978         (vcadd_rot270_f32): New.
23979         (vcaddq_rot270_f32): New.
23980         (vcaddq_rot270_f64): New.
23981         (vcmla_f32): New.
23982         (vcmlaq_f32): New.
23983         (vcmlaq_f64): New.
23984         (vcmla_lane_f32): New.
23985         (vcmla_laneq_f32): New.
23986         (vcmlaq_lane_f32): New.
23987         (vcmlaq_laneq_f32): New.
23988         (vcmla_rot90_f32): New.
23989         (vcmlaq_rot90_f32): New.
23990         (vcmlaq_rot90_f64): New.
23991         (vcmla_rot90_lane_f32): New.
23992         (vcmla_rot90_laneq_f32): New.
23993         (vcmlaq_rot90_lane_f32): New.
23994         (vcmlaq_rot90_laneq_f32): New.
23995         (vcmla_rot180_f32): New.
23996         (vcmlaq_rot180_f32): New.
23997         (vcmlaq_rot180_f64): New.
23998         (vcmla_rot180_lane_f32): New.
23999         (vcmla_rot180_laneq_f32): New.
24000         (vcmlaq_rot180_lane_f32): New.
24001         (vcmlaq_rot180_laneq_f32): New.
24002         (vcmla_rot270_f32): New.
24003         (vcmlaq_rot270_f32): New.
24004         (vcmlaq_rot270_f64): New.
24005         (vcmla_rot270_lane_f32): New.
24006         (vcmla_rot270_laneq_f32): New.
24007         (vcmlaq_rot270_lane_f32): New.
24008         (vcmlaq_rot270_laneq_f32): New.
24009         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
24010         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
24011         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
24012         (FCADD, FCMLA): New.
24013         (rot): New.
24014         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
24016 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
24018         PR other/16615
24020         * config/pa/pa.c: Change "can not" to "cannot".
24021         * gimple-ssa-evrp-analyze.c: Likewise.
24022         * ipa-icf.c: Likewise.
24023         * ipa-polymorphic-call.c: Likewise.
24024         * ipa-pure-const.c: Likewise.
24025         * lra-constraints.c: Likewise.
24026         * lra-remat.c: Likewise.
24027         * reload1.c: Likewise.
24028         * reorg.c: Likewise.
24029         * tree-ssa-uninit.c: Likewise.
24031 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
24033         PR other/16615
24035         * Makefile.in: Mechanically replace "can not" with "cannot".
24036         * alias.c: Likewise.
24037         * builtins.c: Likewise.
24038         * calls.c: Likewise.
24039         * cgraph.c: Likewise.
24040         * cgraph.h: Likewise.
24041         * cgraphclones.c: Likewise.
24042         * cgraphunit.c: Likewise.
24043         * combine-stack-adj.c: Likewise.
24044         * combine.c: Likewise.
24045         * common/config/i386/i386-common.c: Likewise.
24046         * config/aarch64/aarch64.c: Likewise.
24047         * config/alpha/sync.md: Likewise.
24048         * config/arc/arc.c: Likewise.
24049         * config/arc/predicates.md: Likewise.
24050         * config/arm/arm-c.c: Likewise.
24051         * config/arm/arm.c: Likewise.
24052         * config/arm/arm.h: Likewise.
24053         * config/arm/arm.md: Likewise.
24054         * config/arm/cortex-r4f.md: Likewise.
24055         * config/csky/csky.c: Likewise.
24056         * config/csky/csky.h: Likewise.
24057         * config/darwin-f.c: Likewise.
24058         * config/epiphany/epiphany.md: Likewise.
24059         * config/i386/i386.c: Likewise.
24060         * config/i386/sol2.h: Likewise.
24061         * config/m68k/m68k.c: Likewise.
24062         * config/mcore/mcore.h: Likewise.
24063         * config/microblaze/microblaze.md: Likewise.
24064         * config/mips/20kc.md: Likewise.
24065         * config/mips/sb1.md: Likewise.
24066         * config/nds32/nds32.c: Likewise.
24067         * config/nds32/predicates.md: Likewise.
24068         * config/pa/pa.c: Likewise.
24069         * config/rs6000/e300c2c3.md: Likewise.
24070         * config/rs6000/rs6000.c: Likewise.
24071         * config/s390/s390.h: Likewise.
24072         * config/sh/sh.c: Likewise.
24073         * config/sh/sh.md: Likewise.
24074         * config/spu/vmx2spu.h: Likewise.
24075         * cprop.c: Likewise.
24076         * dbxout.c: Likewise.
24077         * df-scan.c: Likewise.
24078         * doc/cfg.texi: Likewise.
24079         * doc/extend.texi: Likewise.
24080         * doc/fragments.texi: Likewise.
24081         * doc/gty.texi: Likewise.
24082         * doc/invoke.texi: Likewise.
24083         * doc/lto.texi: Likewise.
24084         * doc/md.texi: Likewise.
24085         * doc/objc.texi: Likewise.
24086         * doc/rtl.texi: Likewise.
24087         * doc/tm.texi: Likewise.
24088         * dse.c: Likewise.
24089         * emit-rtl.c: Likewise.
24090         * emit-rtl.h: Likewise.
24091         * except.c: Likewise.
24092         * expmed.c: Likewise.
24093         * expr.c: Likewise.
24094         * fold-const.c: Likewise.
24095         * genautomata.c: Likewise.
24096         * gimple-fold.c: Likewise.
24097         * hard-reg-set.h: Likewise.
24098         * ifcvt.c: Likewise.
24099         * ipa-comdats.c: Likewise.
24100         * ipa-cp.c: Likewise.
24101         * ipa-devirt.c: Likewise.
24102         * ipa-fnsummary.c: Likewise.
24103         * ipa-icf.c: Likewise.
24104         * ipa-inline-transform.c: Likewise.
24105         * ipa-inline.c: Likewise.
24106         * ipa-polymorphic-call.c: Likewise.
24107         * ipa-profile.c: Likewise.
24108         * ipa-prop.c: Likewise.
24109         * ipa-pure-const.c: Likewise.
24110         * ipa-reference.c: Likewise.
24111         * ipa-split.c: Likewise.
24112         * ipa-visibility.c: Likewise.
24113         * ipa.c: Likewise.
24114         * ira-build.c: Likewise.
24115         * ira-color.c: Likewise.
24116         * ira-conflicts.c: Likewise.
24117         * ira-costs.c: Likewise.
24118         * ira-int.h: Likewise.
24119         * ira-lives.c: Likewise.
24120         * ira.c: Likewise.
24121         * ira.h: Likewise.
24122         * loop-invariant.c: Likewise.
24123         * loop-unroll.c: Likewise.
24124         * lower-subreg.c: Likewise.
24125         * lra-assigns.c: Likewise.
24126         * lra-constraints.c: Likewise.
24127         * lra-eliminations.c: Likewise.
24128         * lra-lives.c: Likewise.
24129         * lra-remat.c: Likewise.
24130         * lra-spills.c: Likewise.
24131         * lra.c: Likewise.
24132         * lto-cgraph.c: Likewise.
24133         * lto-streamer-out.c: Likewise.
24134         * postreload-gcse.c: Likewise.
24135         * predict.c: Likewise.
24136         * profile-count.h: Likewise.
24137         * profile.c: Likewise.
24138         * recog.c: Likewise.
24139         * ree.c: Likewise.
24140         * reload.c: Likewise.
24141         * reload1.c: Likewise.
24142         * reorg.c: Likewise.
24143         * resource.c: Likewise.
24144         * rtl.def: Likewise.
24145         * rtl.h: Likewise.
24146         * rtlanal.c: Likewise.
24147         * sched-deps.c: Likewise.
24148         * sched-ebb.c: Likewise.
24149         * sched-rgn.c: Likewise.
24150         * sel-sched-ir.c: Likewise.
24151         * sel-sched.c: Likewise.
24152         * shrink-wrap.c: Likewise.
24153         * simplify-rtx.c: Likewise.
24154         * symtab.c: Likewise.
24155         * target.def: Likewise.
24156         * toplev.c: Likewise.
24157         * tree-call-cdce.c: Likewise.
24158         * tree-cfg.c: Likewise.
24159         * tree-complex.c: Likewise.
24160         * tree-core.h: Likewise.
24161         * tree-eh.c: Likewise.
24162         * tree-inline.c: Likewise.
24163         * tree-loop-distribution.c: Likewise.
24164         * tree-nrv.c: Likewise.
24165         * tree-profile.c: Likewise.
24166         * tree-sra.c: Likewise.
24167         * tree-ssa-alias.c: Likewise.
24168         * tree-ssa-dce.c: Likewise.
24169         * tree-ssa-dom.c: Likewise.
24170         * tree-ssa-forwprop.c: Likewise.
24171         * tree-ssa-loop-im.c: Likewise.
24172         * tree-ssa-loop-ivcanon.c: Likewise.
24173         * tree-ssa-loop-ivopts.c: Likewise.
24174         * tree-ssa-loop-niter.c: Likewise.
24175         * tree-ssa-phionlycprop.c: Likewise.
24176         * tree-ssa-phiopt.c: Likewise.
24177         * tree-ssa-propagate.c: Likewise.
24178         * tree-ssa-threadedge.c: Likewise.
24179         * tree-ssa-threadupdate.c: Likewise.
24180         * tree-ssa-uninit.c: Likewise.
24181         * tree-ssanames.c: Likewise.
24182         * tree-streamer-out.c: Likewise.
24183         * tree.c: Likewise.
24184         * tree.h: Likewise.
24185         * vr-values.c: Likewise.
24187 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24189         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
24190         (ix86_split_xorsign): Ditto.
24191         * config/i386/i386.c (ix86_expand_xorsign): New function.
24192         (ix86_split_xorsign): Ditto.
24193         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
24194         (xorsign<mode>3): New expander.
24195         (xorsign<mode>3_1): New insn_and_split pattern.
24196         * config/i386/sse.md (xorsign<mode>3): New expander.
24198 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
24200         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
24201         (*tablejump_sp64): Likewise.
24202         (*tablejump<P:mode>): ...this.
24203         (*call_address_sp32): Merge into...
24204         (*call_address_sp64): Likewise.
24205         (*call_address<P:mode>): ...this.
24206         (*call_symbolic_sp32): Merge into...
24207         (*call_symbolic_sp64): Likewise.
24208         (*call_symbolic<P:mode>): ...this.
24209         (call_value): Remove constraint and add predicate.
24210         (*call_value_address_sp32): Merge into...
24211         (*call_value_address_sp64): Likewise.
24212         (*call_value_address<P:mode>): ...this.
24213         (*call_value_symbolic_sp32): Merge into...
24214         (*call_value_symbolic_sp64): Likewise.
24215         (*call_value_symbolic<P:mode>): ...this.
24216         (*sibcall_symbolic_sp32): Merge into...
24217         (*sibcall_symbolic_sp64): Likewise.
24218         (*sibcall_symbolic<P:mode>): ...this.
24219         (sibcall_value): Remove constraint and add predicate.
24220         (*sibcall_value_symbolic_sp32): Merge into...
24221         (*sibcall_value_symbolic_sp64): Likewise.
24222         (*sibcall_value_symbolic<P:mode>): ...this.
24223         (window_save): Minor tweak.
24224         (*branch_sp32): Merge into...
24225         (*branch_sp64): Likewise.
24226         (*branch<P:mode>): ...this.
24228 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
24229             James Clarke  <jrtc27@jrtc27.com>
24231         PR target/84010
24232         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
24233         consistently in TLS address generation and adjust code to the renaming
24234         of patterns.  Mark calls to __tls_get_addr as const.
24235         * config/sparc/sparc.md (tgd_hi22): Turn into...
24236         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
24237         (tgd_lo10): Turn into...
24238         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
24239         (tgd_add32): Merge into...
24240         (tgd_add64): Likewise.
24241         (tgd_add<P:mode>): ...this and use Pmode throughout.
24242         (tldm_hi22): Turn into...
24243         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
24244         (tldm_lo10): Turn into...
24245         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
24246         (tldm_add32): Merge into...
24247         (tldm_add64): Likewise.
24248         (tldm_add<P:mode>): ...this and use Pmode throughout.
24249         (tldm_call32): Merge into...
24250         (tldm_call64): Likewise.
24251         (tldm_call<P:mode>): ...this and use Pmode throughout.
24252         (tldo_hix22): Turn into...
24253         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
24254         (tldo_lox10): Turn into...
24255         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
24256         (tldo_add32): Merge into...
24257         (tldo_add64): Likewise.
24258         (tldo_add<P:mode>): ...this and use Pmode throughout.
24259         (tie_hi22): Turn into...
24260         (tie_hi22<P:mode>): ...this and use Pmode throughout.
24261         (tie_lo10): Turn into...
24262         (tie_lo10<P:mode>): ...this and use Pmode throughout.
24263         (tie_ld64): Use DImode throughout.
24264         (tie_add32): Merge into...
24265         (tie_add64): Likewise.
24266         (tie_add<P:mode>): ...this and use Pmode throughout.
24267         (tle_hix22_sp32): Merge into...
24268         (tle_hix22_sp64): Likewise.
24269         (tle_hix22<P:mode>): ...this and use Pmode throughout.
24270         (tle_lox22_sp32): Merge into...
24271         (tle_lox22_sp64): Likewise.
24272         (tle_lox22<P:mode>): ...this and use Pmode throughout.
24273         (*tldo_ldub_sp32): Merge into...
24274         (*tldo_ldub_sp64): Likewise.
24275         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
24276         (*tldo_ldub1_sp32): Merge into...
24277         (*tldo_ldub1_sp64): Likewise.
24278         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
24279         (*tldo_ldub2_sp32): Merge into...
24280         (*tldo_ldub2_sp64): Likewise.
24281         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
24282         (*tldo_ldsb1_sp32): Merge into...
24283         (*tldo_ldsb1_sp64): Likewise.
24284         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
24285         (*tldo_ldsb2_sp32): Merge into...
24286         (*tldo_ldsb2_sp64): Likewise.
24287         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
24288         (*tldo_ldub3_sp64): Use DImode throughout.
24289         (*tldo_ldsb3_sp64): Likewise.
24290         (*tldo_lduh_sp32): Merge into...
24291         (*tldo_lduh_sp64): Likewise.
24292         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
24293         (*tldo_lduh1_sp32): Merge into...
24294         (*tldo_lduh1_sp64): Likewise.
24295         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
24296         (*tldo_ldsh1_sp32): Merge into...
24297         (*tldo_ldsh1_sp64): Likewise.
24298         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
24299         (*tldo_lduh2_sp64): Use DImode throughout.
24300         (*tldo_ldsh2_sp64): Likewise.
24301         (*tldo_lduw_sp32): Merge into...
24302         (*tldo_lduw_sp64): Likewise.
24303         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
24304         (*tldo_lduw1_sp64): Use DImode throughout.
24305         (*tldo_ldsw1_sp64): Likewise.
24306         (*tldo_ldx_sp64): Likewise.
24307         (*tldo_stb_sp32): Merge into...
24308         (*tldo_stb_sp64): Likewise.
24309         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
24310         (*tldo_sth_sp32): Merge into...
24311         (*tldo_sth_sp64): Likewise.
24312         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
24313         (*tldo_stw_sp32): Merge into...
24314         (*tldo_stw_sp64): Likewise.
24315         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
24316         (*tldo_stx_sp64): Use DImode throughout.
24318 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24320         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
24321         check configure option to set BTI and Return Address Signing.
24322         * configure.ac: Add --enable-standard-branch-protection and
24323         --disable-standard-branch-protection.
24324         * configure: Regenerated.
24325         * doc/install.texi: Document the same.
24327 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24328             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24330         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
24331         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
24332         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
24333         if bti is enabled.
24334         * config/aarch64/aarch64-bti-insert.c: New file.
24335         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
24336         pass.
24337         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
24338         new bti pass.
24339         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
24340         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
24341         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
24342         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
24344 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24346         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
24347         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
24348         Disable bti for -mbranch-protection=none.
24349         (aarch64_handle_standard_branch_protection): Enable bti for
24350         -mbranch-protection=standard.
24351         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
24352         -mbranch-protection.
24353         (aarch64_bti_enabled): Check if bti is enabled.
24354         * config/aarch64/aarch64.opt: Declare target variable.
24355         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
24357 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24359         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
24360         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
24361         (aarch64_expand_epilogue): Likewise.
24362         (aarch64_output_mi_thunk): Likewise.
24363         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
24364         TAILCALL_ADDR_REGS to x16 and x17.
24365         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
24367 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24369         * config/aarch64/aarch64-option-extensions.def: Define
24370         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
24371         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
24372         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
24373         (AARCH64_FL_PREDRES): New.
24374         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
24375         AARCH64_FL_PREDRES by default.
24376         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
24378 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24380         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
24381         ARMv8.5-A.
24382         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
24383         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
24384         * doc/invoke.texi: Document ARMv8.5-A.
24386 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
24388         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
24389         (xorsign<mode>3): Likewise.
24391 2019-01-09  Jelinek  <jakub@redhat.com>
24393         PR middle-end/88758
24394         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
24395         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
24397         PR rtl-optimization/88331
24398         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
24399         not currently_expanding_to_rtl.
24401 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
24403         * doc/invoke.texi (-Os): Remove trailing spaces.
24404         (-finline-functions): Remove reference to -O2.
24406 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
24408         PR rtl-optimization/79593
24409         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
24411         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
24412         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
24414 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
24416         PR bootstrap/88721
24417         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
24418         to -1 on entry.
24420         PR debug/88723
24421         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
24422         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
24424 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
24426         PR target/88717
24427         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
24428         ix86_avx_u128_mode_entry.
24430 2019-01-08  Martin Liska  <mliska@suse.cz>
24432         PR tree-optimization/88753
24433         * tree-switch-conversion.c (switch_conversion::build_one_array):
24434         Come up with local variable constructor.  Convert first to
24435         type of constructor values.
24437 2019-01-08  Richard Biener  <rguenther@suse.de>
24439         PR tree-optimization/86554
24440         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
24441         rpo_avail): Move earlier.
24442         (visit_nary_op): When value-numbering to expressions
24443         with different overflow behavior make sure there's an
24444         available expression on the path.
24446 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
24448         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
24449         aarch64_parse_branch_protection,
24450         struct aarch64_branch_protect_type,
24451         aarch64_handle_no_branch_protection,
24452         aarch64_handle_standard_branch_protection,
24453         aarch64_validate_mbranch_protection,
24454         aarch64_handle_pac_ret_protection,
24455         aarch64_handle_attr_branch_protection,
24456         accepted_branch_protection_string,
24457         aarch64_pac_ret_subtypes,
24458         aarch64_branch_protect_types,
24459         aarch64_handle_pac_ret_leaf): Define.
24460         (aarch64_override_options_after_change_1, aarch64_override_options):
24461         Add check for accepted_branch_protection_string.
24462         (aarch64_option_save): Save accepted_branch_protection_string.
24463         (aarch64_option_restore): Save accepted_branch_protection_string.
24464         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
24465         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
24466         msign-return-address.
24467         * doc/invoke.texi: Add mbranch-protection.
24469 2019-01-08  Alan Modra  <amodra@gmail.com>
24471         PR target/88614
24472         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
24473         Delete "unknownp" parameter.  Adjust callers.  Handle
24474         CONST_INT, PLUS, MINUS, and MULT.
24475         (attr_value_aligned): Renamed from or_attr_value.
24476         (min_attr_value): Return INT_MIN for unhandled rtl case..
24477         (min_fn): ..and translate to INT_MAX here.
24478         (write_length_unit_log): Modify to cope without "unknown".
24479         (write_attr_value): Handle IF_THEN_ELSE.
24481 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24483         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
24484         optimization for masked stores.
24486 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24488         PR middle-end/88567
24489         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
24490         output vector directly to duplicate_and_interleave instead of
24491         going through a temporary.  Postpone insertion of ctor_seq to
24492         the end of the loop.
24494 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
24496         PR target/86891
24497         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
24498         unsigned_p.  Handle signed and unsigned overflow correction as
24499         required.
24500         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
24501         prototype.
24502         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
24503         for operand 2.
24504         (add<mode>3_compareV_imm): Make this callable for expanding.
24505         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
24506         aarch64_plus_operand for operand 2.
24507         (subv<GPI:mode>_insn): New insn pattern.
24508         (subv<GPI:mode>_imm): Likewise.
24509         (negv<GPI:mode>3): New expand pattern.
24510         (negv<GPI:mode>_insn): New insn pattern.
24511         (negv<GPI:mode>_cmp_only): Likewise.
24512         (cmpv<GPI:mode>_insn): Likewise.
24513         (subvti4): Use register_operand for operand 1.  Update call to
24514         aarch64_expand_subvti.
24515         (usubvti4): Likewise.
24516         (negvti3): New expand pattern.
24517         (negdi_carryout): New insn pattern.
24518         (negvdi_carryinV): New insn pattern.
24519         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
24520         version the named version.
24521         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
24522         operands.
24523         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
24524         patterns.
24525         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
24526         patterns.
24527         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
24528         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
24529         (sub<mode>3_carryinCV): Delete.
24530         (sub<GPI:mode>3_carryinV): New expand pattern.
24531         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
24533 2019-01-07  Richard Biener  <rguenther@suse.de>
24535         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
24536         of tree_operand_hash.
24538 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24540         PR tree-optimization/88598
24541         * tree.h (single_nonzero_element): Declare.
24542         * tree.c (single_nonzero_element): New function.
24543         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
24544         if I is the only nonzero element of CST.
24546 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24548         PR tree-optimization/88598
24549         * tree.h (initializer_each_zero_or_onep): Declare.
24550         * tree.c (initializer_each_zero_or_onep): New function.
24551         (signed_or_unsigned_type_for): Handle float types too.
24552         (unsigned_type_for, signed_type_for): Update comments accordingly.
24553         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
24554         x & { 0 or -1, 0 or -1, ... }.
24556 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
24558         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
24559         with x86_64-pc-linux-gnu.
24561 2019-01-07  Tom de Vries  <tdevries@suse.de>
24563         PR target/85486
24564         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
24565         function.
24566         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
24567         routines.
24569 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
24571         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
24572         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
24573         TARGET_AVX512F as condition.
24575         PR debug/88723
24576         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
24577         const_not_ok_for_debug_p target hook.
24578         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
24579         on UNSPEC and subexpressions thereof if all subexpressions of the
24580         UNSPEC are CONSTANT_P.
24582         PR tree-optimization/88676
24583         * tree-ssa-phiopt.c (two_value_replacement): New function.
24584         (tree_ssa_phiopt_worker): Call it.
24586         PR sanitizer/88619
24587         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
24588         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
24590         PR c++/85052
24591         * tree-vect-generic.c: Include insn-config.h and recog.h.
24592         (expand_vector_piecewise): Add defaulted ret_type argument,
24593         if non-NULL, use that in preference to type for the result type.
24594         (expand_vector_parallel): Formatting fix.
24595         (do_vec_conversion, do_vec_narrowing_conversion,
24596         expand_vector_conversion): New functions.
24597         (expand_vector_operations_1): Call expand_vector_conversion
24598         for VEC_CONVERT ifn calls.
24599         * internal-fn.def (VEC_CONVERT): New internal function.
24600         * internal-fn.c (expand_VEC_CONVERT): New function.
24601         * fold-const-call.c (fold_const_vec_convert): New function.
24602         (fold_const_call): Use it for CFN_VEC_CONVERT.
24603         * doc/extend.texi (__builtin_convertvector): Document.
24605 2019-01-07  Tom de Vries  <tdevries@suse.de>
24607         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
24608         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
24609         vector_red_partition, vector_red_sym): New global variables.
24610         (nvptx_option_override): Initialize vector_red_sym.
24611         (nvptx_declare_function_name): Restore red_partition register.
24612         (nvptx_file_end): Emit code to declare the vector reduction variables.
24613         (nvptx_output_red_partition): New function.
24614         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
24615         large vector reductions.
24616         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
24617         (nvptx_init_builtins): Add VECTOR_ADDR.
24618         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
24619         Handle nvptx_expand_shared_addr.
24620         (nvptx_get_shared_red_addr): Add vector argument and handle large
24621         vectors.
24622         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
24623         large vectors.
24624         (nvptx_goacc_reduction_init): Likewise.
24625         (nvptx_goacc_reduction_fini): Likewise.
24626         (nvptx_goacc_reduction_teardown): Likewise.
24627         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
24628         init,fini,teardown}.
24629         (nvptx_init_axis_predicate): Initialize vector_red_partition.
24630         (nvptx_set_current_function): Init vector_red_partition.
24631         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
24632         (nvptx_red_partition): New insn.
24633         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
24635 2019-01-07  Tom de Vries  <tdevries@suse.de>
24637         PR target/85381
24638         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
24639         empty loops.
24641 2019-01-07  Tom de Vries  <tdevries@suse.de>
24643         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
24644         (nvptx_option_override): Init oacc_bcast_partition.
24645         (nvptx_init_oacc_workers): New function.
24646         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
24647         (nvptx_needs_shared_bcast): New function.
24648         (nvptx_find_par): Generalize to enable vectors to use shared-memory
24649         to propagate state.
24650         (nvptx_shared_propagate): Initialize vector bcast partition and
24651         synchronization state.
24652         (nvptx_single): Generalize to enable vectors to use shared-memory
24653         to propagate state.
24654         (nvptx_process_pars): Likewise.
24655         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
24656         * config/nvptx/nvptx.h (struct machine_function): Add
24657         bcast_partition and sync_bar members.
24659 2019-01-07  Tom de Vries  <tdevries@suse.de>
24661         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
24662         (nvptx_apply_dim_limits): New function.
24663         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
24664         PTX_WARP_SIZE.
24666 2019-01-07  Tom de Vries  <tdevries@suse.de>
24668         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
24669         as late as possible.
24671 2019-01-07  Tom de Vries  <tdevries@suse.de>
24673         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
24674         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
24675         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
24676         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
24677         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
24679 2019-01-07  Tom de Vries  <tdevries@suse.de>
24681         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
24683 2019-01-07  Tom de Vries  <tdevries@suse.de>
24685         * omp-offload.c (oacc_get_min_dim): New function.
24686         * omp-offload.h (oacc_get_min_dim): Declare.
24688 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
24690         PR target/88521
24691         * config/i386/i386.c (function_value_ms_64): Return small sturct in
24692         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
24694 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
24696         PR tree-opt/86020
24697         Revert:
24698         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
24700         * ipa-inline.c (edge_badness): Use inlined_time instead of
24701         inline_summaries->get.
24703 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
24705         * opts.c (enable_fdo_optimizations): Enable
24706         version-loops-for-strides, loop-interchange, unrol-and-jam
24707         and tree-loop-distribution.
24708         * invoke.texi: Document newly enabled options.
24710 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
24712         * doc/invoke.texi (max-inline-insns-small): New parameters.
24713         * ipa-inline.c (want_early_inline_function_p): simplify.
24714         (want_inline_small_function_p): Fix pasto from previous patch;
24715         use max-inline-insns-small bound.
24716         * params.def (max-inline-insns-small): New param.
24717         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
24718         variables correctly.
24720 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
24722         * doc/invoke.texi: Document max-inline-insns-size,
24723         uninlined-function-insns, uninlined-function-time,
24724         uninlined-thunk-insns and uninlined-thunk-time.
24725         * params.def: Add max-inline-insns-size,
24726         uninlined-function-insns, uninlined-function-time,
24727         uninlined-thunk-insns and uninlined-thunk-time.
24728         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
24729         new parameters.
24730         * ipa-inline.c (can_inline_edge_by_limits_p,
24731         want_inline_small_function_p): Use new parameters.
24733 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
24735         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
24737 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
24739         PR middle-end/82564
24740         PR target/88620
24741         * expr.c (expand_assignment): For calls returning VLA structures
24742         if to_rtx is not a MEM, force it into a stack temporary.
24744         PR debug/88635
24745         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
24746         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
24747         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
24748         subexpressions of both operands.
24749         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
24750         subrtxes are CONSTANT_P.
24751         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
24752         2018-11-09 changes.
24754 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
24756         * params.def (hot-bb-count-ws-permille): Set to 990.
24758 2019-01-04  Martin Sebor  <msebor@redhat.com>
24760         PR c/88546
24761         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
24762         leaf.
24764 2019-01-04  Martin Sebor  <msebor@redhat.com>
24766         PR c/88363
24767         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
24769 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
24771         * gdbinit.in: Turn off pagination for the skip commands, restore
24772         it to previous state afterwards.
24774 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
24776         PR target/88594
24777         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
24778         of GET_MODE (opN) as modes of the libcall arguments.
24780 2019-01-04  Jan Beulich  <jbeulich@suse.com>
24782         * config/i386/sse.md
24783         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
24784         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
24785         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
24786         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
24787         avx512f_vmcmp<mode>3<round_saeonly_name>,
24788         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
24789         avx512f_maskcmp<mode>3,
24790         <avx512>_cvt<ssemodesuffix>2mask<mode>,
24791         <avx512>_cvt<ssemodesuffix>2mask<mode>,
24792         *<avx512>_cvtmask2<ssemodesuffix><mode>,
24793         *<avx512>_cvtmask2<ssemodesuffix><mode>,
24794         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
24795         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
24796         <avx512>_gt<mode>3<mask_scalar_merge_name>,
24797         <avx512>_gt<mode>3<mask_scalar_merge_name>,
24798         <avx512>_testm<mode>3<mask_scalar_merge_name>,
24799         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
24800         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
24801         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
24802         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
24803         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
24804         avx512cd_maskb_vec_dup<mode>,
24805         avx512cd_maskw_vec_dup<mode>,
24806         avx512dq_fpclass<mode><mask_scalar_merge_name>,
24807         avx512dq_vmfpclass<mode>,
24808         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
24809         instead of =Yk.
24811 2019-01-03  Martin Sebor  <msebor@redhat.com>
24813         PR tree-optimization/88659
24814         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
24816 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
24818         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
24819         unaligned vsx and avoid lxvd2x/stxvd2x.
24820         (gen_lvx_v4si_move): New function.
24822 2019-01-03  Tom de Vries  <tdevries@suse.de>
24824         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
24825         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
24826         function.
24827         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
24829 2019-01-03  Tom de Vries  <tdevries@suse.de>
24831         * config/nvptx/nvptx.c (struct offload_attrs): New.
24832         (populate_offload_attrs): New function.  Factor mask extraction out of
24833         nvptx_reorg.  Add extraction of dimensions.
24834         (nvptx_reorg): Use populate_offload_attrs.
24836 2019-01-03  Tom de Vries  <tdevries@suse.de>
24838         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
24839         cases for oacc_min_dims_p and routine_p.  Add asserts for
24840         oacc_default_dims_p and offload_region_p.
24842 2019-01-03  Tom de Vries  <tdevries@suse.de>
24844         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
24845         factored out of ...
24846         (nvptx_goacc_validate_dims): ... here.
24848 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
24850         PR tree-optimization/85574
24851         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
24852         structure.
24853         (struct ssa_equip_hash_traits): Declare.
24854         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
24856 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
24858         PR debug/88644
24859         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
24860         change it to qualified_type.
24862 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
24864         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
24865         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
24867 2019-01-02  Martin Sebor  <msebor@redhat.com>
24868             Jeff Law  <law@redhat.com>
24870         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
24871         (get_range_strlen_tree): Update appropriately.
24872         (get_range_strlen)
24873         * gimple-fold.h (get_range_strlen): Drop unused last argument.
24875         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
24876         rather than set_range_info.
24877         * tree-ssa-strlen.c (set_strlen_range): Extracted from
24878         maybe_set_strlen_range.  Handle potentially boundary crossing
24879         cases more conservatively.
24880         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
24881         Call set_strlen_range.
24882         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
24884         PR middle-end/88663
24885         * gimple-fold.c (get_range_strlen): Update prototype to no longer
24886         need the flexp argument.
24887         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
24888         from calls to get_range_strlen.  Update comments.  Just update
24889         VAL for an unterminated const char array and let the reset of the
24890         code handle it normally.  No longer try to set *flexp.  Adjust
24891         return value.
24892         (get_range_strlen): Update for the new get_range_strlen API.
24893         (get_maxval_strlen): Similarly.
24894         (gimple_fold_builtin_strlen): Handle update meaning of return value
24895         from get_range_strlen.
24896         * gimple-ssa-sprintf.c (get_string_length): Update for the new
24897         get_range_strlen API.
24899 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
24901         PR lto/88130
24902         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
24903         false at WPA time when body was removed.
24905 2019-01-02  Martin Liska  <mliska@suse.cz>
24907         PR tree-optimization/88650
24908         * predict.c (set_even_probabilities): Calculate probability
24909         remainer only when really used.
24911 2019-01-02  Richard Biener  <rguenther@suse.de>
24913         PR middle-end/88651
24914         * tree-data-ref.c (analyze_subscript_affine_affine): Use
24915         widest_ints when mangling max_stmt_execution results.
24917 2019-01-02  Richard Biener  <rguenther@suse.de>
24919         PR tree-optimization/88621
24920         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
24921         bitfields when canoncalizing.
24923 2019-01-02  Richard Biener  <rguenther@suse.de>
24925         PR target/87545
24926         * config/i386/x86-tune-costs.h (intel_cost): Adjust
24927         cost of cheap SSE instruction.
24929 2019-01-02  Richard Biener  <rguenther@suse.de>
24931         PR ipa/85574
24932         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
24933         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
24934         function.
24935         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
24936         set after UIDs before splitting them.
24938 2019-01-01  Martin Sebor  <msebor@redhat.com>
24939             Jeff Law  <law@redhat.com>
24941         * gimple-fold.c (get_range_strlen_tree): Record if the computed
24942         length is optimistic.  If it is, then arrange to compute the
24943         conservative length as well.
24945         * gimple-fold.h (get_range_strlen): Update prototype.
24946         * builtins.c (check_access): Update call to get_range_strlen to use
24947         c_strlen_data pointer.   Change various variable accesses to instead
24948         pull data from the c_strlen_data structure.
24949         (check_strncat_sizes, expand_builtin_strncat): Likewise.
24950         * calls.c (maybe_warn_nonstring_arg): Likewise.
24951         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
24952         minimum length if maximum lengh is unknown.
24953         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
24954         that used c_strlen, it's no longer needed.  Restructure slightly.
24955         (format_string): Set unlikely range appropriately.
24956         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
24957         formatting issues.
24958         (get_range_strlen): Accept c_strlen_data pointer for external
24959         call sites as well.  Pass through to call to internal get_range_strlen.
24960         Adjust minlen, maxlen and maxbound as needed.
24961         (get_maxval_strlen): Update comments.
24962         (gimple_fold_builtin_strlen): Update call to get_range_strlen
24963         to use c_strlen_data pointer.  Change variable accesses to instead
24964         use c_strlen_data data members.
24966         * gimple-fold.c (get_range_strlen): Update prototype.
24967         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
24968         local variables.  Use pdata to return information to caller.
24969         Update calls to get_range_strlen.  Update pdata->maxbound.
24970         (get_range_strlen -- static version): Similarly.
24971         (get_range_strlen -- extern version): Update for internal
24972         get_range_strlen API change.  Convert to external data format.
24973         (get_maxval_strlen): Similarly.
24975 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
24977         * coverage.c (get_coverage_counts): Use current_function_decl.
24978         * profile.c (read_thunk_profile): New function.
24979         (branch_prob): Add THUNK parameter.
24980         * tree-profile.c (tree_profiling): Handle thunks.
24981         * value-prof.c (init_node_map): Handle thunks.
24982         * value-prof.h (branch_prob): Upate prototype.
24983         (read_thunk_profile): Declare.
24985 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
24987         Update copyright years.
24989         * gcc.c (process_command): Update copyright notice dates.
24990         * gcov-dump.c (print_version): Ditto.
24991         * gcov.c (print_version): Ditto.
24992         * gcov-tool.c (print_version): Ditto.
24993         * gengtype.c (create_file): Ditto.
24994         * doc/cpp.texi: Bump @copying's copyright year.
24995         * doc/cppinternals.texi: Ditto.
24996         * doc/gcc.texi: Ditto.
24997         * doc/gccint.texi: Ditto.
24998         * doc/gcov.texi: Ditto.
24999         * doc/install.texi: Ditto.
25000         * doc/invoke.texi: Ditto.
25002 Copyright (C) 2019 Free Software Foundation, Inc.
25004 Copying and distribution of this file, with or without modification,
25005 are permitted in any medium without royalty provided the copyright
25006 notice and this notice are preserved.