1 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
3 * function.c (aggregate_value_p): Work out which ABI the
4 function is using before testing which registers are at least
5 partly preserved by a call.
7 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9 * early-remat.c: Include regs.h and function-abi.h.
10 (early_remat::maybe_add_candidate): Don't check for call-clobbered
12 (early_remat::restrict_remat_for_unavail_regs): New function.
13 (early_remat::restrict_remat_for_call): Likewise.
14 (early_remat::process_block): Before calling emit_remat_insns
15 for a previous call in the block, invalidate any candidates
16 that would clobber call-preserved registers.
17 (early_remat::emit_remat_insns_for_block): Likewise for the
18 final call in a block. Do the same thing for live-in registers
19 when calling emit_remat_insns at the head of a block.
21 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
23 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
24 whether the current function needs to save at least part of a
25 register before using it.
26 (df_get_exit_block_use_set): Likewise for epilogue restores.
28 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
30 * df-problems.c: Include regs.h and function-abi.h.
31 (df_rd_problem_data): Rename sparse_invalidated_by_call to
32 sparse_invalidated_by_eh and dense_invalidated_by_call to
33 dense_invalidated_by_eh.
34 (df_print_bb_index): Update accordingly.
35 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
36 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
37 that are clobbered by an EH edge. Clobber partially-clobbered
38 registers as well as fully-clobbered ones.
39 (df_md_confluence_n): Likewise.
40 (df_rd_local_compute): Likewise. Update for changes to
42 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
43 of registers that are clobbered by an EH edge. Includde partially-
44 clobbered registers as well as fully-clobbered ones.
46 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
48 * cselib.c (cselib_process_insn): If we know what mode a
49 register was set in, check whether it is clobbered in that
50 mode by a call. Only fall back to reg_raw_mode if that fails.
52 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
54 * cse.c: Include regs.h and function-abi.h.
55 (invalidate_for_call): Take the call insn as an argument.
56 Use insn_callee_abi to get the ABI of the call and invalidate
57 partially clobbered registers as well as fully clobbered ones.
58 (cse_insn): Update call accordingly.
60 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
62 * combine.c: Include function-abi.h.
63 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
64 of the target of call insns. Invalidate partially-clobbered
65 registers as well as fully-clobbered ones.
67 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
69 * cfgloopanal.c: Include regs.h and function-abi.h.
70 (init_set_costs): Use default_function_abi to test whether
71 a general register is call-clobbered.
73 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
75 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
76 instead of the call-clobbered sets.
78 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
80 * caller-save.c (setup_save_areas): Remove redundant |s of
82 (save_call_clobbered_regs): Likewise. Use the call ABI rather
83 than call_used_or_fixed_regs to decide whether a REG_RETURNED
86 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
88 * rtl.h (predefined_function_abi): Declare.
89 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
90 instead of a boolean call_save flag.
91 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
93 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
94 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
95 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
96 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
97 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
98 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
99 * reginfo.c (init_reg_modes_target): Likewise.
100 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
101 instead of a boolean call_save flag.
102 * targhooks.c: Include function-abi.h.
103 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
104 using eh_edge_abi to choose the mode.
106 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
108 * target.def (hard_regno_call_part_clobbered): Take an ABI
109 identifier instead of an rtx_insn.
110 * doc/tm.texi: Regenerate.
111 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
112 (hook_bool_uint_uint_mode_false): New function.
113 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
114 (hook_bool_uint_uint_mode_false): New function.
115 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
116 Take an ABI identifier instead of an rtx_insn.
117 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
118 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
119 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
120 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
121 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
123 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
124 * cselib.c: Include function-abi.h.
125 (cselib_process_insn): Update call to
126 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
127 to get the appropriate ABI identifier.
128 * function-abi.cc (predefined_function_abi::initialize): Update call
129 to targetm.hard_regno_call_part_clobbered.
130 * ira-conflicts.c (ira_build_conflicts): Likewise.
131 * ira-costs.c (ira_tune_allocno_costs): Likewise.
132 * lra-constraints.c: Include function-abi.h.
133 (need_for_call_save_p): Update call to
134 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
135 to get the appropriate ABI identifier.
136 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
137 * regcprop.c (copyprop_hardreg_forward_1): Update call
138 to targetm.hard_regno_call_part_clobbered.
139 * reginfo.c (choose_hard_reg_mode): Likewise.
140 * regrename.c (check_new_reg_p): Likewise.
141 * reload.c (find_equiv_reg): Likewise.
142 * reload1.c (emit_reload_insns): Likewise.
143 * sched-deps.c: Include function-abi.h.
144 (deps_analyze_insn): Update call to
145 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
146 to get the appropriate ABI identifier.
147 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
148 call to targetm.hard_regno_call_part_clobbered.
149 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
151 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
153 * config/i386/i386.c: Include function-abi.h.
154 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
155 if they preserve some 256-bit or 512-bit SSE registers.
157 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
159 * target.def (insn_callee_abi): New hook.
160 (remove_extra_call_preserved_regs): Delete.
161 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
162 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
163 * doc/tm.texi: Regenerate.
164 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
165 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
166 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
168 (aarch64_remove_extra_call_preserved_regs): Delete.
169 (aarch64_insn_callee_abi): New function.
170 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
171 (TARGET_INSN_CALLEE_ABI): New macro.
172 * rtl.h (get_call_fndecl): Declare.
173 (cgraph_rtl_info): Fix formatting. Tweak comment for
174 function_used_regs. Remove function_used_regs_valid.
175 * rtlanal.c (get_call_fndecl): Moved from final.c
176 * function-abi.h (insn_callee_abi): Declare.
177 (target_function_abi_info): Mention insn_callee_abi.
178 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
179 way to get_call_reg_set_usage did.
180 (insn_callee_abi): New function.
181 * regs.h (get_call_reg_set_usage): Delete.
182 * final.c: Include function-abi.h.
183 (collect_fn_hard_reg_usage): Add fixed and stack registers to
184 function_used_regs before the main loop rather than afterwards.
185 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
186 if function_used_regs ends up not being useful.
187 (get_call_fndecl): Move to rtlanal.c
188 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
189 * caller-save.c: Include function-abi.h.
190 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
191 instead of get_call_reg_set_usage.
192 * cfgcleanup.c: Include function-abi.h.
193 (old_insns_match_p): Use insn_callee_abi instead of
194 get_call_reg_set_usage.
195 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
197 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
199 * df-scan.c: Include function-abi.h.
200 (df_get_call_refs): Use insn_callee_abi instead of
201 get_call_reg_set_usage.
202 * ira-lives.c: Include function-abi.h.
203 (process_bb_node_lives): Use insn_callee_abi instead of
204 get_call_reg_set_usage.
205 * lra-lives.c: Include function-abi.h.
206 (process_bb_lives): Use insn_callee_abi instead of
207 get_call_reg_set_usage.
208 * postreload.c: Include function-abi.h.
209 (reload_combine): Use insn_callee_abi instead of
210 get_call_reg_set_usage.
211 * regcprop.c: Include function-abi.h.
212 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
213 get_call_reg_set_usage.
214 * resource.c: Include function-abi.h.
215 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
216 instead of get_call_reg_set_usage.
217 * var-tracking.c: Include function-abi.h.
218 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
219 get_call_reg_set_usage.
221 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
223 * target.def (fntype_abi): New target hook.
224 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
225 * doc/tm.texi: Regenerate.
226 * target.h (predefined_function_abi): Declare.
227 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
229 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
230 * config/aarch64/aarch64.c: Include function-abi.h.
231 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
232 (TARGET_FNTYPE_ABI): Define.
234 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
236 * Makefile.in (OBJS): Add function-abi.o.
237 (GTFILES): Add function-abi.h.
238 * function-abi.cc: New file.
239 * function-abi.h: Likewise.
240 * emit-rtl.h (rtl_data::abi): New field.
241 * function.c: Include function-abi.h.
242 (prepare_function_start): Initialize crtl->abi.
243 * read-rtl-function.c: Include regs.h and function-abi.h.
244 (read_rtl_function_body): Initialize crtl->abi.
245 (read_rtl_function_body_from_file_range): Likewise.
246 * reginfo.c: Include function-abi.h.
247 (init_reg_sets_1): Initialize default_function_abi.
248 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
249 when making a register global.
250 * target-globals.h (this_target_function_abi_info): Declare.
251 (target_globals::function_abi_info): New field.
252 (restore_target_globals): Copy it.
253 * target-globals.c: Include function-abi.h.
254 (default_target_globals): Initialize the function_abi_info field.
255 (target_globals): Allocate it.
256 (save_target_globals): Free it.
258 2019-09-30 Nick Clifton <nickc@redhat.com>
261 * config/frv/frv.c (frv_register_move_cost): Add break statements
262 to avoid falling through to the wrong cases. Tidy code.
264 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
266 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
267 For multi-registers modes, test how big each register part is.
269 2019-09-30 Nick Clifton <nickc@redhat.com>
272 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
273 (TARGET_ASM_SELECT_SECTION): Remove definition.
274 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
276 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
278 * emit-rtl.c (init_raw_REG): New function.
279 (gen_raw_REG): Use init_raw_REG.
280 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
282 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
283 * rtl.h (rtx_init): New function.
284 (rtx_alloca): New function.
285 (init_raw_REG): New function.
286 (alloca_raw_REG): New macro.
288 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
290 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
291 (pcrel_local_address): Replace pcrel_address predicate, use the
292 new function address_to_insn_form.
293 (pcrel_external_address): Replace with new implementation using
294 address_to_insn_form..
295 (prefixed_mem_operand): Delete predicate which is now unused.
296 (pcrel_external_mem_operand): Delete predicate which is now
298 * config/rs6000/rs6000-protos.h (enum insn_form): New
300 (enum non_prefixed): New enumeration.
301 (address_to_insn_form): New declaration.
302 (prefixed_load_p): New declaration.
303 (prefixed_store_p): New declaration.
304 (prefixed_paddi_p): New declaration.
305 (rs6000_asm_output_opcode): New declaration.
306 (rs6000_final_prescan_insn): Move declaration and update calling
308 (address_is_prefixed): New helper inline function.
309 * config/rs6000/rs6000.c(print_operand_address): Check for either
310 PC-relative local symbols or PC-relative external symbols.
311 (rs6000_emit_move): Support loading PC-relative addresses.
312 (mode_supports_prefixed_address_p): Delete, no longer used.
313 (rs6000_prefixed_address_mode_p): Delete, no longer used.
314 (address_to_insn_form): New function to decode an address format.
315 (reg_to_non_prefixed): New function to identify what the
316 non-prefixed memory instruction format is for a register.
317 (prefixed_load_p): New function to identify prefixed loads.
318 (prefixed_store_p): New function to identify prefixed stores.
319 (prefixed_paddi_p): New function to identify prefixed load
321 (next_insn_prefixed_p): New static state variable.
322 (rs6000_final_prescan_insn): New function to determine if an insn
323 uses a prefixed instruction.
324 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
325 prefixed instruction.
326 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
327 (ASM_OUTPUT_OPCODE): New target hook.
328 * config/rs6000/rs6000.md (prefixed): New insn attribute for
329 prefixed instructions.
330 (prefixed_length): New insn attribute for the size of prefixed
332 (non_prefixed_length): New insn attribute for the size of
333 non-prefixed instructions.
334 (pcrel_local_addr): New insn to load up a local PC-relative
336 (pcrel_extern_addr): New insn to load up an external PC-relative
338 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
339 GPR and loading a 128-bit floating point type to a GPR.
341 2019-09-30 Richard Biener <rguenther@suse.de>
343 * gimple.c (gimple_get_lhs): For PHIs return the result.
344 * tree-vectorizer.h (vectorizable_live_operation): Also get the
345 SLP instance as argument.
346 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
347 double-reduction PHIs with vectorizable_lc_phi.
348 (vect_analyze_loop_operations): Adjust.
349 (vect_create_epilog_for_reduction): Remove all code not dealing
350 with reduction LC PHI or epilogue generation.
351 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
352 for live stmts of reductions.
353 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
354 do not handle defs that are not vect_internal_def.
355 (can_vectorize_live_stmts): Adjust.
356 (vect_analyze_stmt): When the vectorized stmt defined a value
357 used on backedges adjust the backedge uses of vectorized PHIs.
359 2019-09-30 Martin Jambor <mjambor@suse.cz>
362 * tree-inline.c (force_value_to_type): New function.
363 (setup_one_parameter): Use force_value_to_type to convert type.
364 * tree-inline.c (force_value_to_type): Declare.
365 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
366 with register type mismatches.
368 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
370 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
372 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
373 * config/rs6000/t-freebsd64: Make use of the above define and build
374 the 32-bit libraries with secure-plt.
376 2019-09-30 Jakub Jelinek <jakub@redhat.com>
379 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
380 gen_int_mode instead of GEN_INT.
382 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
384 * config/darwin.c (gen_macho_low): Amend to include the mode
386 (machopic_indirect_data_reference): Amend gen_macho_low call
387 to include mode argument
388 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
389 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
390 the macho_high expander and two define_insn entries.
392 2019-09-29 Jakub Jelinek <jakub@redhat.com>
395 * optc-save-gen.awk: Fix up printing string option differences.
397 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
399 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
400 vec_perm cost to 1 for non-Power7 VSX architectures.
402 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
404 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
405 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
406 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
408 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
410 * config/darwin.c (gen_macho_high): Amend to include the mode
412 (machopic_indirect_data_reference): Amend gen_macho_high call
413 to include mode argument.
414 (machopic_legitimize_pic_address): Likewise.
415 * config/rs6000/rs6000.c (rs6000_legitimize_address):
416 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
417 the macho_high expander and two define_insn entries.
419 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
422 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
424 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
427 * config/sh/sh.c (parse_validate_atomic_model_option): Use
428 std::string::compare instead of std::string::find.
430 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
432 * configure: Regenerate.
434 2019-09-27 Jakub Jelinek <jakub@redhat.com>
437 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
440 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
442 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
443 replaces the expander and two define_insn entries.
444 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
446 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
448 2019-09-27 David Malcolm <dmalcolm@redhat.com>
450 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
451 (fibonacci_heap::nodes): Likewise.
452 (fibonacci_heap::min_key): Likewise.
453 (fibonacci_heap::min): Likewise.
455 2019-09-27 David Malcolm <dmalcolm@redhat.com>
457 * cgraph.c (cgraph_node::get_fun): Make const.
458 * cgraph.h (cgraph_node::get_fun): Likewise.
460 2019-09-27 Jakub Jelinek <jakub@redhat.com>
463 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
466 2019-09-27 Richard Biener <rguenther@suse.de>
468 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
469 (STMT_VINFO_REDUC_FN): Likewise.
470 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
472 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
473 for condition reductions.
474 (vect_create_epilog_for_reduction): Compute all required state
475 from the stmt to be vectorized.
476 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
477 invocation and remove then dead code. For single def-use chains
478 record only a single vector stmt.
480 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
482 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
483 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
484 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
485 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
486 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
487 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
488 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
489 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
490 (aarch64_general_builtin_rsqrt): Declare.
491 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
493 (aarch64_mangle_builtin_type): Rename to...
494 (aarch64_general_mangle_builtin_type): ...this.
495 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
496 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
497 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
498 aarch64_general_add_builtin instead of add_builtin_function.
499 (aarch64_init_builtins): Rename to...
500 (aarch64_general_init_builtins): ...this. Use
501 aarch64_general_add_builtin instead of add_builtin_function.
502 (aarch64_builtin_decl): Rename to...
503 (aarch64_general_builtin_decl): ...this and remove the unused
505 (aarch64_expand_builtin): Rename to...
506 (aarch64_general_expand_builtin): ...this and remove the unused
508 (aarch64_builtin_rsqrt): Rename to...
509 (aarch64_general_builtin_rsqrt): ...this.
510 (aarch64_fold_builtin): Rename to...
511 (aarch64_general_fold_builtin): ...this. Take the function subcode
512 and return type as arguments. Remove the "ignored" argument.
513 (aarch64_gimple_fold_builtin): Rename to...
514 (aarch64_general_gimple_fold_builtin): ...this. Take the function
515 subcode and gcall as arguments, and return the new function call.
516 * config/aarch64/aarch64.c (aarch64_init_builtins)
517 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
518 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
519 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
520 instead of aarch64_builtin_rsqrt.
521 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
522 instead of aarch64_mangle_builtin_type.
524 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
526 * target.def (check_builtin_call): New target hook.
527 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
528 * doc/tm.texi: Regenerate.
530 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
532 PR tree-optimization/91909
533 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
534 reduc_index parameter. When handling COND_REDUCTION, make sure
535 that the reduction phi operand is in the correct arm of the
537 (vectorizable_reduction): Pass reduc_index to the above.
539 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
541 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
544 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
546 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
547 loop instruction into new basic block before the loop when basic
548 block that precedes the loop is empty.
550 2019-09-26 Jakub Jelinek <jakub@redhat.com>
552 * function.c (gimplify_parameters): Use build_clobber function.
553 * tree-ssa.c (execute_update_addresses_taken): Likewise.
554 * tree-inline.c (expand_call_inline): Likewise.
555 * tree-sra.c (clobber_subtree): Likewise.
556 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
557 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
558 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
559 lower_omp_target): Likewise.
560 * omp-expand.c (expand_omp_for_generic): Likewise.
561 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
563 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
565 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
566 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
567 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
568 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
569 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
570 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
571 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
572 LD_ELEMREV_V16QI): Use the PURE attribute.
574 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
576 * config/rs6000/darwin.md: Replace the expanders for
577 load_macho_picbase and reload_macho_picbase with use of '@'
578 and <mode> in their respective define_insns.
579 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
580 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
581 Pmode to gen_load_macho_picbase.
582 * config/rs6000/rs6000.md: Likewise.
584 2019-09-25 Richard Biener <rguenther@suse.de>
586 PR tree-optimization/91896
587 * tree-vect-loop.c (vectorizable_reduction): The single
588 def-use cycle optimization cannot apply when there's more
589 than one pattern stmt involved.
591 2019-09-26 Richard Biener <rguenther@suse.de>
593 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
594 loop-closed PHIs that are vect_internal_def.
595 (vect_create_epilog_for_reduction): Exit early for nested cycles.
597 (vectorizable_lc_phi): New.
598 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
599 (vect_transform_stmt): Likewise.
600 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
601 (vectorizable_lc_phi): Declare.
603 2019-09-26 Richard Biener <rguenther@suse.de>
605 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
606 vectorizable_reduction for vect_double_reduction_def.
607 (vect_transform_loop): Likewise.
608 (vect_create_epilog_for_reduction): Move double-reduction
609 PHI creation and preheader argument setting of PHIs ...
610 (vectorizable_reduction): ... here. Also process
611 vect_double_reduction_def PHIs, creating the vectorized
612 PHI nodes, remembering the scalar adjustment computed for
613 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
614 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
615 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
616 Initialize STMT_VINFO_REDUC_CODE.
617 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
618 (_stmt_vec_info::reduc_code): Likewise.
619 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
620 (STMT_VINFO_REDUC_CODE): Likewise.
622 2019-09-26 Matt Turner <mattst88@gmail.com>
625 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
626 (mtune=): Add Negative(mtune=).
627 (mcpu=): Add Negative(mcpu=).
628 * config/arm/arm.opt: Likewise.
630 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
632 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
633 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
635 * config/arm/arm_acle.h: Define builtins for the above.
636 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
637 (simd32_op): Handle the above.
638 * config/arm/unspecs.md: Define unspecs for the above.
640 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
642 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
643 (arm_<sup>xtb16): Likewise.
644 (arm_usada8): Likewise.
645 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
646 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
647 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
648 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
649 __sxtb16, __uxtab16, __uxtb16): Define.
650 * config/arm/arm_acle_builtins.def: Define builtins for the above.
651 * config/arm/unspecs.md: Define unspecs for the above.
652 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
654 (simd32_op): New int_attribute.
655 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
656 * doc/sourcebuild.exp (arm_simd32_ok): Document.
658 2019-09-26 Martin Jambor <mjambor@suse.cz>
660 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
663 2019-09-26 Martin Jambor <mjambor@suse.cz>
665 * ipa-sra.c (process_scan_results): Fix continue condition.
667 2019-09-26 Martin Liska <mliska@suse.cz>
669 PR tree-optimization/91885
670 * tree-vectorizer.c (try_vectorize_loop_1): Add
671 TODO_update_ssa_only_virtuals similarly to what slp pass does.
673 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
675 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
676 aarch64_plus_immediate rather than aarch64_uimm12_shift
677 to test for valid PLUS immediates.
679 2019-09-25 Martin Jambor <mjambor@suse.cz>
681 * tree-sra.c (no_accesses_p): Remove.
682 (no_accesses_representant): Likewise.
684 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
686 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
688 (vaba_s16): Likewise.
689 (vaba_s32): Likewise.
691 (vaba_u16): Likewise.
692 (vaba_u32): Likewise.
693 (vabal_high_s8): Likewise.
694 (vabal_high_s16): Likewise.
695 (vabal_high_s32): Likewise.
696 (vabal_high_u8): Likewise.
697 (vabal_high_u16): Likewise.
698 (vabal_high_u32): Likewise.
699 (vabal_s8): Likewise.
700 (vabal_s16): Likewise.
701 (vabal_s32): Likewise.
702 (vabal_u8): Likewise.
703 (vabal_u16): Likewise.
704 (vabal_u32): Likewise.
705 (vabaq_s8): Likewise.
706 (vabaq_s16): Likewise.
707 (vabaq_s32): Likewise.
708 (vabaq_u8): Likewise.
709 (vabaq_u16): Likewise.
710 (vabaq_u32): Likewise.
712 (vabd_s16): Likewise.
713 (vabd_s32): Likewise.
715 (vabd_u16): Likewise.
716 (vabd_u32): Likewise.
717 (vabdl_high_s8): Likewise.
718 (vabdl_high_s16): Likewise.
719 (vabdl_high_s32): Likewise.
720 (vabdl_high_u8): Likewise.
721 (vabdl_high_u16): Likewise.
722 (vabdl_high_u32): Likewise.
723 (vabdl_s8): Likewise.
724 (vabdl_s16): Likewise.
725 (vabdl_s32): Likewise.
726 (vabdl_u8): Likewise.
727 (vabdl_u16): Likewise.
728 (vabdl_u32): Likewise.
729 (vabdq_s8): Likewise.
730 (vabdq_s16): Likewise.
731 (vabdq_s32): Likewise.
732 (vabdq_u8): Likewise.
733 (vabdq_u16): Likewise.
734 (vabdq_u32): Likewise.
735 (vaddlv_s8): Likewise.
736 (vaddlv_s16): Likewise.
737 (vaddlv_u8): Likewise.
738 (vaddlv_u16): Likewise.
739 (vaddlvq_s8): Likewise.
740 (vaddlvq_s16): Likewise.
741 (vaddlvq_s32): Likewise.
742 (vaddlvq_u8): Likewise.
743 (vaddlvq_u16): Likewise.
744 (vaddlvq_u32): Likewise.
745 (vcvtx_f32_f64): Likewise.
746 (vcvtx_high_f32_f64): Likewise.
747 (vcvtxd_f32_f64): Likewise.
748 (vmla_n_f32): Likewise.
749 (vmla_n_s16): Likewise.
750 (vmla_n_s32): Likewise.
751 (vmla_n_u16): Likewise.
752 (vmla_n_u32): Likewise.
754 (vmla_s16): Likewise.
755 (vmla_s32): Likewise.
757 (vmla_u16): Likewise.
758 (vmla_u32): Likewise.
759 (vmlal_high_n_s16): Likewise.
760 (vmlal_high_n_s32): Likewise.
761 (vmlal_high_n_u16): Likewise.
762 (vmlal_high_n_u32): Likewise.
763 (vmlal_high_s8): Likewise.
764 (vmlal_high_s16): Likewise.
765 (vmlal_high_s32): Likewise.
766 (vmlal_high_u8): Likewise.
767 (vmlal_high_u16): Likewise.
768 (vmlal_high_u32): Likewise.
769 (vmlal_n_s16): Likewise.
770 (vmlal_n_s32): Likewise.
771 (vmlal_n_u16): Likewise.
772 (vmlal_n_u32): Likewise.
773 (vmlal_s8): Likewise.
774 (vmlal_s16): Likewise.
775 (vmlal_s32): Likewise.
776 (vmlal_u8): Likewise.
777 (vmlal_u16): Likewise.
778 (vmlal_u32): Likewise.
779 (vmlaq_n_f32): Likewise.
780 (vmlaq_n_s16): Likewise.
781 (vmlaq_n_s32): Likewise.
782 (vmlaq_n_u16): Likewise.
783 (vmlaq_n_u32): Likewise.
784 (vmlaq_s8): Likewise.
785 (vmlaq_s16): Likewise.
786 (vmlaq_s32): Likewise.
787 (vmlaq_u8): Likewise.
788 (vmlaq_u16): Likewise.
789 (vmlaq_u32): Likewise.
790 (vmls_n_f32): Likewise.
791 (vmls_n_s16): Likewise.
792 (vmls_n_s32): Likewise.
793 (vmls_n_u16): Likewise.
794 (vmls_n_u32): Likewise.
796 (vmls_s16): Likewise.
797 (vmls_s32): Likewise.
799 (vmls_u16): Likewise.
800 (vmls_u32): Likewise.
801 (vmlsl_high_n_s16): Likewise.
802 (vmlsl_high_n_s32): Likewise.
803 (vmlsl_high_n_u16): Likewise.
804 (vmlsl_high_n_u32): Likewise.
805 (vmlsl_high_s8): Likewise.
806 (vmlsl_high_s16): Likewise.
807 (vmlsl_high_s32): Likewise.
808 (vmlsl_high_u8): Likewise.
809 (vmlsl_high_u16): Likewise.
810 (vmlsl_high_u32): Likewise.
811 (vmlsl_n_s16): Likewise.
812 (vmlsl_n_s32): Likewise.
813 (vmlsl_n_u16): Likewise.
814 (vmlsl_n_u32): Likewise.
815 (vmlsl_s8): Likewise.
816 (vmlsl_s16): Likewise.
817 (vmlsl_s32): Likewise.
818 (vmlsl_u8): Likewise.
819 (vmlsl_u16): Likewise.
820 (vmlsl_u32): Likewise.
821 (vmlsq_n_f32): Likewise.
822 (vmlsq_n_s16): Likewise.
823 (vmlsq_n_s32): Likewise.
824 (vmlsq_n_u16): Likewise.
825 (vmlsq_n_u32): Likewise.
826 (vmlsq_s8): Likewise.
827 (vmlsq_s16): Likewise.
828 (vmlsq_s32): Likewise.
829 (vmlsq_u8): Likewise.
830 (vmlsq_u16): Likewise.
831 (vmlsq_u32): Likewise.
832 (vmovl_high_s8): Likewise.
833 (vmovl_high_s16): Likewise.
834 (vmovl_high_s32): Likewise.
835 (vmovl_high_u8): Likewise.
836 (vmovl_high_u16): Likewise.
837 (vmovl_high_u32): Likewise.
838 (vmovl_s8): Likewise.
839 (vmovl_s16): Likewise.
840 (vmovl_s32): Likewise.
841 (vmovl_u8): Likewise.
842 (vmovl_u16): Likewise.
843 (vmovl_u32): Likewise.
844 (vmovn_high_s16): Likewise.
845 (vmovn_high_s32): Likewise.
846 (vmovn_high_s64): Likewise.
847 (vmovn_high_u16): Likewise.
848 (vmovn_high_u32): Likewise.
849 (vmovn_high_u64): Likewise.
850 (vmovn_s16): Likewise.
851 (vmovn_s32): Likewise.
852 (vmovn_s64): Likewise.
853 (vmovn_u16): Likewise.
854 (vmovn_u32): Likewise.
855 (vmovn_u64): Likewise.
856 (vmull_high_n_s16): Likewise.
857 (vmull_high_n_s32): Likewise.
858 (vmull_high_n_u16): Likewise.
859 (vmull_high_n_u32): Likewise.
860 (vmull_high_p8): Likewise.
861 (vmull_high_s8): Likewise.
862 (vmull_high_s16): Likewise.
863 (vmull_high_s32): Likewise.
864 (vmull_high_u8): Likewise.
865 (vmull_high_u16): Likewise.
866 (vmull_high_u32): Likewise.
867 (vmull_n_s16): Likewise.
868 (vmull_n_s32): Likewise.
869 (vmull_n_u16): Likewise.
870 (vmull_n_u32): Likewise.
871 (vmull_p8): Likewise.
872 (vmull_s8): Likewise.
873 (vmull_s16): Likewise.
874 (vmull_s32): Likewise.
875 (vmull_u8): Likewise.
876 (vmull_u16): Likewise.
877 (vmull_u32): Likewise.
878 (vpadal_s8): Likewise.
879 (vpadal_s16): Likewise.
880 (vpadal_s32): Likewise.
881 (vpadal_u8): Likewise.
882 (vpadal_u16): Likewise.
883 (vpadal_u32): Likewise.
884 (vpadalq_s8): Likewise.
885 (vpadalq_s16): Likewise.
886 (vpadalq_s32): Likewise.
887 (vpadalq_u8): Likewise.
888 (vpadalq_u16): Likewise.
889 (vpadalq_u32): Likewise.
890 (vpaddl_s8): Likewise.
891 (vpaddl_s16): Likewise.
892 (vpaddl_s32): Likewise.
893 (vpaddl_u8): Likewise.
894 (vpaddl_u16): Likewise.
895 (vpaddl_u32): Likewise.
896 (vpaddlq_s8): Likewise.
897 (vpaddlq_s16): Likewise.
898 (vpaddlq_s32): Likewise.
899 (vpaddlq_u8): Likewise.
900 (vpaddlq_u16): Likewise.
901 (vpaddlq_u32): Likewise.
902 (vpaddq_s8): Likewise.
903 (vpaddq_s16): Likewise.
904 (vpaddq_s32): Likewise.
905 (vpaddq_s64): Likewise.
906 (vpaddq_u8): Likewise.
907 (vpaddq_u16): Likewise.
908 (vpaddq_u32): Likewise.
909 (vpaddq_u64): Likewise.
910 (vqdmulh_n_s16): Likewise.
911 (vqdmulh_n_s32): Likewise.
912 (vqdmulhq_n_s16): Likewise.
913 (vqdmulhq_n_s32): Likewise.
914 (vqmovn_high_s16): Likewise.
915 (vqmovn_high_s32): Likewise.
916 (vqmovn_high_s64): Likewise.
917 (vqmovn_high_u16): Likewise.
918 (vqmovn_high_u32): Likewise.
919 (vqmovn_high_u64): Likewise.
920 (vqmovun_high_s16): Likewise.
921 (vqmovun_high_s32): Likewise.
922 (vqmovun_high_s64): Likewise.
923 (vqrdmulh_n_s16): Likewise.
924 (vqrdmulh_n_s32): Likewise.
925 (vqrdmulhq_n_s16): Likewise.
926 (vqrdmulhq_n_s32): Likewise.
927 (vrsqrte_u32): Likewise.
928 (vrsqrteq_u32): Likewise.
930 (vtst_p16): Likewise.
931 (vtst_p64): Likewise.
932 (vtstq_p8): Likewise.
933 (vtstq_p16): Likewise.
934 (vtstq_p64): Likewise.
935 (vaddlv_s32): Likewise.
936 (vaddlv_u32): Likewise.
937 (vqtbl1_p8): Likewise.
938 (vqtbl1_s8): Likewise.
939 (vqtbl1_u8): Likewise.
940 (vqtbl1q_p8): Likewise.
941 (vqtbl1q_s8): Likewise.
942 (vqtbl1q_u8): Likewise.
943 (vqtbx1_s8): Likewise.
944 (vqtbx1_u8): Likewise.
945 (vqtbx1_p8): Likewise.
946 (vqtbx1q_s8): Likewise.
947 (vqtbx1q_u8): Likewise.
948 (vqtbx1q_p8): Likewise.
949 (vtbl1_s8): Likewise.
950 (vtbl1_u8): Likewise.
951 (vtbl1_p8): Likewise.
952 (vtbl2_s8): Likewise.
953 (vtbl2_u8): Likewise.
954 (vtbl2_p8): Likewise.
955 (vtbl3_s8): Likewise.
956 (vtbl3_u8): Likewise.
957 (vtbl3_p8): Likewise.
958 (vtbl4_s8): Likewise.
959 (vtbl4_u8): Likewise.
960 (vtbl4_p8): Likewise.
961 (vtbx2_s8): Likewise.
962 (vtbx2_u8): Likewise.
963 (vtbx2_p8): Likewise.
964 (vld1_f32): Likewise.
965 (vld1_f64): Likewise.
967 (vld1_p16): Likewise.
968 (vld1_p64): Likewise.
970 (vld1_s16): Likewise.
971 (vld1_s32): Likewise.
972 (vld1_s64): Likewise.
974 (vld1_u16): Likewise.
975 (vld1_u32): Likewise.
976 (vld1_u64): Likewise.
977 (vld1q_f32): Likewise.
978 (vld1q_f64): Likewise.
979 (vld1q_p8): Likewise.
980 (vld1q_p16): Likewise.
981 (vld1q_p64): Likewise.
982 (vld1q_s8): Likewise.
983 (vld1q_s16): Likewise.
984 (vld1q_s32): Likewise.
985 (vld1q_s64): Likewise.
986 (vld1q_u8): Likewise.
987 (vld1q_u16): Likewise.
988 (vld1q_u32): Likewise.
989 (vld1q_u64): Likewise.
990 (vpmax_s8): Likewise.
991 (vpmax_s16): Likewise.
992 (vpmax_s32): Likewise.
993 (vpmax_u8): Likewise.
994 (vpmax_u16): Likewise.
995 (vpmax_u32): Likewise.
996 (vpmaxq_s8): Likewise.
997 (vpmaxq_s16): Likewise.
998 (vpmaxq_s32): Likewise.
999 (vpmaxq_u8): Likewise.
1000 (vpmaxq_u16): Likewise.
1001 (vpmaxq_u32): Likewise.
1002 (vpmax_f32): Likewise.
1003 (vpmaxq_f32): Likewise.
1004 (vpmaxq_f64): Likewise.
1005 (vpmaxqd_f64): Likewise.
1006 (vpmaxs_f32): Likewise.
1007 (vpmaxnm_f32): Likewise.
1008 (vpmaxnmq_f32): Likewise.
1009 (vpmaxnmq_f64): Likewise.
1010 (vpmaxnmqd_f64): Likewise.
1011 (vpmaxnms_f32): Likewise.
1012 (vpmin_s8): Likewise.
1013 (vpmin_s16): Likewise.
1014 (vpmin_s32): Likewise.
1015 (vpmin_u8): Likewise.
1016 (vpmin_u16): Likewise.
1017 (vpmin_u32): Likewise.
1018 (vpminq_s8): Likewise.
1019 (vpminq_s16): Likewise.
1020 (vpminq_s32): Likewise.
1021 (vpminq_u8): Likewise.
1022 (vpminq_u16): Likewise.
1023 (vpminq_u32): Likewise.
1024 (vpmin_f32): Likewise.
1025 (vpminq_f32): Likewise.
1026 (vpminq_f64): Likewise.
1027 (vpminqd_f64): Likewise.
1028 (vpmins_f32): Likewise.
1029 (vpminnm_f32): Likewise.
1030 (vpminnmq_f32): Likewise.
1031 (vpminnmq_f64): Likewise.
1032 (vpminnmqd_f64): Likewise.
1033 (vpminnms_f32): Likewise.
1034 (vmla_f32): Likewise.
1035 (vmlaq_f32): Likewise.
1036 (vmlaq_f64): Likewise.
1037 (vmls_f32): Likewise.
1038 (vmlsq_f32): Likewise.
1039 (vmlsq_f64): Likewise.
1040 (vqtbl2_s8): Likewise.
1041 (vqtbl2_u8): Likewise.
1042 (vqtbl2_p8): Likewise.
1043 (vqtbl2q_s8): Likewise.
1044 (vqtbl2q_u8): Likewise.
1045 (vqtbl2q_p8): Likewise.
1046 (vqtbl3_s8): Likewise.
1047 (vqtbl3_u8): Likewise.
1048 (vqtbl3_p8): Likewise.
1049 (vqtbl3q_s8): Likewise.
1050 (vqtbl3q_u8): Likewise.
1051 (vqtbl3q_p8): Likewise.
1052 (vqtbl4_s8): Likewise.
1053 (vqtbl4_u8): Likewise.
1054 (vqtbl4_p8): Likewise.
1055 (vqtbl4q_s8): Likewise.
1056 (vqtbl4q_u8): Likewise.
1057 (vqtbl4q_p8): Likewise.
1058 (vqtbx2_s8): Likewise.
1059 (vqtbx2_u8): Likewise.
1060 (vqtbx2_p8): Likewise.
1061 (vqtbx2q_s8): Likewise.
1062 (vqtbx2q_u8): Likewise.
1063 (vqtbx2q_p8): Likewise.
1064 (vqtbx3_s8): Likewise.
1065 (vqtbx3_u8): Likewise.
1066 (vqtbx3_p8): Likewise.
1067 (vqtbx3q_s8): Likewise.
1068 (vqtbx3q_u8): Likewise.
1069 (vqtbx3q_p8): Likewise.
1070 (vqtbx4_s8): Likewise.
1071 (vqtbx4_u8): Likewise.
1072 (vqtbx4_p8): Likewise.
1073 (vqtbx4q_s8): Likewise.
1074 (vqtbx4q_u8): Likewise.
1075 (vqtbx4q_p8): Likewise.
1076 (vrev16_p8): Likewise.
1077 (vrev16_s8): Likewise.
1078 (vrev16_u8): Likewise.
1079 (vrev16q_p8): Likewise.
1080 (vrev16q_s8): Likewise.
1081 (vrev16q_u8): Likewise.
1082 (vrev32_p8): Likewise.
1083 (vrev32_p16): Likewise.
1084 (vrev32_s8): Likewise.
1085 (vrev32_s16): Likewise.
1086 (vrev32_u8): Likewise.
1087 (vrev32_u16): Likewise.
1088 (vrev32q_p8): Likewise.
1089 (vrev32q_p16): Likewise.
1090 (vrev32q_s8): Likewise.
1091 (vrev32q_s16): Likewise.
1092 (vrev32q_u8): Likewise.
1093 (vrev32q_u16): Likewise.
1094 (vrev64_f32): Likewise.
1095 (vrev64_p8): Likewise.
1096 (vrev64_p16): Likewise.
1097 (vrev64_s8): Likewise.
1098 (vrev64_s16): Likewise.
1099 (vrev64_s32): Likewise.
1100 (vrev64_u8): Likewise.
1101 (vrev64_u16): Likewise.
1102 (vrev64_u32): Likewise.
1103 (vrev64q_f32): Likewise.
1104 (vrev64q_p8): Likewise.
1105 (vrev64q_p16): Likewise.
1106 (vrev64q_s8): Likewise.
1107 (vrev64q_s16): Likewise.
1108 (vrev64q_s32): Likewise.
1109 (vrev64q_u8): Likewise.
1110 (vrev64q_u16): Likewise.
1111 (vrev64q_u32): Likewise.
1112 (vsha1cq_u32): Likewise.
1113 (vsha1mq_u32): Likewise.
1114 (vsha1pq_u32): Likewise.
1115 (vsha1h_u32): Likewise.
1116 (vsha1su0q_u32): Likewise.
1117 (vsha1su1q_u32): Likewise.
1118 (vsha256hq_u32): Likewise.
1119 (vsha256h2q_u32): Likewise.
1120 (vsha256su0q_u32): Likewise.
1121 (vsha256su1q_u32): Likewise.
1122 (vmull_p64): Likewise.
1123 (vmull_high_p64): Likewise.
1124 (vsqrt_f32): Likewise.
1125 (vsqrtq_f32): Likewise.
1126 (vsqrt_f64): Likewise.
1127 (vsqrtq_f64): Likewise.
1128 (vst1_f32): Likewise.
1129 (vst1_f64): Likewise.
1130 (vst1_p8): Likewise.
1131 (vst1_p16): Likewise.
1132 (vst1_p64): Likewise.
1133 (vst1_s8): Likewise.
1134 (vst1_s16): Likewise.
1135 (vst1_s32): Likewise.
1136 (vst1_s64): Likewise.
1137 (vst1_u8): Likewise.
1138 (vst1_u16): Likewise.
1139 (vst1_u32): Likewise.
1140 (vst1_u64): Likewise.
1141 (vst1q_f32): Likewise.
1142 (vst1q_f64): Likewise.
1143 (vst1q_p8): Likewise.
1144 (vst1q_p16): Likewise.
1145 (vst1q_p64): Likewise.
1146 (vst1q_s8): Likewise.
1147 (vst1q_s16): Likewise.
1148 (vst1q_s32): Likewise.
1149 (vst1q_s64): Likewise.
1150 (vst1q_u8): Likewise.
1151 (vst1q_u16): Likewise.
1152 (vst1q_u32): Likewise.
1153 (vst1q_u64): Likewise.
1154 (vst1_s64_x2): Likewise.
1155 (vst1_u64_x2): Likewise.
1156 (vst1_f64_x2): Likewise.
1157 (vst1_s8_x2): Likewise.
1158 (vst1_p8_x2): Likewise.
1159 (vst1_s16_x2): Likewise.
1160 (vst1_p16_x2): Likewise.
1161 (vst1_s32_x2): Likewise.
1162 (vst1_u8_x2): Likewise.
1163 (vst1_u16_x2): Likewise.
1164 (vst1_u32_x2): Likewise.
1165 (vst1_f16_x2): Likewise.
1166 (vst1_f32_x2): Likewise.
1167 (vst1_p64_x2): Likewise.
1168 (vst1q_s8_x2): Likewise.
1169 (vst1q_p8_x2): Likewise.
1170 (vst1q_s16_x2): Likewise.
1171 (vst1q_p16_x2): Likewise.
1172 (vst1q_s32_x2): Likewise.
1173 (vst1q_s64_x2): Likewise.
1174 (vst1q_u8_x2): Likewise.
1175 (vst1q_u16_x2): Likewise.
1176 (vst1q_u32_x2): Likewise.
1177 (vst1q_u64_x2): Likewise.
1178 (vst1q_f16_x2): Likewise.
1179 (vst1q_f32_x2): Likewise.
1180 (vst1q_f64_x2): Likewise.
1181 (vst1q_p64_x2): Likewise.
1182 (vst1_s64_x3): Likewise.
1183 (vst1_u64_x3): Likewise.
1184 (vst1_f64_x3): Likewise.
1185 (vst1_s8_x3): Likewise.
1186 (vst1_p8_x3): Likewise.
1187 (vst1_s16_x3): Likewise.
1188 (vst1_p16_x3): Likewise.
1189 (vst1_s32_x3): Likewise.
1190 (vst1_u8_x3): Likewise.
1191 (vst1_u16_x3): Likewise.
1192 (vst1_u32_x3): Likewise.
1193 (vst1_f16_x3): Likewise.
1194 (vst1_f32_x3): Likewise.
1195 (vst1_p64_x3): Likewise.
1196 (vst1q_s8_x3): Likewise.
1197 (vst1q_p8_x3): Likewise.
1198 (vst1q_s16_x3): Likewise.
1199 (vst1q_p16_x3): Likewise.
1200 (vst1q_s32_x3): Likewise.
1201 (vst1q_s64_x3): Likewise.
1202 (vst1q_u8_x3): Likewise.
1203 (vst1q_u16_x3): Likewise.
1204 (vst1q_u32_x3): Likewise.
1205 (vst1q_u64_x3): Likewise.
1206 (vst1q_f16_x3): Likewise.
1207 (vst1q_f32_x3): Likewise.
1208 (vst1q_f64_x3): Likewise.
1209 (vst1q_p64_x3): Likewise.
1210 (vst2_s64): Likewise.
1211 (vst2_u64): Likewise.
1212 (vst2_f64): Likewise.
1213 (vst2_s8): Likewise.
1214 (vst2_p8): Likewise.
1215 (vst2_s16): Likewise.
1216 (vst2_p16): Likewise.
1217 (vst2_s32): Likewise.
1218 (vst2_u8): Likewise.
1219 (vst2_u16): Likewise.
1220 (vst2_u32): Likewise.
1221 (vst2_f16): Likewise.
1222 (vst2_f32): Likewise.
1223 (vst2_p64): Likewise.
1224 (vst2q_s8): Likewise.
1225 (vst2q_p8): Likewise.
1226 (vst2q_s16): Likewise.
1227 (vst2q_p16): Likewise.
1228 (vst2q_s32): Likewise.
1229 (vst2q_s64): Likewise.
1230 (vst2q_u8): Likewise.
1231 (vst2q_u16): Likewise.
1232 (vst2q_u32): Likewise.
1233 (vst2q_u64): Likewise.
1234 (vst2q_f16): Likewise.
1235 (vst2q_f32): Likewise.
1236 (vst2q_f64): Likewise.
1237 (vst2q_p64): Likewise.
1238 (vst3_s64): Likewise.
1239 (vst3_u64): Likewise.
1240 (vst3_f64): Likewise.
1241 (vst3_s8): Likewise.
1242 (vst3_p8): Likewise.
1243 (vst3_s16): Likewise.
1244 (vst3_p16): Likewise.
1245 (vst3_s32): Likewise.
1246 (vst3_u8): Likewise.
1247 (vst3_u16): Likewise.
1248 (vst3_u32): Likewise.
1249 (vst3_f16): Likewise.
1250 (vst3_f32): Likewise.
1251 (vst3_p64): Likewise.
1252 (vst3q_s8): Likewise.
1253 (vst3q_p8): Likewise.
1254 (vst3q_s16): Likewise.
1255 (vst3q_p16): Likewise.
1256 (vst3q_s32): Likewise.
1257 (vst3q_s64): Likewise.
1258 (vst3q_u8): Likewise.
1259 (vst3q_u16): Likewise.
1260 (vst3q_u32): Likewise.
1261 (vst3q_u64): Likewise.
1262 (vst3q_f16): Likewise.
1263 (vst3q_f32): Likewise.
1264 (vst3q_f64): Likewise.
1265 (vst3q_p64): Likewise.
1266 (vst4_s64): Likewise.
1267 (vst4_u64): Likewise.
1268 (vst4_f64): Likewise.
1269 (vst4_s8): Likewise.
1270 (vst4_p8): Likewise.
1271 (vst4_s16): Likewise.
1272 (vst4_p16): Likewise.
1273 (vst4_s32): Likewise.
1274 (vst4_u8): Likewise.
1275 (vst4_u16): Likewise.
1276 (vst4_u32): Likewise.
1277 (vst4_f16): Likewise.
1278 (vst4_f32): Likewise.
1279 (vst4_p64): Likewise.
1280 (vst4q_s8): Likewise.
1281 (vst4q_p8): Likewise.
1282 (vst4q_s16): Likewise.
1283 (vst4q_p16): Likewise.
1284 (vst4q_s32): Likewise.
1285 (vst4q_s64): Likewise.
1286 (vst4q_u8): Likewise.
1287 (vst4q_u16): Likewise.
1288 (vst4q_u32): Likewise.
1289 (vst4q_u64): Likewise.
1290 (vst4q_f16): Likewise.
1291 (vst4q_f32): Likewise.
1292 (vst4q_f64): Likewise.
1293 (vst4q_p64): Likewise.
1294 (vtbx4_s8): Likewise.
1295 (vtbx4_u8): Likewise.
1296 (vtbx4_p8): Likewise.
1297 (vtrn_f32): Likewise.
1298 (vtrn_p8): Likewise.
1299 (vtrn_p16): Likewise.
1300 (vtrn_s8): Likewise.
1301 (vtrn_s16): Likewise.
1302 (vtrn_s32): Likewise.
1303 (vtrn_u8): Likewise.
1304 (vtrn_u16): Likewise.
1305 (vtrn_u32): Likewise.
1306 (vtrnq_f32): Likewise.
1307 (vtrnq_p8): Likewise.
1308 (vtrnq_p16): Likewise.
1309 (vtrnq_s8): Likewise.
1310 (vtrnq_s16): Likewise.
1311 (vtrnq_s32): Likewise.
1312 (vtrnq_u8): Likewise.
1313 (vtrnq_u16): Likewise.
1314 (vtrnq_u32): Likewise.
1315 (vrsqrte_f16): Likewise.
1316 (vrsqrteq_f16): Likewise.
1317 (vsqrt_f16): Likewise.
1318 (vsqrtq_f16): Likewise.
1319 (vabd_f16): Likewise.
1320 (vabdq_f16): Likewise.
1321 (vpadd_f16): Likewise.
1322 (vpaddq_f16): Likewise.
1323 (vpmax_f16): Likewise.
1324 (vpmaxq_f16): Likewise.
1325 (vpmaxnm_f16): Likewise.
1326 (vpmaxnmq_f16): Likewise.
1327 (vpmin_f16): Likewise.
1328 (vpminq_f16): Likewise.
1329 (vpminnm_f16): Likewise.
1330 (vpminnmq_f16): Likewise.
1331 (vrsqrts_f16): Likewise.
1332 (vrsqrtsq_f16): Likewise.
1334 2019-09-25 Richard Biener <rguenther@suse.de>
1336 PR tree-optimization/91896
1337 * tree-vect-loop.c (vectorizable_reduction): The single
1338 def-use cycle optimization cannot apply when there's more
1339 than one pattern stmt involved.
1341 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
1343 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
1344 the 'P' mode iterator, replacing the (removed) SI and DI variants.
1345 (reload_macho_picbase_<mode>): Likewise.
1347 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
1349 * config/rs6000/rs6000.md: Move darwin.md include until
1350 after the definition of the mode iterators.
1352 2019-09-23 Martin Sebor <msebor@redhat.com>
1354 PR tree-optimization/91570
1355 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
1356 non-constant minlen, maxlen and maxbound.
1358 2019-09-24 Richard Biener <rguenther@suse.de>
1360 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
1362 (_stmt_vec_info::cond_reduc_code): ... this.
1363 (_stmt_vec_info::induc_cond_initial_val): Add.
1364 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
1365 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
1366 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
1367 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
1368 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
1370 (vect_create_epilog_for_reduction): Drop special
1371 induction condition reduction params, pass in reduction code
1373 (vectorizable_reduction): Perform condition reduction kind
1374 selection only at analysis time. Adjust passing on state.
1376 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1378 * config/aarch64/aarch64.md (mov<mode>): Don't call
1379 aarch64_split_dimode_const_store on volatile MEM.
1381 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
1383 * config/aarch64/aarch64-option-extensions.def (fp16fml):
1384 Update hwcap string for fp16fml.
1386 2019-09-24 Jakub Jelinek <jakub@redhat.com>
1389 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
1390 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
1392 2019-09-24 Martin Liska <mliska@suse.cz>
1394 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
1395 instead of if-elseif-elseif-...
1396 * gimple-expr.c (extract_ops_from_tree): Likewise.
1397 * gimple.c (get_gimple_rhs_num_ops): Likewise.
1398 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
1400 2019-09-24 Martin Jambor <mjambor@suse.cz>
1403 * ipa-param-manipulation.c (carry_over_param): Make a method of
1404 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
1405 in case of a context mismatch.
1406 (ipa_param_body_adjustments::common_initialization): Adjust call to
1408 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
1409 private method carry_over_param.
1411 2019-09-24 Martin Jambor <mjambor@suse.cz>
1414 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
1416 2019-09-24 Richard Biener <rguenther@suse.de>
1418 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
1421 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1423 * config/arm/t-arm (arm-builtins.o): Add dependency on
1424 arm_acle_builtins.def.
1426 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
1429 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
1430 canonical CONST_INTs. Use gen_rtvec.
1432 2019-09-23 Richard Biener <rguenther@suse.de>
1434 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
1435 avoid adjusting by + 0 or * 1.
1436 (vect_create_epilog_for_reduction): Get reduction code only
1437 when necessary. Deal with adjustment_def only when necessary.
1439 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
1441 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
1444 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1447 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
1450 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
1452 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
1453 code. Merge code blocks with common conditionals. Use declared
1454 macro instead of a magic number for PIC level.
1456 2019-09-21 Martin Sebor <msebor@redhat.com>
1459 * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
1460 Simplify computation of the offset of the referenced subobject.
1462 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
1464 * config/darwin.c (machopic_legitimize_pic_address): Check
1467 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
1469 * ira-conflicts.c (can_use_same_reg_p): New function.
1470 (process_reg_shuffles): Take an insn parameter. Ignore cases
1471 in which input operand op_num could seemingly never be allocated
1472 to the same register as the destination.
1473 (add_insn_allocno_copies): Update call to process_reg_shuffles.
1475 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
1477 * simplify-rtx.c (neg_const_int): Replace with...
1478 (neg_poly_int_rtx): ...this new function.
1479 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
1480 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
1481 (simplify_plus_minus): Likewise for constant terms here.
1483 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
1485 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
1486 HOST_WIDE_PRINT_UNSIGNED.
1488 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
1490 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
1493 2019-09-20 Maya Rashish <coypu@sdf.org>
1496 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
1497 Define to speculation_safe_value_not_needed.
1499 2019-09-20 Richard Biener <rguenther@suse.de>
1500 Uros Bizjak <ubizjak@gmail.com>
1503 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
1505 (general_scalar_chain::convert_op): Force not suitable memory
1506 operands to a register.
1508 2019-09-20 Richard Biener <rguenther@suse.de>
1510 PR tree-optimization/91821
1511 * tree-vect-loop.c (check_reduction_path): Check we can compute
1513 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
1514 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
1515 operands in canonical order.
1516 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1517 STMT_VINFO_REDUC_IDX.
1518 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
1519 (STMT_VINFO_REDUC_IDX): Likewise.
1521 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
1524 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
1526 2019-09-20 Richard Biener <rguenther@suse.de>
1528 PR tree-optimization/91822
1529 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
1531 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
1532 for reduc_index in nested cycles, adjust vectorizable_condition
1534 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
1536 (vect_analyze_stmt): Adjust.
1537 (vect_transform_stmt): Likewise.
1539 2019-09-20 Richard Biener <rguenther@suse.de>
1542 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
1543 Ensure there's a sequence point between allocating the new register
1544 and passing a reference to a reg via regno_reg_rtx.
1546 2019-09-20 Martin Jambor <mjambor@suse.cz>
1548 * coretypes.h (cgraph_edge): Declare.
1549 * ipa-param-manipulation.c: Rewrite.
1550 * ipa-param-manipulation.h: Likewise.
1551 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
1552 (OBJS): Added ipa-sra.o.
1553 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
1554 and ref_p, added fields param_adjustments and performed_splits.
1555 (struct cgraph_clone_info): Remove ags_to_skip and
1556 combined_args_to_skip, new field param_adjustments.
1557 (cgraph_node::create_clone): Changed parameters to use
1558 ipa_param_adjustments.
1559 (cgraph_node::create_virtual_clone): Likewise.
1560 (cgraph_node::create_virtual_clone_with_body): Likewise.
1561 (tree_function_versioning): Likewise.
1562 (cgraph_build_function_type_skip_args): Removed.
1563 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
1564 using ipa_param_adjustments.
1565 (clone_of_p): Likewise.
1566 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
1567 (build_function_decl_skip_args): Likewise.
1568 (duplicate_thunk_for_node): Adjust parameters using
1569 ipa_param_body_adjustments, copy param_adjustments instead of
1571 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
1572 (cgraph_node::create_virtual_clone): Likewise.
1573 (cgraph_node::create_version_clone_with_body): Likewise.
1574 (cgraph_materialize_clone): Likewise.
1575 (symbol_table::materialize_all_clones): Likewise.
1576 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
1577 ipa_replace_map check.
1578 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
1579 (initialize_node_lattices): Make aware that some parameters might have
1580 already been removed.
1581 (want_remove_some_param_p): New function.
1582 (create_specialized_node): Convert to using ipa_param_adjustments and
1583 deal with possibly pre-existing adjustments.
1584 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
1585 (output_node_opt_summary): Do not stream removed fields. Stream
1586 parameter adjustments instead of argumetns to skip.
1587 (input_node_opt_summary): Likewise.
1588 (input_node_opt_summary): Likewise.
1589 * lto-section-in.c (lto_section_name): Added ipa-sra section.
1590 * lto-streamer.h (lto_section_type): Likewise.
1591 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
1593 (copy_decl_to_var): Declare.
1594 * tree-inline.c (update_clone_info): Do not remap old_tree.
1595 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
1596 statements, walk all extra generated statements and remap their
1598 (redirect_all_calls): Add killed SSA names to a hash set.
1599 (remap_ssa_name): Do not remap killed SSA names.
1600 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
1601 half of functionality moved to ipa_param_body_adjustments.
1602 (copy_decl_to_var): Make exported.
1603 (copy_body): Destroy killed_new_ssa_names hash set.
1604 (expand_call_inline): Remap performed splits.
1605 (update_clone_info): Likewise.
1606 (tree_function_versioning): Simplify tree_map processing. Updated to
1607 accept ipa_param_adjustments and use ipa_param_body_adjustments.
1608 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
1609 for the new interface.
1610 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
1611 (simd_clone_compute_base_data_type): Likewise.
1612 (simd_clone_init_simd_arrays): Adjust for the new interface.
1613 (simd_clone_adjust_argument_types): Likewise.
1614 (struct modify_stmt_info): Likewise.
1615 (ipa_simd_modify_stmt_ops): Likewise.
1616 (ipa_simd_modify_function_body): Likewise.
1617 (simd_clone_adjust): Likewise.
1618 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
1619 (type_internals_preclude_sra_p): Make public.
1620 * tree-sra.h: New file.
1621 * ipa-inline-transform.c (save_inline_function_body): Update to
1622 refelct new tree_function_versioning signature.
1623 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
1624 ipa_param_adjustments to get current parameter indices.
1625 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1626 (ipcp_update_bits): Likewise.
1627 (ipcp_update_vr): Likewise.
1628 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
1629 * ipa-sra.c: New file.
1630 * multiple_target.c (create_target_clone): Update to reflet new type
1631 of create_version_clone_with_body.
1632 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
1633 tree_function_versioning.
1634 (modify_function): Update to reflect new type of
1635 tree_function_versioning.
1636 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
1637 * passes.def: Remove old IPA-SRA and add new one.
1638 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
1639 (make_pass_ipa_sra): Declare.
1640 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
1642 * doc/invoke.texi (ipa-sra-max-replacements): New.
1644 2019-09-19 Martin Sebor <msebor@redhat.com>
1647 * builtins.c (component_size): Correct trailing array computation,
1648 rename to component_ref_size and move...
1649 (compute_objsize): Adjust.
1650 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
1651 (builtin_access::strict): Do not consider memmove.
1652 (builtin_access::write_off): New function.
1653 (builtin_memref::builtin_memref): Initialize refsize.
1654 (builtin_memref::set_base_and_offset): Adjust refoff and compute
1656 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
1658 (builtin_access::builtin_access): Initialize dstoff to destination
1659 refeence offset here instead of in maybe_diag_overlap. Adjust
1660 referencess even to unrelated objects. Adjust sizrange of bounded
1661 string functions to reflect bound. For strcat, adjust destination
1662 sizrange by that of source.
1663 (builtin_access::strcat_overlap): Adjust offsets and sizes
1664 to reflect the increase in destination sizrange above.
1665 (builtin_access::overlap): Do not set dstoff here but instead
1666 in builtin_access::builtin_access.
1667 (check_bounds_or_overlap): Use builtin_access::write_off.
1668 (maybe_diag_access_bounds): Add argument. Add informational notes.
1669 (dump_builtin_memref, dump_builtin_access): New functions.
1670 * tree.c (component_ref_size): ...to here.
1671 * tree.h (component_ref_size): Declare.
1672 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
1673 nul in the size of the source string.
1675 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
1678 * doc/cpp.texi: Document support for extended characters in
1680 * doc/cppopts.texi: Likewise.
1682 2019-09-19 Richard Biener <rguenther@suse.de>
1684 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
1685 (check_reduction_path): New overload having the path as result.
1686 (vect_is_simple_reduction): From the detected reduction
1687 path build a SLP reduction chain if possible.
1689 2019-09-19 Richard Biener <rguenther@suse.de>
1692 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
1693 Force operand to a register if it isn't nonimmediate_operand.
1695 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
1697 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
1698 * config/arm/iterators.md (optab): Add and, ior, xor entries.
1699 (logical_op): Remove code attribute.
1700 (logical_OP): Likewise.
1702 2019-09-19 Martin Liska <mliska@suse.cz>
1704 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
1707 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
1709 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
1712 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
1713 for NE comparison of TImode values.
1714 (aarch64_emit_load_exclusive): Add support for TImode.
1715 (aarch64_emit_store_exclusive): Likewise.
1716 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
1717 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
1718 Change iterator from ALLI to ALLI_TI.
1719 (@atomic_compare_and_swap<JUST_TI>): New.
1720 (@atomic_compare_and_swap<JUST_TI>_lse): New.
1721 (aarch64_load_exclusive_pair): New.
1722 (aarch64_store_exclusive_pair): New.
1723 * config/aarch64/iterators.md (JUST_TI): New.
1725 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
1726 strong_zero_p for aarch64_track_speculation; unify some code paths;
1727 use aarch64_gen_compare_reg instead of open-coding.
1729 * config/aarch64/aarch64.opt (-moutline-atomics): New.
1730 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
1731 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
1732 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
1733 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
1734 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
1735 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
1736 (atomic_<atomic_op><ALLI>): Likewise.
1737 (atomic_fetch_<atomic_op><ALLI>): Likewise.
1738 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
1739 * doc/invoke.texi: Document -moutline-atomics.
1741 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
1743 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
1744 trivial predicate for condition branch.
1745 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
1747 (compute_bb_predicates): Update predicate based on post-dominating
1749 (analyze_function_body): Calculate post-dominating information.
1751 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
1753 * tree-vectorizer.h (vectorizable_condition): Take an int
1754 reduction index instead of a boolean flag.
1755 * tree-vect-stmts.c (vectorizable_condition): Likewise.
1756 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
1757 reductions if the reduction accumulator is the "then" rather
1758 than the "else" value.
1759 (vect_analyze_stmt): Update call accordingly.
1760 (vect_transform_stmt): Likewise.
1761 * tree-vect-loop.c (vectorizable_reduction): Likewise,
1762 asserting that the index is > 0.
1764 2019-09-19 Martin Liska <mliska@suse.cz>
1766 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
1767 (sort_congruence_classes_by_decl_uid): Likewise.
1768 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
1770 (sem_item_optimizer::merge_classes): Likewise.
1772 2019-09-19 Richard Biener <rguenther@suse.de>
1774 PR tree-optimization/91812
1775 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
1778 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
1780 * defaults.h (TARGET_UNIT): New macro.
1781 (target_unit): New type.
1782 * rtl.h (native_encode_rtx, native_decode_rtx)
1783 (native_decode_vector_rtx, subreg_size_lsb): Declare.
1784 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
1785 * rtlanal.c (subreg_lsb_1): Delete.
1786 (subreg_size_lsb): New function.
1787 * simplify-rtx.c: Include rtx-vector-builder.h
1788 (simplify_immed_subreg): Delete.
1789 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
1790 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
1792 (simplify_subreg): Use them.
1793 (test_vector_subregs_modes, test_vector_subregs_repeating)
1794 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
1795 (test_vector_subregs): New functions.
1796 (test_vector_ops): Call test_vector_subregs for integer vector
1797 modes with at least 2 elements.
1799 2019-09-19 Richard Biener <rguenther@suse.de>
1801 * tree-parloops.c (parloops_is_slp_reduction): Do not set
1802 LOOP_VINFO_OPERANDS_SWAPPED.
1803 (parloops_is_simple_reduction): Likewise.
1804 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
1805 initialize operands_swapped.
1806 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
1807 (vect_is_slp_reduction): Do not swap operands.
1808 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
1809 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
1811 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
1814 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
1815 Add avx_partial_xmm_update.
1817 2019-09-18 Jim Wilson <jimw@sifive.com>
1820 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
1821 (riscv_move_integer): Likewise.
1822 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
1823 riscv_move_integer arg.
1824 (riscv_legitimize_move): Likewise.
1825 (riscv_force_temporary): New parameter in_splitter. Don't call
1827 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
1829 (riscv_add_offset): Likewise.
1830 (riscv_split_symbol): New parameter in_splitter. Pass to
1831 riscv_force_temporary.
1832 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
1834 (riscv_move_integer): New parameter in_splitter. New local
1835 can_create_psuedo. Don't call riscv_split_integer or force_reg when
1837 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
1838 riscv_split_symbol, and riscv_force_temporary args.
1839 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
1840 riscv_move_integer arg.
1841 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
1843 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
1846 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
1847 hard register store cost to 6.
1849 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
1852 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
1853 pseudo register store cost from 3 to 6 to make it the same as
1856 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
1859 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
1860 (one_cmpldi2): Likewise.
1861 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
1862 of the constant parts is simple.
1863 * config/arm/iterators.md (LOGICAL): Add new code iterator.
1864 (logical_op): Add new code attribute.
1865 (logical_OP): Likewise.
1866 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
1867 (arm_iordi_operand): Add predicate.
1868 (arm_xordi_operand): Add predicate.
1870 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
1872 * config/arm/arm.md (maddsidi4): Remove expander.
1873 (mulsidi3adddi): Remove pattern.
1874 (mulsidi3adddi_v6): Likewise.
1875 (mulsidi3_nov6): Likewise.
1876 (mulsidi3_v6): Likewise.
1877 (umulsidi3): Remove expander.
1878 (umulsidi3_nov6): Remove pattern.
1879 (umulsidi3_v6): Likewise.
1880 (umulsidi3adddi): Likewise.
1881 (umulsidi3adddi_v6): Likewise.
1882 (<Us>mulsidi3): Add combined expander.
1883 (<Us>maddsidi4): Likewise.
1884 (<US>mull): Add combined umull and smull pattern.
1885 (<US>mlal): Likewise.
1886 * config/arm/iterators.md (Us): Add new iterator.
1888 2019-09-18 Richard Biener <rguenther@suse.de>
1890 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
1892 (vectorize_fold_left_reduction): Remove assert.
1893 (vectorizable_reduction): Also expect COND_EXPR non-reduction
1894 operand in position 2. Remove assert.
1896 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
1898 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
1899 (smulsi3_highpart_nov6): Remove pattern.
1900 (smulsi3_highpart_v6): Likewise.
1901 (umulsi3_highpart): Likewise.
1902 (umulsi3_highpart_nov6): Likewise.
1903 (umulsi3_highpart_v6): Likewise.
1904 (<US>mull_high): Add new combined multiply pattern.
1906 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
1908 * config/arm/arm.md (arm_mulsi3): Remove pattern.
1909 (arm_mulsi3_v6): Likewise.
1910 (mulsi3addsi_v6): Likewise.
1911 (mulsi3subsi): Likewise.
1912 (mul): Add new multiply pattern.
1916 2019-09-18 Richard Biener <rguenther@suse.de>
1918 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
1919 (parloops_valid_reduction_input_p): Copy from
1920 valid_reduction_input_p.
1921 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
1922 (parloops_needs_fold_left_reduction_p): Copy from
1923 needs_fold_left_reduction_p.
1924 (parloops_is_simple_reduction): Copy from
1925 vect_is_simple_reduction.
1926 (parloops_force_simple_reduction): Copy from
1927 vect_force_simple_reduction.
1928 (gather_scalar_reductions): Adjust.
1929 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
1930 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
1932 2019-09-18 Richard Biener <rguenther@suse.de>
1934 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
1935 * tree-vect-loop.c (get_initial_def_for_reduction): Make
1937 (vect_create_epilog_for_reduction): Remove dead code.
1939 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
1941 * varasm.c (assemble_real): Generate canonical const_ints.
1943 2019-09-18 Richard Biener <rguenther@suse.de>
1946 * lto-streamer-in.c (input_eh_regions): Move EH init to
1947 lto_materialize_function.
1948 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
1951 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
1953 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
1956 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
1958 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
1959 of checking specifically for INTEGER_CST.
1961 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
1963 * stor-layout.c (compute_record_mode): Operate on poly_uint64
1964 sizes instead of uhwi sizes.
1966 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
1968 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
1969 (add_const_value_attribute): Handle CONST_POLY_INT.
1971 2019-09-18 Martin Liska <mliska@suse.cz>
1973 * dbgcnt.def (store_merging): New counter.
1974 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
1975 Use it in store merging.
1977 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
1979 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
1981 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
1982 * config/arm/arm.c (arm_sched_variable_issue): New function.
1983 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
1985 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
1987 * config/arm/types.md (no_reservation): New reservation.
1988 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
1990 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
1991 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
1992 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
1993 * config/arm/arm1020e.md (1020alu_op): Likewise.
1994 * config/arm/arm1026ejs.md (alu_op): Likewise.
1995 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
1996 * config/arm/arm926ejs.md (9_alu_op): Likewise.
1997 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
1998 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
1999 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2000 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2001 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
2002 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
2003 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
2004 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2005 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2006 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
2007 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
2008 * config/arm/fa526.md (526_alu_op): Likewise.
2009 * config/arm/fa606te.md (606te_alu_op): Likewise.
2010 * config/arm/fa626te.md (626te_alu_op): Likewise.
2011 * config/arm/fa726te.md (726te_alu_op): Likewise.
2012 * config/arm/xgene1.md (xgene1_nop): Likewise.
2014 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2016 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
2017 "no_insn" to "branch".
2019 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
2021 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
2023 2019-09-17 Richard Biener <rguenther@suse.de>
2026 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
2027 was missing generate locations only once.
2029 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
2032 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
2034 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
2035 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
2036 for switch default case using range analysis information.
2038 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
2041 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
2042 mode attributed is supported by FDPIC.
2044 2019-09-17 Richard Biener <rguenther@suse.de>
2046 PR tree-optimization/91790
2047 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2048 use the correct DR for setting up realignment.
2050 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
2053 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
2054 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
2055 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
2056 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
2058 2019-09-16 Jason Merrill <jason@redhat.com>
2060 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
2062 2019-09-16 Martin Liska <mliska@suse.cz>
2064 * gimple-fold.c (or_comparisons_1): Remove rules moved
2066 * match.pd: ... here.
2068 2019-09-16 Martin Liska <mliska@suse.cz>
2070 * gimple-fold.c (or_comparisons_1): Remove rules
2072 * match.pd: ... here.
2074 2019-09-16 Martin Liska <mliska@suse.cz>
2076 * genmatch.c (dt_node::append_simplify): Do not print
2077 warning when we have duplicate patterns belonging
2078 to a same simplify rule.
2079 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
2080 (maybe_fold_comparisons_from_match_pd): Handle
2081 tcc_comparison as a results.
2082 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
2084 2019-09-16 Li Jia He <helijia@linux.ibm.com>
2085 Qi Feng <ffengqi@linux.ibm.com>
2088 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
2089 (x > y && x == XXX_MIN): Optimize into 'false'.
2090 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
2091 (x < y && x != XXX_MAX): Optimize into 'x < y'.
2092 (x < y && x == XXX_MAX): Optimize into 'false'.
2093 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
2094 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
2095 (x <= y || x != XXX_MIN): Optimize into 'true'.
2096 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
2097 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
2098 (x >= y || x != XXX_MAX): Optimize into 'true'.
2099 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
2101 2019-09-16 Li Jia He <helijia@linux.ibm.com>
2102 Martin Liska <mliska@suse.cz>
2104 * gimple-fold.c (and_comparisons_1): Add type as first
2106 (and_var_with_comparison): Likewise.
2107 (and_var_with_comparison_1): Likewise.
2108 (or_comparisons_1): Likewise.
2109 (or_var_with_comparison): Likewise.
2110 (or_var_with_comparison_1): Likewise.
2111 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
2112 (maybe_fold_or_comparisons): Likewise.
2113 (maybe_fold_comparisons_from_match_pd): New.
2114 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
2115 (maybe_fold_or_comparisons): Likewise.
2116 * gimple.c (gimple_size): Make it public and add num_ops argument.
2117 (gimple_init): New function.
2118 (gimple_alloc): Call gimple_init.
2119 * gimple.h (gimple_size): New.
2120 (gimple_init): Likewise.
2121 * tree-if-conv.c (fold_or_predicates): Pass type.
2122 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2123 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
2124 (optimize_vec_cond_expr): Likewise.
2125 (ovce_extract_ops): Return type of conditional expression.
2126 * tree-ssanames.c (init_ssa_name_imm_use): New.
2127 (make_ssa_name_fn): Use init_ssa_name_imm_use.
2128 * tree-ssanames.h (init_ssa_name_imm_use): New.
2130 2019-09-16 Richard Biener <rguenther@suse.de>
2132 PR tree-optimization/91756
2133 PR tree-optimization/87132
2134 * tree-ssa-alias.h (enum translate_flags): New.
2135 (get_continuation_for_phi): Use it instead of simple bool flag.
2136 (walk_non_aliased_vuses): Likewise.
2137 * tree-ssa-alias.c (maybe_skip_until): Adjust.
2138 (get_continuation_for_phi): When looking across backedges only
2139 disallow valueization.
2140 (walk_non_aliased_vuses): Adjust.
2141 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
2144 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
2147 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
2148 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2149 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2150 * target.def (have_count_reg_decr_p): New hook.
2151 (doloop_cost_for_generic): Likewise.
2152 (doloop_cost_for_address): Likewise.
2153 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
2154 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2155 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2156 * doc/tm.texi: Regenerate.
2157 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
2159 (record_group): Init doloop_p.
2160 (add_candidate_1): Add optional argument doloop, change the handlings
2162 (add_candidate): Likewise.
2163 (generic_predict_doloop_p): Update attribute.
2164 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
2165 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
2166 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
2168 (get_computation_cost): Update for doloop IV cand extra cost.
2169 (determine_group_iv_cost_cond): Update for doloop IV cand.
2170 (determine_iv_cost): Likewise.
2171 (ivopts_estimate_reg_pressure): Likewise.
2172 (may_eliminate_iv): Update handlings for doloop IV cand.
2173 (add_iv_candidate_for_doloop): New function.
2174 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
2175 (iv_ca_set_no_cp): Update for doloop IV cand.
2176 (iv_ca_set_cp): Likewise.
2177 (iv_ca_dump): Dump register cost.
2178 (find_doloop_use): New function.
2179 (analyze_and_mark_doloop_use): Likewise.
2180 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
2182 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
2185 * cse.c (cse_insn): Do not replace anything with a
2188 2019-09-13 Ian Lance Taylor <iant@golang.org>
2190 * doc/invoke.texi (Optimize Options): Fix typo.
2192 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
2194 PR tree-optimization/89386
2195 * config/i386/sse.md (smulhrs<mode>3): New expander.
2196 (smulhrsv4hi3): Ditto.
2198 2019-09-12 Richard Biener <rguenther@suse.de>
2200 PR tree-optimization/91750
2201 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
2202 in the type of the evolution.
2204 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
2206 PR tree-optimization/89386
2207 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
2208 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
2209 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
2210 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
2211 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
2212 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
2213 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
2214 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
2215 (su, r): Handle the unspecs above.
2216 (bt): New int attribute.
2217 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
2218 * internal-fn.c (first_commutative_argument): Commutativity info for
2220 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
2221 (umulhrs_optab): New optabs.
2222 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
2223 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
2224 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
2226 (vect_vect_recog_func_ptrs): Add it.
2228 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
2230 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
2233 2019-09-11 Nathan Sidwell <nathan@acm.org>
2235 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
2236 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
2238 2019-09-11 Richard Biener <rguenther@suse.de>
2240 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
2241 * lto-wrapper.c (merge_and_complain): Pick up -g.
2242 (append_compiler_options): Likewise.
2243 (run_gcc): Re-instantiate handling -g0 at link-time.
2244 * doc/invoke.texi (flto): Document debug info generation.
2246 2019-09-11 Richard Biener <rguenther@suse.de>
2248 PR tree-optimization/90387
2249 * vr-values.c (vr_values::extract_range_basic): After inlining
2250 simplify non-constant __builtin_constant_p to false.
2252 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
2254 PR rtl-optimization/89795
2255 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
2256 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
2258 2019-09-11 Jakub Jelinek <jakub@redhat.com>
2260 PR tree-optimization/91723
2261 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
2262 instead of pointer equality when checking if argument vectypes are
2266 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
2267 of get_nonzero_bits, only call it for integral types.
2269 2019-09-11 Richard Biener <rguenther@suse.de>
2272 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
2274 * match.pd: Add flag_unsafe_math_optimizations check
2275 before deciding on the widest type in a binary math operation.
2277 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2279 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
2280 and CALL_REALLY_USED_REGISTERS must be defined, and that
2281 CALL_REALLY_USED_REGISTERS is preferred.
2282 * doc/tm.texi: Regenerate.
2283 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
2284 (call_really_used_regs): Likewise.
2285 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
2286 CALL_REALLY_USED_REGISTERS are defined.
2287 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
2288 initial value if defined.
2289 (initial_call_really_used_regs): Delete.
2290 (saved_call_really_used_regs): Likewise.
2291 (CALL_REALLY_USED_REGNO_P): Likewise.
2292 (init_reg_sets): Remove handling of call_really_used_regs.
2293 (save_register_info, restore_register_info, globalize_reg): Likewise.
2294 (init_reg_sets_1): Likewise. Use call_used_regs instead of
2295 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
2296 outside operand_reg_set.
2297 (fix_register): Don't change call_used_regs if
2298 CALL_REALLY_USED_REGISTERS is defined.
2299 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
2300 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
2301 instead of call_really_used_regs.
2302 (csky_conditional_register_usage): Remove the old handling of
2303 call_used_regs and change the handling of call_really_used_regs
2304 to use call_used_regs instead.
2305 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
2306 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
2307 making a register fixed.
2308 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
2309 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
2310 instead of call_really_used_regs.
2311 (m32r_conditional_register_usage): Don't set call_used_regs when
2312 making a register fixed.
2313 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
2314 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
2315 instead of call_really_used_regs.
2316 (mips_interrupt_extra_call_saved_reg_p): Likewise.
2317 (mips_cfun_call_saved_reg_p): Likewise.
2318 (mips_swap_registers): Remove the old handling of call_used_regs
2319 and change the handling of call_really_used_regs to use call_used_regs
2321 (mips_conditional_register_usage): Likewise.
2322 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
2323 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
2324 instead of call_really_used_regs.
2325 (mn10300_get_live_callee_saved_regs): Likewise.
2326 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
2327 (mn10300_conditional_register_usage): Don't set call_used_regs when
2328 making a register fixed.
2329 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
2330 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
2331 Remove the old handling of call_used_regs and change the handling
2332 of call_really_used_regs to use call_used_regs instead.
2333 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
2334 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
2335 instead of call_really_used_regs.
2336 (s390_register_info_gprtofpr, s390_register_info): Likewise.
2337 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
2338 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
2339 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
2340 (s390_conditional_register_usage): Remove the old handling of
2341 call_used_regs and change the handling of call_really_used_regs
2342 to use call_used_regs instead.
2343 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
2344 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
2345 (sh_fix_range, reg_unused_after): Likewise.
2346 (sh_conditional_register_usage): Remove the old handling of
2347 call_used_regs and change the handling of call_really_used_regs
2348 to use call_used_regs instead.
2349 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
2350 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
2351 call_used_regs when making a register fixed.
2352 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
2353 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
2354 call_used_regs when making a register fixed.
2355 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
2356 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
2357 set call_used_regs when making a register fixed.
2358 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
2359 * config/visium/visium.c (visium_conditional_register_usage): Remove
2360 the old handling of call_used_regs and change the handling of
2361 call_really_used_regs to use call_used_regs instead.
2363 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2365 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
2366 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
2367 * reginfo.c (call_used_regs): New macro.
2369 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2371 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
2373 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2374 (bpf_expand_epilogue): Likewise.
2375 * config/c6x/c6x.c (c6x_save_reg): Likewise.
2376 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
2377 (ft32_expand_epilogue): Likewise.
2378 * config/i386/i386.c (ix86_save_reg): Likewise.
2379 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
2380 (moxie_expand_epilogue): Likewise.
2381 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2382 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2383 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2385 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2387 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
2388 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
2389 instead of testing call_used_regs directly.
2390 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
2391 (aarch64_components_for_bb): Likewise.
2392 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
2393 * config/arc/arc.c (arc_must_save_register): Likewise.
2394 (arc_epilogue_uses): Likewise.
2395 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
2396 (legitimize_pic_address, callee_saved_reg_p): Likewise.
2397 (arm_compute_save_reg0_reg12_mask): Likewise.
2398 (arm_compute_save_core_reg_mask): Likewise.
2399 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
2400 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
2401 (cmse_nonsecure_entry_clear_before_return): Likewise.
2402 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
2403 (arm_expand_epilogue): Likewise.
2404 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
2405 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
2406 (_reg_unused_after): Likewise.
2407 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
2408 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
2409 (add_to_reg, hwloop_optimize): Likewise.
2410 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
2411 (bpf_expand_epilogue): Likewise.
2412 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
2413 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
2414 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
2415 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
2416 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
2417 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
2418 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
2419 * config/frv/frv.c (frv_stack_info): Likewise.
2420 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
2421 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
2422 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
2423 (move_callee_saved_registers): Likewise.
2424 * config/h8300/h8300.c (byte_reg): Likewise.
2425 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
2426 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
2427 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
2428 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
2429 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
2430 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
2431 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
2432 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
2433 * config/m32c/m32c.c (need_to_save): Likewise.
2434 * config/m68k/m68k.c (m68k_save_reg): Likewise.
2435 * config/mcore/mcore.c (calc_live_regs): Likewise.
2436 * config/microblaze/microblaze.c (microblaze_must_save_register):
2438 * config/mmix/mmix.c (mmix_local_regno): Likewise.
2439 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
2440 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
2441 (mmix_expand_epilogue): Likewise.
2442 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
2443 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
2444 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
2445 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
2446 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
2447 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
2448 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
2449 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
2450 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
2451 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
2452 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
2453 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
2454 * config/rl78/rl78.c (need_to_save): Likewise.
2455 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
2456 (rs6000_stack_info, generate_set_vrsave): Likewise.
2457 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
2458 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
2459 * config/rx/rx.c (rx_get_stack_layout): Likewise.
2460 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
2461 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
2462 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
2463 (save_local_or_in_reg_p): Likewise.
2464 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
2465 (xstormy16_epilogue_uses): Likewise.
2466 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
2467 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
2468 * config/v850/v850.c (compute_register_save_size): Likewise.
2469 * config/vax/vax.c (vax_expand_prologue): Likewise.
2470 * config/visium/visium.c (visium_save_reg_p): Likewise.
2471 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
2472 * cselib.c (cselib_process_insn): Likewise.
2473 * df-scan.c (df_get_entry_block_def_set): Likewise.
2474 * function.c (aggregate_value_p): Likewise.
2475 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
2476 * ira-lives.c (process_bb_node_lives): Likewise.
2477 * ira.c (do_reload): Likewise.
2478 * lra-lives.c (process_bb_lives): Likewise.
2479 * lra-remat.c (lra_remat): Likewise.
2480 * lra.c (lra): Likewise.
2481 * postreload.c (reload_combine_recognize_pattern): Likewise.
2482 (reload_cse_move2add): Likewise.
2483 * recog.c (peep2_find_free_register): Likewise.
2484 * regrename.c (check_new_reg_p): Likewise.
2485 * reload.c (find_equiv_reg): Likewise.
2486 * reload1.c (reload, find_reg): Likewise.
2487 * sel-sched.c (init_hard_regs_data): Likewise.
2489 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2491 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
2492 regs_invalidated_by_call & ~fixed_reg_set instead of
2493 call_used_or_fixed_regs & ~fixed_reg_set.
2494 * config/sh/sh.c (output_stack_adjust): Likewise.
2496 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2498 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
2499 (call_used_reg_set): Delete.
2500 (call_used_or_fixed_regs): New macro.
2501 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
2502 of call_used_reg_set.
2503 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
2504 instead of call_used_regs.
2505 (save_call_clobbered_regs): Likewise.
2506 * cfgcleanup.c (old_insns_match_p): Likewise.
2507 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
2508 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
2510 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2511 * config/sh/sh.c (output_stack_adjust): Likewise.
2512 * final.c (collect_fn_hard_reg_usage): Likewise.
2513 * ira-build.c (ira_build): Likewise.
2514 * ira-color.c (calculate_saved_nregs): Likewise.
2515 (allocno_reload_assign, calculate_spill_cost): Likewise.
2516 * ira-conflicts.c (ira_build_conflicts): Likewise.
2517 * ira-costs.c (ira_tune_allocno_costs): Likewise.
2518 * ira-lives.c (process_bb_node_lives): Likewise.
2519 * ira.c (setup_reg_renumber): Likewise.
2520 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
2521 * lra-constraints.c (need_for_call_save_p): Likewise.
2522 (need_for_split_p, inherit_in_ebb): Likewise.
2523 * lra-lives.c (process_bb_lives): Likewise.
2524 * lra-remat.c (call_used_input_regno_present_p): Likewise.
2525 * postreload.c (reload_combine): Likewise.
2526 * regrename.c (find_rename_reg): Likewise.
2527 * reload1.c (reload_as_needed): Likewise.
2528 * rtlanal.c (find_all_hard_reg_sets): Likewise.
2529 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2530 * shrink-wrap.c (requires_stack_frame_p): Likewise.
2532 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2534 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
2535 (no_caller_save_reg_set): Delete.
2536 * caller-save.c (init_caller_save): Don't initialize it.
2537 * ira-conflicts.c (ira_build_conflicts): Calculate
2538 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
2540 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2542 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
2543 (target_hard_regs::x_savable_regs): New field.
2544 (call_fixed_reg_set): Delete.
2545 (savable_regs): New macro,
2546 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
2547 (init_reg_sets_1): Likewise. Initialize savable_regs.
2548 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
2549 for all registers. Set savable_regs instead of call_fixed_reg_set.
2550 (setup_save_areas, save_call_clobbered_regs): Replace uses of
2551 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
2552 * config/sh/sh.c (output_stack_adjust): Likewise.
2554 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2556 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
2557 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
2558 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
2560 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
2562 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
2563 * rtlanal.c (get_call_rtx_from): Likewise.
2564 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
2565 than the pattern to get_call_rtx_from.
2566 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
2567 an rtx_insn * instead of an rtx.
2568 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
2570 2019-09-10 Martin Liska <mliska@suse.cz>
2572 * common.opt: Use newly added WarnRemoved.
2573 * config/aarch64/aarch64.opt: Likewise.
2574 * config/arm/arm.opt: Likewise.
2575 * config/i386/i386.opt: Likewise.
2576 * config/ia64/ia64.opt: Likewise.
2577 * config/rs6000/rs6000.opt: Likewise.
2578 * doc/options.texi: Document WarnRemoved properly.
2579 * dwarf2out.c (gen_producer_string): Handle renamed
2580 OPT_SPECIAL_warn_removed.
2581 * lto-opts.c (lto_write_options): Likewise.
2582 * lto-wrapper.c (merge_and_complain): Likewise.
2583 * opts-common.c (decode_cmdline_option): Likewise.
2584 (prune_options): Likewise.
2585 (read_cmdline_option): Likewise.
2586 (control_warning_option): Likewise.
2587 * opts.c (print_filtered_help): Likewise.
2588 * optc-gen.awk: Parse for WarnRemoved and make usage
2589 of Deprecated an error.
2590 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
2592 2019-09-10 Arnaud Charlet <charlet@adacore.com>
2594 * doc/install.texi: Fix syntax for html generation.
2596 2019-09-10 Jakub Jelinek <jakub@redhat.com>
2599 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
2600 the shift type to type.
2602 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2604 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
2606 (stack_protect_combined_test_insn): Likewise.
2608 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2609 Mickaël Guêné <mickael.guene@st.com>
2611 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
2612 * config/arm/arm.md (FDPIC_REGNUM): New constant.
2613 (load_tp_soft_fdpic): New pattern.
2614 (load_tp_soft): Disable in FDPIC mode.
2616 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2617 Mickaël Guêné <mickael.guene@st.com>
2619 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
2620 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
2621 (arm_call_tls_get_addr): Add FDPIC support.
2622 (legitimize_tls_address): Likewise.
2623 (arm_emit_tls_decoration): Likewise.
2625 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2626 Mickaël Guêné <mickael.guene@st.com>
2628 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
2630 (arm_trampoline_init): Likewise.
2631 (arm_trampoline_adjust_address): Likewise.
2632 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
2634 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2635 Mickaël Guêné <mickael.guene@st.com>
2637 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
2638 (legitimize_pic_address): Enforce binding rules on function
2639 pointers in FDPIC mode.
2640 (arm_assemble_integer): Likewise.
2642 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2643 Mickaël Guêné <mickael.guene@st.com>
2645 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
2646 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
2649 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2650 Mickaël Guêné <mickael.guene@st.com>
2652 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
2655 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2656 Mickaël Guêné <mickael.guene@st.com>
2658 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
2660 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
2662 * config/arm/arm.c (arm_option_override): Define pic register to
2664 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
2665 have no decl or go through PLT.
2666 (calculate_pic_address_constant): New function.
2667 (legitimize_pic_address): Call calculate_pic_address_constant.
2668 (arm_load_pic_register): Handle TARGET_FDPIC.
2669 (arm_is_segment_info_known): New function.
2670 (arm_pic_static_addr): Add support for FDPIC.
2671 (arm_load_function_descriptor): New function.
2672 (arm_emit_call_insn): Add support for FDPIC.
2673 (arm_assemble_integer): Add support for FDPIC.
2674 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
2675 Define. (FDPIC_REGNUM): New define.
2676 * config/arm/arm.md (call): Add support for FDPIC.
2677 (call_value): Likewise.
2678 (restore_pic_register_after_call): New pattern.
2679 (untyped_call): Disable if FDPIC.
2680 (untyped_return): Likewise.
2681 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
2683 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2684 Mickaël Guêné <mickael.guene@st.com>
2686 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
2687 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
2688 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
2689 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
2690 (CC1_SPEC): Use FDPIC_CC1_SPEC.
2691 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
2692 * config/arm/uclinuxfdpiceabi.h: New file.
2694 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2696 * config.gcc: Handle *-*-uclinuxfdpiceabi.
2698 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
2699 Mickaël Guêné <mickael.guene@st.com>
2701 * config/arm/arm.opt: Add -mfdpic option.
2702 * doc/invoke.texi: Add documentation for -mfdpic.
2704 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
2706 * expmed.c (extract_bit_field): Update function comment
2708 * expr.c (expand_expr_real): Update function comment
2710 (expand_misaligned_mem_ref): New helper function.
2711 (expand_expr_real_2): Use expand_misaligned_mem_ref.
2712 Remove duplicate assignment to "base" at case MEM_REF.
2713 Remove a shadowed variable "unsignedp" at case VCE.
2715 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2717 * regset.h (regs_invalidated_by_call_regset): Delete.
2718 (fixed_reg_set_regset): Likewise.
2719 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
2720 (fixed_reg_set_regset, persistent_obstack): Likewise.
2721 (init_reg_sets_1, globalize_reg): Update accordingly.
2722 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
2723 instead of a bitmap.
2724 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
2725 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
2726 instead of regs_invalidated_by_call_regset.
2727 (df_lr_confluence_n, df_md_confluence_n): Likewise.
2728 * df-scan.c (df_scan_start_dump): Likewise.
2729 * dse.c (copy_fixed_regs): Likewise.
2730 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
2732 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2734 * array-traits.h: New file.
2735 * coretypes.h (array_traits, bitmap_view): New types.
2736 * bitmap.h: Include "array-traits.h"
2737 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
2738 (base_bitmap_view, bitmap_view): New classes.
2739 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
2740 * hard-reg-set.h: Include array-traits.h.
2741 (array_traits<HARD_REG_SET>): New struct.
2742 * regset.h (IOR_REG_SET_HRS): New macro.
2743 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
2744 rather than iterating over each hard register.
2745 * sched-deps.c (sched_analyze_insn): Likewise.
2746 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
2748 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2750 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
2751 instead of a HARD_REG_SET *.
2752 * ira-build.c (ior_hard_reg_conflicts): Likewise.
2753 (ira_build): Update call accordingly.
2754 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
2756 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2758 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
2759 (HARD_REG_SET::operator!=): Likewise.
2760 (hard_reg_set_equal_p): Delete.
2761 * cfgcleanup.c (old_insns_match_p): Use == instead of
2762 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
2763 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
2764 (add_allocno_hard_regs_to_forest): Likewise.
2765 (setup_allocno_available_regs_num): Likewise.
2766 * ira.c (setup_pressure_classes): Likewise.
2767 (setup_allocno_and_important_classes): Likewise.
2768 (setup_reg_class_relations): Likewise.
2769 * lra-lives.c (process_bb_lives): Likewise.
2770 * reg-stack.c (change_stack, convert_regs_1): Likewise.
2772 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2774 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
2775 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
2776 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
2777 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
2779 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
2780 * ira.c (setup_reg_renumber): Likewise.
2781 * lra-assigns.c (find_hard_regno_for_1): Likewise.
2782 * regrename.c (regrename_find_superclass): Likewise.
2783 * reload1.c (find_reg): Likewise.
2785 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2787 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
2788 * caller-save.c (setup_save_areas): Use "&~" instead of
2789 AND_COMPL_HARD_REG_SET.
2790 (save_call_clobbered_regs): Likewise.
2791 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
2793 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2794 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
2795 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
2796 * config/mips/mips.c (mips_class_max_nregs): Likewise.
2797 (mips_conditional_register_usage): Likewise.
2798 * config/sh/sh.c (output_stack_adjust): Likewise.
2799 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
2800 (setup_profitable_hard_regs): Likewise.
2801 (get_conflict_and_start_profitable_regs): Likewise.
2802 * ira-conflicts.c (print_allocno_conflicts): Likewise.
2803 (ira_build_conflicts): Likewise.
2804 * ira-costs.c (restrict_cost_classes): Likewise.
2805 (setup_regno_cost_classes_by_aclass): Likewise.
2806 * ira-lives.c (process_bb_node_lives): Likewise.
2807 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
2808 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
2809 (setup_allocno_and_important_classes, setup_class_translate_array)
2810 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
2812 * lra-assigns.c (find_hard_regno_for_1): Likewise.
2813 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
2814 (process_alt_operands, inherit_in_ebb): Likewise.
2815 * lra-eliminations.c (update_reg_eliminate): Likewise.
2816 * lra-lives.c (process_bb_lives): Likewise.
2817 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
2818 * resource.c (find_dead_or_set_registers): Likewise.
2819 (mark_target_live_regs): Likewise.
2820 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
2821 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2822 (implicit_clobber_conflict_p): Likewise.
2823 * shrink-wrap.c (requires_stack_frame_p): Likewise.
2824 (try_shrink_wrapping): Likewise.
2826 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2828 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
2829 (HARD_REG_SET::operator|=): Likewise.
2830 (IOR_HARD_REG_SET): Delete.
2831 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
2833 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
2834 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
2835 * final.c (collect_fn_hard_reg_usage): Likewise.
2836 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
2837 * ira-build.c (merge_hard_reg_conflicts): Likewise.
2838 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
2839 (propagate_some_info_from_allocno): Likewise.
2840 (copy_info_to_removed_store_destinations): Likewise.
2841 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
2842 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
2843 (fast_allocation): Likewise.
2844 * ira-conflicts.c (ira_build_conflicts): Likewise.
2845 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
2846 (process_bb_node_lives): Likewise.
2847 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
2848 * lra-assigns.c (find_hard_regno_for_1): Likewise.
2849 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
2850 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
2851 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
2852 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
2853 (process_bb_lives): Likewise.
2854 * lra-spills.c (assign_spill_hard_regs): Likewise.
2855 * postreload.c (reload_combine): Likewise.
2856 * reginfo.c (init_reg_sets_1): Likewise.
2857 * regrename.c (merge_overlapping_regs, find_rename_reg)
2858 (merge_chains): Likewise.
2859 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
2860 (find_reload_regs, finish_spills, choose_reload_regs_init)
2861 (emit_reload_insns): Likewise.
2862 * reorg.c (redundant_insn): Likewise.
2863 * resource.c (find_dead_or_set_registers, mark_set_resources)
2864 (mark_target_live_regs): Likewise.
2865 * rtlanal.c (find_all_hard_reg_sets): Likewise.
2866 * sched-deps.c (sched_analyze_insn): Likewise.
2867 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2868 (find_best_reg_for_expr): Likewise.
2869 * shrink-wrap.c (try_shrink_wrapping): Likewise.
2871 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2873 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
2874 (HARD_REG_SET::operator&): Likewise.
2875 (AND_HARD_REG_SET): Delete.
2876 * caller-save.c (setup_save_areas): Use "&" instead of
2878 (save_call_clobbered_regs): Likewise.
2879 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
2880 * config/m32c/m32c.c (reduce_class): Likewise.
2881 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
2882 * final.c (get_call_reg_set_usage): Likewise.
2883 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
2884 (setup_left_conflict_sizes_p): Likewise.
2885 * ira-conflicts.c (print_allocno_conflicts): Likewise.
2886 (ira_build_conflicts): Likewise.
2887 * ira-costs.c (restrict_cost_classes): Likewise.
2888 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
2889 (setup_reg_class_relations): Likewise.
2890 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
2891 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
2892 * resource.c (find_dead_or_set_registers): Likewise.
2893 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2895 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2897 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
2898 (COMPL_HARD_REG_SET): Delete.
2899 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
2900 of COMPL_HARD_REG_SET.
2901 (try_rename_operands): Likewise.
2902 * config/sh/sh.c (push_regs): Likewise.
2903 * lra-assigns.c (find_hard_regno_for_1): Likewise.
2904 * lra-constraints.c (contains_reg_p): Likewise.
2905 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
2907 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2909 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
2910 * caller-save.c (save_call_clobbered_regs): Use assignment instead
2911 of COPY_HARD_REG_SET.
2912 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
2913 (epiphany_conditional_register_usage): Likewise.
2914 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
2915 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
2916 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
2917 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
2918 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
2919 * config/mips/mips.c (mips_class_max_nregs): Likewise.
2920 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
2921 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
2922 * config/sh/sh.c (output_stack_adjust): Likewise.
2923 * final.c (collect_fn_hard_reg_usage): Likewise.
2924 (get_call_reg_set_usage): Likewise.
2925 * ira-build.c (ira_create_object, remove_low_level_allocnos)
2926 (ira_flattening): Likewise.
2927 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
2928 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
2929 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
2930 (ira_reassign_pseudos): Likewise.
2931 * ira-conflicts.c (print_allocno_conflicts): Likewise.
2932 (ira_build_conflicts): Likewise.
2933 * ira-costs.c (restrict_cost_classes): Likewise.
2934 (setup_regno_cost_classes_by_aclass): Likewise.
2935 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
2936 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
2937 (setup_stack_reg_pressure_class, setup_pressure_classes)
2938 (setup_allocno_and_important_classes, setup_class_translate_array)
2939 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
2940 (ira_setup_eliminable_regset): Likewise.
2941 * lra-assigns.c (find_hard_regno_for_1): Likewise.
2942 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
2943 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
2944 (process_alt_operands, inherit_in_ebb): Likewise.
2945 * lra-lives.c (process_bb_lives): Likewise.
2946 * lra-spills.c (assign_spill_hard_regs): Likewise.
2947 * lra.c (lra): Likewise.
2948 * mode-switching.c (new_seginfo): Likewise.
2949 * postreload.c (reload_combine): Likewise.
2950 * reg-stack.c (straighten_stack): Likewise.
2951 * reginfo.c (save_register_info, restore_register_info): Likewise.
2952 (init_reg_sets_1, record_subregs_of_mode): Likewise
2953 * regrename.c (create_new_chain, rename_chains): Likewise.
2954 * reload1.c (order_regs_for_reload, find_reg): Likewise.
2955 (find_reload_regs): Likewise.
2956 * resource.c (find_dead_or_set_registers): Likewise.
2957 (mark_target_live_regs): Likewise.
2958 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
2960 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
2962 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
2963 (note_pattern_stores): Declare.
2964 (note_stores): Take an rtx_insn *.
2965 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
2966 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
2967 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
2968 (note_stores): Take an rtx_insn * as argument and process
2969 CALL_INSN_FUNCTION_USAGE. Rename old function to...
2970 (note_pattern_stores): ...this.
2971 (find_first_parameter_load): Pass the insn rather than
2972 its pattern to note_stores.
2973 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
2974 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
2975 (insert_one_insn): Likewise.
2976 * combine.c (combine_instructions): Likewise.
2977 (likely_spilled_retval_p): Likewise.
2978 (try_combine): Use note_pattern_stores instead of note_stores.
2979 (record_dead_and_set_regs): Pass the insn rather than its pattern
2981 (reg_dead_at_p): Likewise.
2982 * config/bfin/bfin.c (workaround_speculation): Likewise.
2983 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
2985 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
2986 instead of note_stores.
2987 (frv_optimize_membar_local): Pass the insn rather than its pattern
2989 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
2990 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
2991 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
2992 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
2993 (mips_reorg_process_insns): Likewise.
2994 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
2995 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
2997 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
2998 its pattern to note_stores.
2999 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
3001 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
3002 the insn to note_stores.
3003 (prescan_insns_for_dce): Update call accordingly.
3004 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
3006 * df-problems.c (can_move_insns_across): Likewise.
3007 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
3008 * function.c (assign_parm_setup_reg): Likewise.
3009 * gcse-common.c (record_last_mem_set_info_common): Likewise.
3010 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
3011 (single_set_gcse): Likewise.
3012 * ira.c (validate_equiv_mem): Likewise.
3013 (update_equiv_regs): Use note_pattern_stores rather than note_stores
3015 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
3016 pattern to note_stores.
3017 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3018 * loop-iv.c (simplify_using_initial_values): Likewise.
3019 * mode-switching.c (optimize_mode_switching): Likewise.
3020 * optabs.c (emit_libcall_block_1): Likewise.
3021 (expand_atomic_compare_and_swap): Likewise.
3022 * postreload-gcse.c (load_killed_in_block_p): Likewise.
3023 (record_opr_changes): Likewise. Remove explicit handling of
3024 CALL_INSN_FUNCTION_USAGE.
3025 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
3026 * regcprop.c (kill_clobbered_values): Likewise.
3027 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
3029 * regrename.c (build_def_use): Likewise.
3030 * reload1.c (reload): Use note_pattern_stores instead of note_stores
3031 for mark_not_eliminable.
3032 (reload_as_needed): Pass the insn rather than its pattern
3034 (emit_output_reload_insns): Likewise.
3035 * resource.c (mark_target_live_regs): Likewise.
3036 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3037 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
3038 instead of note_stores.
3039 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
3040 its pattern to note_stores.
3041 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
3042 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
3044 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3046 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
3047 than a #define. Use a structure rather than an array as the
3048 fallback definition. Remove special cases for low array sizes.
3049 (const_hard_reg_set): New typedef.
3050 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
3051 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
3052 (hard_reg_set_empty_p): Likewise.
3053 (SET_HARD_REG_BIT): Use a function rather than a macro to
3054 handle the case in which HARD_REG_SET is a structure.
3055 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
3056 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3057 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3058 (IOR_COMPL_HARD_REG_SET): Likewise.
3059 (hard_reg_set_iterator::pset): Constify the pointer target.
3060 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
3061 of a "const HARD_REG_SET". Update the handling of non-integer
3063 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
3064 * reload.h: Likewise.
3065 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
3066 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
3067 of a "const HARD_REG_SET".
3068 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
3069 (range_in_hard_reg_set_p): Likewise.
3070 * ira-costs.c (restrict_cost_classes): Likewise.
3071 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
3072 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
3073 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
3074 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
3075 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
3076 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
3077 take an unsigned int and open-code the HARD_REG_SET operations.
3079 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
3081 * Makefile.in (OBJS): Remove bt-load.o.
3082 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
3083 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3084 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
3085 document that the option no longer does anything.
3086 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3087 * target.def (branch_target_register_class): Delete.
3088 (branch_target_register_callee_saved): Likewise.
3089 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3090 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3091 * doc/tm.texi: Regenerate.
3092 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
3093 (make_pass_branch_target_load_optimize2): Likewise.
3094 * passes.def (pass_branch_target_load_optimize1): Likewise.
3095 (pass_branch_target_load_optimize2): Likewise.
3096 * targhooks.h (default_branch_target_register_class): Likewise.
3097 * targhooks.c (default_branch_target_register_class): Likewise.
3098 * opt-suggestions.c (test_completion_valid_options): Remove
3099 -fbtr-bb-exclusive from the list of test options.
3100 * bt-load.c: Remove.
3102 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
3104 * match.pd: Add flag_unsafe_math_optimizations check
3105 before deciding on the widest type in a binary math operation.
3107 2019-09-09 Martin Liska <mliska@suse.cz>
3109 * config/i386/i386.opt: Update comment of removed
3110 options that are preserved only for backward
3113 2019-09-09 Jakub Jelinek <jakub@redhat.com>
3116 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
3120 * config/i386/avxintrin.h (__v32qs): New typedef.
3121 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
3124 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3126 * doc/invoke.texi (Option Summary): Cover eBPF.
3127 (eBPF Options): New section.
3128 * doc/extend.texi (BPF Built-in Functions): Likewise.
3129 (BPF Kernel Helpers): Likewise.
3131 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3133 * config.gcc: Support for bpf-*-* targets.
3134 * common/config/bpf/bpf-common.c: New file.
3135 * config/bpf/t-bpf: Likewise.
3136 * config/bpf/predicates.md: Likewise.
3137 * config/bpf/constraints.md: Likewise.
3138 * config/bpf/bpf.opt: Likewise.
3139 * config/bpf/bpf.md: Likewise.
3140 * config/bpf/bpf.h: Likewise.
3141 * config/bpf/bpf.c: Likewise.
3142 * config/bpf/bpf-protos.h: Likewise.
3143 * config/bpf/bpf-opts.h: Likewise.
3144 * config/bpf/bpf-helpers.h: Likewise.
3145 * config/bpf/bpf-helpers.def: Likewise.
3147 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3149 * doc/sourcebuild.texi (Effective-Target Keywords): Document
3152 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
3154 * opt-functions.awk (integer_range_info): Make sure values are in
3155 numeric context before operating with them.
3157 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
3159 * genemit.c (gen_split): Print the filename and line number where the
3160 splitter (or peephole2) was defined, to the dump file.
3162 2019-09-07 Jakub Jelinek <jakub@redhat.com>
3164 PR tree-optimization/91665
3165 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
3166 incompatible with the type of PHI result.
3168 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3171 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
3172 gen_unaligned_storedi for 4-byte aligned addresses.
3174 2019-09-06 Jim Wilson <jimw@sifive.com>
3176 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
3179 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
3181 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
3183 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
3185 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
3186 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
3188 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
3191 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
3192 cost of SSE->integer and integer->SSE moves from 2 to 6.
3195 2019-09-06 Jakub Jelinek <jakub@redhat.com>
3197 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
3198 before testing TYPE_TRANSPARENT_AGGR.
3199 * calls.c (initialize_argument_information, load_register_parameters):
3202 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
3204 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
3206 (cmp_ior): Likewise.
3208 2019-09-06 Martin Liska <mliska@suse.cz>
3210 * doc/match-and-simplify.texi: Separate tuples with ;.
3212 2019-09-06 Martin Liska <mliska@suse.cz>
3215 * Makefile.in: Remove tlink.o.
3216 * collect2.c (do_link): New function isolated
3219 * collect2.h (do_tlink): Remove declaration of do_tlink.
3220 * doc/extend.texi: Remove documentation of -frepo.
3221 * doc/invoke.texi: Likewise.
3222 * doc/sourcebuild.texi: Remove cleanup-repo-files.
3225 2019-09-05 Jakub Jelinek <jakub@redhat.com>
3226 Jim Wilson <jimw@sifive.com>
3229 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
3230 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
3231 paradoxical_subreg_p (operands[0]).
3232 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
3233 use as intermediate value.
3235 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
3237 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
3238 (sync_compare_and_swap<mode>_insn): Likewise.
3240 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
3243 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
3244 without movmisalign optab.
3246 2019-09-05 Jakub Jelinek <jakub@redhat.com>
3251 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
3252 types, use type of their first field instead of type of
3255 2019-09-05 Richard Biener <rguenther@suse.de>
3257 PR rtl-optimization/91656
3258 * postreload-gcse.c (record_last_mem_set_info): Revert addition
3261 2019-09-05 Richard Biener <rguenther@suse.de>
3264 * tree-inline.c (declare_return_variable): Mark the return
3265 slot as addressable after building an address of it.
3267 2019-09-05 Arnaud Charlet <charlet@adacore.com>
3269 * doc/install.texi: Update and clarify requirements to build GNAT.
3271 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
3274 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
3275 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
3276 call to be in memory.
3277 (pass_expand::execute): Call discover_nonconstant_array_refs before
3278 setting currently_expanding_to_rtl.
3280 2019-09-04 Caroline Tice <cmtice@google.com>
3282 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
3285 2019-09-04 Marek Polacek <polacek@redhat.com>
3287 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
3289 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
3292 * config/i386/i386.c (inline_secondary_memory_needed): Return true
3293 for QI and HImode moves between SSE and general registers.
3295 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3298 * doc/invoke.texi: Document -Wenum-conversion.
3300 2019-09-04 Richard Biener <rguenther@suse.de>
3302 PR rtl-optimization/36262
3303 * postreload-gcse.c: Include intl.h and gcse.h.
3304 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
3305 to avoid linear list walk.
3306 (record_last_mem_set_info): Gate off if not computing transparentness.
3307 (get_bb_avail_insn): If transparentness isn't computed give up
3309 (gcse_after_reload_main): Skip compute_transp and extended PRE
3310 if gcse_or_cprop_is_too_expensive says so.
3312 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3314 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
3316 (msp430_select_section): Handle decls with the "noinit" attribute with
3317 default_elf_select_section.
3318 Handle SECCAT_RODATA_MERGE_* section types with
3319 default_elf_select_section.
3320 Add comments about handling of unsupported section types.
3321 (msp430_section_type_flags): Remove handling of the noinit section.
3323 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3325 * config/msp430/msp430.c (msp430_attr): Remove warnings about
3326 conflicting msp430-specific attributes.
3327 (msp430_section_attr): Likewise.
3328 Add warnings about conflicts with generic "noinit" and "section"
3330 Fix grammar in -mlarge error message.
3331 (msp430_data_attr): Rename to msp430_persist_attr.
3332 Add warnings about conflicts with generic "noinit" and "section"
3334 Add warning for when variable is not initialized.
3335 Chain conditionals which prevent the attribute being added.
3336 (ATTR_EXCL): New helper.
3337 (attr_reent_exclusions): New exclusion table.
3338 (attr_naked_exclusions): Likewise.
3339 (attr_crit_exclusions): Likewise.
3340 (attr_lower_exclusions): Likewise.
3341 (attr_upper_exclusions): Likewise.
3342 (attr_either_exclusions): Likewise.
3343 (attr_persist_exclusions): Likewise.
3344 (msp430_attribute_table): Update with exclusion rules.
3345 (msp430_output_aligned_decl_common): Don't output common symbol if decl
3348 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3350 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
3351 (msp430_handle_generic_attribute): New function.
3352 * doc/tm.texi: Regenerate.
3353 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
3354 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3355 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
3356 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
3358 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
3360 PR tree-optimization/91504
3361 * match.pd: Add ((~a & b) ^a) --> (a | b).
3363 2019-09-03 Jakub Jelinek <jakub@redhat.com>
3366 * config/i386/i386-expand.c (split_double_mode): If there is more than
3367 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
3368 already split matching MEM operand instead of calling adjust_address
3371 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
3373 * config.gcc: Obsolete spu target. Remove references to spu.
3374 * configure.ac: Remove references to spu.
3375 * configure: Regenerate.
3376 * config/spu/: Remove directory.
3377 * common/config/spu/: Remove directory.
3379 * doc/extend.texi: Remove references to spu.
3380 * doc/invoke.texi: Likewise.
3381 * doc/md.texi: Likewise.
3382 * doc/sourcebuild.texi: Likewise.
3384 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
3389 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
3390 and SSA_NAME referring to CONSTANT_P correctly.
3392 2019-09-03 Richard Biener <rguenther@suse.de>
3394 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
3395 (vn_nary_op_insert): Likewise.
3396 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
3397 (vn_nary_op_lookup): Likewise.
3398 (vn_nary_op_insert): Likewise.
3400 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
3402 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
3403 (*op0, 1) instead of XEXP (*op1, 0).
3405 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3407 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
3408 (aarch64_fjcvtzs): New define_insn.
3409 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
3410 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
3412 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
3413 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
3414 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3415 __ARM_FEATURE_JCVT where appropriate.
3416 * config/aarch64/arm_acle.h (__jcvt): Define.
3418 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3420 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
3421 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
3422 (aarch64_<frintnzs_op><mode>): New define_insn.
3423 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
3424 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3425 __ARM_FEATURE_FRINT when appropriate.
3426 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
3427 frint32x, frint64z, frint64x.
3428 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
3429 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
3430 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
3431 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
3432 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
3433 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
3434 * config/aarch64/iterators.md (VSFDF): Define.
3435 (FRINTNZX): Likewise.
3436 (frintnzs_op): Likewise.
3438 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
3440 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
3441 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
3443 * config/aarch64/aarch64-tune.md: Regenerated.
3444 * doc/invoke.texi: Document the new processors.
3446 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3448 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
3452 (sve2-sm4): Likewise.
3454 (svesha3): Likewise.
3455 (svebitperm): Likewise.
3457 2019-09-03 Jakub Jelinek <jakub@redhat.com>
3458 Richard Biener <rguenther@suse.de>
3460 PR tree-optimization/91597
3461 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
3462 BIT_AND_EXPR optimization for pointers, even if both operand
3463 ranges don't include NULL, the result can be NULL.
3465 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3468 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
3469 (non_mem_decl_p): ...this.
3470 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
3471 (expand_assignment): Call mem_ref_referes_to_non_mem_p
3472 unconditionally as before.
3474 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
3477 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
3478 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
3479 * tree.def (LTGT_EXPR): Likewise.
3480 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
3482 2019-09-02 Jakub Jelinek <jakub@redhat.com>
3485 * fold-const.c (range_check_type): For enumeral and boolean
3486 type, pass 1 to type_for_size langhook instead of
3487 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
3488 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
3489 (build_range_check): Don't call unsigned_type_for for pointer types.
3490 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
3491 range_check_type result.
3493 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
3495 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
3496 (replace_ref): Do not replace a chain of only two candidates which are
3497 valid memory references.
3499 2019-09-02 Martin Liska <mliska@suse.cz>
3501 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
3502 Bail out when we'll end up with the same number of clusters as
3504 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
3505 (jump_table_cluster::can_be_handled): Remove the guard
3506 as it's already handled in ::is_enabled. Allocate output
3507 after early bail out.
3509 2019-09-02 Martin Liska <mliska@suse.cz>
3511 PR gcov-profile/91601
3512 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
3513 (path_contains_zero_or_negative_cycle_arc): ... this and handle
3514 also negative edges.
3515 (circuit): Handle also negative edges as they can happen
3518 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
3521 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
3522 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
3523 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
3525 2019-09-01 Jakub Jelinek <jakub@redhat.com>
3528 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
3529 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
3530 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
3534 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
3535 GIMPLE_ASM TREE_LIST operands.
3537 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
3539 * doc/generic.texi (Unary and Binary Expressions): Mark up
3540 an instance of TYPE_MIN.
3542 2019-08-31 Stafford Horne <shorne@gmail.com>
3544 * config/or1k/constraints.md (t): New constraint.
3545 * config/or1k/or1k.h (GOT_REGS): New register class.
3546 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
3548 2019-08-30 Jim Wilson <jimw@sifive.com>
3550 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
3551 and -fpic and -mplt then disable -msave-restore and warn.
3553 2019-08-30 Martin Sebor <msebor@redhat.com>
3556 * tree-ssa-strlen.c (handle_store): Use a fallback location if
3557 the statement doesn't have one.
3558 * gimple-pretty-print.c (percent_G_format): Same.
3561 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
3562 before using them to validate MEM_REF offset.
3564 2019-08-30 Marek Polacek <polacek@redhat.com>
3566 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
3568 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3570 * config/arm/arm.md (unaligned_loaddi,
3571 unaligned_storedi): New unspec insn patterns.
3572 * config/arm/neon.md (unaligned_storev8qi): Likewise.
3573 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
3574 and unaligned_storedi for 4-byte aligned memory.
3575 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
3576 4-byte aligned memory.
3578 2019-08-30 Martin Jambor <mjambor@suse.cz>
3580 tree-optimization/91579
3581 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
3582 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
3584 (arg_needs_copy_p): Removed.
3585 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
3587 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
3589 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
3591 * config/i386/i386-features.c
3592 (general_scalar_chain::compute_convert_gain):
3593 Correct cost for double-word shifts.
3594 (general_scalar_to_vector_candidate_p): Reject count operands
3595 greater or equal to mode bitsize.
3597 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
3599 * config/i386/i386.c (inline_secondary_memory_needed): Return true
3600 for moves between SSE and non-general registers and between
3601 mask and non-general registers.
3602 (ix86_register_move_cost): Remove stalled comment.
3604 2019-08-29 Richard Biener <rguenther@suse.de>
3606 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
3607 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
3609 2019-08-29 Richard Biener <rguenther@suse.de>
3612 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
3613 Do not emit scalar copies for debug-insns, instead replace
3614 their uses with the reg copy used in the chain or reset them
3615 if there is a reaching definition outside of the chain as well.
3617 2019-08-29 Jakub Jelinek <jakub@redhat.com>
3620 * config/i386/i386-expand.c (expand_vec_perm_movs,
3621 expand_vec_perm_blend, expand_vec_perm_vpermil,
3622 expand_vec_perm_pshufb, expand_vec_perm_1,
3623 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
3624 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
3625 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
3626 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
3627 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
3628 comments - replace ix86_expand_vec_perm_builtin_1 with
3629 ix86_expand_vec_perm_const_1.
3630 (expand_vec_perm2_vperm2f128_vblend): New function.
3631 (ix86_expand_vec_perm_const_1): New forward declaration. Call
3632 expand_vec_perm2_vperm2f128_vblend as last resort.
3633 (canonicalize_perm): Formatting fix.
3635 PR tree-optimization/91351
3636 * tree-cfg.c (generate_range_test): Use range_check_type instead of
3638 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
3639 range_check_type returns NULL.
3640 * tree-switch-conversion.c (switch_conversion::build_one_array):
3641 Use range_check_type instead of unsigned_type_for, don't perform
3642 linear opt if it returns NULL.
3643 (bit_test_cluster::find_bit_tests): Formatting fix.
3644 (bit_test_cluster::emit): Use range_check_type instead of
3646 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
3649 2019-08-29 Richard Biener <rguenther@suse.de>
3651 PR tree-optimization/91568
3652 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
3653 (vect_update_max_nunits): Add overload for poly_uint64.
3654 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
3655 (vect_build_slp_tree): Record max_nunits into the subtree
3656 and merge it upwards.
3657 (vect_print_slp_tree): Print max_nunits.
3659 2019-08-28 Marek Polacek <polacek@redhat.com>
3661 Implement P1152R4: Deprecating some uses of volatile.
3663 * doc/invoke.texi: Document -Wvolatile.
3665 2019-08-28 Marek Polacek <polacek@redhat.com>
3667 PR c++/91360 - Implement C++20 P1143R2: constinit.
3668 * doc/invoke.texi: Document -Wc++20-compat.
3670 2019-08-28 Martin Sebor <msebor@redhat.com>
3672 PR tree-optimization/91457
3673 * builtins.c (component_size): New function.
3674 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
3675 * builtins.h (compute_objsize): Add argument.
3676 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
3677 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
3678 (vrp_prop::check_mem_ref): Same.
3679 (vrp_prop::search_for_addr_array): Set no-warning bit.
3680 (check_array_bounds): Same.
3682 2019-08-28 Martin Sebor <msebor@redhat.com>
3685 * opts-common.c (option_enabled): Correct checking for language
3688 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
3690 * config/i386/i386.c (ix86_register_move_cost): Do not
3691 limit the cost of moves to/from XMM register to minimum 8.
3693 2019-08-28 Martin Jambor <mjambor@suse.cz>
3696 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
3697 checking assert a normal assert to test it really is redundant.
3698 * ipa-prop.c (compute_complex_assign_jump_func): Removed
3700 (update_jump_functions_after_inlining): Removed combining unary
3701 arithmetic operations with an ancestor jump function.
3702 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
3705 2019-08-28 Richard Biener <rguenther@suse.de>
3707 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
3710 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
3711 Richard Biener <rguenther@suse.de>
3713 * expr.c (expand_assignment): Handle misaligned DECLs.
3714 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
3715 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
3717 (assign_parm_setup_stack): Allocate properly aligned stack slots.
3718 * varasm.c (build_constant_desc): Align constants of misaligned types.
3719 * config/arm/predicates.md (aligned_operand): New predicate.
3720 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
3721 aligned_operand to check restrictions on memory addresses.
3722 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
3723 * config/arm/vec-common.md (mov<VALL>): Likewise.
3725 2019-08-28 Jakub Jelinek <jakub@redhat.com>
3728 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
3729 V_128 iterator instead of VI_128.
3731 2019-08-28 Martin Liska <mliska@suse.cz>
3733 PR tree-optimization/90970
3734 * builtins.c (check_access): Remove assignment to maxread
3735 as it hasn't been used since when it was introduced in r255755.
3737 2019-08-27 Martin Sebor <msebor@redhat.com>
3739 PR tree-optimization/91567
3740 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
3742 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
3745 2019-08-27 Jeff Law <law@redhat.com>
3747 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
3748 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
3750 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
3753 * config/i386/i386-features.c (convert_scalars_to_vector):
3754 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
3755 crtl->stack_realign_processed. Update crtl->drap_reg by calling
3756 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
3757 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
3759 2019-08-27 Richard Biener <rguenther@suse.de>
3761 * config/i386/i386-features.h
3762 (general_scalar_chain::~general_scalar_chain): Add.
3763 (general_scalar_chain::insns_conv): New bitmap.
3764 (general_scalar_chain::n_sse_to_integer): New.
3765 (general_scalar_chain::n_integer_to_sse): Likewise.
3766 (general_scalar_chain::make_vector_copies): Adjust signature.
3767 * config/i386/i386-features.c
3768 (general_scalar_chain::general_scalar_chain): Outline,
3769 initialize new members.
3770 (general_scalar_chain::~general_scalar_chain): New.
3771 (general_scalar_chain::mark_dual_mode_def): Record insns
3772 we need to insert conversions at and count them.
3773 (general_scalar_chain::compute_convert_gain): Account
3774 for conversion instructions at chain boundary.
3775 (general_scalar_chain::make_vector_copies): Generate a single
3776 copy for a def by a specific insn.
3777 (general_scalar_chain::convert_registers): First populate
3778 defs_map, then make copies at out-of chain insns.
3780 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
3782 * config/arm/arm.md (stack_protect_set_insn): Add security-related
3784 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
3786 2019-08-27 Martin Liska <mliska@suse.cz>
3788 * cgraph.c (cgraph_node::remove): Remove dead assignment before
3790 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
3791 Enclose in anonymous namespace.
3792 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
3793 hard_register initialization in braces.
3794 * tree-vrp.h (value_range_base::supports_type_p): Return false
3795 for function with boolean return type.
3797 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
3799 * config/i386/i386.c (emit_i387_cw_initialization)
3800 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
3802 2019-08-26 Martin Sebor <msebor@redhat.com>
3805 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
3806 (sprintf_dom_walker): Remove class.
3807 (get_int_range): Make argument const.
3808 (directive::fmtfunc, directive::set_precision): Same.
3809 (format_none): Same.
3810 (build_intmax_type_nodes): Same.
3811 (adjust_range_for_overflow): Same.
3812 (format_floating): Same.
3813 (format_character): Same.
3814 (format_string): Same.
3815 (format_plain): Same.
3816 (get_int_range): Cast away constness.
3817 (format_integer): Same.
3818 (get_string_length): Call get_range_strlen_dynamic. Handle
3819 null lendata.maxbound.
3820 (should_warn_p): Adjust argument scope qualifier.
3822 (format_directive): Same.
3823 (parse_directive): Same.
3824 (is_call_safe): Same.
3825 (try_substitute_return_value): Same.
3826 (sprintf_dom_walker::handle_printf_call): Rename...
3827 (handle_printf_call): ...to this. Initialize target to host charmap
3828 here instead of in pass_sprintf_length::execute.
3829 (struct call_info): Make global.
3830 (sprintf_dom_walker::compute_format_length): Make global.
3831 (sprintf_dom_walker::handle_gimple_call): Same.
3832 * passes.def (pass_sprintf_length): Replace with pass_strlen.
3833 * print-rtl.c (print_pattern): Reduce the number of spaces to
3834 avoid -Wformat-truncation.
3835 * tree-pass.h (make_pass_warn_printf): New function.
3836 * tree-ssa-strlen.c (strlen_optimize): New variable.
3837 (get_string_length): Add comments.
3838 (get_range_strlen_dynamic): New function.
3839 (check_and_optimize_call): New function.
3840 (handle_integral_assign): New function.
3841 (strlen_check_and_optimize_stmt): Factor code out into
3842 strlen_check_and_optimize_call and handle_integral_assign.
3843 (strlen_dom_walker::evrp): New member.
3844 (strlen_dom_walker::before_dom_children): Use evrp member.
3845 (strlen_dom_walker::after_dom_children): Use evrp member.
3846 (printf_strlen_execute): New function.
3847 (pass_strlen::gate): Update to handle printf calls.
3848 (dump_strlen_info): New function.
3849 (pass_data_warn_printf): New variable.
3850 (pass_warn_printf): New class.
3851 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
3852 (handle_printf_call): Same.
3853 * tree-vrp.c (value_range_base::type): Adjust assertion.
3854 * vr-values.c (vr_values::update_value_range): Use type of the first
3855 argument rather than the second.
3857 2019-08-26 Richard Biener <rguenther@suse.de>
3859 * config/i386/i386-features.c (general_remove_non_convertible_regs):
3861 (convert_scalars_to_vector): Do not call it.
3863 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
3864 Uros Bizjak <ubizjak@gmail.com>
3866 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
3867 CASE_MATHFN_FLOATN for roundeven.
3868 * config/i386/i386.c (ix86_i387_mode_needed): Add case
3870 (ix86_mode_needed): Likewise.
3871 (ix86_mode_after): Likewise.
3872 (ix86_mode_entry): Likewise.
3873 (ix86_mode_exit): Likewise.
3874 (ix86_emit_mode_set): Likewise.
3875 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
3876 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
3877 (ix86_entity): Add I387_ROUNDEVEN.
3878 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
3879 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
3880 (define_int_iterator): Likewise.
3881 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
3882 (define_constant): Define ROUND_ROUNDEVEN mode.
3883 (define_attr): Add roundeven mode for i387_cw.
3884 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
3885 * internal-fn.def (ROUNDEVEN): New builtin function.
3886 * optabs.def (roundeven_optab): New optab.
3888 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
3890 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
3892 * builtins.def: Added function definitions for roundeven function
3894 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
3895 function call. Adjust condition for floor, ceil, trunc and round.
3896 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
3897 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
3898 (integer_valued_real_call_p): Added case for roundeven function.
3899 * real.c (is_even): New function. Returns true if real number is even,
3900 otherwise returns false.
3901 (is_halfway_below): New function. Returns true if real number is
3902 halfway between two integers, else return false.
3903 (real_roundeven): New function. Round real number to nearest integer,
3904 rounding halfway cases towards even.
3905 * real.h (real_value): Added descriptive comments. Added function
3906 declaration for roundeven function.
3907 * doc/extend.texi (Other Builtins): List roundeven variants among
3908 functions which can be handled as builtins.
3910 2019-08-26 Richard Biener <rguenther@suse.de>
3914 * config/i386/i386-features.h (general_scalar_chain::defs_map):
3916 (general_scalar_chain::replace_with_subreg): Remove.
3917 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
3918 (general_scalar_chain::convert_reg): Adjust signature.
3919 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
3920 iterate over all defs of a reg.
3921 (general_scalar_chain::replace_with_subreg): Remove.
3922 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
3923 (general_scalar_chain::make_vector_copies): Populate defs_map,
3924 place copy only after defs that are used as vectors in the chain.
3925 (general_scalar_chain::convert_reg): Emit a copy for a specific
3926 def in a specific instruction.
3927 (general_scalar_chain::convert_op): All reg uses are converted here.
3928 (general_scalar_chain::convert_insn): Emit copies for scalar
3929 uses of defs here. Replace uses with the copies we created.
3930 Replace and convert the def. Adjust REG_DEAD notes, remove
3931 REG_EQUIV/EQUAL notes.
3932 (general_scalar_chain::convert_registers): Only handle copies
3933 into the chain here.
3935 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
3937 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
3939 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
3941 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
3942 Add nop_convert case.
3943 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
3944 Fold all statements if requested.
3945 * tree-ssa-propagate.h (class substitute_and_fold_engine):
3946 Allow to fold all statements.
3947 * tree-vrp.c (class vrp_folder):
3948 Let substitute_and_fold_engine fold all statements.
3950 2019-08-26 Richard Biener <rguenther@suse.de>
3952 PR tree-optimization/91526
3953 * passes.def: Note that after late FRE we do TODO_update_address_taken.
3954 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
3955 TODO_update_address_taken.
3957 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
3959 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
3962 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
3964 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
3965 machine mode for unspec_volatile operand.
3967 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
3969 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
3970 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
3971 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
3972 (prefer_neon_for_64bits): Remove.
3973 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
3974 (tune_params): Remove PREF_NEON_64_FALSE uses.
3975 (arm_option_override): Remove prefer_neon selection code.
3976 (arm_print_tune_info): Remove prefer_neon_for_64bits.
3977 * gcc/config/arm/arm-protos.h (tune_params): Remove
3978 prefer_neon_for_64bits.
3979 (prefer_neon_for_64bits): Remove.
3981 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
3984 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
3985 and issue any diagnostics needed before collecting the pre-PCH
3988 2019-08-23 Jakub Jelinek <jakub@redhat.com>
3991 * common.opt (fexcess-precision=): Add Optimization flag. Use
3992 flag_excess_precision variable instead of
3993 flag_excess_precision_cmdline.
3994 * flags.h (class target_flag_state): Remove x_flag_excess_precision
3996 (flag_excess_precision): Don't define.
3997 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
3998 flag_excess_precision_cmdline. Remove comment.
3999 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
4000 and x_flag_excess_precision instead of
4001 frontend_set_flag_excess_precision_cmdline and
4002 x_flag_excess_precision_cmdline.
4003 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
4004 x_flag_excess_precision_cmdline.
4005 * toplev.c (init_excess_precision): Remove.
4006 (lang_dependent_init_target): Don't call it.
4008 2019-08-23 Martin Liska <mliska@suse.cz>
4010 * lto-wrapper.c (run_gcc): When setting jobserver
4011 set also parallel to 1. This was done so before r273908.
4013 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
4015 * config/arm/arm-cpus.in (cortex-m35p): New entry.
4016 (cortex-a76ae): Likewise.
4017 (cortex-a77): Likewise
4018 * config/arm/arm-tables.opt: Regenerate.
4019 * config/arm/arm-tune.md: Likewise.
4020 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
4021 cortex-a77 CPU options.
4023 2019-08-23 Martin Liska <mliska@suse.cz>
4025 * profile.c (instrument_values): Do not set
4027 * tree-profile.c (gimple_gen_interval_profiler): Remove
4029 (gimple_gen_pow2_profiler): Likewise.
4030 (gimple_gen_topn_values_profiler): Likewise.
4031 (gimple_gen_ic_profiler): Likewise.
4032 (gimple_gen_time_profiler): Likewise.
4033 (gimple_gen_average_profiler): Likewise.
4034 (gimple_gen_ior_profiler): Likewise.
4035 * value-prof.c (dump_histogram_value): Use default
4036 in switch statement instead of HIST_TYPE_MAX.
4037 (stream_in_histogram_value): Likewise.
4038 (gimple_duplicate_stmt_histograms): Do not
4039 use NULL for implicitly set arguments.
4040 (gimple_divmod_values_to_profile): Do not use
4042 (gimple_indirect_call_to_profile): Likewise.
4043 (gimple_find_values_to_profile): Use implicit
4044 function call arguments.
4045 * value-prof.h (gimple_alloc_histogram_value):
4047 (gimple_gen_interval_profiler): Remove last argument.
4048 (gimple_gen_pow2_profiler): Likewise.
4049 (gimple_gen_topn_values_profiler): Likewise.
4050 (gimple_gen_ic_profiler): Likewise.
4051 (gimple_gen_time_profiler): Likewise.
4052 (gimple_gen_average_profiler): Likewise.
4053 (gimple_gen_ior_profiler): Likewise.
4055 2019-08-22 Martin Sebor <msebor@redhat.com>
4058 * builtins.c (c_strlen): Rename argument and introduce new local.
4059 Set no-warning bit on original argument.
4060 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
4061 Fold empty and zero constructors into empty strings.
4062 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
4063 for missing initializers.
4064 * tree.c (build_string_literal): Handle optional argument.
4065 * tree.h (build_string_literal): Add defaulted argument.
4066 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
4067 no-warning bit on original expression.
4069 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
4072 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4073 and UNSPEC_DARN_RAW.
4074 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
4076 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
4077 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
4078 (darn): Use an unspec_volatile, and UNSPECV_DARN.
4080 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
4082 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4083 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
4084 * config/rs6000/rs6000.md (unspec): ... here.
4085 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
4086 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4087 cmpeqb, *cmpeqb_internal): Delete, move to...
4088 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
4089 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4090 cmpeqb, *cmpeqb_internal): ... here.
4092 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4094 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
4095 intrinsics if __ARM_FP.
4096 Use __ARM_FEATURE_CRC32 ifdef guard.
4098 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4100 * config/arm/arm.md (neon_for_64bits): Remove.
4101 (avoid_neon_for_64bits): Remove.
4102 (arm_adddi3): Always split early.
4103 (arm_subdi3): Always split early.
4104 (negdi2): Remove Neon expansion.
4105 (split zero_extend): Split before reload.
4106 (split sign_extend): Split before reload.
4108 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4110 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
4111 (qhs_extenddi_cstr): Likewise.
4112 * config/arm/arm.md (ashldi3): Always expand early.
4113 (ashlsi3): Likewise.
4114 (ashrsi3): Likewise.
4115 (zero_extend<mode>di2): Remove Neon variants.
4116 (extend<mode>di2): Likewise.
4117 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
4118 (signed_shift_di3_neon): Likewise.
4119 (unsigned_shift_di3_neon): Likewise.
4120 (ashrdi3_neon_imm_noclobber): Likewise.
4121 (lshrdi3_neon_imm_noclobber): Likewise.
4122 (<shift>di3_neon): Likewise.
4123 (split extend): Remove DI extend split patterns.
4125 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
4127 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
4128 (split not): Add DImode not splitter.
4129 (anddi3): Remove pattern.
4130 (anddi3_insn): Likewise.
4131 (anddi_zesidi_di): Likewise.
4132 (anddi_sesdi_di): Likewise.
4133 (anddi_notdi_di): Likewise.
4134 (anddi_notzesidi_di): Likewise.
4135 (anddi_notsesidi_di): Likewise.
4137 (iordi3_insn): Likewise.
4138 (iordi_zesidi_di): Likewise.
4139 (iordi_sesidi_di): Likewise.
4141 (xordi3_insn): Likewise.
4142 (xordi_sesidi_di): Likewise.
4143 (xordi_zesidi_di): Likewise.
4144 (one_cmpldi2): Likewise.
4145 (one_cmpldi2_insn): Likewise.
4146 * config/arm/constraints.md: Remove De, Df, Dg constraints.
4147 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
4149 (iwmmxt_xordi3): Likewise.
4150 (iwmmxt_anddi3): Likewise.
4151 * config/arm/neon.md (orndi3_neon): Remove pattern.
4152 (anddi_notdi_di): Likewise.
4153 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
4154 (arm_iordi_operand_neon): Likewise.
4155 (arm_xordi_operand_neon): Likewise.
4156 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
4157 (iordi_notzesidi_di): Likewise.
4158 (iordi_notdi_zesidi): Likewise.
4159 (iordi_notsesidi_di): Likewise.
4161 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
4163 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
4165 (iorsi3_compare0_scratch): Likewise.
4167 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
4169 * config/aarch64/aarch64-simd-builtins.def:
4172 * config/aarch64/aarch64-simd.md:
4173 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
4174 (aarch64_st1x4<VALLDIF:mode>): Likewise.
4175 (aarch64_ld1_x4_<mode>): Likewise.
4176 (aarch64_st1_x4_<mode>): Likewise.
4177 * config/aarch64/arm_neon.h:
4178 (vld1_s8_x4): New function.
4179 (vld1q_s8_x4): Likewise.
4180 (vld1_s16_x4): Likewise.
4181 (vld1q_s16_x4): Likewise.
4182 (vld1_s32_x4): Likewise.
4183 (vld1q_s32_x4): Likewise.
4184 (vld1_u8_x4): Likewise.
4185 (vld1q_u8_x4): Likewise.
4186 (vld1_u16_x4): Likewise.
4187 (vld1q_u16_x4): Likewise.
4188 (vld1_u32_x4): Likewise.
4189 (vld1q_u32_x4): Likewise.
4190 (vld1_f16_x4): Likewise.
4191 (vld1q_f16_x4): Likewise.
4192 (vld1_f32_x4): Likewise.
4193 (vld1q_f32_x4): Likewise.
4194 (vld1_p8_x4): Likewise.
4195 (vld1q_p8_x4): Likewise.
4196 (vld1_p16_x4): Likewise.
4197 (vld1q_p16_x4): Likewise.
4198 (vld1_s64_x4): Likewise.
4199 (vld1_u64_x4): Likewise.
4200 (vld1_p64_x4): Likewise.
4201 (vld1q_s64_x4): Likewise.
4202 (vld1q_u64_x4): Likewise.
4203 (vld1q_p64_x4): Likewise.
4204 (vld1_f64_x4): Likewise.
4205 (vld1q_f64_x4): Likewise.
4206 (vst1_s8_x4): Likewise.
4207 (vst1q_s8_x4): Likewise.
4208 (vst1_s16_x4): Likewise.
4209 (vst1q_s16_x4): Likewise.
4210 (vst1_s32_x4): Likewise.
4211 (vst1q_s32_x4): Likewise.
4212 (vst1_u8_x4): Likewise.
4213 (vst1q_u8_x4): Likewise.
4214 (vst1_u16_x4): Likewise.
4215 (vst1q_u16_x4): Likewise.
4216 (vst1_u32_x4): Likewise.
4217 (vst1q_u32_x4): Likewise.
4218 (vst1_f16_x4): Likewise.
4219 (vst1q_f16_x4): Likewise.
4220 (vst1_f32_x4): Likewise.
4221 (vst1q_f32_x4): Likewise.
4222 (vst1_p8_x4): Likewise.
4223 (vst1q_p8_x4): Likewise.
4224 (vst1_p16_x4): Likewise.
4225 (vst1q_p16_x4): Likewise.
4226 (vst1_s64_x4): Likewise.
4227 (vst1_u64_x4): Likewise.
4228 (vst1_p64_x4): Likewise.
4229 (vst1q_s64_x4): Likewise.
4230 (vst1q_u64_x4): Likewise.
4231 (vst1q_p64_x4): Likewise.
4232 (vst1_f64_x4): Likewise.
4233 (vst1q_f64_x4): Likewise.
4235 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4237 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
4239 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4240 Richard Sandiford <richard.sandiford@arm.com>
4243 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
4244 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
4246 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4249 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
4250 in reg if it fails aarch64_plus_operand predicate.
4252 2019-08-21 Richard Biener <rguenther@suse.de>
4254 PR tree-optimization/91482
4255 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
4256 BUILT_IN_ASSUME_ALIGNED calls.
4258 2019-08-21 Richard Biener <rguenther@suse.de>
4262 * config/i386/i386-features.c
4263 (general_scalar_chain::make_vector_copies): Copy stack temporary
4264 rtx when using it multiple times.
4265 (general_scalar_chain::convert_reg): Likewise.
4267 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4269 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
4271 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
4273 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
4274 catch more redundant zero initialization cases.
4275 (dse_dom_walker::dse_optimize_stmt): Likewise.
4277 2019-08-20 Richard Biener <rguenther@suse.de>
4280 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
4281 by collect2 when targetm.have_ctors_dtors which avoids dragging
4282 in temporary filenames from LTO input objects.
4284 2019-08-20 Richard Biener <rguenther@suse.de>
4286 PR tree-optimization/37242
4287 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
4288 to (T)a + (T)b if we know that a + b does not overflow.
4290 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
4292 PR rtl-optimization/91347
4293 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
4294 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
4296 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4298 * calls.h (function_arg_info): Add a pass_by_reference field,
4299 defaulting to false.
4300 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
4301 when applying pass-by-reference semantics.
4302 (initialize_argument_information): Likewise.
4303 (emit_library_call_value_1): Likewise.
4304 * function.c (assign_parm_data_one): Remove passed_pointer field.
4305 (assign_parm_find_data_types): Don't set it.
4306 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
4307 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
4308 arg.pass_by_reference instead of passed_pointer.
4310 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4312 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
4313 into a single function_arg_info, updating its fields when we
4314 apply pass-by-reference and promotion semantics. Use the
4315 function_arg_info to track the mode rather than keeping it in
4316 a separate local variable.
4317 (initialize_argument_information): Likewise. Base the final
4318 arg_to_skip on this new function_arg_info rather than creating
4319 a new one from scratch.
4321 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4323 * function.c (assign_parm_data_one): Replace passed_type,
4324 promoted_mode and named_arg with a function_arg_info field.
4325 (assign_parm_find_data_types): Remove local variables and
4326 assign directly to "data". Make data->passed_mode shadow
4327 data->arg.mode until promotion, then assign the promoted
4328 mode to data->arg.mode.
4329 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
4330 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
4331 (assign_parm_remove_parallels, assign_parm_setup_block_p)
4332 (assign_parm_setup_block, assign_parm_setup_reg)
4333 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
4334 arg.mode instead of promoted_mode, arg.type instead of passed_type
4335 and arg.named instead of named_arg. Use data->arg for
4336 function_arg_info structures that had the field values passed_type,
4337 promoted_mode and named_arg. Base other function_arg_infos on
4338 data->arg, changing the necessary properties.
4340 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4342 * calls.h (apply_pass_by_reference_rules): Declare.
4343 * calls.c (apply_pass_by_reference_rules): New function.
4344 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
4345 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
4346 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4347 * function.c (assign_parm_find_data_types): Likewise.
4348 * var-tracking.c (prepare_call_arguments): Likewise.
4350 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4352 * target.def (must_pass_in_stack): Take a function_arg_info instead
4353 of a mode and a type.
4354 * doc/tm.texi: Regenerate.
4355 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
4356 instead of a mode and a type.
4357 (must_pass_in_stack_var_size_or_pad): Likewise.
4358 * calls.c (must_pass_in_stack_var_size): Likewise.
4359 (must_pass_in_stack_var_size_or_pad): Likewise.
4360 (initialize_argument_information): Update call to
4361 targetm.calls.must_pass_in_stack.
4362 (must_pass_va_arg_on_stack): Likewise.
4363 * function.c (assign_parm_find_entry_rtl): Likewise.
4364 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
4365 * config/alpha/alpha.c (alpha_function_arg): Likewise.
4366 (alpha_function_arg_advance): Likewise.
4367 * config/cr16/cr16.c (cr16_function_arg): Likewise.
4368 (cr16_function_arg_advance): Likewise.
4369 * config/cris/cris.c (cris_pass_by_reference): Likewise.
4370 (cris_arg_partial_bytes): Likewise.
4371 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
4372 * config/lm32/lm32.c (lm32_function_arg): Likewise.
4373 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
4374 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
4375 * config/mips/mips.c (mips_pass_by_reference): Likewise.
4376 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
4377 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
4378 * config/sh/sh.c (sh_pass_by_reference): Likewise.
4379 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
4380 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
4381 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
4382 instead of a mode and a type.
4383 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
4384 (fr30_num_arg_regs): Likewise.
4385 (fr30_setup_incoming_varargs): Update calls accordingly.
4386 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
4387 (fr30_function_arg_advance): Likewise.
4388 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
4389 instead of a mode and a type.
4390 * config/gcn/gcn.c (num_arg_regs): Likewise.
4391 (gcn_function_arg, gcn_function_arg_advance): Update calls to
4392 num_arg_regs and targetm.calls.must_pass_in_stack.
4393 (gcn_arg_partial_bytes): Likewise.
4394 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
4395 function_arg_info instead of a mode and a type.
4396 (classify_argument): Update call accordingly.
4397 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
4398 function_arg_info instead of a mode and a type.
4399 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
4401 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
4402 (rs6000_parm_needs_stack): Update call accordingly.
4403 (setup_incoming_varargs): Likewise.
4405 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4407 * target.def (callee_copies): Take a function_arg_info instead
4408 of a mode, type and named flag.
4409 * doc/tm.texi: Regenerate.
4410 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
4411 instead of a mode, type and named flag.
4412 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4413 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4414 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4415 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
4416 instead of a mode, type and named flag.
4417 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
4418 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
4419 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
4420 * calls.h (reference_callee_copied): Take a function_arg_info
4421 instead of a mode, type and named flag.
4422 * calls.c (reference_callee_copied): Likewise.
4423 (initialize_argument_information): Update call accordingly.
4424 (emit_library_call_value_1): Likewise.
4425 * function.c (gimplify_parameters): Likewise.
4426 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
4427 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
4428 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
4429 * config/c6x/c6x.c (c6x_callee_copies): Delete.
4430 (TARGET_CALLEE_COPIES): Define to
4431 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4432 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
4433 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4434 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4435 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
4436 instead of a mode, type and named flag.
4437 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
4438 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4439 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4440 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
4441 * config/msp430/msp430.c (msp430_callee_copies): Delete.
4442 (TARGET_CALLEE_COPIES): Define to
4443 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
4444 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
4445 instead of a mode, type and named flag.
4446 * config/sh/sh.c (sh_callee_copies): Likewise.
4447 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
4448 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
4449 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
4451 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4453 * target.def (function_arg_advance): Take a function_arg_info instead
4454 of a mode, type and named flag.
4455 * doc/tm.texi: Regenerate.
4456 * targhooks.h (default_function_arg_advance): Take a function_arg_info
4457 instead of a mode, type and named flag.
4458 * targhooks.c (default_function_arg_advance): Likewise.
4459 * calls.c (initialize_argument_information): Update call to
4460 targetm.calls.function_arg_advance.
4461 (emit_library_call_value_1): Likewise.
4462 * dse.c (get_call_args): Likewise.
4463 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4464 * function.c (assign_parms, gimplify_parameters): Likewise.
4465 * var-tracking.c (prepare_call_arguments): Likewise.
4466 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
4467 function_arg_info instead of a mode, type and named flag.
4468 (aarch64_setup_incoming_varargs): Update call accordingly.
4469 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
4470 function_arg_info instead of a mode, type and named flag.
4471 (alpha_setup_incoming_varargs): Update call accordingly.
4472 * config/arc/arc.c (arc_function_arg_advance): Take a
4473 function_arg_info instead of a mode, type and named flag.
4474 (arc_setup_incoming_varargs): Update call accordingly.
4475 * config/arm/arm.c (arm_function_arg_advance): Take a
4476 function_arg_info instead of a mode, type and named flag.
4477 (cmse_func_args_or_return_in_stack): Update call accordingly.
4478 (arm_function_ok_for_sibcall): Likewise.
4479 (cmse_nonsecure_call_clear_caller_saved): Likewise.
4480 * config/avr/avr.c (avr_function_arg_advance): Take a
4481 function_arg_info instead of a mode, type and named flag.
4482 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
4483 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
4484 (c6x_call_saved_register_used): Update call accordingly.
4485 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
4486 function_arg_info instead of a mode, type and named flag.
4487 * config/cris/cris.c (cris_function_arg_advance): Likewise.
4488 * config/csky/csky.c (csky_function_arg_advance): Likewise.
4489 (csky_setup_incoming_varargs): Update call accordingly.
4490 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
4491 function_arg_info instead of a mode, type and named flag.
4492 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
4493 * config/frv/frv.c (frv_function_arg_advance): Likewise.
4494 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
4495 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
4496 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
4497 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
4498 (ix86_setup_incoming_varargs): Update call accordingly.
4499 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
4500 function_arg_info instead of a mode, type and named flag.
4501 (ia64_setup_incoming_varargs): Update call accordingly.
4502 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
4503 function_arg_info instead of a mode, type and named flag.
4504 (iq2000_expand_prologue): Update call accordingly.
4505 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
4506 function_arg_info instead of a mode, type and named flag.
4507 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
4508 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
4509 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
4510 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
4511 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
4513 (microblaze_expand_prologue): Update call accordingly.
4514 * config/mips/mips.c (mips_function_arg_advance): Take a
4515 function_arg_info instead of a mode, type and named flag.
4516 (mips_setup_incoming_varargs): Update call accordingly.
4517 (mips_output_args_xfer): Likewise.
4518 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
4519 function_arg_info instead of a mode, type and named flag.
4520 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
4521 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
4522 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
4523 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
4524 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
4525 (nios2_setup_incoming_varargs): Update call accordingly.
4526 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
4527 function_arg_info instead of a mode, type and named flag.
4528 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
4529 * config/pa/pa.c (pa_function_arg_advance): Likewise.
4530 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
4531 * config/pru/pru.c (pru_function_arg_advance): Likewise.
4532 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
4533 (riscv_setup_incoming_varargs): Update call accordingly.
4534 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
4535 function_arg_info instead of a mode, type and named flag.
4536 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
4538 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
4539 (rs6000_parm_needs_stack): Update call accordingly.
4540 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
4541 instead of a mode, type and named flag.
4542 * config/s390/s390.c (s390_function_arg_advance): Likewise.
4543 (s390_call_saved_register_used): Update call accordingly.
4544 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
4545 instead of a mode, type and named flag.
4546 (sh_output_mi_thunk): Update call accordingly.
4547 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
4548 function_arg_info instead of a mode, type and named flag.
4549 * config/spu/spu.c (spu_function_arg_advance): Likewise.
4550 (spu_setup_incoming_varargs): Update call accordingly.
4551 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
4552 function_arg_info instead of a mode, type and named flag.
4553 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
4554 (tilegx_setup_incoming_varargs): Update call accordingly.
4555 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
4556 function_arg_info instead of a mode, type and named flag.
4557 (tilegx_setup_incoming_varargs): Update call accordingly.
4558 * config/v850/v850.c (v850_function_arg_advance): Take a
4559 function_arg_info instead of a mode, type and named flag.
4560 * config/vax/vax.c (vax_function_arg_advance): Likewise.
4561 * config/visium/visium.c (visium_function_arg_advance): Likewise.
4562 (visium_setup_incoming_varargs): Update call accordingly.
4563 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
4564 function_arg_info instead of a mode, type and named flag.
4566 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4568 * target.def (function_arg, function_incoming_arg): Take a
4569 function_arg_info instead of a mode, tree and named flag.
4570 * doc/tm.texi: Regenerate.
4571 * targhooks.h (default_function_arg): Take a function_arg_info
4572 instead of a mode, tree and named flag.
4573 (default_function_incoming_arg): Likewise.
4574 * targhooks.c (default_function_arg): Likewise.
4575 (default_function_incoming_arg): Likewise.
4576 * calls.h (function_arg_info::end_marker_p): New function.
4577 (function_arg_info::end_marker): Likewise.
4578 * calls.c (prepare_call_address, initialize_argument_information)
4579 (expand_call, emit_library_call_value_1): Update calls to
4580 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
4581 * dse.c: Include calls.h.
4582 (get_call_args): Update call to targetm.calls.function_arg.
4583 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4584 * var-tracking.c (prepare_call_arguments): Likewise.
4585 * function.c (assign_parm_find_entry_rtl): Update call to
4586 targetm.calls.function_incoming_arg.
4587 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
4588 function_arg_info instead of a mode, tree and named flag.
4589 * config/alpha/alpha.c (alpha_function_arg): Likewise.
4590 * config/arc/arc.c (arc_function_arg): Likewise.
4591 * config/arm/arm.c (arm_function_arg): Likewise.
4592 (cmse_func_args_or_return_in_stack): Update call accordingly.
4593 (arm_function_ok_for_sibcall): Likewise.
4594 (cmse_nonsecure_call_clear_caller_saved): Likewise.
4595 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
4596 instead of a mode, tree and named flag.
4597 * config/bfin/bfin.c (bfin_function_arg): Likewise.
4598 * config/c6x/c6x.c (c6x_function_arg): Likewise.
4599 (c6x_call_saved_register_used): Update call accordingly.
4600 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
4601 instead of a mode, tree and named flag.
4602 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
4603 (cris_function_arg_1): Likewise.
4604 * config/csky/csky.c (csky_function_arg): Likewise.
4605 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
4606 * config/fr30/fr30.c (fr30_function_arg): Likewise.
4607 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
4608 (frv_function_arg_1): Likewise.
4609 * config/ft32/ft32.c (ft32_function_arg): Likewise.
4610 * config/gcn/gcn.c (gcn_function_arg): Likewise.
4611 * config/h8300/h8300.c (h8300_function_arg): Likewise.
4612 * config/i386/i386.c (ix86_function_arg): Likewise.
4613 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
4614 (ia64_function_arg_1): Likewise.
4615 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
4616 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
4618 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
4619 instead of a mode, tree and named flag.
4620 * config/m32c/m32c.c (m32c_function_arg): Likewise.
4621 * config/m32r/m32r.c (m32r_function_arg): Likewise.
4622 * config/m68k/m68k.c (m68k_function_arg): Likewise.
4623 * config/mcore/mcore.c (mcore_function_arg): Likewise.
4624 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
4625 (microblaze_expand_prologue): Update call accordingly.
4626 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
4627 instead of a mode, tree and named flag.
4628 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
4629 (mmix_function_arg_1): Likewise.
4630 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
4631 * config/moxie/moxie.c (moxie_function_arg): Likewise.
4632 * config/msp430/msp430.c (msp430_function_arg): Likewise.
4633 * config/nds32/nds32.c (nds32_function_arg): Likewise.
4634 * config/nios2/nios2.c (nios2_function_arg): Likewise.
4635 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
4636 (nvptx_function_incoming_arg): Likewise.
4637 * config/or1k/or1k.c (or1k_function_arg): Likewise.
4638 * config/pa/pa.c (pa_function_arg): Likewise.
4639 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
4640 * config/pru/pru.c (pru_function_arg): Likewise.
4641 * config/riscv/riscv.c (riscv_function_arg): Likewise.
4642 * config/rl78/rl78.c (rl78_function_arg): Likewise.
4643 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
4644 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
4645 (rs6000_parm_needs_stack): Update call accordingly.
4646 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
4647 instead of a mode, tree and named flag.
4648 * config/s390/s390.c (s390_function_arg): Likewise.
4649 (s390_call_saved_register_used): Update call accordingly.
4650 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
4651 instead of a mode, tree and named flag.
4652 (sh_output_mi_thunk): Update call accordingly.
4653 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
4654 (sparc_function_incoming_arg): Take a function_arg_info instead of
4655 a mode, tree and named flag.
4656 * config/spu/spu.c (spu_function_arg): Likewise.
4657 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
4658 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
4659 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
4660 * config/v850/v850.c (v850_function_arg): Likewise.
4661 * config/vax/vax.c (vax_function_arg): Likewise.
4662 * config/visium/visium.c (visium_function_arg): Likewise.
4663 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
4664 (xtensa_function_incoming_arg): Likewise.
4666 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4668 * target.def (setup_incoming_varargs): Take a function_arg_info
4669 instead of a mode and tree.
4670 * doc/tm.texi: Regenerate.
4671 * targhooks.h (default_setup_incoming_varargs): Take a
4672 function_arg_info instead of a mode and tree.
4673 * targhooks.c (default_setup_incoming_varargs): Likewise.
4674 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
4675 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
4676 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
4677 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
4678 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
4679 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
4680 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
4681 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
4683 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
4684 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
4685 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
4686 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
4687 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
4688 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
4689 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
4690 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
4691 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
4692 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
4693 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
4694 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
4695 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
4696 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
4697 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
4698 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
4699 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
4700 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
4701 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
4702 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
4703 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
4704 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
4705 * function.c (assign_parms_setup_varargs): Update call to
4706 targetm.calls.setup_incoming_varargs.
4708 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4710 * target.def (pass_by_reference): Take a function_arg_info instead
4711 of a mode, type and named flag.
4712 * doc/tm.texi: Regenerate.
4713 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
4715 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
4716 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
4717 function_arg_info instead of a mode, type and named flag.
4718 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
4719 * calls.h (pass_by_reference): Take a function_arg_info instead of a
4720 mode, type and named flag.
4721 * calls.c (pass_by_reference): Likewise.
4722 (pass_va_arg_by_reference): Update call accordingly.
4723 (initialize_argument_information): Likewise.
4724 (emit_library_call_value_1): Likewise.
4725 * function.c (assign_parm_find_data_types): Likewise.
4726 * var-tracking.c (prepare_call_arguments): Likewise.
4727 * stor-layout.c: Include calls.h.
4728 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
4729 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
4730 function_arg_info instead of a mode, type and named flag.
4731 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
4732 * config/arc/arc.c (arc_pass_by_reference): Likewise.
4733 * config/arm/arm.c (arm_pass_by_reference): Likewise.
4734 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
4735 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
4736 (c6x_call_saved_register_used): Update call to pass_by_reference.
4737 * config/cris/cris.c (cris_pass_by_reference): Take a
4738 function_arg_info instead of a mode, type and named flag.
4739 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
4740 function_arg_info instead of a mode, type and named flag.
4741 (epiphany_arg_partial_bytes): Update call accordingly.
4742 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
4743 function_arg_info instead of a mode, type and named flag.
4744 (ft32_arg_partial_bytes): Update call accordingly.
4745 * config/i386/i386.c (ix86_pass_by_reference): Take a
4746 function_arg_info instead of a mode, type and named flag.
4747 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
4748 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
4749 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
4750 (m32r_return_in_memory): Update call accordingly.
4751 * config/mips/mips.c (mips_pass_by_reference): Take a
4752 function_arg_info instead of a mode, type and named flag.
4753 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
4754 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
4755 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
4756 (moxie_arg_partial_bytes): Update call accordingly.
4757 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
4758 function_arg_info instead of a mode, type and named flag.
4759 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
4760 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
4761 * config/pa/pa.c (pa_pass_by_reference): Likewise.
4762 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
4763 (riscv_return_in_memory): Update call accordingly.
4764 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
4765 function_arg_info instead of a mode, type and named flag.
4766 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
4767 (rs6000_parm_needs_stack): Update call to pass_by_reference.
4768 * config/s390/s390.c (s390_pass_by_reference): Take a
4769 function_arg_info instead of a mode, type and named flag.
4770 (s390_call_saved_register_used): Update call accordingly.
4771 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
4772 instead of a mode, type and named flag.
4773 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
4774 * config/spu/spu.c (spu_pass_by_reference): Likewise.
4775 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
4776 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
4777 * config/v850/v850.c (v850_pass_by_reference): Likewise.
4778 * config/visium/visium.c (visium_pass_by_reference): Likewise.
4780 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4782 * target.def (arg_partial_bytes): Take a function_arg_info instead
4783 of a mode, type and named flag.
4784 * doc/tm.texi: Regenerate.
4785 * target.h (function_arg_info): Declare.
4786 * calls.h (function_arg_info): New class.
4787 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
4788 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
4789 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
4790 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
4791 * calls.c (initialize_argument_information): Update call to
4792 targetm.calls.partial_bytes.
4793 (emit_library_call_value_1): Likewise.
4794 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
4795 * function.c (assign_parm_find_entry_rtl): Likewise.
4796 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
4797 function_arg_info instead of a mode, type and named flag.
4798 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
4799 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
4800 (cmse_func_args_or_return_in_stack): Update accordingly.
4801 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
4802 function_arg_info instead of a mode, type and named flag.
4803 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
4804 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
4805 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
4806 * config/fr30/fr30.c: Include calls.h.
4807 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
4808 type and named flag.
4809 * config/frv/frv.c: Include calls.h.
4810 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
4811 type and named flag.
4812 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
4813 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
4814 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
4815 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
4816 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
4817 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
4818 * config/microblaze/microblaze.c (function_arg_partial_bytes):
4820 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
4821 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
4822 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
4823 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
4824 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
4825 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
4826 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
4827 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
4828 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
4829 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
4830 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
4831 (rs6000_parm_needs_stack): Update call accordingly.
4832 * config/sh/sh.c (sh_arg_partial_bytes): Take a
4833 function_arg_info instead of a mode, type and named flag.
4834 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
4835 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
4837 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4839 * calls.h (must_pass_va_arg_in_stack): Declare.
4840 * calls.c (must_pass_va_arg_in_stack): New function.
4841 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
4842 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
4843 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
4845 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
4847 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
4849 * calls.h (pass_va_arg_by_reference): Declare.
4850 * calls.c (pass_va_arg_by_reference): New function.
4851 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
4852 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
4853 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
4854 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
4855 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4856 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
4857 (mips_gimplify_va_arg_expr): Likewise.
4858 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
4859 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4860 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
4861 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
4862 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4863 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
4864 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
4865 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
4866 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
4867 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
4868 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
4870 2019-08-20 Richard Biener <rguenther@suse.de>
4873 * config/i386/i386-features.c (general_scalar_chain::convert_op):
4874 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
4875 (convert_scalars_to_vector): Add timode_p parameter and use it
4876 to guard TImode-only operation.
4877 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
4878 (pass_stv::execute): Pass down timode_p.
4880 2019-08-20 Lili Cui <lili.cui@intel.com>
4882 * common/config/i386/i386-common.c
4883 (processor_names): Add tigerlake and cooperlake.
4884 (processor_alias_table): Add tigerlake and cooperlake.
4885 * config.gcc: Add -march=tigerlake and cooperlake.
4886 * config/i386/driver-i386.c
4887 (host_detect_local_cpu): Detect tigerlake and cooperlake.
4888 Add "has_avx" to classify processor.
4889 * config/i386/i386-builtins.c (processor_model) :
4890 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
4891 (arch_names_table): Add tigerlake and cooperlake.
4892 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
4893 and PROCESSOR_COOPERLAKE.
4894 * config/i386/i386-c.c
4895 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
4896 * config/i386/i386-options.c
4897 (m_TIGERLAKE) : Define.
4898 (m_COOPERLAKE) : Ditto.
4899 (m_CORE_AVX512): Ditto.
4900 (processor_cost_table): Add cascadelake.
4901 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
4902 * config/i386/i386.h
4903 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
4904 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
4905 (PTA_MOVDIRI): Ditto.
4906 (PTA_MOVDIR64B): Ditto.
4907 (PTA_COOPERLAKE) : Ditto.
4908 (PTA_TIGERLAKE) : Ditto.
4909 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
4910 * doc/extend.texi: Add tigerlake and cooperlake.
4911 * doc/invoke.texi: Add tigerlake and cooperlake.
4913 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
4915 * doc/install.texi (Specific, alpha): Remove note to use
4916 binutils 2.11.2 or later.
4918 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
4921 * function.c (assign_parm_find_stack_rtl): Use larger alignment
4924 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
4926 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
4927 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
4928 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
4929 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
4930 * config/aarch64/constraints.md (Dt): New constraint
4931 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
4933 2019-08-19 Richard Biener <rguenther@suse.de>
4935 PR tree-optimization/91403
4936 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
4937 cases we can handle with tail-recursion...
4938 (follow_ssa_edge_expr): ... here. Do so.
4940 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
4943 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
4944 implemented for -fsanitize=kernel-address, and merge check logic
4945 with -fsanitize=address.
4947 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
4949 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
4950 for cpu and machine. Factor 64/32b builtins.
4952 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
4954 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
4955 gone, point to sourceforge.net.
4957 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
4959 * doc/ux.texi (User Experience Guidelines): Update reference.
4961 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
4963 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
4966 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
4968 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
4969 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
4971 2019-08-16 Martin Sebor <msebor@redhat.com>
4973 * tree.def (TYPE_SIZE): Clarify.
4974 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
4976 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
4978 PR tree-optimization/91109
4979 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
4980 * lra.c (lra): Use lra_need_for_scratch_reg_p.
4981 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
4983 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
4985 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
4986 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
4987 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
4988 (uavg<mode>3_ceil): New expander.
4989 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
4990 mode iterator when creating CONST1_RTX.
4991 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
4992 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
4993 mode iterator for const1_operand predicate.
4995 2019-08-16 Richard Biener <rguenther@suse.de>
4997 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
4998 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
5000 (follow_ssa_edge_in_condition_phi_branch): Likewise.
5001 (analyze_evolution_in_loop): Likewise.
5002 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
5003 (follow_ssa_edge_expr): ... here. Refactor code.
5005 2019-08-16 Richard Biener <rguenther@suse.de>
5008 * config/i386/i386-features.c
5009 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
5011 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5014 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
5015 only if subst_name matches curr_attr string.
5017 2019-08-16 Richard Biener <rguenther@suse.de>
5019 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
5020 stmt at gsi_p, instead replace it with a NOP removed later.
5021 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
5022 that became dead because of that.
5024 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
5026 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
5027 for which we can't represent a range.
5028 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
5030 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
5031 Set VR_UNDEFINED if type is not supported.
5032 * tree-ssanames.c (get_range_info): Pass type to set_varying.
5033 * tree-vrp.c (value_range_base::check): Assert that a varying has
5035 (value_range_base::equal_p): Early bail for undefines.
5036 (value_range_base::set_varying): Accept a type.
5037 (value_range::set_varying): Same.
5038 (value_range_base::type): VARYING can have a type, while UNDEFINE
5040 (value_range_base::dump): Print type for VARYING nodes.
5041 (value_range_base::set): Add type to VARYING.
5042 (extract_range_from_multiplicative_op): Pass type to set_varying.
5043 (extract_range_from_binary_expr): Same.
5044 (value_range_base::intersect_helper): Same.
5045 (value_range_base::union_helper): Same.
5046 (value_range_base::normalize_symbolics): Same.
5047 (determine_value_range_1): Same.
5048 * tree-vrp.h (class value_range_base): Add type to set_varying.
5049 Add prototype for dump(void).
5050 Add prototype for supports_type_p.
5051 (class value_range): Add type to set_varying.
5052 Add prototype for dump(void).
5053 * vr-values.c (set_value_range_to_truthvalue): Pass type to
5055 (vr_values::get_lattice_entry): Set varying even if propagation
5057 Pass type to set_varying.
5058 (vr_values::get_value_range): Remove vr_const_varying.
5059 Reallocate the lattice if needed.
5060 (vr_values::update_value_range): Pass type to set_varying.
5061 (vr_values::extract_range_for_var_from_comparison_expr): Same.
5062 (vr_values::extract_range_from_binary_expr): Same.
5063 (vr_values::extract_range_from_unary_expr): Same.
5064 (vr_values::extract_range_from_cond_expr): Same.
5065 (vr_values::check_for_binary_op_overflow): Same.
5066 (vr_values::extract_range_basic): Same.
5067 (vr_values::extract_range_from_assignment): Same.
5068 (vr_values::vr_values): Increase size of num_vr_values.
5069 (vr_values::extract_range_from_phi_node): Pass type to
5072 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
5075 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
5076 for costs of hard register moves.
5077 (ix86_register_move_cost): Likewise.
5078 * config/i386/i386.h (processor_costs): Move costs of hard
5079 register moves to hard_register. Add int_load, int_store,
5080 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5081 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
5082 for costs of RTL expressions.
5083 * config/i386/x86-tune-costs.h: Move costs of hard register
5084 moves to hard_register. Duplicate int_load, int_store,
5085 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5086 sse_load, sse_store for costs of RTL expressions.
5088 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5090 * target.def (setup_incoming_vararg_bounds): Remove.
5091 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
5092 * doc/tm.texi: Regenerate.
5093 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
5094 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
5095 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5096 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
5098 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5100 MSP430: Fix lines over 80 characters long in
5101 config/msp430/*.{c,h} files
5103 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
5104 specifier in string.
5105 (msp430_select_hwmult_lib): Split line more than 80 characters long.
5106 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
5107 redundant old comment.
5108 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
5109 Split line more than 80 characters long.
5110 * config/msp430/msp430.c (msp430_option_override): Likewise.
5111 (msp430_return_in_memory): Likewise.
5112 (msp430_gimplify_va_arg_expr): Likewise.
5113 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
5114 (msp430_legitimate_constant): Likewise.
5115 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
5116 (msp430_attr): Likewise.
5117 (msp430_data_attr): Likewise.
5118 (msp430_start_function): Likewise.
5119 (gen_prefix): Likewise.
5120 (msp430_init_sections): Likewise.
5121 (msp430_select_section): Likewise.
5122 (msp430_function_section): Likewise.
5123 (msp430_unique_section): Likewise.
5124 (msp430_output_aligned_decl_common): Likewise.
5125 (msp430_do_not_relax_short_jumps): Likewise.
5126 (msp430_init_builtins): Likewise.
5127 (msp430_expand_delay_cycles): Likewise.
5128 (msp430_expand_prologue): Likewise.
5129 (msp430_expand_epilogue): Likewise.
5130 (msp430_expand_helper): Likewise.
5131 (msp430_split_movsi): Likewise.
5132 (msp430_print_operand): Likewise.
5133 (msp430_return_addr_rtx): Likewise.
5134 (msp430x_extendhisi): Likewise.
5135 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
5136 (ASM_SPEC): Likewise.
5137 Remove very obvious comments.
5138 (LIB_SPEC): Split line more than 80 characters long.
5139 (EH_RETURN_HANDLER_RTX): Likewise.
5140 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
5142 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5144 MSP430: Fix whitespace errors and incorrect indentation in
5145 config/msp430/*.{c,h} files
5147 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
5148 (msp430_select_hwmult_lib): Likewise.
5149 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
5150 (msp430_extract_mcu_data): Likewise.
5151 (struct t_msp430_mcu_data): Likewise.
5152 * config/msp430/msp430.c (struct machine_function): Remove whitespace
5153 before left square bracket.
5154 (msp430_option_override): Fix indentation.
5155 (msp430_hard_regno_nregs_with_padding): Likewise.
5156 (msp430_initial_elimination_offset): Likewise.
5157 (msp430_special_register_convention_p): Remove whitespace before left
5158 square bracket and after exclamation mark.
5159 (msp430_evaluate_arg): Likewise.
5160 (msp430_callee_copies): Fix indentation.
5161 (msp430_gimplify_va_arg_expr): Likewise.
5162 (msp430_function_arg_advance): Remove whitespace before left square
5164 (reg_ok_for_addr): Likewise.
5165 (msp430_preserve_reg_p): Likewise.
5166 (msp430_compute_frame_info): Likewise.
5167 (msp430_asm_output_addr_const_extra): Add space between function name
5168 and open parenthesis.
5169 (has_section_name): Fix indentation.
5170 (msp430_attr): Remove trailing whitespace.
5171 (msp430_section_attr): Likewise.
5172 (msp430_data_attr): Likewise.
5173 (struct msp430_attribute_table): Fix comment and whitespace.
5174 (msp430_start_function): Remove whitespace before left square bracket.
5175 Add space between function name and open parenthesis.
5176 (msp430_select_section): Remove trailing whitespace.
5177 (msp430_section_type_flags): Remove trailing whitespace.
5178 (msp430_unique_section): Remove space before closing parenthesis.
5179 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
5180 (msp430_builtins): Remove whitespace before left square bracket.
5181 (msp430_init_builtins): Fix indentation.
5182 (msp430_expand_prologue): Remove whitespace before left square bracket.
5183 Remove space before closing parenthesis.
5184 (msp430_expand_epilogue): Remove whitespace before left square bracket.
5185 (msp430_split_movsi): Remove space before closing parenthesis.
5186 (helper_function_name_mappings): Fix indentation.
5187 (msp430_use_f5_series_hwmult): Fix whitespace.
5188 (use_32bit_hwmult): Likewise.
5189 (msp430_no_hwmult): Likewise.
5190 (msp430_output_labelref): Remove whitespace before left square bracket.
5191 (msp430_print_operand_raw): Likewise.
5192 (msp430_print_operand_addr): Likewise.
5193 (msp430_print_operand): Add two spaces after '.' in comment.
5194 Fix trailing whitespace.
5195 (msp430x_extendhisi): Fix indentation.
5196 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
5198 (PC_REGNUM): Likewise.
5199 (STACK_POINTER_REGNUM): Likewise.
5200 (CC_REGNUM): Likewise.
5202 2019-08-15 Richard Biener <rguenther@suse.de>
5205 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
5207 (general_scalar_chain::make_vector_copies): Use it.
5209 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5211 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
5213 2019-08-15 Martin Liska <mliska@suse.cz>
5215 * tree-ssa-dce.c (propagate_necessity): We can't reach now
5216 operators with no arguments.
5217 (eliminate_unnecessary_stmts): Likewise here.
5219 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
5221 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
5222 <case COMPARE>: Revert 2019-08-14 change.
5223 (convertible_comparison_p): Revert 2019-08-14 change. Return false
5224 for (TARGET_64BIT || mode != DImode).
5226 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
5228 * tree-vrp.c (value_range_base::set): Merge in code from
5229 value_range_base::set_and_canonicalize.
5230 Enforce canonicalization at set time.
5231 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
5232 (value_range_base::set_undefined): Inline call to set().
5233 (value_range_base::set_varying): Same.
5234 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
5235 (vrp_val_max): New argument handle_pointers.
5236 (vrp_val_min): Same.
5237 (ranges_from_anti_range): Same.
5238 (extract_range_into_wide_ints): Use tree argument instead of sign
5240 (extract_range_from_multiplicative_op): Take in tree type instead
5241 of precision and sign. Adapt function for canonicalized ranges.
5242 (extract_range_from_binary_expr): Pass type to
5243 extract_range_from_multiplicative_op.
5244 Adapt for canonicalized ranges.
5245 (extract_range_from_unary_expr): Same.
5246 (value_range_base::intersect_helper): Adjust for canonicalized
5248 (value_range_base::union_helper): Same.
5249 (value_range_base::normalize_symbolics): New.
5250 * tree-vrp.h (class value_range_base): Remove
5251 set_and_canonicalize.
5252 New prototype for normalize_symbolics.
5253 (class value_range): Remove set_and_canonicalize.
5254 (vrp_val_min): Adjust prototype.
5255 (vrp_val_max): Same.
5257 (vr_values::extract_range_for_var_from_comparison_expr): Call set
5258 instead of set_and_canonicalize.
5260 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5263 * tree-vect-stmts.c (vectorizable_call): Check that the function
5264 is a BUILT_IN_MD function before passing it to
5265 targetm.vectorize.builtin_md_vectorized_function.
5267 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5269 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
5270 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
5271 (aarch64_select_early_remat_modes): Use it.
5273 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5275 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
5276 16 for SVE predicates even if they are fixed-length.
5278 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5280 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
5281 operand order match the MOV /Z alias.
5283 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5285 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
5286 the vector pattern as an aarch64_svpattern argument. Update the
5287 overloaded caller accordingly.
5288 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
5289 (aarch64_output_sve_vector_inc_dec): Likewise.
5291 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5293 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
5294 multiplication case, try to compute VG * (lowest set bit) directly
5295 rather than always basing the multiplication on VG. Use
5296 expand_mult for the multiplication if we can.
5298 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5300 * config/aarch64/aarch64-protos.h
5301 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
5302 (aarch64_sve_inc_dec_immediate_p): Rename to...
5303 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5304 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
5305 (aarch64_output_sve_scalar_inc_dec): Declare.
5306 (aarch64_output_sve_inc_dec_immediate): Rename to...
5307 (aarch64_output_sve_vector_inc_dec): ...this.
5308 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
5309 (aarch64_output_sve_scalar_inc_dec): New functions.
5310 (aarch64_output_sve_addvl_addpl): Remove the base and offset
5311 arguments. Only handle true ADDVL and ADDPL instructions;
5312 don't emit an INC or DEC.
5313 (aarch64_sve_inc_dec_immediate_p): Rename to...
5314 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
5315 (aarch64_output_sve_inc_dec_immediate): Rename to...
5316 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
5317 aarch64_sve_vector_inc_dec_immediate_p.
5318 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
5319 (aarch64_sve_plus_immediate): New predicates.
5320 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
5321 rather than aarch64_sve_addvl_addpl_immediate.
5322 (aarch64_sve_inc_dec_immediate): Rename to...
5323 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
5324 aarch64_sve_vector_inc_dec_immediate_p.
5325 (aarch64_sve_add_operand): Update accordingly.
5326 * config/aarch64/constraints.md (Uai): New constraint.
5327 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
5328 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
5329 operand into a register if it satisfies aarch64_sve_plus_immediate.
5330 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
5331 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
5332 * config/aarch64/aarch64-sve.md (add<mode>3): Call
5333 aarch64_output_sve_vector_inc_dec instead of
5334 aarch64_output_sve_inc_dec_immediate.
5336 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5338 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
5339 (UNSPEC_REVW): New constants.
5340 (elem_bits): New mode attribute.
5341 (SVE_INT_UNARY): New int iterator.
5342 (optab): Handle UNSPEC_REV[BHW].
5343 (sve_int_op): New int attribute.
5344 (min_elem_bits): Handle VNx16QI and the predicate modes.
5345 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
5346 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
5347 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
5348 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
5349 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
5350 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
5351 unspecs based on the total width of the reversed data.
5352 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
5353 reinterpret followed by a subreg on big-endian targets.
5355 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5356 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5358 * config/aarch64/aarch64-sve.md
5359 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
5360 alternatives in which one of the inputs is in the same register
5363 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5365 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
5366 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
5368 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5370 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
5371 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
5373 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5374 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5376 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
5377 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
5378 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
5380 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5381 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5383 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
5384 Add an alternative that uses reversed shifts.
5386 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5388 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
5391 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5393 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
5394 a commutativity marker.
5396 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5397 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5399 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
5400 (aarch64_prepare_sve_cond_int_fma): Declare.
5401 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
5402 (aarch64_prepare_sve_int_fma): New functions.
5403 (aarch64_prepare_sve_cond_int_fma): Likewise.
5404 * config/aarch64/aarch64-sve.md
5405 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
5406 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
5407 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
5408 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
5409 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
5410 (*madd<mode>): Rename to...
5411 (*fma<mode>4): ...this.
5412 (*msub<mode>): Rename to...
5413 (*fnma<mode>4): ...this.
5415 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5416 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5418 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
5419 Print 2.0 naturally.
5420 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
5421 * config/aarch64/predicates.md
5422 (aarch64_sve_float_negated_arith_immediate): New predicate,
5423 renamed from aarch64_sve_float_arith_with_sub_immediate.
5424 (aarch64_sve_float_arith_with_sub_immediate): Test for both
5425 positive and negative constants.
5426 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
5427 or an aarch64_sve_float_arith_with_sub_immediate.
5428 * config/aarch64/constraints.md (vsN): Use
5429 aarch64_sve_float_negated_arith_immediate.
5430 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
5432 (sve_pred_fp_rhs2_immediate): New int attribute.
5433 * config/aarch64/aarch64-sve.md
5434 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
5435 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
5436 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
5437 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
5438 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
5439 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
5441 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5442 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5444 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
5445 (*aarch64_cond_abd<SVE_F:mode>_3)
5446 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
5448 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5449 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5451 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
5452 (*aarch64_cond_<su>abd<mode>_any): New patterns.
5454 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
5455 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5457 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
5458 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
5459 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
5460 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
5462 * optabs.h (create_convert_operand_from): Expand comment.
5463 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
5464 when mapping scalar rtxes to vector operands.
5465 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
5466 ashiftrt and lshiftrt.
5467 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
5468 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
5469 (*cond_<optab><mode>_any_const): New patterns.
5471 2019-08-15 Martin Liska <mliska@suse.cz>
5474 * cgraph.c (cgraph_node::remove): When setting
5475 n->origin = NULL for all nested functions, reset
5478 2019-08-15 Martin Liska <mliska@suse.cz>
5480 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
5483 2019-08-15 Martin Liska <mliska@suse.cz>
5486 * passes.c (order): Remove.
5487 (uid_hash_t): Likewise).
5488 (remove_cgraph_node_from_order): Remove from set
5489 of pointers (cgraph_node *).
5490 (insert_cgraph_node_to_order): New.
5491 (duplicate_cgraph_node_to_order): New.
5492 (do_per_function_toporder): Register all 3 cgraph hooks.
5493 Skip removed_nodes now as we know about all of them.
5495 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
5497 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
5498 <case E_V8QImode>: Use vector_set path for
5499 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
5500 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
5501 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
5503 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
5505 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
5507 2019-08-14 Martin Sebor <msebor@redhat.com>
5509 PR tree-optimization/91294
5510 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
5511 source length as exact.
5513 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
5515 * doc/extend.texi: Add "noinit" attribute documentation.
5516 * doc/sourcebuild.texi: Add noinit effective target documentation.
5517 * varasm.c (default_section_type_flags): Add support for "noinit"
5519 (default_elf_select_section): Add support for "noinit" attribute.
5520 * config/msp430/msp430.c (msp430_attribute_table): Remove
5523 2019-08-14 Richard Biener <rguenther@suse.de>
5524 Uroš Bizjak <ubizjak@gmail.com>
5527 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
5529 (scalar_chain::smode): New member.
5530 (scalar_chain::vmode): Likewise.
5531 (dimode_scalar_chain): Rename to...
5532 (general_scalar_chain): ... this.
5533 (general_scalar_chain::general_scalar_chain): Take mode arguments.
5534 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
5535 base with TImode and V1TImode.
5536 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
5537 (general_scalar_chain::vector_const_cost): Adjust for SImode
5539 (general_scalar_chain::compute_convert_gain): Likewise. Add
5540 {S,U}{MIN,MAX} support.
5541 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
5542 (general_scalar_chain::make_vector_copies): Likewise. Handle
5543 non-DImode chains appropriately.
5544 (general_scalar_chain::convert_reg): Likewise.
5545 (general_scalar_chain::convert_op): Likewise.
5546 (general_scalar_chain::convert_insn): Likewise. Add
5547 fatal_insn_not_found if the result is not recognized.
5548 (convertible_comparison_p): Pass in the scalar mode and use that.
5549 (general_scalar_to_vector_candidate_p): Likewise. Rename from
5550 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
5551 (scalar_to_vector_candidate_p): Remove by inlining into single
5553 (general_remove_non_convertible_regs): Rename from
5554 dimode_remove_non_convertible_regs.
5555 (remove_non_convertible_regs): Remove by inlining into single caller.
5556 (convert_scalars_to_vector): Handle SImode and DImode chains
5557 in addition to TImode chains.
5558 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
5559 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
5560 (*<maxmin>di3_doubleword): Likewise.
5562 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5563 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5565 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
5566 (*cond_bic<mode>_any): New patterns.
5568 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5570 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
5571 take the equivalent mask, as well as a bit count.
5572 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
5573 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
5574 (aarch64_sve_pred_and_operand): New predicates.
5575 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
5577 * config/aarch64/aarch64-sve.md
5578 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
5579 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
5581 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5583 * config/aarch64/aarch64-sve.md
5584 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
5585 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
5588 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5589 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5591 * config/aarch64/aarch64-sve.md
5592 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
5593 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
5595 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5596 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5598 * config/aarch64/aarch64-sve.md
5599 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
5600 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
5602 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5604 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
5605 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
5608 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5609 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5611 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
5613 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5614 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5616 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
5617 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
5618 (aarch64_print_operand): Add support for %I.
5619 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
5620 Bitcast floating-point constants to the corresponding integer constant.
5621 (aarch64_float_const_representable_p): Handle vectors as well
5623 (aarch64_expand_sve_vcond): Make sure that the operands are valid
5624 for the new vcond_mask_<mode><vpred> expander.
5625 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
5626 test aarch64_float_const_representable_p.
5627 (aarch64_sve_reg_or_dup_imm): New predicate.
5628 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
5629 gen_vcond_mask_<mode><vpred> instead of
5630 gen_aarch64_sve_dup<mode>_const.
5631 (vcond_mask_<mode><vpred>): Turn into a define_expand that
5632 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
5633 for operands 1 and 2 respectively. Force operand 2 into a
5634 register if operand 1 is a register. Fold old define_insn...
5635 (aarch64_sve_dup<mode>_const): ...and this define_insn...
5636 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
5637 floating-point constants that can be moved as integers. Add
5638 alternatives for MOV /M and FMOV /M.
5639 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
5640 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
5641 1 and 2 respectively.
5642 * config/aarch64/constraints.md (Ufc): Handle vectors as well
5644 (vss): New constraint.
5646 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5648 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
5649 (aarch64_sve_float_maxmin_operand): New predicates.
5650 * config/aarch64/constraints.md (vsB): New constraint.
5652 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
5653 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
5655 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
5656 Use aarch64_sve_float_maxmin_operand for operand 2.
5657 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
5658 Add alternatives for the constant forms.
5660 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5662 * config/aarch64/constraints.md (vsb): New constraint.
5663 (vsm): Generalize description.
5664 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
5666 (sve_imm_con): Handle smax, smin, umax and umin.
5667 (sve_imm_prefix): New code attribute.
5668 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
5669 (aarch64_sve_vsb_operand): New predicates.
5670 (aarch64_sve_mul_immediate): Rename to...
5671 (aarch64_sve_vsm_immediate): ...this.
5672 (aarch64_sve_mul_operand): Rename to...
5673 (aarch64_sve_vsm_operand): ...this.
5674 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
5675 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
5676 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
5677 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
5678 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
5679 add movprfx support for the immediate alternatives.
5680 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
5682 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
5685 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5687 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
5688 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
5689 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
5691 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5693 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
5694 (optab, sve_int_op): Handle them.
5695 * config/aarch64/aarch64-sve.md: Expand comment.
5697 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5699 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
5700 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
5701 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
5703 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5705 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
5706 (aarch64_expand_sve_const_pred_trn): New functions.
5707 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
5708 use the above functions when the parameter is true.
5709 (aarch64_expand_sve_const_pred): Update call accordingly.
5710 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
5712 (@aarch64_sve_<perm_insn><mode>): ...this.
5714 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5716 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
5718 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
5719 (aarch64_sve_emit_int_cmp): New functions.
5720 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
5721 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
5722 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
5723 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
5724 (UNSPEC_PRED_Z): New unspec.
5725 (set_clobber_cc_nzc): Delete.
5726 * config/aarch64/aarch64-sve.md: Add a block comment about
5728 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
5729 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
5730 the old pattern with that name. Use UNSPEC_PRED_Z instead of
5732 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
5733 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
5734 check for compatible predicates.
5735 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
5736 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
5737 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
5740 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5742 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
5743 * config/aarch64/aarch64-sve.md: Add a section describing it.
5744 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
5745 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
5746 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
5747 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
5748 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
5749 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
5750 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
5751 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
5752 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
5753 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
5754 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
5755 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
5756 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
5757 (aarch64_evpc_rev_local): Update accordingly.
5759 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5761 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
5763 (SVE_BHSI, SVE_SDI): Tweak comment.
5764 (SVE_HSDI): Likewise. Fix definition.
5765 (SVE_SDF): New mode iterator.
5766 (elem_bits): New mode attribute.
5767 (SVE_COND_FCVT): New int iterator.
5768 * config/aarch64/aarch64-sve.md
5769 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
5770 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
5771 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
5772 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
5773 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5774 ...these new patterns.
5775 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
5776 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
5777 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
5779 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
5780 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
5781 ...these new patterns.
5782 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
5783 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
5784 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
5785 ...this new pattern.
5786 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
5787 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
5788 ...this new pattern.
5789 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
5791 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5793 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
5794 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
5795 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
5797 (optab, su): Handle them.
5798 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
5799 * config/aarch64/aarch64-sve.md
5800 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
5801 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
5802 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
5803 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
5804 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
5805 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
5806 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
5807 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
5808 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
5810 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
5811 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
5812 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
5813 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
5814 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
5815 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
5816 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
5817 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
5818 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
5819 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
5820 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
5821 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
5822 of UNSPEC_FLOAT_CONVERT.
5823 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
5824 aarch64_sve_extend<mode><Vwide>2.
5826 2019-08-14 Richard Biener <rguenther@suse.de>
5829 * config/i386/i386-features.c
5830 (dimode_scalar_chain::compute_convert_gain): Compute and dump
5831 individual instruction gain. Fix reg-reg copy GRP cost. Use
5832 ix86_cost->sse_op for vector instruction costs.
5834 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5836 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
5837 (cmp_op): Handle it.
5838 (SVE_COND_FP_CMP): Rename to...
5839 (SVE_COND_FP_CMP_I0): ...this.
5840 (SVE_FP_CMP): Remove.
5841 * config/aarch64/aarch64-sve.md
5842 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
5843 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
5844 using unspecs to represent the comparison.
5845 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
5846 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
5848 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
5849 (aarch64_unspec_cond_code): Move after integer code. Handle
5851 (aarch64_emit_sve_predicated_cond): Replace with...
5852 (aarch64_emit_sve_fp_cond): ...this new function.
5853 (aarch64_emit_sve_or_conds): Replace with...
5854 (aarch64_emit_sve_or_fp_conds): ...this new function.
5855 (aarch64_emit_sve_inverted_cond): Replace with...
5856 (aarch64_emit_sve_invert_fp_cond): ...this new function.
5857 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
5859 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5861 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
5862 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
5863 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
5864 SVE_HSD instead of SVE_SD.
5866 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5867 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5869 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
5871 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
5873 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
5874 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
5875 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
5876 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
5877 (*div<SVE_F:mode>3): Generalize to...
5878 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
5880 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5881 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5883 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
5885 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
5887 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
5889 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
5891 * config/aarch64/aarch64-sve.md: Add a block comment about the
5892 handling of predicated FP operations.
5893 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
5894 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
5895 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
5896 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
5897 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
5899 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
5900 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
5902 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
5903 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
5904 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
5905 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
5906 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
5907 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
5908 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
5909 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
5910 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
5911 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
5912 strictness operands. Use aarch64_sve_pred_dominates_p to check
5913 whether the predicate on the conditional operation is suitable
5914 for merging. Split patterns into the canonical equal-predicate form.
5915 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
5916 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
5918 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5919 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5921 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
5922 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
5923 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
5925 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
5926 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
5929 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5930 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5932 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
5933 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
5934 actually has, rather than relying on REG_EQUAL notes.
5935 Make the insn operand order match the SVE operand order.
5936 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
5937 the SVE operand order.
5939 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5941 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
5942 (aarch64_emit_set_immediate): Likewise.
5943 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
5944 (aarch64_pfalse_reg): Likewise.
5945 (aarch64_convert_sve_data_to_pred): New function.
5946 (aarch64_sve_move_pred_via_while): Take an optional target register
5947 and the required register mode.
5948 (aarch64_expand_sve_const_pred_1): New function.
5949 (aarch64_expand_sve_const_pred): Likewise.
5950 (aarch64_expand_mov_immediate): Build an all-true predicate
5951 if the significant bits of the immediate are all true. Use
5952 aarch64_expand_sve_const_pred for all compile-time predicate constants.
5953 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
5954 before register allocation.
5955 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
5956 a VNx16BI PTRUE when splitting the memory alternative.
5957 (vec_duplicate<mode>): Update accordingly.
5958 (*pred_cmp<cmp_op><mode>): Rename to...
5959 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
5961 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
5963 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
5964 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
5965 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
5966 (UNSPEC_PTEST): New unspec.
5967 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
5968 * config/aarch64/iterators.md (data_bytes): New mode attribute.
5969 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
5970 * config/aarch64/aarch64-sve.md: Add a new section describing the
5971 handling of UNSPEC_PTEST.
5972 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
5973 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
5974 (ptest_ptrue<mode>): Replace with...
5975 (aarch64_ptest<mode>): ...this new pattern.
5976 (cbranch<mode>4): Update after above changes.
5977 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
5979 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
5980 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
5981 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
5983 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
5986 * builtins.c (builtin_with_linkage_p): New function.
5987 * builtins.h (builtin_with_linkage_p): New function.
5988 * symtab.c (write_symbol): Remove redundant assert.
5989 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
5990 Remove FIXME and use builtin_with_linkage_p.
5992 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
5995 * tree-core.h (function_decl::function_code): Change type to
5997 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
5998 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
5999 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
6000 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
6002 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
6003 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
6004 (fndecl_built_in_p): Change the type of the "name" argument to
6006 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
6007 after check for DECL_BUILT_IN_CLASS.
6008 * cgraphclones.c (build_function_decl_skip_args): Use
6009 set_decl_built_in_function.
6010 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
6011 * ipa-split.c (split_function): Likewise.
6012 * langhooks.c (add_builtin_function_common): Likewise.
6013 * omp-simd-clone.c (simd_clone_create): Likewise.
6014 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
6015 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
6016 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
6018 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
6019 instead of DECL_FUNCTION_CODE.
6020 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
6021 instead of DECL_FUNCTION_CODE.
6022 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
6023 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
6024 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
6025 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
6026 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
6027 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
6028 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
6029 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
6030 (alpha_gimple_fold_builtin): Likewise.
6031 * config/arc/arc.c (arc_expand_builtin): Likewise.
6032 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
6033 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
6034 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
6035 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
6036 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
6037 * config/frv/frv.c (frv_expand_builtin): Likewise.
6038 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
6039 (gcn_expand_builtin): Likewise.
6040 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
6041 (fold_builtin_cpu): Likewise.
6042 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
6043 * config/i386/i386.c (ix86_fold_builtin): Likewise.
6044 (ix86_gimple_fold_builtin): Likewise.
6045 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
6046 (ia64_expand_builtin): Likewise.
6047 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
6048 * config/mips/mips.c (mips_expand_builtin): Likewise.
6049 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
6050 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6051 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
6052 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
6053 * config/pa/pa.c (pa_expand_builtin): Likewise.
6054 * config/pru/pru.c (pru_expand_builtin): Likewise.
6055 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
6056 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6058 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
6059 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
6060 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
6061 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
6062 (rs6000_builtin_reciprocal): Likewise.
6063 * config/rx/rx.c (rx_expand_builtin): Likewise.
6064 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6065 * config/s390/s390.c (s390_expand_builtin): Likewise.
6066 * config/sh/sh.c (sh_expand_builtin): Likewise.
6067 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
6068 (sparc_fold_builtin): Likewise.
6069 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
6070 * config/spu/spu.c (spu_expand_builtin): Likewise.
6071 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
6072 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
6073 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
6074 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6075 (xtensa_expand_builtin): Likewise.
6077 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6080 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
6081 before the DECL_FUNCTION_CODE.
6082 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
6083 to check for a BUILT_IN_ALLOCA call.
6084 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
6085 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
6086 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
6087 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6088 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
6089 for BUILT_IN_NORMAL functions.
6090 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
6091 test for BUILT_IN_TM_ABORT.
6092 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
6093 to check for a BUILT_IN_STACK_RESTORE call.
6094 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
6095 * tree-ssa-threadedge.c
6096 (record_temporary_equivalences_from_stmts_at_dest): Check for a
6097 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
6098 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
6099 test for a BUILT_IN_NORMAL call instead of a negative test for
6100 an internal function call.
6102 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6104 * tree.h (build_vector_a_then_b): Declare.
6105 * tree.c (build_vector_a_then_b): New function.
6106 * fold-const-call.c (fold_while_ult): Likewise.
6107 (fold_const_call): Use it to handle IFN_WHILE_ULT.
6108 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
6109 (aarch64_svpattern): New enum.
6110 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
6111 constants through aarch64_expand_mov_immediate.
6112 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
6113 than general_operand as the predicate for operand 1.
6114 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
6115 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
6117 (simd_immediate_info::simd_immediate_info): New overload that
6118 takes a scalar_int_mode and an svpattern.
6119 (simd_immediate_info::u): Add a "pattern" field.
6120 (svpattern_token): New function.
6121 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
6122 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
6123 (aarch64_sve_move_pred_via_while): New functions.
6124 (aarch64_expand_mov_immediate): Try using
6125 aarch64_sve_move_pred_via_while for predicates that contain N ones
6126 followed by M zeros but that do not correspond to a VLnnn pattern.
6127 (aarch64_sve_pred_valid_immediate): New function.
6128 (aarch64_simd_valid_immediate): Use it instead of dealing directly
6129 with PTRUE and PFALSE.
6130 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
6133 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
6135 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
6137 (darwin_override_options): Likewise.
6138 * config/darwin.h: Likewise.
6139 * config/darwin.opt: Likewise.
6140 * config/i386/i386.c (output_pic_addr_const): Likewise.
6141 * config/rs6000/darwin.h: Likewise.
6142 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
6143 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
6144 ... this TARGET_MACHO_SYMBOL_STUBS.
6145 (FUNCTION_PROFILER):Likewise.
6146 * config/i386/i386.h: Likewise.
6148 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
6150 * config/i386/i386-expand.c (ix86_expand_vector_extract)
6151 <case E_V2SImode>: Use vec_extr path for
6152 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6153 <case E_V8QImode>: Ditto.
6154 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
6155 Use SWI48 mode iterator. Use %k to output operand 0.
6156 (*mmx_pextrw): New insn pattern.
6157 (*mmx_pextrb): Ditto.
6158 (*mmx_pextrb_zext): Ditto.
6160 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
6162 * target.def (libc_has_function, libc_has_fast_function): Improve
6163 documentation strings.
6164 * doc/tm.texi: Regenerate.
6166 2019-08-13 Caroline Tice <cmtice@google.com>
6169 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
6170 vtv_end.o or vtv_end_preinit.o files if !static.
6172 2019-08-13 Olivier Hainque <hainque@adacore.com>
6174 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
6176 2019-08-13 Olivier Hainque <hainque@adacore.com>
6178 * rtlanal.c (tablejump_casesi_pattern): New function, to
6179 determine if a tablejump insn is a casesi dispatcher. Extracted
6180 from patch_jump_insn.
6181 * rtl.h (tablejump_casesi_pattern): Declare.
6182 * cfgrtl.c (patch_jump_insn): Use it.
6183 * dwarf2cfi.c (create_trace_edges): Use it.
6185 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
6188 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
6189 operand is larger than a long int.
6191 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6193 * machmode.h (opt_mode::else_mode): New function.
6194 (opt_mode::else_blk): Use it.
6195 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
6196 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
6197 (aarch64_gen_stepped_int_parallel): Likewise.
6198 (aarch64_stepped_int_parallel_p): Likewise.
6199 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6201 * config/aarch64/aarch64.c
6202 (aarch64_expand_sve_widened_duplicate): Delete.
6203 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
6204 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
6205 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6206 argument. Use early returns in the !CONST_INT_P handling.
6207 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
6208 than handling some inline.
6209 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
6211 (aarch64_simd_container_mode): ...here.
6212 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
6213 (aarch64_sve_ld1rq_operand_p): New functions.
6214 * config/aarch64/predicates.md (descending_int_parallel)
6215 (aarch64_sve_ld1rq_operand): New predicates.
6216 * config/aarch64/constraints.md (UtQ): New constraint.
6217 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
6218 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
6219 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
6220 (@aarch64_sve_reinterpret<mode>): New expander.
6221 (*aarch64_sve_reinterpret<mode>): New pattern.
6222 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
6223 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
6224 (*sve_ld1rq<Vesize>): Replace with...
6225 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
6227 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
6229 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
6232 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6234 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
6235 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
6236 (msp430_check_path_for_devices): New.
6237 (parse_devices_csv_1): New.
6238 (parse_devices_csv): New.
6239 (msp430_extract_mcu_data): Try to find devices.csv and search for the
6240 MCU data in devices.csv before using the hard-coded data.
6241 Warn if devices.csv isn't found and the MCU wasn't found in the
6242 hard-coded data either.
6243 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
6244 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
6245 Search for devices.csv on -I and -L paths.
6246 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
6247 msp430_set_driver_var.
6248 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
6250 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
6251 searched for devices.csv.
6252 (mwarn-devices-csv): Document option.
6254 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6256 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
6257 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
6258 Use a single Dn alternative instead of separate Dz and Dm
6259 alternatives. Use aarch64_output_sve_move_immediate.
6260 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
6262 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
6264 (aarch64_output_sve_mov_immediate): Handle predicate modes.
6265 (aarch64_output_ptrue): Delete.
6267 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6269 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
6271 (simd_immediate_info::value, simd_immediate_info::step)
6272 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
6274 (simd_immediate_info::u): ...this new union.
6275 (simd_immediate_info::simd_immediate_info): Update accordingly.
6276 (aarch64_output_simd_mov_immediate): Likewise.
6277 (aarch64_output_sve_mov_immediate): Likewise.
6279 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6281 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
6283 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
6284 (msp430_select_cpu): New spec function.
6285 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
6287 * config/msp430/msp430-devices.c: New file.
6288 * config/msp430/msp430-devices.h: New file.
6289 * config/msp430/msp430.c: Remove msp430_mcu_data.
6290 (msp430_option_override): Use msp430_extract_mcu_data to extract
6292 (msp430_use_f5_series_hwmult): Likewise.
6293 (use_32bit_hwmult): Likewise.
6294 (msp430_no_hwmult): Likewise.
6295 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
6297 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
6299 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
6300 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
6301 Remove hard-coded MCU multilib data.
6303 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6305 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
6306 based on the mode instead of testing properties of it.
6308 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6310 * doc/md.texi: Document the x and y constraints for AArch64.
6311 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
6312 (FP_LO8_REGS): New reg_class.
6313 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
6314 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
6315 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
6316 * config/aarch64/predicates.md (aarch64_simd_register): Use
6317 FP_REGNUM_P instead of checking the classes manually.
6318 * config/aarch64/constraints.md (y): New constraint.
6320 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
6322 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
6323 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
6324 * config/aarch64/aarch64-simd.md
6325 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
6326 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
6327 from the asm template.
6328 * config/aarch64/aarch64-sve.md
6329 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
6330 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
6331 from the asm template.
6332 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
6333 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
6334 from the asm template.
6335 * config/aarch64/aarch64-simd-builtins.def: Update comment.
6337 2019-08-13 Martin Liska <mliska@suse.cz>
6339 * value-prof.c (gimple_ic_transform): Add new line.
6340 Print details with MSG_NOTE.
6342 2019-08-13 Martin Liska <mliska@suse.cz>
6344 * doc/invoke.texi: Document automatic detection of jobserver.
6345 * lto-wrapper.c (run_gcc): Detect jobserver always.
6347 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
6349 * config/i386/i386-expand.c (ix86_expand_vector_set)
6350 <case E_V2SImode>: Use vec_merge path for
6351 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6352 <case E_V8QImode>: Ditto.
6353 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
6354 (*mmx_pinsrb): Ditto.
6356 2019-08-12 Jakub Jelinek <jakub@redhat.com>
6360 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
6361 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
6362 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
6363 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
6364 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
6366 2019-08-12 Richard Biener <rguenther@suse.de>
6369 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
6372 2019-08-12 Richard Biener <rguenther@suse.de>
6375 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
6376 lang_mask option, always use CL_DRIVER.
6377 (get_options_from_collect_gcc_options): Adjust.
6378 (find_and_merge_options): Likewise.
6379 (run_gcc): Likewise.
6381 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6383 * ipa-predicate.c (add_condition): Restore inverted test.
6385 2019-08-10 Jakub Jelinek <jakub@redhat.com>
6387 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
6388 (enum omp_clause_device_type_kind): New enum.
6389 (struct tree_omp_clause): Add subcode.device_type_kind.
6390 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
6391 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
6392 for device_type clause.
6393 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
6394 * tree-pretty-print.c (dump_omp_clause): Likewise.
6397 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
6400 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
6402 * reload1.c (finish_spills): Do not check ira_conflicts_p when
6403 handling spilled pseudos.
6405 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
6408 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
6409 to preserve the contents of the original insns.
6411 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
6413 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
6414 (addsi3_compare_op2): Likewise.
6416 2019-08-09 Martin Liska <mliska@suse.cz>
6418 * alias.c (alias_ptr_types_compatible_p): Strengten
6419 type comparison in LTO mode.
6421 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
6424 * tree-tailcall.c (find_tail_calls): Reject calls that might
6425 read from an escaped RESULT_DECL.
6427 2019-08-09 Martin Liska <mliska@suse.cz>
6429 * doc/invoke.texi: Document the option value.
6430 * lto-wrapper.c (run_gcc): Set auto_parallel
6431 only with -flto=auto.
6433 2019-08-09 Martin Liska <mliska@suse.cz>
6435 * opts.c (common_handle_option): Error for an invalid argument
6438 2019-08-09 Martin Liska <mliska@suse.cz>
6440 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
6441 use dump_printf to report optimization.
6442 (sem_variable::merge): Likwise.
6443 (sem_item_optimizer::merge_classes): Use dump_printf to report
6446 2019-08-09 Martin Liska <mliska@suse.cz>
6448 * value-prof.c (gimple_divmod_fixed_value_transform):
6449 Use dump_printf_loc.
6450 (gimple_mod_pow2_value_transform): Likewise.
6451 (gimple_mod_subtract_transform): Likewise.
6452 (init_node_map): Likewise.
6453 (gimple_ic_transform): Likewise.
6454 (gimple_stringops_transform): Likewise.
6456 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6458 * doc/extend.texi: Add const qualifier to ld intrinsics.
6460 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
6462 * config/rs6000/dfp.md (D64_D128): Rename to ...
6463 (DDTD): ... this, throughout.
6464 (dfp_suffix): Rename to ...
6465 (q): ... this, throughout.
6467 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
6469 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
6470 (dfp_suffix): Ditto.
6471 (adddd3, addtd3): Merge to ...
6472 (add<mode>3 for D64_D128): ... this.
6473 (subdd3, subtd3): Merge to ...
6474 (sub<mode>3 for D64_D128): ... this.
6475 (muldd3, multd3): Merge to ...
6476 (mul<mode>3 for D64_D128): ... this.
6477 (divdd3, divtd3): Merge to ...
6478 (div<mode>3 for D64_D128): ... this.
6479 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
6480 (*cmp<mode>_internal1 for D64_D128): ... this.
6481 (ftruncdd2, ftrunctd2): Merge to ...
6482 (ftrunc<mode>2 for D64_D128): ... this.
6483 (fixdddi2, fixtddi2): Merge to ...
6484 (fix<mode>di2 for D64_D128): ... this.
6486 2019-08-08 Jim Wilson <jimw@sifive.com>
6489 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
6490 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
6491 Pass into recursive call.
6492 (riscv_flatten_aggregate_argument): New arg. Pass to
6493 riscv_flatten_aggregate_field.
6494 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
6495 riscv_flatten_aggregate_argument twice, with false and true as last
6496 arg. Process result twice. Compare results and warn if different.
6497 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
6499 2019-08-08 Martin Liska <mliska@suse.cz>
6502 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
6503 * lto-wrapper.c (jobserver_active_p): Likewise.
6505 2019-08-08 Martin Liska <mliska@suse.cz>
6507 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
6508 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
6509 (create_version_clone_with_body): Likewise.
6511 2019-08-08 Jakub Jelinek <jakub@redhat.com>
6513 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
6514 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
6515 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
6516 GOVD_EXPLICIT flags.
6517 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
6518 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
6519 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
6520 call install_var_field with mask 11 instead of 3.
6521 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
6522 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
6524 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6526 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
6527 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
6529 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6531 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
6532 MOVPRFX alternatives. Make the GPR alternatives more expensive
6535 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6537 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
6538 Disparage the GPR alternative relative to the FPR one.
6539 Fix handling of 8-bit and 16-bit FPR values.
6541 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6543 * config/aarch64/iterators.md (BITWISEV): Delete.
6544 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
6545 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
6546 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
6547 UNSPEC_FMINNMV, UNSPEC_FMINV.
6548 (bit_reduc_op): Delete.
6549 (sve_int_op): New int attribute.
6550 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
6551 UNSPEC_FMINNMV, UNSPEC_FMINV.
6552 * config/aarch64/aarch64-sve.md
6553 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
6554 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
6555 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
6556 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
6557 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
6558 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
6560 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
6561 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
6562 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
6563 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
6564 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
6567 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6569 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
6570 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
6571 (fms<mode>4, *fms<mode>4): Replace with...
6572 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6573 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
6574 Use unspecs instead of rtx codes.
6575 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
6576 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
6578 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6580 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
6582 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
6583 * config/aarch64/aarch64-sve.md
6584 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
6585 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
6586 use a single unspec for the rhs.
6587 (*<su><maxmin><mode>3): Delete.
6588 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
6590 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6592 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
6593 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
6594 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
6595 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
6596 (optab, sve_fp_op): Handle them.
6597 (SVE_FP_UNARY): Delete.
6598 (optab): Remove sqrt entry.
6599 (sve_fp_op): Remove neg, abs and sqrt entries.
6600 (SVE_COND_FP_UNARY): New int iterator.
6601 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
6602 (*<frint_pattern><mode>2): Delete.
6603 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
6604 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
6605 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
6606 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
6608 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6610 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
6612 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6614 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
6615 (UNSPEC_COND_FADD): ...this.
6616 (UNSPEC_COND_SUB): Rename to...
6617 (UNSPEC_COND_FSUB): ...this.
6618 (UNSPEC_COND_MUL): Rename to...
6619 (UNSPEC_COND_FMUL): ...this.
6620 (UNSPEC_COND_DIV): Rename to...
6621 (UNSPEC_COND_FDIV): ...this.
6622 (UNSPEC_COND_MAX): Rename to...
6623 (UNSPEC_COND_FMAXNM): ...this.
6624 (UNSPEC_COND_MIN): Rename to...
6625 (UNSPEC_COND_FMINNM): ...this.
6626 (UNSPEC_COND_LT): Rename to...
6627 (UNSPEC_COND_FCMLT): ...this.
6628 (UNSPEC_COND_LE): Rename to...
6629 (UNSPEC_COND_FCMLE): ...this.
6630 (UNSPEC_COND_EQ): Rename to...
6631 (UNSPEC_COND_FCMEQ): ...this.
6632 (UNSPEC_COND_NE): Rename to...
6633 (UNSPEC_COND_FCMNE): ...this.
6634 (UNSPEC_COND_GE): Rename to...
6635 (UNSPEC_COND_FCMGE): ...this.
6636 (UNSPEC_COND_GT): Rename to...
6637 (UNSPEC_COND_FCMGT): ...this.
6638 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
6639 (sve_fp_op_rev): Update accordingly.
6640 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
6642 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6644 * config/aarch64/aarch64-sve.md: Reorganize contents and add
6646 * config/aarch64/check-sve-md.awk: New file.
6647 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
6648 (insn-conditions.md): Depend on it.
6650 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
6653 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
6654 (*negsi2_cmpz_zext): Ditto.
6656 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6658 * config/aarch64/iterators.md (commutative): Remove.
6660 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
6663 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
6664 processing COLLECT_GCC_OPTIONS.
6665 (run_gcc): Likewise.
6667 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
6669 PR tree-optimization/91109
6670 * lra-remat.c (update_scratch_ops): Remove assignment of the
6673 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
6675 * data-streamer.h (streamer_write_poly_uint64): Declare.
6676 (streamer_read_poly_uint64): Likewise.
6677 * data-streamer-in.c (streamer_read_poly_uint64): New function.
6678 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
6679 * ipa-predicate.h (condition::size): Turn into a poly_int64.
6680 (add_condition): Take a poly_int64 size.
6681 * ipa-predicate.c (add_condition): Likewise.
6682 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
6683 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
6684 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
6685 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
6686 condition::size as a poly_int64.
6687 (unmodified_parm_1): Take a poly_int64 size pointer.
6688 (unmodified_parm): Likewise.
6689 (unmodified_parm_or_parm_agg_item): Likewise.
6690 (set_cond_stmt_execution_predicate): Update accordingly.
6691 (set_switch_stmt_execution_predicate): Likewise.
6692 (will_be_nonconstant_expr_predicate): Likewise.
6693 (will_be_nonconstant_predicate): Likewise.
6694 (inline_read_section): Stream condition::size as a poly_int.
6695 (ipa_fn_summary_write): Likewise.
6697 2019-08-07 Martin Liska <mliska@suse.cz>
6699 * fold-const.c (twoval_comparison_p): Replace int
6700 with bool as a return type.
6701 (simple_operand_p): Likewise.
6702 (operand_equal_p): Replace int with bool as a return type.
6703 * fold-const.h (operand_equal_p): Likewise.
6705 2019-08-07 Jakub Jelinek <jakub@redhat.com>
6707 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
6708 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
6709 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
6710 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
6711 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
6712 * tree-pretty-print.c (dump_omp_clause): Likewise.
6713 * tree-nested.c (convert_nonlocal_omp_clauses,
6714 convert_local_omp_clauses): Likewise.
6715 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
6717 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
6718 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
6719 clause with array or reference to array types, no matter what type
6720 except for reference it has.
6722 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
6724 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
6726 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
6728 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
6729 (arch_canonicalize): Support rv32g and rv64g and fix error
6732 2019-08-06 Martin Liska <mliska@suse.cz>
6734 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
6735 and DECL_IS_OPERATOR_DELETE_P.
6737 2019-08-06 Jakub Jelinek <jakub@redhat.com>
6739 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
6740 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
6741 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
6742 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
6743 (gimplify_omp_for): Don't do C++ random access iterator clause
6744 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
6745 don't predetermine the artificial iterator in case of C++ random
6746 access iterators as lastprivate, but private. For OMP_LOOP, force
6747 bind expr around simd body and force for_pre_body before the
6748 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
6749 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
6750 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
6751 diff var of C++ random access iterators. Handle
6752 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
6753 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
6754 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
6755 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
6756 * omp-low.c (lower_rec_input_clauses): For
6757 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
6758 variables instead of default constructing them.
6759 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
6760 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
6761 is_taskloop_ctx check from the assert to the guarding condition.
6763 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
6765 * config/riscv/multilib-generator: (canonical_order): New.
6766 (arch_canonicalize): Dito.
6767 Apply arch_canonicalize for alts.
6769 2019-08-05 Martin Sebor <msebor@redhat.com>
6771 * doc/extend.texi (Common Variable Attributes): Document alias
6774 2019-08-05 Marek Polacek <polacek@redhat.com>
6776 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
6777 * doc/invoke.texi: Document -Wcomma-subscript.
6779 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
6781 * tree-core.h (tree_function_decl): Make function_code an
6782 independent field. Group the remaining bitfields into bytes
6783 and move decl_type so that it contines to be at a byte boundary.
6784 Leave 12 bits for future expansion.
6786 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
6788 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
6789 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
6790 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
6793 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
6795 * gimple.h (gimple_move_vops): Declare.
6796 * gimple.c (gimple_move_vops): New function
6797 * gimple-fold.c (replace_call_with_call_and_fold)
6798 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
6799 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
6800 (gimple_fold_call): Use it.
6801 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
6802 * tree-call-cdce.c (use_internal_fn): Likewise.
6803 * tree-if-conv.c (predicate_load_or_store): Likewise.
6804 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
6805 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
6806 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
6807 (update_call_from_tree): Likewise.
6808 * tree-vect-stmts.c (vectorizable_load): Likewise.
6809 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
6811 2019-08-05 Martin Liska <mliska@suse.cz>
6814 * tree-ssa-dce.c (propagate_necessity): Handle new operators
6816 (eliminate_unnecessary_stmts): Likewise.
6818 2019-08-05 Richard Biener <rguenther@suse.de>
6821 * fold-const.c (get_array_ctor_element_at_index): Create
6822 offset_ints according to the sign of the index type and treat
6823 that as signed if it is obviously so.
6825 2019-08-05 Jakub Jelinek <jakub@redhat.com>
6828 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
6829 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
6830 _mm256_storeu2_m128i): New function.
6832 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
6834 * config/riscv/riscv.c (riscv_promote_function_mode): New.
6835 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
6837 2019-08-05 Alan Modra <amodra@gmail.com>
6840 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
6841 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
6843 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
6845 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
6846 bug that was fixed in Tcl 8.6.1.
6848 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
6850 * config/rs6000/future.md: New file.
6851 * config/rs6000/rs6000.md: Include future.md.
6852 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
6854 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
6856 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
6857 check to use targetm.slow_unaligned_access instead.
6859 * function.c (assign_param_data_one): Remove unused data members.
6861 2019-08-02 Steve Ellcey <sellcey@marvell.com>
6863 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
6864 build_distinct_type_copy.
6865 (simd_clone_adjust_argument_types): Ditto.
6866 (simd_clone_adjust): Call build_distinct_type_copy here.
6867 (expand_simd_clones): Ditto.
6869 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
6872 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
6874 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
6876 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
6877 from 'const void *'.
6878 (sort_locs_in_loop_postorder_cmp): Likewise.
6880 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
6882 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
6883 (hot-bb-count-ws-permille): Likewise.
6884 (hot-bb-frequency-fraction): Likewise.
6885 (unlikely-bb-count-fraction): Likewise.
6886 * params.def (hot-bb-count-fraction): Rework description.
6887 (hot-bb-count-ws-permille): Likewise.
6888 (hot-bb-frequency-fraction): Likewise.
6889 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
6890 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
6892 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
6895 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
6898 2019-08-02 Richard Biener <rguenther@suse.de>
6900 * vec.h (vec::sort): Add gcc_qsort_r support.
6901 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
6902 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
6903 to gcc_qsort_r style callback.
6904 (sort_locs_in_loop_postorder_cmp): Likewise.
6905 (analyze_memory_references): Use gcc_sort_r interfaces.
6906 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
6908 2019-08-02 Martin Liska <mliska@suse.cz>
6911 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
6912 to detect working job server.
6913 (driver::detect_jobserver): Test whether jobserver
6914 is active from GCC driver. That will prevent situation where
6915 GCC is invoked from a LD plugin and the linker already uses
6916 file descriptors suggested by make. That leads to a wrong
6918 * gcc.h (driver): Add detect_jobserver.
6919 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
6920 not scanning for --jobserver-auth prefix.
6922 2019-08-02 Jakub Jelinek <jakub@redhat.com>
6924 PR tree-optimization/91201
6925 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
6926 V16QImode extraction without sse4.1 try to use V4SImode lowpart
6929 2019-08-01 Martin Sebor <msebor@redhat.com>
6932 * tree.c (type_initializer_zero_p): Define.
6933 * tree.h (type_initializer_zero_p): New function.
6935 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
6937 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
6939 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
6941 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
6942 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
6943 * predict.c (maybe_hot_count_p): Likewise.
6944 (maybe_hot_bb_p): Tweak comment.
6945 (maybe_hot_edge_p): Likewise.
6946 (probably_never_executed): Likewise. Minor tweak.
6947 (probably_never_executed_bb_p): Likewise.
6948 (unlikely_executed_edge_p): Likewise.
6949 (probably_never_executed_edge_p): Likewise.
6950 (optimize_function_for_size_p): Likewise.
6951 (optimize_function_for_speed_p): Likewise.
6952 (function_optimization_type): Likewise.
6953 (optimize_bb_for_size_p): Likewise.
6954 (optimize_bb_for_speed_p): Likewise.
6955 (bb_optimization_type): Likewise.
6956 (optimize_edge_for_size_p): Likewise.
6957 (optimize_edge_for_speed_p): Likewise.
6958 (optimize_insn_for_size_p): Likewise.
6959 (optimize_insn_for_speed_p): Likewise.
6960 (optimize_loop_for_size_p): Likewise.
6961 (optimize_loop_for_speed_p): Likewise.
6962 (optimize_loop_nest_for_speed_p): Likewise.
6963 (optimize_loop_nest_for_size_p): Likewise.
6964 (predictable_edge_p): Likewise.
6965 (handle_missing_profiles): Minor tweak.
6967 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
6969 * config/rs6000/predicates.md (pcrel_external_address): Update
6972 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
6975 * config/i386/mmx.md (usadv8qi): New expander.
6977 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
6980 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
6981 with reserved names that are in a system header.
6983 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
6985 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
6986 (*vec_extractv2si_0_zext_sse4): New insn pattern.
6987 (*vec_extractv2si_0_zext): Ditto.
6988 (*vec_extractv2si_1): Add (rm,x) alternative.
6989 (*vec_extractv2si_1_zext): New insn pattern.
6990 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
6993 2019-08-01 Richard Biener <rguenther@suse.de>
6995 * domwalk.c (bb_postorder): Remove static variable.
6996 (cmp_bb_postorder): Adjust.
6997 (sort_bbs_postorder): Adjust and use gcc_sort_r.
6998 (dom_walker::walk): Adjust.
7000 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
7002 * sort.cc (sort_r_ctx): New struct.
7003 (reorder23): Make templated on context type.
7005 (cmp1): Ditto. Adjust signature.
7008 [CHECKING_P] (cmp2to3): New static function. Use it...
7009 (gcc_qsort) [CHECKING_P]: ...here.
7010 (gcc_sort_r): New function.
7011 * system.h (sort_r_cmp_fn): New function typedef.
7012 (qsort_chk): Adjust signature.
7013 (gcc_sort_r): Declare.
7014 * vec.c (qsort_chk_error): Adjust.
7015 (qsort_chk): Adjust.
7017 2019-08-01 Richard Biener <rguenther@suse.de>
7019 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
7020 (compute_antic): Localize it here.
7022 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
7024 * common/config/riscv/riscv-common.c: Check -march string ends
7027 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
7029 * ipa-devirt.c (type_warning_cmp): Make static.
7030 (decl_warning_cmp): Ditto.
7032 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
7035 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
7036 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
7037 use of deleted rs6000_dejagnu_cpu_index variable.
7038 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
7039 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7040 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
7041 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
7042 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
7043 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7045 2019-07-31 Richard Biener <rguenther@suse.de>
7047 PR tree-optimization/91280
7048 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7049 Decompose MEM_REF manually for offset handling.
7051 2019-07-31 Richard Biener <rguenther@suse.de>
7053 PR tree-optimization/91293
7054 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
7057 2019-07-31 Matt Thomas <matt@3am-software.com>
7058 Nick Hudson <nick@nthcliff.demon.co.uk>
7059 Matthew Green <mrg@eterna.com.au>
7060 Maya Rashish <coypu@sdf.org>
7062 * config.gcc (hppa*-*-netbsd*): New target.
7063 * config/pa/pa-netbsd.h: New file.
7064 * config/pa/pa32-netbsd.h: New file.
7066 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7068 PR tree-optimization/91201
7069 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
7071 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
7073 * config/gcn/gcn-valu.md
7074 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
7075 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
7076 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
7077 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
7078 struct ilist. Add nops for delayeduse insns.
7079 * config/gcn/gcn.md (delayeduse): New attribute.
7080 (*movbi): Remove s_waitcnt from stores.
7081 (*mov<mode>_insn): Likewise.
7082 (*movti_insn): Likewise. Add delayeduse attribute.
7083 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
7084 (atomic_store<mode>): Remove or adjust s_waitcnt.
7086 2019-07-31 Richard Biener <rguenther@suse.de>
7088 * vr-values.h (vr_values::swap_vr_value): New.
7089 (vr_values::free_value_range): likewise.
7090 * vr-values.c (vr_values::swap_vr_value): Implement.
7091 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
7092 Do not return a range or take a var.
7093 (evrp_range_analyzer::stack): Change back to recording a non-const
7095 * gimple-ssa-evrp-analyze.c
7096 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
7098 (evrp_range_analyzer::pop_to_marker): Adjust.
7099 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
7100 (evrp_range_analyzer::pop_value_range): Likewise. Free the
7101 no longer needed value-range.
7103 2019-07-31 Martin Liska <mliska@suse.cz>
7105 * tree-ssa-dce.c (propagate_necessity): Delete operator can
7106 have size and (or) alignment as 2nd and later arguments.
7107 Mark all of them as necessary.
7109 2019-07-31 Richard Biener <rguenther@suse.de>
7111 PR tree-optimization/91178
7112 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7115 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7117 PR tree-optimization/91201
7118 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
7119 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
7121 (reduc_plus_scal_<mode>): Improve formatting by introducing
7124 2019-07-31 Sudakshina Das <sudi.das@arm.com>
7126 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
7127 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
7128 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
7129 (aarch64_init_tme_builtins): New.
7130 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
7131 (aarch64_expand_builtin_tme): New.
7132 (aarch64_expand_builtin): Handle TME builtins.
7133 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7134 __ARM_FEATURE_TME when enabled.
7135 * config/aarch64/aarch64-option-extensions.def: Add "tme".
7136 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
7138 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
7139 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
7141 (tstart, ttest, tcommit, tcancel): New instructions.
7142 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
7143 (__tcancel, __ttest): New.
7144 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
7145 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
7146 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
7147 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
7148 * config/arm/types.md: Add new tme type attr.
7149 * doc/invoke.texi: Document "tme".
7151 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
7153 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
7154 warn_unused_result attribute.
7155 (cmse_check_address_range): Add warn_unused_result attribute.
7157 2019-07-31 Richard Biener <rguenther@suse.de>
7159 PR tree-optimization/91257
7160 * tree-vrp.c (union_ranges): Unify equality and less tests
7161 by using compare_values. Re-order cheap tests first.
7163 2019-07-31 Jakub Jelinek <jakub@redhat.com>
7166 * gimplify.c (gimplify_omp_for): If for class iterator on
7167 distribute parallel for there is no data sharing clause
7168 on inner_for_stmt, look for private clause on combined
7169 parallel too and if found, move it to inner_for_stmt.
7171 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
7173 * lra-int.h (lra_operand_data): Remove early_clobber field.
7174 (lra_insn_reg): Likewise.
7175 * lra.c (debug_operand_data): Update accordingly.
7176 (setup_operand_alternative): Likewise.
7177 (new_insn_reg): Likewise. Remove early_clobber parameter.
7178 (collect_non_operand_hard_regs): Update call accordingly.
7179 Don't assign to lra_insn_reg::early_clobber.
7180 (add_regs_to_insn_regno_info): Remove early_clobber parameter
7181 and update calls to new_insn_reg.
7182 (lra_update_insn_regno_info): Update calls accordingly.
7183 * lra-constraints.c (update_and_check_small_class_inputs): Take the
7184 alternative number as a parameter and test whether the operand
7185 is earlyclobbered in that particular alternative.
7186 (process_alt_operands): Update call accordingly. Use per-alternative
7187 checks for earyclobber here too.
7188 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
7189 against zero for IRA_UNKNOWN_ALT.
7191 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
7193 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
7195 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
7197 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
7198 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7200 2019-07-30 Martin Liska <mliska@suse.cz>
7203 * cgraph.c (cgraph_edge::make_direct): Use
7204 edge->indirect_unknown_callee as edge->resolve_speculation can
7205 deallocate edge which is this pointer.
7207 2019-07-30 Richard Biener <rguenther@suse.de>
7209 PR tree-optimization/91257
7210 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
7212 2019-07-30 Martin Liska <mliska@suse.cz>
7214 * doc/invoke.texi: Document new behavior.
7215 * lto-wrapper.c (cpuset_popcount): New function
7216 is a copy of libgomp/config/linux/proc.c.
7217 (init_num_threads): Likewise.
7218 (run_gcc): Automatically detect core count for -flto.
7219 (jobserver_active_p): New function.
7221 2019-07-30 Richard Biener <rguenther@suse.de>
7223 PR tree-optimization/91257
7224 * bitmap.h (bitmap_ior_into_and_free): Declare.
7225 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
7226 whether to add the unliked element to the freelist.
7227 (bitmap_list_insert_element_after): Add defaulted param for
7228 an already allocated element.
7229 (bitmap_ior_into_and_free): New function.
7230 * tree-ssa-structalias.c (condense_visit): Reduce the
7231 ponts-to and edge bitmaps of the SCC members in a
7232 logarithmic fashion rather than all to one.
7234 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
7236 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
7237 parameter. When nonnull, make sure that the addition or subtraction
7238 has the same condition.
7239 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
7240 for CFN_COND_MUL too.
7242 2019-07-30 Richard Biener <rguenther@suse.de>
7244 PR tree-optimization/91291
7245 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
7248 2019-07-30 Jakub Jelinek <jakub@redhat.com>
7251 * omp-low.c (global_nonaddressable_vars): New variable.
7252 (use_pointer_for_field): For global decls, if they are non-addressable,
7253 remember it in the global_nonaddressable_vars bitmap, if they are
7254 addressable and in the global_nonaddressable_vars bitmap, ignore their
7255 TREE_ADDRESSABLE bit.
7256 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
7257 vars in global_nonaddressable_vars bitmap.
7258 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
7261 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
7262 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
7263 comparison to unsigned HOST_WIDE_INT before shifting it left.
7265 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
7267 * config/i386/i386.md (movstrict<mode>): Use register_operand
7268 predicate for operand 0. Add expander condition. Assert that
7269 operand 0 is a SUBREG RTX.
7270 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
7271 Update operand constraints and insn condition.
7272 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
7273 (zero_extendqihi2_and): Do not call gen_movstrictqi.
7274 (*setcc_qi_slp): Use register_operand predicate for operand 0.
7275 Update operand 0 constraints.
7276 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
7278 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7280 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
7281 when -m{code,data}-region are used without -mlarge.
7282 * config/msp430/msp430.c (msp430_option_override): Error when a
7283 non-default code or data region is used without -mlarge.
7284 (msp430_section_attr): Emit a warning and do not add upper/lower/either
7285 attributes when they are used without -mlarge.
7287 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7290 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
7292 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7295 * wide-int.h (generic_wide_int::sext_elt): New function.
7296 * inchash.h (hash::add_wide_int): Use it instead of elt.
7298 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7300 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
7302 * config/arm/arm.md (<crc_variant>): Rename to...
7303 (arm_<crc_variant>): ... This.
7304 (<cdp>): Rename to...
7305 (arm_<cdp>): ... This.
7306 (<ldc>): Rename to...
7307 (arm_<ldc>): ... This.
7308 (<stc>): Rename to...
7309 (arm_<stc>): ... This.
7310 (<mcr>): Rename to...
7311 (arm_<mcr>): ... This.
7312 (<mrc>): Rename to...
7313 (arm_<mrc>): ... This.
7314 (<mcrr>): Rename to...
7315 (arm_<mcrr>): ... This.
7316 (<mrrc>): Rename to...
7317 (arm_<mrrc>): ... This.
7319 2019-07-29 Richard Biener <rguenther@suse.de>
7321 PR tree-optimization/91257
7322 * tree-ssa-sccvn.h (struct vn_avail): New.
7323 (struct vn_ssa_aux): Add avail member.
7324 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
7325 member, add m_avail_freelist one.
7326 (rpo_elim::~rpo_elim): Remove.
7327 (rpo_elim::eliminate_avail): Adjust to new avail tracking
7329 (rpo_elim::eliminate_push_avail): Likewise.
7330 (do_unwind): Likewise.
7331 (do_rpo_vn): Likewise.
7333 2019-07-29 Richard Biener <rguenther@suse.de>
7335 PR tree-optimization/91257
7336 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
7337 most cases, instead call compare_values which handles the
7338 symbolic ranges we handle specially.
7339 (compare_values_warnv): Do not call operand_less_p but open-code
7340 the effective fold calls. Avoid converting so much.
7342 2019-07-29 Martin Liska <mliska@suse.cz>
7344 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
7345 remove LHS of operator new call. It's handled latter.
7347 2019-07-29 Richard Biener <rguenther@suse.de>
7349 PR tree-optimization/91267
7350 * vr-values.c (vr_values::update_value_range): Add early return
7351 for effectively VARYING lattice entry.
7353 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7356 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
7357 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
7358 necessary if keep_all_vdefs_p is true.
7359 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
7360 that keep_all_vdefs_p is false.
7361 (mark_all_reaching_defs_necessary): Likewise.
7362 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
7364 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7366 * common.opt (Og): Change the initial value of flag_dse to 0.
7367 * opts.c (default_options_table): Move OPT_ftree_dse from
7368 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
7369 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
7370 entry before the OPT_ftree_sra entry.
7371 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
7372 of flags disabled by Og.
7374 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7376 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
7379 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7381 * doc/sourcebuild.texi (check-function-bodies): Document.
7383 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7385 * simplify-rtx.c (simplify_const_unary_operation): Fold a
7386 VEC_DUPLICATE of a fixed-length vector even if the result
7387 is variable-length. Likewise fold a duplicate of a
7388 variable-length vector if the variable-length vector is
7389 itself a duplicate of a fixed-length sequence.
7390 (test_vector_ops_duplicate): Test more cases.
7392 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
7394 * vector-builder.h (vector_builder): Add a shape template parameter.
7395 (vector_builder::new_unary_operation): New function, generalizing
7396 the old tree_vector_builder function.
7397 (vector_builder::new_binary_operation): Likewise.
7398 (vector_builder::binary_encoded_nelts): Likewise.
7399 * int-vector-builder.h (int_vector_builder): Update template
7400 parameters to vector_builder.
7401 (int_vector_builder::shape_nelts): New function.
7402 * rtx-vector-builder.h (rtx_vector_builder): Update template
7403 parameters to vector_builder.
7404 (rtx_vector_builder::shape_nelts): New function.
7405 (rtx_vector_builder::nelts_of): Likewise.
7406 (rtx_vector_builder::npatterns_of): Likewise.
7407 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
7408 * tree-vector-builder.h (tree_vector_builder): Update template
7409 parameters to vector_builder.
7410 (tree_vector_builder::shape_nelts): New function.
7411 (tree_vector_builder::nelts_of): Likewise.
7412 (tree_vector_builder::npatterns_of): Likewise.
7413 (tree_vector_builder::nelts_per_pattern_of): Likewise.
7414 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
7415 (tree_vector_builder::new_binary_operation): Delete.
7416 (tree_vector_builder::binary_encoded_nelts): Likewise.
7417 * simplify-rtx.c: Include rtx-vector-builder.h.
7418 (distributes_over_addition_p): New function.
7419 (simplify_const_unary_operation)
7420 (simplify_const_binary_operation): Generalize handling of vector
7421 constants to include variable-length vectors.
7422 (test_vector_ops_series): Add more tests.
7424 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
7427 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
7428 than INDENTIFIER_POINTER.
7430 2019-07-28 Martin Liska <mliska@suse.cz>
7433 * cgraph.c (symbol_table::create_edge): Always allocate
7435 (symbol_table::free_edge): Store summary_id to
7436 edge_released_summary_ids if != -1;
7437 * cgraph.h (NEXT_FREE_NODE): Remove.
7438 (SET_NEXT_FREE_NODE): Likewise.
7439 (NEXT_FREE_EDGE): Likewise.
7440 (symbol_table::release_symbol): Store summary_id to
7441 cgraph_released_summary_ids if != -1;
7442 (symbol_table::allocate_cgraph_symbol): Always allocate
7445 2019-07-28 Alan Modra <amodra@gmail.com>
7447 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
7450 2019-07-28 Alan Modra <amodra@gmail.com>
7453 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
7455 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
7456 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
7457 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
7459 2019-07-28 Alan Modra <amodra@gmail.com>
7462 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
7463 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
7464 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
7465 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
7466 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
7467 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
7468 in asm_default spec.
7469 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
7470 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
7472 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
7474 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
7476 2019-07-26 Tamar Christina <tamar.christina@arm.com>
7479 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
7480 * config/aarch64/aarch64-option-extensions.def: Add new comments
7481 and restore easier to read options.
7483 2019-07-26 Tamar Christina <tamar.christina@arm.com>
7485 * convert.c (convert_to_real_1): Move part of conversion code...
7486 * match.pd: ...To here.
7488 2019-07-26 Martin Jambor <mjambor@suse.cz>
7491 * ipa-inline-transform.c (check_speculations_1): New function.
7492 (push_all_edges_in_set_to_vec): Likewise.
7493 (check_speculations): Use check_speculations_1, new parameter
7495 (inline_call): Pass new_edges to check_speculations.
7496 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
7498 (speculation_useful_p): Early return true if edge is inlined, remove
7499 later checks for inline_failed.
7501 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
7503 PR rtl-optimization/91223
7504 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
7505 matching with INOUT operand.
7507 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
7509 * stmt.c (expand_case): Try to narrow the index type if it's larger
7510 than a word. Tidy up.
7512 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
7514 * cif-code.def (NEVER_CALL): New code.
7515 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
7516 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
7518 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
7520 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
7521 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7523 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
7525 * ipa-devirt.c (add_type_duplicate): Fix return value.
7527 2019-07-25 Richard Biener <rguenther@suse.de>
7529 * tree-vrp.c (extract_range_from_multiplicative_op): Add
7530 type parameter and use it instead of guessing expression
7531 type from the first operand.
7532 (extract_range_from_binary_expr): Pass expr_type down.
7534 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7536 * config/arm/arm.md (SATrev): Change to code attribute.
7537 (*satsi_<SAT:code>): Adjust for the above.
7538 (*satsi_<SAT:code>_shift): Likewise.
7540 2019-07-25 Richard Biener <rguenther@suse.de>
7542 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
7543 Make value_range * temporary const.
7544 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
7546 (evrp_range_analyzer::record_ranges_from_): Likewise.
7547 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
7548 deal with having recorded a const one.
7549 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
7550 Return a const value_range *.
7551 (evrp_range_analyzer::pop_value_range): Likewise.
7552 (evrp_range_analyzer::stack): Record const value_range *s.
7553 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
7555 * gimple-ssa-sprintf.c (get_int_range): Likewise.
7556 (format_integer): Likewise.
7557 (sprintf_dom_walker::handle_gimple_call): Likewise.
7558 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
7559 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
7560 (vrp_prop::get_value_range): Adjust.
7561 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
7562 modifying the lattice in-place.
7563 (vrp_prop::visit_stmt): Likewise.
7564 * vr-values.c (vr_values::get_lattice_entry): New private method.
7565 (vr_values::get_value_range): Wrap it and return a const
7567 (vr_values::set_def_to_varying): New.
7568 (vr_values::set_defs_to_varying): Use it.
7569 (vr_values::update_value_range): Likewise.
7570 (vr_values::vrp_stmt_computes_nonzero): Adjust.
7571 (values::op_with_constant_singleton_va): Likewise.
7572 (vr_values::extract_range_for_var_from_co): Likewise.
7573 (vr_values::extract_range_from_ssa_name): Likewise.
7574 (vr_values::extract_range_from_cond_expr): Likewise.
7575 (vr_values::extract_range_basic): Likewise.
7576 (compare_ranges): Take const value_range *, adjust.
7577 (compare_range_with_value): Likewise.
7578 (vrp_valueize): Adjust.
7579 (vrp_valueize_1): Likewise.
7580 (vr_values::get_vr_for_comparison): Return a const value_range *.
7581 (vr_values::compare_name_with_value): Adjust.
7582 (vr_values::compare_names): Likewise.
7583 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
7585 (vr_values::vrp_evaluate_conditional): Likewise.
7586 (find_case_label_ranges): Take a const value_range *.
7587 (vr_values::vrp_visit_switch_stmt): Adjust.
7588 (vr_values::extract_range_from_phi_node): Likewise.
7589 (vr_values::simplify_div_or_mod_using_ran): Likewise.
7590 (vr_values::simplify_abs_using_ranges): Likewise.
7591 (test_for_singularity): Take a const value_range *.
7592 (range_fits_type_p): Likewise.
7593 (vr_values::simplify_cond_using_ranges_1): Adjust.
7594 (vr_values::simplify_cond_using_ranges_2): Likewise.
7595 (vr_values::simplify_switch_using_ranges): Likewise.
7596 (vr_values::simplify_float_conversion_usi): Likewise.
7597 (vr_values::two_valued_val_range_p): Likewise.
7598 * vr-values.h (vr_values::get_value_range): Return a const
7600 (vr_values::set_def_to_varying): New.
7601 (vr_values::get_lattice_entry): New private method.
7602 (vr_values::get_vr_for_comparison): Return a const value_range *.
7604 2019-07-25 Martin Liska <mliska@suse.cz>
7605 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
7608 * common.opt: Add -fallocation-dce
7609 * gimple.c (gimple_call_operator_delete_p): New.
7610 * gimple.h (gimple_call_operator_delete_p): Likewise.
7611 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
7612 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
7613 DECL_IS_OPERATOR_DELETE_P.
7614 (mark_all_reaching_defs_necessary_1): Likewise.
7615 (propagate_necessity): Likewise.
7616 (eliminate_unnecessary_stmts): Handle
7617 gimple_call_operator_delete_p.
7618 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
7619 Add packing of OPERATOR_DELETE.
7620 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
7622 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
7623 (DECL_SET_IS_OPERATOR_DELETE): New.
7624 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
7626 2019-07-25 Martin Liska <mliska@suse.cz>
7628 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
7629 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
7630 * coverage.c (coverage_begin_function): Likewise.
7631 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
7632 * gimple.c (gimple_call_nonnull_result_p): Likewise.
7633 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
7634 (sem_item::hash_referenced_symbol_properties): Likewise.
7635 * lto-streamer-out.c (hash_tree): Likewise.
7636 * predict.c (expr_expected_value_1): Likewise.
7637 * tree-inline.c (expand_call_inline): Likewise.
7638 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7639 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7640 * tree-core.h (enum function_decl_type): New enum.
7641 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
7642 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
7643 (set_function_decl_type): Likewise.
7644 (DECL_IS_OPERATOR_NEW_P): New.
7645 (DECL_SET_IS_OPERATOR_NEW): Likewise.
7646 (DECL_LAMBDA_FUNCTION): Likewise.
7647 (DECL_LAMBDA_FUNCTION_P): Likewise.
7648 (DECL_IS_OPERATOR_NEW): Remove.
7649 (DECL_SET_LAMBDA_FUNCTION): Likewise.
7651 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
7653 * ipa-profile.c (get_most_common_single_value): Use
7654 get_nth_most_common_value.
7655 * profile.c (sort_hist_value): New function.
7656 (compute_value_histograms): Call sort_hist_value to sort the
7657 values after loading from disk.
7658 * value-prof.c (get_most_common_single_value): Rename to ...
7659 get_nth_most_common_value. Add input params n, return
7660 the n_th value and count.
7661 (gimple_divmod_fixed_value_transform): Use
7662 get_nth_most_common_value.
7663 (gimple_ic_transform): Likewise.
7664 (gimple_stringops_transform): Likewise.
7665 * value-prof.h (get_most_common_single_value): Add input params
7668 2019-07-25 Richard Biener <rguenther@suse.de>
7670 PR tree-optimization/91236
7671 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
7672 size of CONSTRUCTOR write. Fix buffer size we pass to
7675 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7677 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
7678 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
7681 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7683 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
7684 explicitly disabled with --disable-initfini-array.
7686 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7688 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
7691 2019-07-24 Martin Sebor <msebor@redhat.com>
7693 PR tree-optimization/91183
7694 PR tree-optimization/86688
7695 * builtins.c (compute_objsize): Handle MEM_REF.
7696 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
7697 (get_min_string_length): Remove.
7698 (count_nonzero_bytes): New function.
7699 (handle_char_store): Rename...
7700 (handle_store): to this. Handle multibyte stores via integer types.
7701 (strlen_check_and_optimize_stmt): Adjust conditional and the called
7704 2019-07-24 Martin Sebor <msebor@redhat.com>
7707 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
7708 (diagnostic_report_diagnostic): Same.
7709 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
7710 (diagnostic_context::lang_mask): New data member.
7711 * ipa-pure-const.c (suggest_attribute): Use
7712 lang_hooks.option_lang_mask ().
7713 * opts-common.c (option_enabled): Handle new argument.
7714 (get_option_state): Pass an additional argument.
7715 * opts.c (print_filtered_help): Print supported languages for
7716 unsupported options. Adjust printing of current state.
7717 * opts.h (option_enabled): Add argument.
7718 * toplev.c (print_switch_values): Use lang_mask.
7719 (general_init): Set global_dc->lang_mask.
7721 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
7724 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
7726 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
7728 * cgraphunit.c (symbol_table::compile): Start and stop
7729 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
7730 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
7732 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
7734 * gimplify.c (flag_instrument_functions_exclude_p): Include
7735 namespace/class information in the printable name.
7736 * opts.c (add_comma_separated_to_vector): Add NUL terminator
7737 to tokens entered into the vector.
7739 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
7741 * tree-nested.c (build_simple_mem_ref_notrap): New function.
7742 (get_static_chain): Call it instead of build_simple_mem_ref.
7743 (get_frame_field): Likewise.
7744 (get_nonlocal_debug_decl): Likewise.
7745 (convert_nonlocal_reference_op): Likewise.
7747 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
7749 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
7751 (arc_compute_frame_size): Millicode is disabled when compiling
7753 (arc_return_address_register): Likewise.
7754 (arc_compute_function_type): Likewise.
7755 (arc_compute_frame_size): Likewise.
7756 (secondary_reload_info): Likewise.
7757 (arc_get_unalign): Likewise.
7758 (arc_can_use_return_insn): Declare.
7759 * config/arc/arc.c (AUX_LP_START): Define
7760 (AUX_LP_END): Likewise.
7761 (arc_frame_info): Update gmask member to 64-bit datum.
7762 (GMASK_LEN): Update.
7763 (arc_compute_function_type): Make it static, move it forward.
7764 (arc_must_save_register): Update, consider the extra regs.
7765 (arc_compute_millicode_save_restore_regs): Update to use the 64
7767 (arc_compute_frame_size): Likewise.
7768 (arc_enter_leave_p): Likewise.
7769 (arc_save_callee_saves): Likewise.
7770 (arc_restore_callee_saves): Likewise.
7771 (arc_save_callee_enter): Likewise.
7772 (arc_restore_callee_leave): Likewise.
7773 (arc_save_callee_milli): Likewise.
7774 (arc_restore_callee_milli): Likewise.
7775 (arc_expand_prologue): Add new interrupt handling.
7776 (arc_return_address_register): Make it static, move it forward.
7777 (arc_expand_epilogue): Add new interrupt handling.
7778 (arc_get_unalign): Delete.
7779 (arc_epilogue_uses): Make sure we do not remove the extra
7780 saved/restored registers when interrupt.
7781 (arc_can_use_return_insn): New function.
7782 (push_reg): Likewise.
7783 (pop_reg): Likewise.
7784 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
7786 (arc_restore_callee_saves): Likewise, but restoring.
7787 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
7788 (R33_REG): Likewise.
7789 (R34_REG): Likewise.
7790 (R35_REG): Likewise.
7791 (R36_REG): Likewise.
7792 (R37_REG): Likewise.
7793 (R38_REG): Likewise.
7794 (R39_REG): Likewise.
7795 (R45_REG): Likewise.
7796 (R46_REG): Likewise.
7797 (R47_REG): Likewise.
7798 (R48_REG): Likewise.
7799 (R49_REG): Likewise.
7800 (R50_REG): Likewise.
7801 (R51_REG): Likewise.
7802 (R52_REG): Likewise.
7803 (R53_REG): Likewise.
7804 (R54_REG): Likewise.
7805 (R55_REG): Likewise.
7806 (R56_REG): Likewise.
7807 (R58_REG): Likewise.
7808 (type): Add rtie attribute.
7809 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
7810 (movsi_insn): Accept moves to lp_count.
7811 (rtie): Update pattern.
7812 (simple_return): Simplify it, don't use this pattern as a return
7814 (arc600_rtie): New pattern.
7815 (p_return_i): Clean up.
7817 * config/arc/builtins.def (rtie): Only available for non ARC6xx
7819 * config/arc/predicates.md (move_src_operand): Consider lp_count
7822 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
7824 * config/s390/predicates.md (addv_const_operand): New predicate.
7825 * config/s390/s390-modes.def (CCO): New condition code mode.
7826 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
7827 (s390_branch_condition_mask): Likewise.
7828 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
7829 ("mulv<mode>4"): New expanders.
7830 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
7831 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
7832 pattern definitions.
7834 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7837 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
7838 (define_predicates): Add entry for uniform_vector_p.
7839 (vec_same_elem_p): New match pattern.
7841 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
7844 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
7845 * config/i386/darwin32-biarch.h .. to here.
7846 * config/i386/darwin64-biarch.h: Adjust comments.
7847 * config/rs6000/darwin32-biarch.h: Likewise.
7848 * config/rs6000/darwin64-biarch.h: Likewise.
7849 * config.gcc: Missed commit from r273746
7850 (*-*-darwin*): Don't include CPU t-darwin here.
7851 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
7852 an error message if i686-darwin configuration is attempted for
7855 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
7858 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
7859 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
7860 an error message if i686-darwin configuration is attempted for
7862 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
7863 (powerpc-*-darwin*): Use biarch files where needed.
7864 (powerpc64-*-darwin*): Likewise.
7865 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
7866 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
7868 * config/i386/darwin32-biarch.h: New.
7869 * config/i386/darwin64.h: Rename.
7870 * config/i386/darwin64-biarch.h: To this.
7871 * config/i386/t-darwin: Rename.
7872 * config/i386/t-darwin32-biarch: To this.
7873 * config/i386/t-darwin64: Rename.
7874 * config/i386/t-darwin64-biarch: To this.
7875 * config/rs6000/darwin32-biarch.h: New.
7876 * config/rs6000/darwin64.h: Rename.
7877 * config/rs6000/darwin64-biarch.h: To this.
7878 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
7880 * config/rs6000/t-darwin8: Rename.
7881 * config/rs6000/t-darwin32-biarch: To this.
7882 * config/rs6000/t-darwin64 Rename.
7883 * config/rs6000/t-darwin64-biarch: To this.
7885 2019-07-23 Martin Sebor <msebor@redhat.com>
7887 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
7889 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
7891 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
7892 (rh): New alias for it.
7894 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
7896 * gdbhooks.py: Pass replace=True to
7897 gdb.printing.register_pretty_printer.
7899 2019-07-23 Richard Biener <rguenther@suse.de>
7902 * lto-streamer-in.c (input_function): Drop inline-entry markers
7903 that ended up with an unknown location block.
7905 2019-07-23 Richard Biener <rguenther@suse.de>
7907 PR tree-optimization/83518
7908 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
7909 init from a constant even when partial defs are already recorded.
7911 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
7913 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
7914 * config/i386/znver1.md: Enable patterns for znver2 and add store
7915 variants which use extra AGU unit.
7917 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
7919 * config/i386/i386-options.c (ix86_option_override_internal): Default
7920 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
7921 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
7924 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
7926 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
7927 (znver2_costs): Update 256 bit SSE costs and multiplication.
7929 2019-07-23 Jan Beulich <jbeulich@suse.com>
7931 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
7932 Require only AVX512F.
7933 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
7934 alternative expanding to vpternlog.
7936 2019-07-23 Martin Liska <mliska@suse.cz>
7938 * dwarf2out.c (gen_producer_string): Canonize -flto=N
7939 to -flto in dwarf producer string.
7941 2019-07-23 Richard Biener <rguenther@suse.de>
7943 * tree-cfg.c (label_for_bb): Remove global var.
7944 (main_block_label): Take label_for_bb as argument.
7945 (cleanup_dead_labels_eh): Likewise, adjust.
7946 (cleanup_dead_labels): Adjust.
7948 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
7950 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
7951 Configurations): Add documentation for __builtin_mtfsf.
7953 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
7955 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
7956 * config/riscv/riscv.c (riscv_constant_alignment): Use
7957 riscv_align_data_type.
7958 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
7959 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
7960 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
7961 * config/riscv/riscv.opt (malign-data): New.
7962 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
7964 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
7966 * cgraph.c (dump_graphviz): New function.
7967 * cgraph.h (dump_graphviz): New function.
7968 * symtab.c (dump_graphviz): New function.
7970 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
7972 * config/aarch64/aarch64-simd.md
7973 (*aarch64_simd_sra<mode>): New.
7974 * config/aarch64/iterators.md
7975 (SHIFTRT): New iterator.
7976 (sra_op): New attribute.
7978 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7980 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
7981 callee-saved regs R4->R10 in an interrupt function that calls another
7984 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
7986 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
7987 (_mm_blendv_epi8): New.
7989 2019-07-22 Richard Biener <rguenther@suse.de>
7991 PR tree-optimization/91221
7992 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
7993 restrict partial-def handling of empty constructors and
7994 memset to refs with known offset.
7996 2019-07-22 Jan Beulich <jbeulich@suse.com>
7998 * config/i386/sse.md (ternlogsuffix): New.
7999 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
8001 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
8003 2019-07-22 Martin Liska <mliska@suse.cz>
8005 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
8007 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
8009 2019-07-22 Martin Liska <mliska@suse.cz>
8011 * lto-section-in.c (lto_get_section_data):
8012 Use new function get_compression.
8013 * lto-streamer-out.c (produce_lto_section): Use
8014 set_compression to encode compression algorithm.
8015 * lto-streamer.h (struct lto_section): Do not
8016 use bitfields in the format.
8018 2019-07-22 Martin Liska <mliska@suse.cz>
8021 * opts-common.c (decode_cmdline_option): Decode
8022 argument of -Werror and check it for a wrong language.
8023 * opts-global.c (complain_wrong_lang): Remove such case.
8025 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
8027 * config/arc/arc.c (prepare_move_operands): Always use an
8028 intermediate register when storing a TLS symbols.
8030 2019-07-22 Stafford Horne <shorne@gmail.com>
8032 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
8035 2019-07-22 Stafford Horne <shorne@gmail.com>
8037 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
8038 and munordered-float validations.
8039 * config/or1k/constraints.md (d): New register constraint.
8040 * config/or1k/predicates.md (fp_comparison_operator): New.
8041 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
8043 (or1k_expand_compare): Normalize unordered comparisons.
8044 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
8045 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
8046 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
8047 * config/or1k/or1k.md (type): Add fpu.
8048 (fpu): New instruction reservation.
8049 (F, f, fr, fi, FI, FOP, fop): New.
8050 (<fop><F:mode>3): New ALU instruction definition.
8051 (float<fi><F:mode>2): New conversion instruction definition.
8052 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
8053 (fpcmpcc): New code iterator.
8054 (*sf_fp_insn): New instruction definition.
8055 (cstore<F:mode>4): New expand definition.
8056 (cbranch<F:mode>4): New expand definition.
8057 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
8058 munordered-float): New options.
8059 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
8062 2019-07-22 Stafford Horne <shorne@gmail.com>
8064 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
8065 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
8066 documenation to be more clear.
8067 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
8069 * config/or1k/or1k.opt (mrori): New option.
8070 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
8071 msfimm, mshftimm): Rewrite documentation to be more clear.
8072 * config/or1k/or1k.md (insn_support): Add ror and rori.
8073 (enabled): Add conditions for ror and rori.
8074 (rotrsi3): Replace condition for shftimm with ror and rori.
8076 2019-07-22 Stafford Horne <shorne@gmail.com>
8079 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
8080 (extend<mode>si2): Update predicate.
8081 * config/or1k/predicates.md (volatile_mem_operand): New.
8082 (reg_or_mem_operand): New.
8084 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
8086 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
8087 * config/rs6000/rs6000-call.c: ... to here.
8089 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8091 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
8094 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8096 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
8098 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8100 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
8102 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
8104 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
8105 (any_memory_operand): New predicate.
8106 (reg_or_mem_operand): Use it.
8108 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8111 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
8113 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
8115 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
8116 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
8118 2019-07-20 Jakub Jelinek <jakub@redhat.com>
8120 * tree.def (OMP_LOOP): New tree code.
8121 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
8122 (enum omp_clause_bind_kind): New enum.
8123 (struct tree_omp_clause): Add subcode.bind_kind.
8124 * tree.h (OMP_LOOP_CHECK): Rename to ...
8125 (OMP_LOOPING_CHECK): ... this.
8126 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8127 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
8128 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
8129 (OMP_CLAUSE_BIND_KIND): Define.
8130 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8131 bind clause entries.
8132 (walk_tree_1): Handle OMP_CLAUSE_BIND.
8133 * tree-pretty-print.c (dump_omp_clause): Likewise.
8134 (dump_generic_node): Handle OMP_LOOP.
8135 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
8136 (in_omp_construct): New variable.
8137 (is_gimple_stmt): Handle OMP_LOOP.
8138 (gimplify_scan_omp_clauses): For lastprivate don't set
8139 check_non_private if code == OMP_LOOP. For reduction clause
8140 on OMP_LOOP combined with parallel or teams propagate as shared
8141 on the combined construct. Handle OMP_CLAUSE_BIND.
8142 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
8143 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
8144 for constructs from a loop construct to gimplify_scan_omp_clauses.
8145 Don't predetermine iterator linear on OMP_SIMD from loop construct.
8146 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
8147 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
8148 to match the implicit ORT_TARGET construct around whole body.
8149 Temporarily clear in_omp_construct when processing body.
8150 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
8151 etc. temporarily set in_omp_construct when processing body.
8152 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
8153 * omp-low.c (struct omp_context): Add loop_p.
8154 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
8155 in that the original var might be private.
8156 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
8157 (check_omp_nesting_restrictions): Adjust nesting restrictions for
8158 addition of loop construct.
8159 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
8161 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
8162 lastprivate non-addressable iterator of a collapse(1) simd.
8164 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
8166 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
8169 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
8171 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
8172 refer to default conditions. Warn for the 'y' spec which is ignored
8175 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
8177 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
8178 cpu_supports_info, builtin_hash_struct, builtin_hasher,
8179 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8180 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8181 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8182 init_cumulative_args, rs6000_promote_function_mode,
8183 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8184 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8185 rs6000_function_arg_boundary, rs6000_parm_offset,
8186 rs6000_parm_start, rs6000_arg_size,
8187 rs6000_darwin64_record_arg_advance_flush,
8188 rs6000_darwin64_record_arg_advance_recurse,
8189 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8190 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8191 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8192 rs6000_mixed_function_arg, rs6000_psave_function_arg,
8193 rs6000_finish_function_arg, rs6000_function_arg,
8194 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8195 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8196 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8197 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8198 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8199 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8200 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8201 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8202 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8203 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8204 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8205 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8206 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8207 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8208 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8209 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8210 get_element_number, altivec_expand_vec_set_builtin,
8211 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8212 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8213 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8214 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8215 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8216 rs6000_expand_builtin, rs6000_vector_type,
8217 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8218 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8219 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
8221 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
8222 cpu_supports_info, builtin_hash_struct, builtin_hasher,
8223 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8224 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8225 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8226 init_cumulative_args, rs6000_promote_function_mode,
8227 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8228 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8229 rs6000_function_arg_boundary, rs6000_parm_offset,
8230 rs6000_parm_start, rs6000_arg_size,
8231 rs6000_darwin64_record_arg_advance_flush,
8232 rs6000_darwin64_record_arg_advance_recurse,
8233 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8234 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8235 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8236 rs6000_mixed_function_arg, rs6000_psave_function_arg,
8237 rs6000_finish_function_arg, rs6000_function_arg,
8238 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8239 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8240 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8241 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8242 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8243 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8244 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8245 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8246 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8247 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8248 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8249 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8250 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8251 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8252 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8253 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8254 get_element_number, altivec_expand_vec_set_builtin,
8255 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
8256 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
8257 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
8258 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
8259 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
8260 rs6000_expand_builtin, rs6000_vector_type,
8261 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
8262 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
8263 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
8264 to here from rs6000.c.
8265 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
8266 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
8267 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
8268 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
8269 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
8270 rs6000_return_in_memory, rs6000_return_in_msb,
8271 rs6000_pass_by_reference, setup_incoming_varargs,
8272 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
8273 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
8274 rs6000_function_arg_padding, rs6000_function_arg,
8275 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
8276 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
8277 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
8278 rs6000_passes_long_double, rs6000_passes_vector,
8279 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
8280 altivec_builtin_mask_for_load) Add declarations.
8281 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
8282 * config/config.gcc: Add new source file rs6000-call.c to garbage
8283 collector and extra_objs.
8285 2019-07-19 Jeff Law <law@redhat.com>
8287 PR tree-optimization/86061
8288 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
8289 strncpy. Drop some trivial dead code.
8290 (maybe_trim_memstar_call): Handle strncpy.
8292 2019-07-19 Richard Biener <rguenther@suse.de>
8294 PR tree-optimization/91211
8295 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
8296 memset encoding size.
8298 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
8301 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
8303 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
8306 * ipa-inline.c (recursive_inlining): Fix limits check.
8308 2019-07-19 Richard Biener <rguenther@suse.de>
8310 PR tree-optimization/91200
8311 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
8312 no PHI nodes in middle-bb.
8314 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
8316 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
8318 * config/aarch64/aarch64-option-extensions.def: Likewise.
8320 2019-07-19 Jakub Jelinek <jakub@redhat.com>
8323 * function.c (insert_temp_slot_address): Store into the hash table
8324 a copy of address to avoid RTL sharing issues.
8326 2019-07-19 Richard Biener <rguenther@suse.de>
8328 PR tree-optimization/91207
8330 2019-07-17 Richard Biener <rguenther@suse.de>
8332 PR tree-optimization/91178
8333 * tree-vect-stmts.c (get_group_load_store_type): For SLP
8334 loads with a gap larger than the vector size always use
8336 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8337 avoid loading vectors that are only contained in the gap
8338 and thus are not needed.
8340 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
8342 * config/i386/i386.md (*addqi_2_slp): Remove.
8343 (*<code>qi_2_slp): Ditto.
8345 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
8347 * config/rs6000/predicates.md (prefixed_mem_operand): Call
8348 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
8349 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
8350 Rename function from rs6000_prefixed_address.
8351 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8353 (TARGET_TOC): Likewise.
8354 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8356 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8358 (TARGET_TOC): Likewise.
8359 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8361 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8363 (TARGET_TOC): Likewise.
8364 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
8365 check to require -mcmodel=medium for pc-relative addressing.
8366 (create_TOC_reference): Add assertion for TARGET_TOC.
8367 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
8369 (rs6000_emit_move): Likewise.
8370 (TOC_alias_set): Rename TOC alias set static variable from 'set'
8372 (get_TOC_alias_set): Likewise.
8373 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
8375 (rs6000_can_eliminate): Likewise.
8376 (rs6000_prefixed_address_mode_p): Rename function from
8377 rs6000_prefixed_address.
8378 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
8379 TARGET_HAS_TOC and not pc-relative.
8380 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
8381 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
8383 (TARGET_TOC): Likewise.
8384 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
8387 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
8390 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
8391 for operand 0. Do not use (match_dup) to match operand 1 with
8392 operand 0. Add check in insn constraint that either input operand
8393 matches operand 0. Use SWI12 mode iterator to also handle
8395 (*and<mode>_1_slp): Ditto.
8396 (*<code>qi_1_slp): Ditto.
8397 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
8398 Do not use (match_dup) to match operand 1 with operand 0. Add
8399 check in insn constraint that operand 1 matches operand 0.
8400 Use SWI12 mode iterator to also handle HImode operands.
8401 (*ashl<mode>3_1_slp): Ditto.
8402 (*<shift_insn><mode>3_1_slp): Ditto.
8403 (*<rotate_insn><mode>3_1_slp): Ditto.
8405 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
8407 * config/arm/arm-builtins.c
8408 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
8409 (arm_expand_unop_builtin): Likewise.
8410 * config/arm/crypto.md
8411 (crypto_sha1h): Convert from define_insn to define_expand.
8412 (crypto_<crypto_pattern>): Likewise.
8413 (crypto_sha1h_lb): New define_insn.
8414 (crypto_<crypto_pattern>_lb): Likewise.
8416 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
8419 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
8420 (vsha1cq_u32): Likewise.
8421 (vsha1pq_u32): Likewise.
8422 (vsha1mq_u32): Likewise.
8423 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
8425 (crypto_sha1c): Correct vec select.
8426 (crypto_sha1m): Likewise.
8427 (crypto_sha1p): Likewise.
8429 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
8431 * config/arm/predicates.md (arm_borrow_operation): New predicate.
8432 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
8433 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
8434 (subdi_zesidi_zesidi): Likewise.
8435 (negdi2_compare, negdi2_insn): Likewise.
8436 (negdi_extensidi): Likewise.
8437 (negdi_zero_extendsidi): Likewise.
8438 (arm_cmpdi_insn): Likewise.
8439 (subsi3_carryin): Use arm_borrow_operation.
8440 (subsi3_carryin_const): Likewise.
8441 (subsi3_carryin_const0): Likewise.
8442 (subsi3_carryin_compare): Likewise.
8443 (subsi3_carryin_compare_const): Likewise.
8444 (subsi3_carryin_compare_const0): Likewise.
8445 (subsi3_carryin_shift): Likewise.
8446 (rsbsi3_carryin_shift): Likewise.
8447 (negsi2_carryin_compare): Likewise.
8449 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
8451 PR tree-optimization/91137
8452 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
8453 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
8454 Init, use and fini the above new field.
8455 (determine_base_object_1): New function.
8456 (determine_base_object): Reimplement using walk_tree.
8458 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
8460 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
8461 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
8462 CLEANUP_FORCE_FAST_DCE is set.
8463 * ifcvt.c (rest_of_handle_if_conversion): Pass
8464 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
8465 if-conversion succeeded.
8467 2019-07-18 Richard Biener <rguenther@suse.de>
8469 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
8470 branches to make code less indented.
8472 2019-07-17 Alexandre Oliva <oliva@adacore.com>
8475 * attribs.c (decls_mismatched_attributes): Simplify the logic
8476 that avoids duplicates and false positives.
8478 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
8480 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
8481 data into data section when generating PIC code.
8482 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
8483 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
8484 generating code for SOM targets earlier than HP-UX 11. Otherwise,
8485 return 2 for SOM and 0 for other targets.
8487 2019-07-17 Jeff Law <law@redhat.com>
8489 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
8490 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
8491 avoid unexpected switch statement fallthru.
8493 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
8495 * config/i386/i386.md (*add<dwi>3_doubleword):
8496 Remove redundant constraints.
8497 (*add<mode>_1): Ditto.
8500 (*addqi_1_slp): Ditto.
8501 (*add<mode>_2): Ditto.
8502 (*addv<mode>4): Ditto.
8503 (*sub<dwi>3_doubleword): Ditto.
8504 (*sub<mode>_1): Ditto.
8505 (*subqi_1_slp): Ditto.
8506 (*sub<mode>_2): Ditto.
8507 (*subv<mode>4): Ditto.
8508 (*sub<mode>_3): Ditto.
8509 (@add<mode>3_carry): Ditto.
8510 (@sub<mode>3_carry): Ditto.
8511 (*add<mode>3_cc_overflow_1): Ditto.
8512 (*add<mode>3_zext_cc_overflow_2): Ditto.
8514 (*and<mode>_1): Ditto.
8516 (*andqi_1_slp): Ditto.
8518 (*andqi_2_maybe_si): Ditto.
8519 (*and<mode>_2): Ditto.
8520 (*andqi_2_slp): Ditto.
8521 (*<code><mode>_1): Ditto.
8522 (*<code>qi_1): Ditto.
8523 (*<code>qi_1_slp): Ditto.
8524 (*<code><mode>_2): Ditto.
8525 (*<code>qi_2_slp): Ditto.
8527 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
8529 * alias.c (record_component_aliases): Do not simplify pointed-to
8532 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
8534 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
8535 partial reg stall on alternative 2.
8537 2019-07-17 Richard Biener <rguenther@suse.de>
8539 PR tree-optimization/91178
8540 * tree-ssa.c (release_defs_bitset): Iterate from higher to
8541 lower SSA names to avoid quadratic behavior in the common case.
8542 * tree-data-ref.c (split_constant_offset): Add limit argument
8543 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
8544 (split_constant_offset_1): Add limit argument and use it to
8545 limit SSA def walking. Optimize the common plus/minus case.
8547 2019-07-17 Richard Biener <rguenther@suse.de>
8549 PR tree-optimization/91178
8550 * tree-vect-stmts.c (get_group_load_store_type): For SLP
8551 loads with a gap larger than the vector size always use
8553 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
8554 avoid loading vectors that are only contained in the gap
8555 and thus are not needed.
8557 2019-07-17 Richard Biener <rguenther@suse.de>
8559 PR tree-optimization/91180
8560 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
8561 computation for memset partial defs.
8563 2019-07-17 Jakub Jelinek <jakub@redhat.com>
8565 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
8566 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
8567 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
8568 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
8569 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
8570 * omp-grid.c (grid_process_grid_body,
8571 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
8572 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
8573 == GF_OMP_FOR_KIND_SIMD.
8574 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
8575 check_omp_nesting_restrictions, scan_omp_1_stmt,
8576 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
8577 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
8578 omp_find_scan): Likewise.
8579 * omp-expand.c (expand_omp_for): Likewise.
8580 * omp-general.c (omp_extract_for_data): Likewise.
8582 PR tree-optimization/91157
8583 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
8584 a vector boolean with scalar mode.
8585 (expand_vector_condition): Handle first operand being a vector boolean
8587 (expand_vector_operations_1): For comparisons, don't bail out early
8588 if the return type is vector boolean with scalar mode, but comparison
8589 operand type is not.
8591 2019-07-17 Richard Biener <rguenther@suse.de>
8593 PR tree-optimization/91181
8594 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
8597 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
8599 * config/i386/i386.md (*testdi_1): Match CCZmode for
8600 constants that might have the SImode sign bit set.
8601 (*testqi_1_maybe_si): Remove "!" constraint modifier.
8602 Use correct constraints for pentium pairing.
8603 (*test<mode>_1): Ditto.
8605 2019-07-16 Jeff Law <law@redhat.com>
8607 PR rtl-optimization/91173
8608 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
8609 SSA_NAME with a constant value, fold its value into the offset
8610 and clear the base before calling gen_addr_rtx.
8612 2019-07-16 Jakub Jelinek <jakub@redhat.com>
8614 PR rtl-optimization/91164
8615 * dse.c (rest_of_handle_dse): If dead edges have been purged,
8616 invalidate dominance info.
8618 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8620 * read-md.h (md_reader::record_potential_iterator_use): Add a
8621 file_location parameter.
8622 * read-rtl.c (attribute_use::loc): New field.
8623 (map_attr_string): Take a file_location parameter. Report cases
8624 in which attributes map to multiple distinct values.
8625 (apply_attribute_uses): Update call accordingly.
8626 (md_reader::handle_overloaded_name): Likewise.
8627 (md_reader::apply_iterator_to_string): Likewise. Skip empty
8629 (record_attribute_use): Take a file_location parameter.
8630 Initialize attribute_use::loc.
8631 (md_reader::record_potential_iterator_use): Take a file_location
8632 parameter. Update call to record_attribute_use.
8633 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
8634 (rtx_reader::read_rtx_code): Likewise.
8635 (rtx_reader::read_rtx_operand): Likewise. Record a location
8636 for implicitly-expanded empty strings.
8638 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8640 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
8641 Use file_location instead of separate fields.
8642 (md_reader::set_md_ptr_loc): Take a file_location instead of a
8643 separate filename and line number.
8644 * read-md.c (ptr_loc): As above.
8645 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
8646 (md_reader::fprint_md_ptr_loc): Likewise.
8647 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
8648 instead of a separate filename and line number.
8649 (md_reader::read_string): Update call accordingly.
8651 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8653 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
8654 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
8655 leaving the choice between SFDF and P implicit.
8656 (*mov<mode>_update2): Likewise.
8657 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
8658 rather than leaving the choice betweem IBM128 and GPR implicit.
8659 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
8660 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
8662 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
8663 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
8664 * config/rs6000/vsx.md
8665 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
8666 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
8667 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
8668 and VSX_EXTRACT_I implicit.
8670 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
8672 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
8673 Explicitly use <MOVEP1:MODE> for the mode attribute.
8675 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
8678 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
8680 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
8683 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
8686 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
8688 * config/i386/i386.md (@test<mode>_ccno_1):
8689 Rename from test<mode>_ccno_1.
8690 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
8691 (*testqi_1_maybe_si): Remove modrm attribute.
8692 (*test<mode>_1): Ditto.
8693 * config/i386/i386-expand.c (ix86_split_idivmod): Use
8694 gen_test_ccno_1 and gen_extend_insn.
8696 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
8698 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
8701 2019-07-15 Richard Biener <rguenther@suse.de>
8704 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
8705 node make sure to replace all uses with something valid.
8707 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
8709 PR tree-optimization/88497
8710 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
8711 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
8712 function undistribute_bitref_for_vector.
8713 (undistribute_bitref_for_vector): New function.
8714 (cleanup_vinfo_map): Likewise.
8715 (sort_by_mach_mode): Likewise.
8717 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
8719 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
8720 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
8721 and testdi_ccno_1 using SWI48 mode attribute.
8722 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
8723 x86_64_szext_general_operand.
8724 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
8725 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
8726 instead of genera_operand mode attribute.
8728 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
8730 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
8731 fopen and fclose to their respective types.
8732 (DotFn.invoke): Ditto.
8734 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
8736 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
8737 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
8738 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
8739 (array_index_predicate): Remove.
8740 (analyze_function_body): Account cost for variable ofsetted array
8742 (estimate_node_size_and_time): Do not compute array index hint.
8743 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
8744 (inline_read_section): Do not read array index hint.
8745 (ipa_fn_summary_write): Do not write array index hint.
8746 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
8747 * ipa-cp.c (hint_time_bonus): Remove.
8748 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
8749 (ipa_fnsummary): Remove array_index.
8750 * ipa-inline.c (want_inline_small_function_p): Do not use
8752 (edge_badness): Likewise.
8753 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
8755 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
8758 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
8759 superfluous "builtin function" phrasing.
8761 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
8763 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
8765 (aliasing_component_refs_walk): Break out from ...
8766 (aliasing_component_refs_p): ... here.
8768 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
8771 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
8772 "builtin function" phrasing.
8774 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8777 * recog.h (temporary_volatile_ok): New class.
8778 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
8779 volatile_ok temporarily to true using temporary_volatile_ok.
8780 * expr.c (emit_block_move_via_cpymem): Likewise.
8781 * optabs.c (maybe_legitimize_operand): Likewise.
8783 2019-07-13 Jakub Jelinek <jakub@redhat.com>
8785 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
8786 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
8787 uses inside of order(concurrent) constructs.
8788 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
8789 OMP_CLAUSE_ORDER is seen.
8790 * omp-low.c (struct omp_context): Add order_concurrent member.
8791 (scan_sharing_clauses): Set ctx->order_concurrent if
8792 OMP_CLAUSE_ORDER is seen.
8793 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
8794 of simd order(concurrent). Diagnose constructs not allowed inside of
8795 for order(concurrent).
8796 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
8797 complaining about static double setjmp (double); or class static
8798 methods or non-global namespace setjmps.
8799 (omp_runtime_api_call): New function.
8800 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
8801 order(concurrent) loops.
8803 2019-07-12 Martin Sebor <msebor@redhat.com>
8805 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
8806 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
8807 * tree-vrp.c (vrp_prop::check_mem_ref): Use
8808 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
8810 2019-07-12 Jan Hubicka <jh@suse.cz>
8812 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
8813 (indirect_refs_may_alias_p): ... here.
8814 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
8815 mem refs in the access paths.
8817 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
8819 PR tree-optimization/89430
8820 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
8821 store elimination for local variable without address escape.
8823 2019-07-12 Jeff Law <law@redhat.com>
8825 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
8826 for the ".far" section.
8828 2019-07-12 Richard Biener <rguenther@suse.de>
8830 PR tree-optimization/91145
8831 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
8834 2019-07-12 Alexandre Oliva <oliva@adacore.com>
8836 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
8837 rather than this_state as the lowering context for the ELSE
8838 seq in a GIMPLE_EH_ELSE.
8840 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
8842 * vector-builder.h (vector_builder::elt): Allow already-supplied
8843 elements to be read back before building is complete.
8845 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
8847 PR rtl-optimization/91136
8848 * df-core.c (ACCESSING REFS): Fix typos in comment.
8849 * resource.c (mark_target_live_reg): Add artificial defs that occur at
8850 the beginning of the block to the initial set of live registers.
8852 2019-07-12 Richard Biener <rguenther@suse.de>
8854 * fold-const.h (get_array_ctor_element_at_index): Adjust.
8855 * fold-const.c (get_array_ctor_element_at_index): Add
8856 ctor_idx output parameter informing the caller where in
8857 the constructor the element was (not) found. Add early exit
8858 for when the ctor is sorted.
8859 * gimple-fold.c (fold_array_ctor_reference): Support constant
8860 folding across multiple array elements.
8862 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
8864 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
8865 doesn't have location, set the current location to the function's end.
8867 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
8869 * config/aarch64/aarch64.md (*compare_condjump<mode>)
8870 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
8871 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
8872 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
8873 * config/aarch64/aarch64-simd.md
8874 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
8875 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
8876 * config/aarch64/aarch64-sve.md
8877 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
8878 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
8880 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
8882 * doc/md.texi: Document that @ patterns can have different
8883 numbers of operands.
8884 * genemit.c (handle_overloaded_gen): Handle this case.
8885 * genopinit.c (handle_overloaded_gen): Likewise.
8886 * gensupport.c (replace_operands_with_dups): Iterate over
8887 the new rtx's format rather than the old one's.
8889 2019-07-12 Jakub Jelinek <jakub@redhat.com>
8891 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
8892 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8893 order clause entries.
8894 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
8895 * tree-pretty-print.c (dump_omp_clause): Likewise.
8896 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8898 * omp-low.c (scan_sharing_clauses): Likewise.
8899 * tree-nested.c (convert_nonlocal_omp_clauses,
8900 convert_local_omp_clauses): Likewise.
8902 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
8904 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
8905 fallthrough target of current basic block isn't the placed
8908 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
8911 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
8912 (_mm512_storeu_epi64): Likewise.
8913 (_mm512_loadu_epi32): Likewise.
8914 (_mm512_storeu_epi32): Likewise.
8915 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
8916 (_mm_storeu_epi64): Likewise.
8917 (_mm256_storeu_epi32): Likewise.
8918 (_mm_storeu_epi32): Likewise.
8920 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
8922 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
8924 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
8926 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
8929 2019-07-11 Jakub Jelinek <jakub@redhat.com>
8932 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
8933 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
8934 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
8935 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
8936 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
8937 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
8939 (ufix_truncv2dfv2si2<mask_name>): Change into ...
8940 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
8941 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
8943 (sse2_cvttpd2dq<mask_name>): Change into ...
8944 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
8945 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
8946 (*sse2_cvtpd2dq<mask_name>): Change into ...
8947 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
8948 Add "C" constraint to const0_operand.
8949 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
8950 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
8954 * config/i386/i386-builtin-types.def
8955 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
8956 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
8957 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
8958 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
8959 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
8960 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
8961 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
8962 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
8963 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
8964 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
8965 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
8966 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
8967 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
8968 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
8969 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
8970 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
8971 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
8972 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
8973 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
8974 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
8975 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
8976 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
8977 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
8978 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
8979 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
8980 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
8981 __builtin_ia32_vpdpbusd_v4si_maskz,
8982 __builtin_ia32_vpdpbusds_v16si_mask,
8983 __builtin_ia32_vpdpbusds_v16si_maskz,
8984 __builtin_ia32_vpdpbusds_v8si_mask,
8985 __builtin_ia32_vpdpbusds_v8si_maskz,
8986 __builtin_ia32_vpdpbusds_v4si_mask,
8987 __builtin_ia32_vpdpbusds_v4si_maskz,
8988 __builtin_ia32_vpdpwssd_v16si_mask,
8989 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
8990 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
8991 __builtin_ia32_vpdpwssd_v4si_maskz,
8992 __builtin_ia32_vpdpwssds_v16si_mask,
8993 __builtin_ia32_vpdpwssds_v16si_maskz,
8994 __builtin_ia32_vpdpwssds_v8si_mask,
8995 __builtin_ia32_vpdpwssds_v8si_maskz,
8996 __builtin_ia32_vpdpwssds_v4si_mask,
8997 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
8998 suffixed types rather than *_INT.
8999 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
9000 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
9001 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
9002 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
9003 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
9004 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
9006 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
9008 * tree-vrp.c (intersect_ranges): If we know the intersection is
9009 empty, there is no need to conservatively add anything else to
9012 2019-07-11 Richard Biener <rguenther@suse.de>
9015 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
9016 when the object is volatile and we have not cleared it even though
9017 there are no nonzero elements.
9019 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
9021 * config/rs6000/predicates.md (cint34_operand): Update
9022 SIGNED_34BIT_OFFSET_P call.
9023 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
9024 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
9025 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
9026 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
9027 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
9029 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
9030 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
9031 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
9032 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
9033 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
9035 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
9037 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
9038 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
9039 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
9040 (DEF_MIN_OSX_VERSION): New.
9042 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
9044 * fold-const.c (fold_relational_const): Fix folding of
9045 vector-to-scalar NE_EXPRs.
9046 (test_vector_folding): Add more tests.
9048 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
9051 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
9052 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
9053 (vec_setv2di_internal): Reexpress as...
9054 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
9055 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
9056 rather than gen_neon_vset_lane<mode>.
9058 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
9061 * lra-constraints.c (process_alt_operands): Don't match user
9062 defined regs only if they are early clobbers.
9064 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
9066 * wide-int.h (wi::lshift): Reject negative values for the fast path.
9068 2019-07-10 Richard Biener <rguenther@suse.de>
9070 PR tree-optimization/91126
9071 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
9072 native encoding offset for BYTES_BIG_ENDIAN.
9073 (vn_reference_lookup_3): Likewise.
9075 2019-07-10 Richard Biener <rguenther@suse.de>
9077 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
9078 LHS whenever possible.
9080 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
9082 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
9083 from ...; work also on duplicated types.
9084 (nonoverlapping_component_refs_since_match): ... here
9085 (ncr_type_uid): Break out from ...
9086 (ncr_compar): ... here; look for TYPE_UID of canonical type if
9088 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
9089 the types and nonoverlapping_component_refs_p_1 to disambiguate.
9091 2019-07-09 Martin Sebor <msebor@redhat.com>
9093 PR tree-optimization/90989
9094 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
9095 optimization to just single character stores.
9097 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
9099 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
9100 Swap operands only once.
9102 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
9104 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
9105 for both call instructions.
9107 2019-07-09 John Darrington <john@darrington.wattle.id.au>
9109 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
9110 rather than GET_MODE_BITSIZE to better handle partial integer modes.
9112 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
9114 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
9115 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
9116 function from rs6000-logue.c back to rs6000.c.
9117 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
9119 2019-07-09 Martin Sebor <msebor@redhat.com>
9122 * auto-profile.c: Change class-key of PODs to struct and others
9124 * basic-block.h: Same.
9125 * bitmap.c (bitmap_alloc): Same.
9127 * builtins.c (expand_builtin_prefetch): Same.
9128 (expand_builtin_interclass_mathfn): Same.
9129 (expand_builtin_strlen): Same.
9130 (expand_builtin_mempcpy_args): Same.
9131 (expand_cmpstr): Same.
9132 (expand_builtin___clear_cache): Same.
9133 (expand_ifn_atomic_bit_test_and): Same.
9134 (expand_builtin_thread_pointer): Same.
9135 (expand_builtin_set_thread_pointer): Same.
9136 * caller-save.c (setup_save_areas): Same.
9137 (replace_reg_with_saved_mem): Same.
9138 (insert_restore): Same.
9139 (insert_save): Same.
9140 (add_used_regs): Same.
9141 * cfg.c (get_bb_copy): Same.
9142 (set_loop_copy): Same.
9145 * cfgexpand.c (alloc_stack_frame_space): Same.
9146 (add_stack_var): Same.
9147 (add_stack_var_conflict): Same.
9148 (add_scope_conflicts_1): Same.
9149 (update_alias_info_with_stack_vars): Same.
9150 (expand_used_vars): Same.
9151 * cfghooks.c (redirect_edge_and_branch_force): Same.
9152 (delete_basic_block): Same.
9154 (make_forwarder_block): Same.
9155 (force_nonfallthru): Same.
9156 (duplicate_block): Same.
9157 (lv_flush_pending_stmts): Same.
9159 * cfgloop.c (flow_loops_cfg_dump): Same.
9160 (flow_loop_nested_p): Same.
9161 (superloop_at_depth): Same.
9162 (get_loop_latch_edges): Same.
9163 (flow_loop_dump): Same.
9164 (flow_loops_dump): Same.
9165 (flow_loops_free): Same.
9166 (flow_loop_nodes_find): Same.
9167 (establish_preds): Same.
9168 (flow_loop_tree_node_add): Same.
9169 (flow_loop_tree_node_remove): Same.
9170 (flow_loops_find): Same.
9171 (find_subloop_latch_edge_by_profile): Same.
9172 (find_subloop_latch_edge_by_ivs): Same.
9173 (mfb_redirect_edges_in_set): Same.
9174 (form_subloop): Same.
9175 (merge_latch_edges): Same.
9176 (disambiguate_multiple_latches): Same.
9177 (disambiguate_loops_with_multiple_latches): Same.
9178 (flow_bb_inside_loop_p): Same.
9180 (get_loop_body_with_size): Same.
9181 (get_loop_body): Same.
9182 (fill_sons_in_loop): Same.
9183 (get_loop_body_in_dom_order): Same.
9184 (get_loop_body_in_custom_order): Same.
9185 (release_recorded_exits): Same.
9186 (get_loop_exit_edges): Same.
9187 (num_loop_branches): Same.
9188 (remove_bb_from_loops): Same.
9189 (find_common_loop): Same.
9190 (delete_loop): Same.
9191 (cancel_loop): Same.
9192 (verify_loop_structure): Same.
9193 (loop_preheader_edge): Same.
9194 (loop_exit_edge_p): Same.
9195 (single_exit): Same.
9196 (loop_exits_to_bb_p): Same.
9197 (loop_exits_from_bb_p): Same.
9198 (get_loop_location): Same.
9199 (record_niter_bound): Same.
9200 (get_estimated_loop_iterations_int): Same.
9201 (max_stmt_executions_int): Same.
9202 (likely_max_stmt_executions_int): Same.
9203 (get_estimated_loop_iterations): Same.
9204 (get_max_loop_iterations): Same.
9205 (get_max_loop_iterations_int): Same.
9206 (get_likely_max_loop_iterations): Same.
9207 * cfgloop.h (simple_loop_desc): Same.
9211 (loop_iterator::next): Same.
9212 (loop_outermost): Same.
9213 * cfgloopanal.c (mark_irreducible_loops): Same.
9214 (num_loop_insns): Same.
9215 (average_num_loop_insns): Same.
9216 (expected_loop_iterations_unbounded): Same.
9217 (expected_loop_iterations): Same.
9218 (mark_loop_exit_edges): Same.
9219 (single_likely_exit): Same.
9220 * cfgloopmanip.c (fix_bb_placement): Same.
9221 (fix_bb_placements): Same.
9222 (remove_path): Same.
9223 (place_new_loop): Same.
9225 (scale_loop_frequencies): Same.
9226 (scale_loop_profile): Same.
9227 (create_empty_if_region_on_edge): Same.
9228 (create_empty_loop_on_edge): Same.
9231 (fix_loop_placements): Same.
9232 (copy_loop_info): Same.
9233 (duplicate_loop): Same.
9234 (duplicate_subloops): Same.
9235 (loop_redirect_edge): Same.
9236 (can_duplicate_loop_p): Same.
9237 (duplicate_loop_to_header_edge): Same.
9238 (mfb_keep_just): Same.
9239 (has_preds_from_loop): Same.
9240 (create_preheader): Same.
9241 (create_preheaders): Same.
9242 (lv_adjust_loop_entry_edge): Same.
9243 (loop_version): Same.
9244 * cfgloopmanip.h: Same.
9246 * cgraphbuild.c: Same.
9247 * combine.c (make_extraction): Same.
9248 * config/i386/i386-features.c: Same.
9249 * config/i386/i386-features.h: Same.
9250 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
9251 (ix86_emit_outlined_ms2sysv_restore): Same.
9252 (ix86_noce_conversion_profitable_p): Same.
9253 (ix86_init_cost): Same.
9254 (ix86_simd_clone_usable): Same.
9255 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
9257 * coretypes.h: Same.
9258 * data-streamer-in.c (string_for_index): Change class-key of PODs
9259 to struct and others to class.
9260 (streamer_read_indexed_string): Same.
9261 (streamer_read_string): Same.
9262 (bp_unpack_indexed_string): Same.
9263 (bp_unpack_string): Same.
9264 (streamer_read_uhwi): Same.
9265 (streamer_read_hwi): Same.
9266 (streamer_read_gcov_count): Same.
9267 (streamer_read_wide_int): Same.
9268 * data-streamer.h (streamer_write_bitpack): Same.
9269 (bp_unpack_value): Same.
9270 (streamer_write_char_stream): Same.
9271 (streamer_write_hwi_in_range): Same.
9272 (streamer_write_record_start): Same.
9273 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
9274 (add_cross_iteration_register_deps): Same.
9275 (build_intra_loop_deps): Same.
9276 * df-core.c (df_analyze): Same.
9277 (loop_post_order_compute): Same.
9278 (loop_inverted_post_order_compute): Same.
9279 * df-problems.c (df_rd_alloc): Same.
9280 (df_rd_simulate_one_insn): Same.
9281 (df_rd_local_compute): Same.
9282 (df_rd_init_solution): Same.
9283 (df_rd_confluence_n): Same.
9284 (df_rd_transfer_function): Same.
9286 (df_rd_dump_defs_set): Same.
9287 (df_rd_top_dump): Same.
9288 (df_lr_alloc): Same.
9289 (df_lr_reset): Same.
9290 (df_lr_local_compute): Same.
9292 (df_lr_confluence_n): Same.
9294 (df_lr_top_dump): Same.
9295 (df_lr_verify_transfer_functions): Same.
9296 (df_live_alloc): Same.
9297 (df_live_reset): Same.
9298 (df_live_init): Same.
9299 (df_live_confluence_n): Same.
9300 (df_live_finalize): Same.
9301 (df_live_free): Same.
9302 (df_live_top_dump): Same.
9303 (df_live_verify_transfer_functions): Same.
9304 (df_mir_alloc): Same.
9305 (df_mir_reset): Same.
9306 (df_mir_init): Same.
9307 (df_mir_confluence_n): Same.
9308 (df_mir_free): Same.
9309 (df_mir_top_dump): Same.
9310 (df_word_lr_alloc): Same.
9311 (df_word_lr_reset): Same.
9312 (df_word_lr_init): Same.
9313 (df_word_lr_confluence_n): Same.
9314 (df_word_lr_free): Same.
9315 (df_word_lr_top_dump): Same.
9316 (df_md_alloc): Same.
9317 (df_md_simulate_one_insn): Same.
9318 (df_md_reset): Same.
9321 (df_md_top_dump): Same.
9322 * df-scan.c (df_insn_delete): Same.
9323 (df_insn_rescan): Same.
9324 (df_notes_rescan): Same.
9325 (df_sort_and_compress_mws): Same.
9326 (df_install_mws): Same.
9327 (df_refs_add_to_chains): Same.
9328 (df_ref_create_structure): Same.
9329 (df_ref_record): Same.
9330 (df_def_record_1): Same.
9331 (df_find_hard_reg_defs): Same.
9332 (df_uses_record): Same.
9333 (df_get_conditional_uses): Same.
9334 (df_get_call_refs): Same.
9335 (df_recompute_luids): Same.
9336 (df_get_entry_block_def_set): Same.
9337 (df_entry_block_defs_collect): Same.
9338 (df_get_exit_block_use_set): Same.
9339 (df_exit_block_uses_collect): Same.
9340 (df_mws_verify): Same.
9341 (df_bb_verify): Same.
9342 * df.h (df_scan_get_bb_info): Same.
9343 * doc/tm.texi: Same.
9344 * dse.c (record_store): Same.
9346 * emit-rtl.c (const_fixed_hasher::equal): Same.
9347 (set_mem_attributes_minus_bitpos): Same.
9348 (change_address): Same.
9349 (adjust_address_1): Same.
9350 (offset_address): Same.
9352 * except.c (dw2_build_landing_pads): Same.
9353 (sjlj_emit_dispatch_table): Same.
9354 * explow.c (allocate_dynamic_stack_space): Same.
9355 (emit_stack_probe): Same.
9356 (probe_stack_range): Same.
9357 * expmed.c (store_bit_field_using_insv): Same.
9358 (store_bit_field_1): Same.
9359 (store_integral_bit_field): Same.
9360 (extract_bit_field_using_extv): Same.
9361 (extract_bit_field_1): Same.
9362 (emit_cstore): Same.
9363 * expr.c (emit_block_move_via_cpymem): Same.
9364 (expand_cmpstrn_or_cmpmem): Same.
9365 (set_storage_via_setmem): Same.
9366 (emit_single_push_insn_1): Same.
9367 (expand_assignment): Same.
9368 (store_constructor): Same.
9369 (expand_expr_real_2): Same.
9370 (expand_expr_real_1): Same.
9373 * function.c (try_fit_stack_local): Same.
9374 (assign_stack_local_1): Same.
9375 (assign_stack_local): Same.
9376 (cut_slot_from_list): Same.
9377 (insert_slot_to_list): Same.
9378 (max_slot_level): Same.
9379 (move_slot_to_level): Same.
9380 (temp_address_hasher::equal): Same.
9381 (remove_unused_temp_slot_addresses): Same.
9382 (assign_temp): Same.
9383 (combine_temp_slots): Same.
9384 (update_temp_slot_address): Same.
9385 (preserve_temp_slots): Same.
9388 * gcc-rich-location.h: Same.
9390 * genattrtab.c (check_attr_test): Same.
9391 (check_attr_value): Same.
9392 (convert_set_attr_alternative): Same.
9393 (convert_set_attr): Same.
9395 (copy_boolean): Same.
9396 (get_attr_value): Same.
9397 (expand_delays): Same.
9398 (make_length_attrs): Same.
9400 (make_alternative_compare): Same.
9401 (simplify_test_exp): Same.
9402 (tests_attr_p): Same.
9403 (get_attr_order): Same.
9404 (clear_struct_flag): Same.
9406 (compares_alternatives_p): Same.
9409 (find_attrs_to_cache): Same.
9410 (write_test_expr): Same.
9411 (walk_attr_value): Same.
9412 (write_attr_get): Same.
9413 (eliminate_known_true): Same.
9414 (write_insn_cases): Same.
9415 (write_attr_case): Same.
9416 (write_attr_valueq): Same.
9417 (write_attr_value): Same.
9418 (write_dummy_eligible_delay): Same.
9419 (next_comma_elt): Same.
9421 (make_internal_attr): Same.
9422 (copy_rtx_unchanging): Same.
9423 (gen_insn_reserv): Same.
9424 (check_tune_attr): Same.
9425 (make_automaton_attrs): Same.
9427 * genextract.c (gen_insn): Same.
9428 (VEC_char_to_string): Same.
9429 * genmatch.c (print_operand): Same.
9431 (parser::parse_operation): Same.
9432 (parser::parse_capture): Same.
9433 (parser::parse_c_expr): Same.
9434 (parser::parse_simplify): Same.
9436 * genoutput.c (output_operand_data): Same.
9437 (output_get_insn_name): Same.
9438 (compare_operands): Same.
9439 (place_operands): Same.
9440 (process_template): Same.
9441 (validate_insn_alternatives): Same.
9442 (validate_insn_operands): Same.
9444 (note_constraint): Same.
9445 * genpreds.c (write_one_predicate_function): Same.
9446 (add_constraint): Same.
9447 (process_define_register_constraint): Same.
9448 (write_lookup_constraint_1): Same.
9449 (write_lookup_constraint_array): Same.
9450 (write_insn_constraint_len): Same.
9451 (write_reg_class_for_constraint_1): Same.
9452 (write_constraint_satisfied_p_array): Same.
9453 * genrecog.c (optimize_subroutine_group): Same.
9454 * gensupport.c (process_define_predicate): Same.
9455 (queue_pattern): Same.
9456 (remove_from_queue): Same.
9457 (process_rtx): Same.
9458 (is_predicable): Same.
9459 (change_subst_attribute): Same.
9460 (subst_pattern_match): Same.
9461 (alter_constraints): Same.
9462 (alter_attrs_for_insn): Same.
9463 (shift_output_template): Same.
9464 (alter_output_for_subst_insn): Same.
9465 (process_one_cond_exec): Same.
9467 (process_define_cond_exec): Same.
9468 (mnemonic_htab_callback): Same.
9469 (gen_mnemonic_attr): Same.
9470 (read_md_rtx): Same.
9472 * gimple-loop-interchange.cc (dump_reduction): Same.
9473 (dump_induction): Same.
9474 (loop_cand::~loop_cand): Same.
9475 (free_data_refs_with_aux): Same.
9476 (tree_loop_interchange::interchange_loops): Same.
9477 (tree_loop_interchange::map_inductions_to_loop): Same.
9478 (tree_loop_interchange::move_code_to_inner_loop): Same.
9479 (compute_access_stride): Same.
9480 (compute_access_strides): Same.
9481 (proper_loop_form_for_interchange): Same.
9482 (tree_loop_interchange_compute_ddrs): Same.
9483 (prune_datarefs_not_in_loop): Same.
9484 (prepare_data_references): Same.
9485 (pass_linterchange::execute): Same.
9486 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
9487 (unroll_jam_possible_p): Same.
9489 (adjust_unroll_factor): Same.
9490 (tree_loop_unroll_and_jam): Same.
9491 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
9492 (loop_versioning::expensive_stmt_p): Same.
9493 (loop_versioning::version_for_unity): Same.
9494 (loop_versioning::dump_inner_likelihood): Same.
9495 (loop_versioning::find_per_loop_multiplication): Same.
9496 (loop_versioning::analyze_term_using_scevs): Same.
9497 (loop_versioning::record_address_fragment): Same.
9498 (loop_versioning::analyze_expr): Same.
9499 (loop_versioning::analyze_blocks): Same.
9500 (loop_versioning::prune_conditions): Same.
9501 (loop_versioning::merge_loop_info): Same.
9502 (loop_versioning::add_loop_to_queue): Same.
9503 (loop_versioning::decide_whether_loop_is_versionable): Same.
9504 (loop_versioning::make_versioning_decisions): Same.
9505 (loop_versioning::implement_versioning_decisions): Same.
9506 * gimple-ssa-evrp-analyze.c
9507 (evrp_range_analyzer::record_ranges_from_phis): Same.
9508 * gimple-ssa-store-merging.c (split_store::split_store): Same.
9509 (count_multiple_uses): Same.
9510 (split_group): Same.
9511 (imm_store_chain_info::output_merged_store): Same.
9512 (pass_store_merging::process_store): Same.
9513 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
9514 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
9516 (alloca_call_type): Same.
9517 (pass_walloca::execute): Same.
9518 * gimple-streamer-in.c (input_phi): Same.
9519 (input_gimple_stmt): Same.
9520 * gimple-streamer.h: Same.
9521 * godump.c (go_force_record_alignment): Same.
9522 (go_format_type): Same.
9523 (go_output_type): Same.
9524 (go_output_fndecl): Same.
9525 (go_output_typedef): Same.
9526 (keyword_hash_init): Same.
9527 (find_dummy_types): Same.
9528 * graph.c (draw_cfg_nodes_no_loops): Same.
9529 (draw_cfg_nodes_for_loop): Same.
9530 * hard-reg-set.h (hard_reg_set_iter_next): Same.
9532 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
9533 * hsa-dump.c (dump_hsa_cfun): Same.
9534 * hsa-gen.c (gen_function_def_parameters): Same.
9535 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
9536 * input.c (dump_line_table_statistics): Same.
9539 * internal-fn.c (get_multi_vector_move): Same.
9540 (expand_load_lanes_optab_fn): Same.
9541 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
9542 (expand_GOMP_SIMT_EXIT): Same.
9543 (expand_GOMP_SIMT_LAST_LANE): Same.
9544 (expand_GOMP_SIMT_ORDERED_PRED): Same.
9545 (expand_GOMP_SIMT_VOTE_ANY): Same.
9546 (expand_GOMP_SIMT_XCHG_BFLY): Same.
9547 (expand_GOMP_SIMT_XCHG_IDX): Same.
9548 (expand_addsub_overflow): Same.
9549 (expand_neg_overflow): Same.
9550 (expand_mul_overflow): Same.
9551 (expand_call_mem_ref): Same.
9552 (expand_mask_load_optab_fn): Same.
9553 (expand_scatter_store_optab_fn): Same.
9554 (expand_gather_load_optab_fn): Same.
9555 * ipa-cp.c (ipa_get_parm_lattices): Same.
9556 (print_all_lattices): Same.
9557 (ignore_edge_p): Same.
9558 (build_toporder_info): Same.
9559 (free_toporder_info): Same.
9560 (push_node_to_stack): Same.
9561 (ipcp_lattice<valtype>::set_contains_variable): Same.
9562 (set_agg_lats_to_bottom): Same.
9563 (ipcp_bits_lattice::meet_with): Same.
9564 (set_single_call_flag): Same.
9565 (initialize_node_lattices): Same.
9566 (ipa_get_jf_ancestor_result): Same.
9567 (ipcp_verify_propagated_values): Same.
9568 (propagate_scalar_across_jump_function): Same.
9569 (propagate_context_across_jump_function): Same.
9570 (propagate_bits_across_jump_function): Same.
9571 (ipa_vr_operation_and_type_effects): Same.
9572 (propagate_vr_across_jump_function): Same.
9573 (set_check_aggs_by_ref): Same.
9574 (set_chain_of_aglats_contains_variable): Same.
9575 (merge_aggregate_lattices): Same.
9576 (agg_pass_through_permissible_p): Same.
9577 (propagate_aggs_across_jump_function): Same.
9578 (call_passes_through_thunk_p): Same.
9579 (propagate_constants_across_call): Same.
9580 (devirtualization_time_bonus): Same.
9581 (good_cloning_opportunity_p): Same.
9582 (context_independent_aggregate_values): Same.
9583 (gather_context_independent_values): Same.
9584 (perform_estimation_of_a_value): Same.
9585 (estimate_local_effects): Same.
9586 (value_topo_info<valtype>::add_val): Same.
9587 (add_all_node_vals_to_toposort): Same.
9588 (value_topo_info<valtype>::propagate_effects): Same.
9589 (ipcp_propagate_stage): Same.
9590 (ipcp_discover_new_direct_edges): Same.
9591 (same_node_or_its_all_contexts_clone_p): Same.
9592 (cgraph_edge_brings_value_p): Same.
9593 (gather_edges_for_value): Same.
9594 (create_specialized_node): Same.
9595 (find_more_scalar_values_for_callers_subset): Same.
9596 (find_more_contexts_for_caller_subset): Same.
9597 (copy_plats_to_inter): Same.
9598 (intersect_aggregates_with_edge): Same.
9599 (find_aggregate_values_for_callers_subset): Same.
9600 (cgraph_edge_brings_all_agg_vals_for_node): Same.
9601 (decide_about_value): Same.
9602 (decide_whether_version_node): Same.
9603 (spread_undeadness): Same.
9604 (identify_dead_nodes): Same.
9605 (ipcp_store_vr_results): Same.
9606 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
9607 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
9608 (redirect_to_unreachable): Same.
9609 (edge_set_predicate): Same.
9610 (evaluate_conditions_for_known_args): Same.
9611 (evaluate_properties_for_edge): Same.
9612 (ipa_fn_summary_t::duplicate): Same.
9613 (ipa_call_summary_t::duplicate): Same.
9614 (dump_ipa_call_summary): Same.
9615 (ipa_dump_fn_summary): Same.
9616 (eliminated_by_inlining_prob): Same.
9617 (set_cond_stmt_execution_predicate): Same.
9618 (set_switch_stmt_execution_predicate): Same.
9619 (compute_bb_predicates): Same.
9620 (will_be_nonconstant_expr_predicate): Same.
9621 (phi_result_unknown_predicate): Same.
9622 (analyze_function_body): Same.
9623 (compute_fn_summary): Same.
9624 (estimate_edge_devirt_benefit): Same.
9625 (estimate_edge_size_and_time): Same.
9626 (estimate_calls_size_and_time): Same.
9627 (estimate_node_size_and_time): Same.
9628 (remap_edge_change_prob): Same.
9629 (remap_edge_summaries): Same.
9630 (ipa_merge_fn_summary_after_inlining): Same.
9631 (ipa_fn_summary_generate): Same.
9632 (inline_read_section): Same.
9633 (ipa_fn_summary_read): Same.
9634 (ipa_fn_summary_write): Same.
9635 * ipa-fnsummary.h: Same.
9636 * ipa-hsa.c (ipa_hsa_read_section): Same.
9637 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
9638 * ipa-icf.c (sem_function::param_used_p): Same.
9639 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
9640 * ipa-inline.c (edge_badness): Same.
9641 (inline_small_functions): Same.
9642 * ipa-polymorphic-call.c
9643 (ipa_polymorphic_call_context::stream_out): Same.
9644 * ipa-predicate.c (predicate::remap_after_duplication): Same.
9645 (predicate::remap_after_inlining): Same.
9646 (predicate::stream_out): Same.
9647 * ipa-predicate.h: Same.
9648 * ipa-profile.c (ipa_profile_read_summary): Same.
9649 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
9650 (count_formal_params): Same.
9651 (ipa_dump_param): Same.
9652 (ipa_alloc_node_params): Same.
9653 (ipa_print_node_jump_functions_for_edge): Same.
9654 (ipa_print_node_jump_functions): Same.
9655 (ipa_load_from_parm_agg): Same.
9656 (get_ancestor_addr_info): Same.
9657 (ipa_compute_jump_functions_for_edge): Same.
9658 (ipa_analyze_virtual_call_uses): Same.
9659 (ipa_analyze_stmt_uses): Same.
9660 (ipa_analyze_params_uses_in_bb): Same.
9661 (update_jump_functions_after_inlining): Same.
9662 (try_decrement_rdesc_refcount): Same.
9663 (ipa_impossible_devirt_target): Same.
9664 (update_indirect_edges_after_inlining): Same.
9665 (combine_controlled_uses_counters): Same.
9666 (ipa_edge_args_sum_t::duplicate): Same.
9667 (ipa_write_jump_function): Same.
9668 (ipa_write_indirect_edge_info): Same.
9669 (ipa_write_node_info): Same.
9670 (ipa_read_edge_info): Same.
9671 (ipa_prop_read_section): Same.
9672 (read_replacements_section): Same.
9673 * ipa-prop.h (ipa_get_param_count): Same.
9674 (ipa_get_param): Same.
9675 (ipa_get_type): Same.
9676 (ipa_get_param_move_cost): Same.
9677 (ipa_set_param_used): Same.
9678 (ipa_get_controlled_uses): Same.
9679 (ipa_set_controlled_uses): Same.
9680 (ipa_get_cs_argument_count): Same.
9681 * ipa-pure-const.c (analyze_function): Same.
9682 (pure_const_read_summary): Same.
9684 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
9685 * ipa-split.c (test_nonssa_use): Same.
9686 (dump_split_point): Same.
9687 (dominated_by_forbidden): Same.
9688 (split_part_set_ssa_name_p): Same.
9689 (find_split_points): Same.
9690 * ira-build.c (finish_loop_tree_nodes): Same.
9691 (low_pressure_loop_node_p): Same.
9692 * ira-color.c (ira_reuse_stack_slot): Same.
9694 * ira.c (setup_reg_equiv): Same.
9695 (print_insn_chain): Same.
9697 * loop-doloop.c (doloop_condition_get): Same.
9699 (record_reg_sets): Same.
9700 (doloop_optimize): Same.
9701 * loop-init.c (loop_optimizer_init): Same.
9702 (fix_loop_structure): Same.
9703 * loop-invariant.c (merge_identical_invariants): Same.
9704 (compute_always_reached): Same.
9706 (may_assign_reg_p): Same.
9707 (find_invariants_bb): Same.
9708 (find_invariants_body): Same.
9709 (replace_uses): Same.
9710 (can_move_invariant_reg): Same.
9711 (free_inv_motion_data): Same.
9712 (move_single_loop_invariants): Same.
9713 (change_pressure): Same.
9714 (mark_ref_regs): Same.
9715 (calculate_loop_reg_pressure): Same.
9716 * loop-iv.c (biv_entry_hasher::equal): Same.
9717 (iv_extend_to_rtx_code): Same.
9718 (check_iv_ref_table_size): Same.
9719 (clear_iv_info): Same.
9720 (latch_dominating_def): Same.
9721 (iv_get_reaching_def): Same.
9722 (iv_constant): Same.
9728 (get_biv_step): Same.
9730 (analyzed_for_bivness_p): Same.
9732 (iv_analyze_biv): Same.
9733 (iv_analyze_expr): Same.
9734 (iv_analyze_def): Same.
9735 (iv_analyze_op): Same.
9737 (iv_analyze_result): Same.
9739 (eliminate_implied_conditions): Same.
9740 (simplify_using_initial_values): Same.
9741 (shorten_into_mode): Same.
9742 (canonicalize_iv_subregs): Same.
9743 (determine_max_iter): Same.
9744 (check_simple_exit): Same.
9745 (find_simple_exit): Same.
9746 (get_simple_loop_desc): Same.
9747 * loop-unroll.c (report_unroll): Same.
9748 (decide_unrolling): Same.
9749 (unroll_loops): Same.
9750 (loop_exit_at_end_p): Same.
9751 (decide_unroll_constant_iterations): Same.
9752 (unroll_loop_constant_iterations): Same.
9753 (compare_and_jump_seq): Same.
9754 (unroll_loop_runtime_iterations): Same.
9755 (decide_unroll_stupid): Same.
9756 (unroll_loop_stupid): Same.
9757 (referenced_in_one_insn_in_loop_p): Same.
9758 (reset_debug_uses_in_loop): Same.
9759 (analyze_iv_to_split_insn): Same.
9760 * lra-eliminations.c (lra_debug_elim_table): Same.
9761 (setup_can_eliminate): Same.
9763 (lra_get_elimination_hard_regno): Same.
9764 (lra_eliminate_regs_1): Same.
9765 (eliminate_regs_in_insn): Same.
9766 (update_reg_eliminate): Same.
9767 (init_elimination): Same.
9768 (lra_eliminate): Same.
9770 * lra-lives.c (initiate_live_solver): Same.
9771 * lra-remat.c (create_remat_bb_data): Same.
9772 * lra-spills.c (lra_spill): Same.
9773 * lra.c (lra_set_insn_recog_data): Same.
9774 (lra_set_used_insn_alternative_by_uid): Same.
9775 (init_reg_info): Same.
9776 (expand_reg_info): Same.
9777 * lto-cgraph.c (output_symtab): Same.
9778 (read_identifier): Same.
9779 (get_alias_symbol): Same.
9781 (input_varpool_node): Same.
9784 (input_cgraph_1): Same.
9786 (input_symtab): Same.
9787 (input_offload_tables): Same.
9788 (output_cgraph_opt_summary): Same.
9789 (input_edge_opt_summary): Same.
9790 (input_cgraph_opt_section): Same.
9791 * lto-section-in.c (lto_free_raw_section_data): Same.
9792 (lto_create_simple_input_block): Same.
9793 (lto_free_function_in_decl_state_for_node): Same.
9794 * lto-streamer-in.c (lto_tag_check_set): Same.
9795 (lto_location_cache::revert_location_cache): Same.
9796 (lto_location_cache::input_location): Same.
9797 (lto_input_location): Same.
9798 (stream_input_location_now): Same.
9799 (lto_input_tree_ref): Same.
9800 (lto_input_eh_catch_list): Same.
9801 (input_eh_region): Same.
9802 (lto_init_eh): Same.
9803 (make_new_block): Same.
9805 (fixup_call_stmt_edges): Same.
9806 (input_struct_function_base): Same.
9807 (input_function): Same.
9808 (lto_read_body_or_constructor): Same.
9809 (lto_read_tree_1): Same.
9810 (lto_read_tree): Same.
9811 (lto_input_scc): Same.
9812 (lto_input_tree_1): Same.
9813 (lto_input_toplevel_asms): Same.
9814 (lto_input_mode_table): Same.
9815 (lto_reader_init): Same.
9816 (lto_data_in_create): Same.
9817 * lto-streamer-out.c (output_cfg): Same.
9818 * lto-streamer.h: Same.
9819 * modulo-sched.c (duplicate_insns_of_cycles): Same.
9820 (generate_prolog_epilog): Same.
9821 (mark_loop_unsched): Same.
9822 (dump_insn_location): Same.
9823 (loop_canon_p): Same.
9824 (sms_schedule): Same.
9825 * omp-expand.c (expand_omp_for_ordered_loops): Same.
9826 (expand_omp_for_generic): Same.
9827 (expand_omp_for_static_nochunk): Same.
9828 (expand_omp_for_static_chunk): Same.
9829 (expand_omp_simd): Same.
9830 (expand_omp_taskloop_for_inner): Same.
9831 (expand_oacc_for): Same.
9832 (expand_omp_atomic_pipeline): Same.
9833 (mark_loops_in_oacc_kernels_region): Same.
9834 * omp-offload.c (oacc_xform_loop): Same.
9835 * omp-simd-clone.c (simd_clone_adjust): Same.
9836 * optabs-query.c (get_traditional_extraction_insn): Same.
9837 * optabs.c (expand_vector_broadcast): Same.
9838 (expand_binop_directly): Same.
9839 (expand_twoval_unop): Same.
9840 (expand_twoval_binop): Same.
9841 (expand_unop_direct): Same.
9842 (emit_indirect_jump): Same.
9843 (emit_conditional_move): Same.
9844 (emit_conditional_neg_or_complement): Same.
9845 (emit_conditional_add): Same.
9846 (vector_compare_rtx): Same.
9847 (expand_vec_perm_1): Same.
9848 (expand_vec_perm_const): Same.
9849 (expand_vec_cond_expr): Same.
9850 (expand_vec_series_expr): Same.
9851 (maybe_emit_atomic_exchange): Same.
9852 (maybe_emit_sync_lock_test_and_set): Same.
9853 (expand_atomic_compare_and_swap): Same.
9854 (expand_atomic_load): Same.
9855 (expand_atomic_store): Same.
9856 (maybe_emit_op): Same.
9857 (valid_multiword_target_p): Same.
9858 (create_integer_operand): Same.
9859 (maybe_legitimize_operand_same_code): Same.
9860 (maybe_legitimize_operand): Same.
9861 (create_convert_operand_from_type): Same.
9862 (can_reuse_operands_p): Same.
9863 (maybe_legitimize_operands): Same.
9864 (maybe_gen_insn): Same.
9865 (maybe_expand_insn): Same.
9866 (maybe_expand_jump_insn): Same.
9867 (expand_insn): Same.
9868 * optabs.h (create_expand_operand): Same.
9869 (create_fixed_operand): Same.
9870 (create_output_operand): Same.
9871 (create_input_operand): Same.
9872 (create_convert_operand_to): Same.
9873 (create_convert_operand_from): Same.
9876 * predict.c (optimize_insn_for_speed_p): Same.
9877 (optimize_loop_for_size_p): Same.
9878 (optimize_loop_for_speed_p): Same.
9879 (optimize_loop_nest_for_speed_p): Same.
9880 (get_base_value): Same.
9881 (predicted_by_loop_heuristics_p): Same.
9882 (predict_extra_loop_exits): Same.
9883 (predict_loops): Same.
9884 (predict_paths_for_bb): Same.
9885 (predict_paths_leading_to): Same.
9886 (propagate_freq): Same.
9887 (pass_profile::execute): Same.
9889 * profile-count.c (profile_count::differs_from_p): Same.
9890 (profile_probability::differs_lot_from_p): Same.
9891 * profile-count.h: Same.
9892 * profile.c (branch_prob): Same.
9893 * regrename.c (free_chain_data): Same.
9894 (mark_conflict): Same.
9895 (create_new_chain): Same.
9896 (merge_overlapping_regs): Same.
9897 (init_rename_info): Same.
9898 (merge_chains): Same.
9899 (regrename_analyze): Same.
9900 (regrename_do_replace): Same.
9901 (scan_rtx_reg): Same.
9902 (record_out_operands): Same.
9903 (build_def_use): Same.
9904 * regrename.h: Same.
9906 * reload1.c (init_reload): Same.
9907 (maybe_fix_stack_asms): Same.
9908 (copy_reloads): Same.
9909 (count_pseudo): Same.
9910 (count_spilled_pseudo): Same.
9912 (find_reload_regs): Same.
9913 (select_reload_regs): Same.
9914 (spill_hard_reg): Same.
9915 (fixup_eh_region_note): Same.
9916 (set_reload_reg): Same.
9917 (allocate_reload_reg): Same.
9918 (compute_reload_subreg_offset): Same.
9919 (reload_adjust_reg_for_icode): Same.
9920 (emit_input_reload_insns): Same.
9921 (emit_output_reload_insns): Same.
9922 (do_input_reload): Same.
9923 (inherit_piecemeal_p): Same.
9925 * sanopt.c (maybe_get_dominating_check): Same.
9926 (maybe_optimize_ubsan_ptr_ifn): Same.
9927 (can_remove_asan_check): Same.
9928 (maybe_optimize_asan_check_ifn): Same.
9929 (sanopt_optimize_walker): Same.
9930 * sched-deps.c (add_dependence_list): Same.
9931 (chain_to_prev_insn): Same.
9932 (add_insn_mem_dependence): Same.
9933 (create_insn_reg_set): Same.
9934 (maybe_extend_reg_info_p): Same.
9935 (sched_analyze_reg): Same.
9936 (sched_analyze_1): Same.
9937 (get_implicit_reg_pending_clobbers): Same.
9938 (chain_to_prev_insn_p): Same.
9939 (deps_analyze_insn): Same.
9940 (deps_start_bb): Same.
9941 (sched_free_deps): Same.
9943 (init_deps_reg_last): Same.
9945 * sched-ebb.c: Same.
9946 * sched-int.h: Same.
9947 * sched-rgn.c (add_branch_dependences): Same.
9948 (concat_insn_mem_list): Same.
9950 (sched_rgn_compute_dependencies): Same.
9951 * sel-sched-ir.c (reset_target_context): Same.
9952 (copy_deps_context): Same.
9953 (init_id_from_df): Same.
9954 (has_dependence_p): Same.
9955 (change_loops_latches): Same.
9956 (bb_top_order_comparator): Same.
9957 (make_region_from_loop_preheader): Same.
9958 (sel_init_pipelining): Same.
9959 (get_loop_nest_for_rgn): Same.
9960 (make_regions_from_the_rest): Same.
9961 (sel_is_loop_preheader_p): Same.
9962 * sel-sched-ir.h (inner_loop_header_p): Same.
9963 (get_all_loop_exits): Same.
9965 * sese.c (sese_build_liveouts): Same.
9966 (sese_insert_phis_for_liveouts): Same.
9967 * sese.h (defined_in_sese_p): Same.
9968 * sreal.c (sreal::stream_out): Same.
9970 * streamer-hooks.h: Same.
9971 * target-globals.c (save_target_globals): Same.
9972 * target-globals.h: Same.
9975 * targhooks.c (default_has_ifunc_p): Same.
9976 (default_empty_mask_is_expensive): Same.
9977 (default_init_cost): Same.
9978 * targhooks.h: Same.
9980 * tree-affine.c (aff_combination_mult): Same.
9981 (aff_combination_expand): Same.
9982 (aff_combination_constant_multiple_p): Same.
9983 * tree-affine.h: Same.
9984 * tree-cfg.c (build_gimple_cfg): Same.
9985 (replace_loop_annotate_in_block): Same.
9986 (replace_uses_by): Same.
9988 (dump_cfg_stats): Same.
9989 (gimple_duplicate_sese_region): Same.
9990 (gimple_duplicate_sese_tail): Same.
9991 (move_block_to_fn): Same.
9992 (replace_block_vars_by_duplicates): Same.
9993 (move_sese_region_to_fn): Same.
9994 (print_loops_bb): Same.
9996 (print_loops): Same.
9998 (debug_loops): Same.
10000 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
10001 (chrec_fold_multiply_poly_poly): Same.
10002 (chrec_evaluate): Same.
10003 (chrec_component_in_loop_num): Same.
10004 (reset_evolution_in_loop): Same.
10005 (is_multivariate_chrec): Same.
10006 (chrec_contains_symbols): Same.
10007 (nb_vars_in_chrec): Same.
10008 (chrec_convert_1): Same.
10009 (chrec_convert_aggressive): Same.
10010 * tree-chrec.h: Same.
10011 * tree-core.h: Same.
10012 * tree-data-ref.c (dump_data_dependence_relation): Same.
10013 (canonicalize_base_object_address): Same.
10014 (data_ref_compare_tree): Same.
10015 (prune_runtime_alias_test_list): Same.
10016 (get_segment_min_max): Same.
10017 (create_intersect_range_checks): Same.
10018 (conflict_fn_no_dependence): Same.
10019 (object_address_invariant_in_loop_p): Same.
10020 (analyze_ziv_subscript): Same.
10021 (analyze_siv_subscript_cst_affine): Same.
10022 (analyze_miv_subscript): Same.
10023 (analyze_overlapping_iterations): Same.
10024 (build_classic_dist_vector_1): Same.
10025 (add_other_self_distances): Same.
10026 (same_access_functions): Same.
10027 (build_classic_dir_vector): Same.
10028 (subscript_dependence_tester_1): Same.
10029 (subscript_dependence_tester): Same.
10030 (access_functions_are_affine_or_constant_p): Same.
10031 (get_references_in_stmt): Same.
10032 (loop_nest_has_data_refs): Same.
10033 (graphite_find_data_references_in_stmt): Same.
10034 (find_data_references_in_bb): Same.
10035 (get_base_for_alignment): Same.
10036 (find_loop_nest_1): Same.
10037 (find_loop_nest): Same.
10038 * tree-data-ref.h (dr_alignment): Same.
10039 (ddr_dependence_level): Same.
10040 * tree-if-conv.c (fold_build_cond_expr): Same.
10041 (add_to_predicate_list): Same.
10042 (add_to_dst_predicate_list): Same.
10043 (phi_convertible_by_degenerating_args): Same.
10044 (idx_within_array_bound): Same.
10045 (all_preds_critical_p): Same.
10046 (pred_blocks_visited_p): Same.
10047 (predicate_bbs): Same.
10048 (build_region): Same.
10049 (if_convertible_loop_p_1): Same.
10050 (is_cond_scalar_reduction): Same.
10051 (predicate_scalar_phi): Same.
10052 (remove_conditions_and_labels): Same.
10053 (combine_blocks): Same.
10054 (version_loop_for_if_conversion): Same.
10055 (versionable_outer_loop_p): Same.
10056 (ifcvt_local_dce): Same.
10057 (tree_if_conversion): Same.
10058 (pass_if_conversion::gate): Same.
10059 * tree-if-conv.h: Same.
10060 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
10061 * tree-loop-distribution.c (bb_top_order_cmp): Same.
10063 (stmt_has_scalar_dependences_outside_loop): Same.
10064 (copy_loop_before): Same.
10065 (create_bb_after_loop): Same.
10066 (const_with_all_bytes_same): Same.
10067 (generate_memset_builtin): Same.
10068 (generate_memcpy_builtin): Same.
10069 (destroy_loop): Same.
10070 (build_rdg_partition_for_vertex): Same.
10071 (compute_access_range): Same.
10072 (data_ref_segment_size): Same.
10073 (latch_dominated_by_data_ref): Same.
10074 (compute_alias_check_pairs): Same.
10075 (fuse_memset_builtins): Same.
10076 (finalize_partitions): Same.
10077 (find_seed_stmts_for_distribution): Same.
10078 (prepare_perfect_loop_nest): Same.
10079 * tree-parloops.c (lambda_transform_legal_p): Same.
10080 (loop_parallel_p): Same.
10081 (reduc_stmt_res): Same.
10082 (add_field_for_name): Same.
10083 (create_call_for_reduction_1): Same.
10084 (replace_uses_in_bb_by): Same.
10085 (transform_to_exit_first_loop_alt): Same.
10086 (try_transform_to_exit_first_loop_alt): Same.
10087 (transform_to_exit_first_loop): Same.
10089 (gen_parallel_loop): Same.
10090 (gather_scalar_reductions): Same.
10091 (get_omp_data_i_param): Same.
10092 (try_create_reduction_list): Same.
10093 (oacc_entry_exit_single_gang): Same.
10094 (parallelize_loops): Same.
10095 * tree-pass.h: Same.
10096 * tree-predcom.c (determine_offset): Same.
10097 (last_always_executed_block): Same.
10098 (split_data_refs_to_components): Same.
10099 (suitable_component_p): Same.
10100 (valid_initializer_p): Same.
10101 (find_looparound_phi): Same.
10102 (insert_looparound_copy): Same.
10103 (add_looparound_copies): Same.
10104 (determine_roots_comp): Same.
10105 (predcom_tmp_var): Same.
10106 (initialize_root_vars): Same.
10107 (initialize_root_vars_store_elim_1): Same.
10108 (initialize_root_vars_store_elim_2): Same.
10109 (finalize_eliminated_stores): Same.
10110 (initialize_root_vars_lm): Same.
10111 (remove_stmt): Same.
10112 (determine_unroll_factor): Same.
10113 (execute_pred_commoning_cbck): Same.
10114 (base_names_in_chain_on): Same.
10115 (combine_chains): Same.
10116 (pcom_stmt_dominates_stmt_p): Same.
10117 (try_combine_chains): Same.
10118 (prepare_initializers_chain_store_elim): Same.
10119 (prepare_initializers_chain): Same.
10120 (prepare_initializers): Same.
10121 (prepare_finalizers_chain): Same.
10122 (prepare_finalizers): Same.
10123 (insert_init_seqs): Same.
10124 * tree-scalar-evolution.c (loop_phi_node_p): Same.
10125 (compute_overall_effect_of_inner_loop): Same.
10126 (add_to_evolution_1): Same.
10127 (add_to_evolution): Same.
10128 (follow_ssa_edge_binary): Same.
10129 (follow_ssa_edge_expr): Same.
10130 (backedge_phi_arg_p): Same.
10131 (follow_ssa_edge_in_condition_phi_branch): Same.
10132 (follow_ssa_edge_in_condition_phi): Same.
10133 (follow_ssa_edge_inner_loop_phi): Same.
10134 (follow_ssa_edge): Same.
10135 (analyze_evolution_in_loop): Same.
10136 (analyze_initial_condition): Same.
10137 (interpret_loop_phi): Same.
10138 (interpret_condition_phi): Same.
10139 (interpret_rhs_expr): Same.
10140 (interpret_expr): Same.
10141 (interpret_gimple_assign): Same.
10142 (analyze_scalar_evolution_1): Same.
10143 (analyze_scalar_evolution): Same.
10144 (analyze_scalar_evolution_for_address_of): Same.
10145 (get_instantiated_value_entry): Same.
10146 (loop_closed_phi_def): Same.
10147 (instantiate_scev_name): Same.
10148 (instantiate_scev_poly): Same.
10149 (instantiate_scev_binary): Same.
10150 (instantiate_scev_convert): Same.
10151 (instantiate_scev_not): Same.
10152 (instantiate_scev_r): Same.
10153 (instantiate_scev): Same.
10154 (resolve_mixers): Same.
10155 (initialize_scalar_evolutions_analyzer): Same.
10156 (scev_reset_htab): Same.
10157 (scev_reset): Same.
10158 (derive_simple_iv_with_niters): Same.
10159 (simple_iv_with_niters): Same.
10160 (expression_expensive_p): Same.
10161 (final_value_replacement_loop): Same.
10162 * tree-scalar-evolution.h (block_before_loop): Same.
10163 * tree-ssa-address.h: Same.
10164 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
10165 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
10166 (record_edge_info): Same.
10167 * tree-ssa-live.c (var_map_base_fini): Same.
10168 (remove_unused_locals): Same.
10169 * tree-ssa-live.h: Same.
10170 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
10171 (pass_ch_vect::execute): Same.
10172 (pass_ch::process_loop_p): Same.
10173 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
10174 (movement_possibility): Same.
10175 (outermost_invariant_loop): Same.
10177 (determine_max_movement): Same.
10178 (invariantness_dom_walker::before_dom_children): Same.
10179 (move_computations): Same.
10180 (may_move_till): Same.
10181 (force_move_till_op): Same.
10182 (force_move_till): Same.
10183 (memref_free): Same.
10184 (record_mem_ref_loc): Same.
10185 (set_ref_stored_in_loop): Same.
10186 (mark_ref_stored): Same.
10187 (sort_bbs_in_loop_postorder_cmp): Same.
10188 (sort_locs_in_loop_postorder_cmp): Same.
10189 (analyze_memory_references): Same.
10190 (mem_refs_may_alias_p): Same.
10191 (find_ref_loc_in_loop_cmp): Same.
10192 (rewrite_mem_ref_loc::operator): Same.
10193 (first_mem_ref_loc_1::operator): Same.
10194 (sm_set_flag_if_changed::operator): Same.
10195 (execute_sm_if_changed_flag_set): Same.
10196 (execute_sm): Same.
10197 (hoist_memory_references): Same.
10198 (ref_always_accessed::operator): Same.
10199 (refs_independent_p): Same.
10200 (record_dep_loop): Same.
10201 (ref_indep_loop_p_1): Same.
10202 (ref_indep_loop_p): Same.
10203 (can_sm_ref_p): Same.
10204 (find_refs_for_sm): Same.
10205 (loop_suitable_for_sm): Same.
10206 (store_motion_loop): Same.
10207 (store_motion): Same.
10208 (fill_always_executed_in): Same.
10209 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
10210 (estimated_unrolled_size): Same.
10211 (loop_edge_to_cancel): Same.
10212 (remove_exits_and_undefined_stmts): Same.
10213 (remove_redundant_iv_tests): Same.
10214 (unloop_loops): Same.
10215 (estimated_peeled_sequence_size): Same.
10216 (try_peel_loop): Same.
10217 (canonicalize_loop_induction_variables): Same.
10218 (canonicalize_induction_variables): Same.
10219 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
10221 (stmt_after_inc_pos): Same.
10222 (contains_abnormal_ssa_name_p): Same.
10223 (niter_for_exit): Same.
10226 (find_givs_in_bb): Same.
10227 (find_induction_variables): Same.
10228 (find_interesting_uses_cond): Same.
10229 (outermost_invariant_loop_for_expr): Same.
10230 (idx_find_step): Same.
10231 (add_candidate_1): Same.
10232 (add_iv_candidate_derived_from_uses): Same.
10233 (alloc_use_cost_map): Same.
10234 (prepare_decl_rtl): Same.
10235 (generic_predict_doloop_p): Same.
10236 (computation_cost): Same.
10237 (determine_common_wider_type): Same.
10238 (get_computation_aff_1): Same.
10239 (get_use_type): Same.
10240 (determine_group_iv_cost_address): Same.
10242 (difference_cannot_overflow_p): Same.
10243 (may_eliminate_iv): Same.
10244 (determine_set_costs): Same.
10245 (cheaper_cost_pair): Same.
10246 (compare_cost_pair): Same.
10247 (iv_ca_cand_for_group): Same.
10248 (iv_ca_recount_cost): Same.
10249 (iv_ca_set_remove_invs): Same.
10250 (iv_ca_set_no_cp): Same.
10251 (iv_ca_set_add_invs): Same.
10252 (iv_ca_set_cp): Same.
10253 (iv_ca_add_group): Same.
10254 (iv_ca_cost): Same.
10255 (iv_ca_compare_deps): Same.
10256 (iv_ca_delta_reverse): Same.
10257 (iv_ca_delta_commit): Same.
10258 (iv_ca_cand_used_p): Same.
10259 (iv_ca_delta_free): Same.
10261 (iv_ca_free): Same.
10262 (iv_ca_dump): Same.
10263 (iv_ca_extend): Same.
10264 (iv_ca_narrow): Same.
10265 (iv_ca_prune): Same.
10266 (cheaper_cost_with_cand): Same.
10267 (iv_ca_replace): Same.
10268 (try_add_cand_for): Same.
10269 (get_initial_solution): Same.
10270 (try_improve_iv_set): Same.
10271 (find_optimal_iv_set_1): Same.
10272 (create_new_iv): Same.
10273 (rewrite_use_compare): Same.
10274 (remove_unused_ivs): Same.
10275 (determine_scaling_factor): Same.
10276 * tree-ssa-loop-ivopts.h: Same.
10277 * tree-ssa-loop-manip.c (create_iv): Same.
10278 (compute_live_loop_exits): Same.
10279 (add_exit_phi): Same.
10280 (add_exit_phis): Same.
10281 (find_uses_to_rename_use): Same.
10282 (find_uses_to_rename_def): Same.
10283 (find_uses_to_rename_in_loop): Same.
10284 (rewrite_into_loop_closed_ssa): Same.
10285 (check_loop_closed_ssa_bb): Same.
10286 (split_loop_exit_edge): Same.
10287 (ip_end_pos): Same.
10288 (ip_normal_pos): Same.
10289 (copy_phi_node_args): Same.
10290 (gimple_duplicate_loop_to_header_edge): Same.
10291 (can_unroll_loop_p): Same.
10292 (determine_exit_conditions): Same.
10293 (scale_dominated_blocks_in_loop): Same.
10294 (niter_for_unrolled_loop): Same.
10295 (tree_transform_and_unroll_loop): Same.
10296 (rewrite_all_phi_nodes_with_iv): Same.
10297 * tree-ssa-loop-manip.h: Same.
10298 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
10299 (number_of_iterations_ne): Same.
10300 (assert_no_overflow_lt): Same.
10301 (assert_loop_rolls_lt): Same.
10302 (number_of_iterations_lt): Same.
10303 (adjust_cond_for_loop_until_wrap): Same.
10304 (tree_simplify_using_condition): Same.
10305 (simplify_using_initial_conditions): Same.
10306 (simplify_using_outer_evolutions): Same.
10307 (loop_only_exit_p): Same.
10308 (ssa_defined_by_minus_one_stmt_p): Same.
10309 (number_of_iterations_popcount): Same.
10310 (number_of_iterations_exit): Same.
10311 (find_loop_niter): Same.
10312 (finite_loop_p): Same.
10313 (chain_of_csts_start): Same.
10314 (get_val_for): Same.
10315 (loop_niter_by_eval): Same.
10316 (derive_constant_upper_bound_ops): Same.
10317 (do_warn_aggressive_loop_optimizations): Same.
10318 (record_estimate): Same.
10319 (get_cst_init_from_scev): Same.
10320 (record_nonwrapping_iv): Same.
10321 (idx_infer_loop_bounds): Same.
10322 (infer_loop_bounds_from_ref): Same.
10323 (infer_loop_bounds_from_array): Same.
10324 (infer_loop_bounds_from_pointer_arith): Same.
10325 (infer_loop_bounds_from_signedness): Same.
10326 (bound_index): Same.
10327 (discover_iteration_bound_by_body_walk): Same.
10328 (maybe_lower_iteration_bound): Same.
10329 (estimate_numbers_of_iterations): Same.
10330 (estimated_loop_iterations): Same.
10331 (estimated_loop_iterations_int): Same.
10332 (max_loop_iterations): Same.
10333 (max_loop_iterations_int): Same.
10334 (likely_max_loop_iterations): Same.
10335 (likely_max_loop_iterations_int): Same.
10336 (estimated_stmt_executions_int): Same.
10337 (max_stmt_executions): Same.
10338 (likely_max_stmt_executions): Same.
10339 (estimated_stmt_executions): Same.
10340 (stmt_dominates_stmt_p): Same.
10341 (nowrap_type_p): Same.
10342 (loop_exits_before_overflow): Same.
10343 (scev_var_range_cant_overflow): Same.
10344 (scev_probably_wraps_p): Same.
10345 (free_numbers_of_iterations_estimates): Same.
10346 * tree-ssa-loop-niter.h: Same.
10347 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
10348 (idx_analyze_ref): Same.
10349 (analyze_ref): Same.
10350 (gather_memory_references_ref): Same.
10351 (mark_nontemporal_store): Same.
10352 (emit_mfence_after_loop): Same.
10353 (may_use_storent_in_loop_p): Same.
10354 (mark_nontemporal_stores): Same.
10355 (should_unroll_loop_p): Same.
10356 (volume_of_dist_vector): Same.
10357 (add_subscript_strides): Same.
10358 (self_reuse_distance): Same.
10359 (insn_to_prefetch_ratio_too_small_p): Same.
10360 * tree-ssa-loop-split.c (split_at_bb_p): Same.
10361 (patch_loop_exit): Same.
10362 (find_or_create_guard_phi): Same.
10363 (easy_exit_values): Same.
10364 (connect_loop_phis): Same.
10365 (connect_loops): Same.
10366 (compute_new_first_bound): Same.
10367 (split_loop): Same.
10368 (tree_ssa_split_loops): Same.
10369 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
10370 (is_maybe_undefined): Same.
10371 (tree_may_unswitch_on): Same.
10372 (simplify_using_entry_checks): Same.
10373 (tree_unswitch_single_loop): Same.
10374 (tree_unswitch_loop): Same.
10375 (tree_unswitch_outer_loop): Same.
10376 (empty_bb_without_guard_p): Same.
10377 (used_outside_loop_p): Same.
10378 (get_vop_from_header): Same.
10379 (hoist_guard): Same.
10380 * tree-ssa-loop.c (gate_oacc_kernels): Same.
10381 (get_lsm_tmp_name): Same.
10382 * tree-ssa-loop.h: Same.
10383 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
10384 (build_and_add_sum): Same.
10385 (no_side_effect_bb): Same.
10387 (linearize_expr): Same.
10388 (should_break_up_subtract): Same.
10389 (linearize_expr_tree): Same.
10390 * tree-ssa-scopedtables.c: Same.
10391 * tree-ssa-scopedtables.h: Same.
10392 * tree-ssa-structalias.c (condense_visit): Same.
10393 (label_visit): Same.
10394 (dump_pred_graph): Same.
10395 (perform_var_substitution): Same.
10396 (move_complex_constraints): Same.
10397 (remove_preds_and_fake_succs): Same.
10398 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
10399 (determine_bb_domination_status): Same.
10400 (duplicate_thread_path): Same.
10401 (thread_through_all_blocks): Same.
10402 * tree-ssa-threadupdate.h: Same.
10403 * tree-streamer-in.c (streamer_read_string_cst): Same.
10404 (input_identifier): Same.
10405 (unpack_ts_type_common_value_fields): Same.
10406 (unpack_ts_block_value_fields): Same.
10407 (unpack_ts_translation_unit_decl_value_fields): Same.
10408 (unpack_ts_omp_clause_value_fields): Same.
10409 (streamer_read_tree_bitfields): Same.
10410 (streamer_alloc_tree): Same.
10411 (lto_input_ts_common_tree_pointers): Same.
10412 (lto_input_ts_vector_tree_pointers): Same.
10413 (lto_input_ts_poly_tree_pointers): Same.
10414 (lto_input_ts_complex_tree_pointers): Same.
10415 (lto_input_ts_decl_minimal_tree_pointers): Same.
10416 (lto_input_ts_decl_common_tree_pointers): Same.
10417 (lto_input_ts_decl_non_common_tree_pointers): Same.
10418 (lto_input_ts_decl_with_vis_tree_pointers): Same.
10419 (lto_input_ts_field_decl_tree_pointers): Same.
10420 (lto_input_ts_function_decl_tree_pointers): Same.
10421 (lto_input_ts_type_common_tree_pointers): Same.
10422 (lto_input_ts_type_non_common_tree_pointers): Same.
10423 (lto_input_ts_list_tree_pointers): Same.
10424 (lto_input_ts_vec_tree_pointers): Same.
10425 (lto_input_ts_exp_tree_pointers): Same.
10426 (lto_input_ts_block_tree_pointers): Same.
10427 (lto_input_ts_binfo_tree_pointers): Same.
10428 (lto_input_ts_constructor_tree_pointers): Same.
10429 (lto_input_ts_omp_clause_tree_pointers): Same.
10430 (streamer_read_tree_body): Same.
10431 * tree-streamer.h: Same.
10432 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
10433 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
10434 (vect_analyze_possibly_independent_ddr): Same.
10435 (vect_analyze_data_ref_dependence): Same.
10436 (vect_compute_data_ref_alignment): Same.
10437 (vect_enhance_data_refs_alignment): Same.
10438 (vect_analyze_data_ref_access): Same.
10439 (vect_check_gather_scatter): Same.
10440 (vect_find_stmt_data_reference): Same.
10441 (vect_create_addr_base_for_vector_ref): Same.
10442 (vect_setup_realignment): Same.
10443 (vect_supportable_dr_alignment): Same.
10444 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
10445 (adjust_phi_and_debug_stmts): Same.
10446 (vect_set_loop_mask): Same.
10447 (add_preheader_seq): Same.
10448 (vect_maybe_permute_loop_masks): Same.
10449 (vect_set_loop_masks_directly): Same.
10450 (vect_set_loop_condition_masked): Same.
10451 (vect_set_loop_condition_unmasked): Same.
10452 (slpeel_duplicate_current_defs_from_edges): Same.
10453 (slpeel_add_loop_guard): Same.
10454 (slpeel_can_duplicate_loop_p): Same.
10455 (create_lcssa_for_virtual_phi): Same.
10457 (vect_update_ivs_after_vectorizer): Same.
10458 (vect_gen_vector_loop_niters_mult_vf): Same.
10459 (slpeel_update_phi_nodes_for_loops): Same.
10460 (slpeel_update_phi_nodes_for_guard1): Same.
10461 (find_guard_arg): Same.
10462 (slpeel_update_phi_nodes_for_guard2): Same.
10463 (slpeel_update_phi_nodes_for_lcssa): Same.
10464 (vect_do_peeling): Same.
10465 (vect_create_cond_for_alias_checks): Same.
10466 (vect_loop_versioning): Same.
10467 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
10468 (vect_inner_phi_in_double_reduction_p): Same.
10469 (vect_analyze_scalar_cycles_1): Same.
10470 (vect_fixup_scalar_cycles_with_patterns): Same.
10471 (vect_get_loop_niters): Same.
10472 (bb_in_loop_p): Same.
10473 (vect_get_max_nscalars_per_iter): Same.
10474 (vect_verify_full_masking): Same.
10475 (vect_compute_single_scalar_iteration_cost): Same.
10476 (vect_analyze_loop_form_1): Same.
10477 (vect_analyze_loop_form): Same.
10478 (vect_active_double_reduction_p): Same.
10479 (vect_analyze_loop_operations): Same.
10480 (neutral_op_for_slp_reduction): Same.
10481 (vect_is_simple_reduction): Same.
10482 (vect_model_reduction_cost): Same.
10483 (get_initial_def_for_reduction): Same.
10484 (get_initial_defs_for_reduction): Same.
10485 (vect_create_epilog_for_reduction): Same.
10486 (vectorize_fold_left_reduction): Same.
10487 (vectorizable_reduction): Same.
10488 (vectorizable_induction): Same.
10489 (vectorizable_live_operation): Same.
10490 (loop_niters_no_overflow): Same.
10491 (vect_get_loop_mask): Same.
10492 (vect_transform_loop_stmt): Same.
10493 (vect_transform_loop): Same.
10494 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
10495 (vect_determine_precisions): Same.
10496 (vect_pattern_recog_1): Same.
10497 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
10498 * tree-vect-stmts.c (stmt_vectype): Same.
10499 (process_use): Same.
10500 (vect_init_vector_1): Same.
10501 (vect_truncate_gather_scatter_offset): Same.
10502 (get_group_load_store_type): Same.
10503 (vect_build_gather_load_calls): Same.
10504 (vect_get_strided_load_store_ops): Same.
10505 (vectorizable_simd_clone_call): Same.
10506 (vectorizable_store): Same.
10507 (permute_vec_elements): Same.
10508 (vectorizable_load): Same.
10509 (vect_transform_stmt): Same.
10510 (supportable_widening_operation): Same.
10511 * tree-vectorizer.c (vec_info::replace_stmt): Same.
10512 (vec_info::free_stmt_vec_info): Same.
10513 (vect_free_loop_info_assumptions): Same.
10514 (vect_loop_vectorized_call): Same.
10515 (set_uid_loop_bbs): Same.
10516 (vectorize_loops): Same.
10517 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
10518 * tree.c (add_tree_to_fld_list): Same.
10519 (fld_type_variant_equal_p): Same.
10520 (fld_decl_context): Same.
10521 (fld_incomplete_type_of): Same.
10522 (free_lang_data_in_binfo): Same.
10523 (need_assembler_name_p): Same.
10524 (find_decls_types_r): Same.
10525 (get_eh_types_for_runtime): Same.
10526 (find_decls_types_in_eh_region): Same.
10527 (find_decls_types_in_node): Same.
10528 (assign_assembler_name_if_needed): Same.
10529 * value-prof.c (stream_out_histogram_value): Same.
10530 * value-prof.h: Same.
10531 * var-tracking.c (use_narrower_mode): Same.
10532 (prepare_call_arguments): Same.
10533 (vt_expand_loc_callback): Same.
10534 (resolve_expansions_pending_recursion): Same.
10535 (vt_expand_loc): Same.
10536 * varasm.c (const_hash_1): Same.
10537 (compare_constant): Same.
10538 (tree_output_constant_def): Same.
10539 (simplify_subtraction): Same.
10540 (get_pool_constant): Same.
10541 (output_constant_pool_2): Same.
10542 (output_constant_pool_1): Same.
10543 (mark_constants_in_pattern): Same.
10544 (mark_constant_pool): Same.
10545 (get_section_anchor): Same.
10546 * vr-values.c (compare_range_with_value): Same.
10547 (vr_values::extract_range_from_phi_node): Same.
10548 * vr-values.h: Same.
10549 * web.c (unionfind_union): Same.
10550 * wide-int.h: Same.
10552 2019-07-09 Martin Sebor <msebor@redhat.com>
10555 * align.h: Change class-key from class to struct and vice versa
10556 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
10557 * alloc-pool.h: Same.
10558 * asan.c (shadow_mem_size): Same.
10559 * auto-profile.c: Same.
10560 * basic-block.h: Same.
10562 * cfgexpand.c (set_rtl): Same.
10563 (expand_one_stack_var_at): Same.
10564 * cfghooks.h: Same.
10567 * config/i386/i386.h: Same.
10568 * df-problems.c (df_print_bb_index): Same.
10570 * df.h (df_single_use): Same.
10571 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
10572 (layout::annotation_line_showed_range_p): Same.
10573 (get_printed_columns): Same.
10574 (correction::ensure_terminated): Same.
10575 (line_corrections::~line_corrections): Same.
10578 * dump-context.h: Same.
10579 * dumpfile.h: Same.
10580 * dwarf2out.c: Same.
10581 * edit-context.c: Same.
10582 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
10584 * function.c (assign_stack_local): Same.
10585 * function.h: Same.
10587 * gcov.c (block_info::block_info): Same.
10588 * genattrtab.c: Same.
10589 * genextract.c: Same.
10590 * genmatch.c (comparison_code_p): Same.
10591 (id_base::id_base): Same.
10592 (decision_tree::print): Same.
10593 * genoutput.c: Same.
10594 * genpreds.c (write_one_predicate_function): Same.
10595 * genrecog.c (validate_pattern): Same.
10596 (find_operand_positions): Same.
10597 (optimize_subroutine_group): Same.
10598 (merge_pattern_transition::merge_pattern_transition): Same.
10599 (merge_pattern_info::merge_pattern_info): Same.
10600 (merge_state_result::merge_state_result): Same.
10601 (merge_into_state): Same.
10602 * gensupport.c: Same.
10603 * gensupport.h: Same.
10604 * ggc-common.c (init_ggc_heuristics): Same.
10605 * ggc-tests.c (test_union): Same.
10606 * gimple-loop-interchange.cc (dump_induction): Same.
10607 * gimple-loop-versioning.cc: Same.
10608 * gimple-match.h (gimple_match_cond::any_else): Same.
10609 * gimple-ssa-backprop.c: Same.
10610 * gimple-ssa-sprintf.c: Same.
10611 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
10613 (store_immediate_info::store_immediate_info): Same.
10614 (merged_store_group::apply_stores): Same.
10615 (get_location_for_stmts): Same.
10616 * gimple-ssa-strength-reduction.c: Same.
10617 * gimple-ssa-warn-alloca.c: Same.
10618 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
10619 * godump.c (go_type_decl): Same.
10620 * hash-map-tests.c (test_map_of_strings_to_int): Same.
10621 * hash-map.h: Same.
10622 * hash-set-tests.c (test_set_of_strings): Same.
10623 * hsa-brig.c: Same.
10624 * hsa-common.h: Same.
10625 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
10626 * input.c (assert_loceq): Same.
10629 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
10630 * ipa-fnsummary.h: Same.
10631 * ipa-inline.h: Same.
10632 * ipa-prop.h: Same.
10633 * ipa-split.c (visit_bb): Same.
10634 * ira-int.h (minmax_set_iter_next): Same.
10635 * loop-invariant.c: Same.
10637 * lra-eliminations.c: Same.
10639 * lra-lives.c (mark_regno_dead): Same.
10640 * lra-remat.c: Same.
10641 * lra-spills.c: Same.
10642 * lto-streamer.h: Same.
10643 * mem-stats.h: Same.
10644 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
10645 * omp-low.c (omp_clause_aligned_alignment): Same.
10646 * optabs-query.h (get_vcond_eq_icode): Same.
10648 * opts.c (wrap_help): Same.
10649 * poly-int.h: Same.
10650 * predict.c (predict_paths_leading_to_edge): Same.
10651 * pretty-print.h: Same.
10652 * profile-count.h: Same.
10654 * read-rtl-function.c: Same.
10657 * regrename.c: Same.
10658 * regrename.h: Same.
10660 * rtl-iter.h: Same.
10661 * rtl.h (costs_add_n_insns): Same.
10663 * sched-int.h: Same.
10664 * sel-sched-ir.h: Same.
10665 * selftest.h: Same.
10666 * sese.h (vec_find): Same.
10668 * target-globals.h: Same.
10669 * tree-affine.c (aff_combination_find_elt): Same.
10670 * tree-affine.h: Same.
10671 * tree-data-ref.h: Same.
10672 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
10673 * tree-predcom.c: Same.
10674 * tree-scalar-evolution.c (find_var_scev_info): Same.
10675 * tree-ssa-alias.h: Same.
10676 * tree-ssa-ccp.c: Same.
10677 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
10678 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
10679 (rewrite_mem_refs): Same.
10680 (execute_sm_if_changed): Same.
10681 (hoist_memory_references): Same.
10682 * tree-ssa-loop-ivopts.c (operator<=): Same.
10683 * tree-ssa-loop.h: Same.
10684 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
10685 * tree-ssa-structalias.c: Same.
10686 * tree-switch-conversion.h (cluster::cluster): Same.
10687 (simple_cluster::simple_cluster): Same.
10688 * tree-vect-patterns.c (type_conversion_p): Same.
10689 * tree-vectorizer.c (dump_stmt_cost): Same.
10690 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
10691 * tree.c (protected_set_expr_location): Same.
10692 * tree.h (desired_pro_or_demotion_p): Same.
10693 (fndecl_built_in_p): Same.
10694 * unique-ptr-tests.cc: Same.
10695 * var-tracking.c (delete_variable_part): Same.
10696 * varasm.c (assemble_real): Same.
10697 (tree_output_constant_def): Same.
10699 * wide-int-bitmask.h: Same.
10700 * wide-int.h (decompose): Same.
10702 2019-07-09 Richard Biener <rguenther@suse.de>
10704 PR tree-optimization/91114
10705 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
10706 find a vector type isn't fatal.
10708 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
10710 * config/aarch64/aarch64-simd.md
10711 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
10712 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
10713 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
10714 (*aarch64_crypto_aese_fused,
10715 *aarch64_crypto_aesd_fused): Update to new definition.
10716 * config/aarch64/aarch64.c
10717 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
10719 2019-07-09 Richard Biener <rguenther@suse.de>
10721 * gimple-match.h (gimple_match_op::resimplify): New.
10722 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
10723 gimple_resimplify4, gimple_resimplify5): Remove.
10724 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
10725 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
10727 (gimple_match_op::resimplify): New.
10728 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
10729 according to availability. Use gimple_match_op::resimplify.
10731 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
10733 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
10735 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
10737 * config/arm/crypto.md:
10738 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
10739 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
10740 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
10741 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
10743 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
10744 * config/arm/aarch-common-protos.h
10745 (aarch_crypto_can_dual_issue): Remove.
10746 * config/arm/aarch-common.c
10747 (aarch_crypto_can_dual_issue): Likewise.
10748 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
10749 * config/arm/cortex-a53.md: Likewise.
10750 * config/arm/cortex-a57.md: Likewise.
10751 * config/arm/iterators.md:
10752 (CRYPTO_BINARY): Redefine.
10753 (CRYPTO_UNARY): Removed.
10754 (CRYPTO_AES, CRYPTO_AESMC): New.
10756 2019-07-09 Richard Biener <rguenther@suse.de>
10758 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
10759 (vn_reference_lookup_3): If the main ref has no access path recorded
10760 but orig_ref has use it to do access-path based disambiguation.
10761 (vn_reference_lookup_pieces): Adjust.
10762 (vn_reference_lookup): Pass down original ref if we valueized.
10764 2019-07-09 Martin Liska <mliska@suse.cz>
10766 * doc/extend.texi: Document influence on loop
10769 2019-07-09 Martin Liska <mliska@suse.cz>
10771 * lto-compress.c (lto_normalized_zstd_level): Do not use
10772 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
10773 of libzstd. One can use 0 as a default compression level.
10775 2019-07-09 Martin Liska <mliska@suse.cz>
10777 * doc/invoke.texi: Add link from -fprofile-dir option.
10778 Use better wording for 'gcno filename'.
10780 2019-07-08 Martin Sebor <msebor@redhat.com>
10782 PR middle-end/71924
10783 PR middle-end/90549
10784 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
10786 (args_loc_t): New type.
10787 (args_loc_t, locmap_t): same.
10788 (diag_returned_locals): New function.
10789 (is_addr_local): Same.
10790 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
10791 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
10792 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
10794 2019-07-08 Jakub Jelinek <jakub@redhat.com>
10796 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
10797 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
10798 and casts in offset when different, both through gimple stmts
10799 and through trees. Rewritten using loops to minimize code duplication
10802 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
10804 * emit-rtl.c (set_insn_locations): New function moved from...
10805 * function.c (set_insn_locations): ...here.
10806 * ira-emit.c (emit_moves): Propagate location of the first instruction
10807 to the inserted move instructions.
10808 * reg-stack.c (compensate_edge): Set the location if the sequence is
10809 inserted on the edge.
10810 * rtl.h (set_insn_locations): Declare.
10812 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
10814 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
10815 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
10818 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
10820 PR rtl-optimization/88233
10821 * common.opt (fsplit-wide-types-early): New option.
10822 * common/config/rs6000/rs6000-common.c
10823 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
10825 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
10826 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
10827 flag_split_wide_types_early.
10828 (pass_data_lower_subreg3): New.
10829 (pass_lower_subreg3): New.
10830 (make_pass_lower_subreg3): New.
10831 * passes.def (pass_lower_subreg2): Move after the loop passes.
10832 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
10833 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
10834 the pass pipeline; its previous place is taken by ...
10835 (make_pass_lower_subreg3): ... this.
10837 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
10839 * config/s390/s390.c (s390_shift_truncation_mask): Define.
10840 (TARGET_SHIFT_TRUNCATION_MASK): Define.
10842 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
10844 * config/s390/constraints.md: Add new jsc constraint.
10845 * config/s390/predicates.md: New predicates.
10846 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
10847 * config/s390/s390.c (s390_valid_shift_count): New function.
10848 (print_shift_count_operand): Use s390_valid_shift_count.
10849 (print_operand): Likewise.
10850 * config/s390/s390.md: Use new predicate.
10851 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
10852 * config/s390/vector.md: Use new predicate.
10854 2019-07-08 Andrew Waterman <andrew@sifive.com>
10855 Jim Wilson <jimw@sifive.com>
10857 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
10858 bitsize instead of BITS_PER_WORD.
10860 2019-07-08 Martin Liska <mliska@suse.cz>
10862 * collect2.c (defined): Revert to before r254460.
10863 (scan_prog_file): Revert to before r254460.
10865 2019-07-08 Richard Biener <rguenther@suse.de>
10867 PR tree-optimization/83518
10868 * tree-ssa-sccvn.c: Include splay-tree.h.
10869 (struct pd_range, struct pd_data): New.
10870 (struct vn_walk_cb_data): Add data to track partial definitions.
10871 (vn_walk_cb_data::~vn_walk_cb_data): New.
10872 (vn_walk_cb_data::push_partial_def): New.
10873 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
10874 (vn_reference_lookup_2): When partial defs are registered give up.
10875 (vn_reference_lookup_3): Track partial defs for memset and
10876 constructor zeroing and for defs from constants.
10878 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
10880 * doc/install.texi (bootstrap-Og): Document.
10882 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
10884 * config/riscv/pic.md (*local_pic_load_s<mode>)
10885 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
10886 referenced by <mode>, giving...
10887 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
10888 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
10889 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
10890 use <X:MODE> for the mode attribute.
10892 2019-07-07 Jeff Law <law@redhat.com>
10894 PR tree-optimization/91090
10895 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
10896 in handling of ranges to simplify switch statements.
10898 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
10900 * config/darwin.c (darwin_override_options): Make a final check on PIC
10903 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
10905 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
10906 on for kernel code.
10908 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
10911 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
10912 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
10913 instead of matching them to "l" output operands.
10915 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
10917 * config/mips/mips.c (mips_split_move): Zero-initialize addr
10918 and check whether addr.reg is nonnull before using it.
10920 2019-07-06 Jakub Jelinek <jakub@redhat.com>
10922 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
10923 ctx->for_simd_scan_phase simd copy the outer var to the privatized
10924 variable(s). For conditional lastprivate look through outer
10925 GIMPLE_OMP_SCAN context.
10926 (lower_omp_1): For conditional lastprivate look through outer
10927 GIMPLE_OMP_SCAN context.
10929 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
10930 member to combined_into_simd_safelen1.
10931 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
10932 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
10933 clauses if ctx->combined_into_simd_safelen1 put statements after the
10934 predicate conditionalized block rather than into it.
10936 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
10938 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
10940 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
10941 Make the choice of <mode> explicit, giving...
10942 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
10944 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
10946 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
10947 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
10949 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
10950 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
10951 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
10952 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
10953 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
10954 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
10955 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
10956 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
10957 (*avx512f_scatterdi<mode>): Likewise.
10958 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
10960 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
10962 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
10963 specify the mode iterator referenced by <mode>, giving...
10964 (*push1_h8300hs_<QHI:mode>): ...this.
10966 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
10968 * config/gcn/gcn-valu.md
10969 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
10970 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
10971 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
10972 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
10973 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
10974 but using the _exec comparison patterns.
10975 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
10976 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
10977 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
10978 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
10979 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
10980 but using the _exec comparison patterns.
10982 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
10984 * config/arm/sync.md
10985 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
10986 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
10987 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
10988 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
10989 <SIDI:cas_cmp_str>.
10991 2019-07-06 Jakub Jelinek <jakub@redhat.com>
10993 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
10994 (maybe_lookup_ctx): Add forward declaration.
10995 (omp_find_scan): Likewise. Walk into body of simd if composited
10996 with worksharing loop.
10997 (scan_omp_simd_scan): New function.
10998 (scan_omp_1_stmt): Call it.
10999 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
11000 ctx->for_simd_scan_phase.
11001 (lower_rec_input_clauses): Do much less work for inscan reductions
11002 in ctx->for_simd_scan_phase is_simd regions.
11003 (lower_omp_scan): Set is_simd also on simd constructs composited
11004 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
11005 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
11006 emit their body after in simd constructs composited with worksharing
11008 (lower_omp_for_scan): Handle worksharing loop composited with simd.
11010 * omp-low.c (omp_find_scan): Make static.
11011 (lower_omp_for_scan): Fix order of merge arguments in input phase of
11012 the second loop, var2 represents the first partial sum and so needs
11013 to go before rprivb[ivar].
11015 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
11017 * config/rs6000/rs6000-logue.c: Remove unused code.
11019 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11021 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
11023 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
11026 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
11027 check with a frame laid out check.
11029 2019-07-05 Richard Biener <rguenther@suse.de>
11031 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
11032 when comparing against a store with possibly the same value.
11034 2019-07-05 Richard Biener <rguenther@suse.de>
11036 PR tree-optimization/91091
11037 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
11038 (walk_non_aliased_vuses): Likewise.
11039 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
11040 (get_continuation_for_phi): New tbaa_p parameter and pass
11042 (walk_non_aliased_vuses): Likewise.
11043 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
11044 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
11045 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
11047 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
11048 (adjust_offsets_for_equal_base_address): New function.
11049 (vn_reference_lookup_3): Use it to catch more base equivalences.
11050 Handle and pass down tbaa_p flag.
11051 (vn_reference_lookup_pieces): Adjust.
11052 (vn_reference_lookup): Remove alias-set altering, instead pass
11053 down false as tbaa_p.
11055 2019-07-05 Richard Biener <rguenther@suse.de>
11057 PR tree-optimization/91091
11058 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
11059 accesses can happen with -fno-strict-aliasing.
11061 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
11063 * tree-ssa-alias.c (alias_stats): Add
11064 nonoverlapping_component_refs_since_match_p_must_overlap.
11065 (dump_alias_stats): Print it.
11066 (nonoverlapping_component_refs_since_match_p): Add early exit.
11067 (nonoverlapping_component_refs_p): Do not account early exit.
11069 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11071 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
11072 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
11073 (emit_eh_dispatch): Delete.
11074 (lower_catch): Emit the eh_dispatch manually and set the location of
11075 the first catch statement onto it.
11076 (lower_eh_filter): Emit the eh_dispatch manually and set location.
11077 (lower_eh_dispatch): Propagate location.
11078 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
11079 (eliminate_build): Likewise.
11081 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
11083 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
11084 phi nodes if possible.
11085 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
11086 location info on the newly created statement.
11087 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
11088 newly created increment if needed.
11090 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11092 PR middle-end/78884
11093 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
11094 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
11095 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
11096 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
11097 ctx->add_safelen1 is set.
11099 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
11100 GOMP_loop_start at the start of second worksharing loop in a scan.
11101 For nowait, don't emit GOMP_loop_end_nowait at the end of first
11102 worksharing loop in a scan even if there are conditional lastprivates,
11103 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
11105 2019-07-04 Jan Hubicka <jh@suse.cz>
11107 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11108 Fix check for match in the ref walk.
11110 2019-07-04 Martin Liska <mliska@suse.cz>
11112 * tree-ssa-loop-niter.c
11113 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
11114 (estimate_numbers_of_iterations):
11115 Support __builtin_expect_with_probability for analysis
11116 of # of loop iterations.
11118 2019-07-04 Alexandre Oliva <oliva@adacore.com>
11120 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
11121 * except.c: Likewise.
11122 * expr.c (expand_expr_real_1): Reject it.
11123 * gimplify.c (gimplify_expr): Gimplify it, within
11125 * tree-dump.c (dequeue_and_dump): Dump it.
11126 * tree-pretty-print.c (dump_generic_node): Likewise.
11127 * tree.c (block_may_fallthru): Handle it.
11128 * tree.def (EH_ELSE_EXPR): Introduce it.
11129 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
11130 with GIMPLE_EH_ELSE as try/finally/else.
11132 2019-07-04 Richard Biener <rguenther@suse.de>
11135 * tree-pass.h (execute_all_ipa_transforms): Add a flag
11136 parameter whether to disable GC collection.
11137 * passes.c (execute_one_ipa_transform_pass): Likewise, and
11139 (execute_all_ipa_transforms): Likewise and pass it down.
11140 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
11141 collection from applying IPA transforms.
11142 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
11143 from applying IPA transforms.
11145 2019-07-04 Richard Biener <rguenther@suse.de>
11147 PR tree-optimization/90911
11148 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
11149 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
11150 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11151 scalar_loop_scaling.
11152 (vect_transform_loop): Scale scalar loop profile if needed.
11153 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
11154 the loop copy from if-conversion adjust edge probabilities
11155 and scale the vectorized loop body profile, queue the scalar
11156 profile for updating after peeling.
11158 2019-07-04 Jan Hubicka <jh@suse.cz>
11160 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
11161 parameters; return early for must-alias.
11162 (indirect_ref_may_alias_decl_p): Likewise; when establishing
11163 outer types match, try nonoverlapping_component_refs
11164 if must-alias is not obvious.
11165 (indirect_refs_may_alias_p): Likewise.
11166 (refs_may_alias_p_2): Likewise.
11168 2019-07-04 Richard Biener <rguenther@suse.de>
11170 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
11172 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
11174 (struct vn_walk_cb_data): New callback data struct.
11175 (vn_reference_lookup_2): Adjust.
11176 (vn_reference_lookup_3): Likewise.
11177 (vn_reference_lookup_pieces): Likewise.
11178 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
11179 (visit_reference_op_load): Adjust.
11181 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11183 PR tree-optimization/91063
11184 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
11185 stmt from stmts sequence before calling vect_init_vector_1.
11188 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11191 * fwprop.c (reg_single_def_p): New function.
11192 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
11193 (forward_propagate_into): New parameter reg_prop_only
11194 with default value false.
11195 Propagate def's src into loop only if SET_SRC and SET_DEST
11196 of def_set have single definitions.
11197 Likewise if reg_prop_only is set to true.
11198 (fwprop): New param fwprop_addr_p.
11199 Integrate fwprop_addr into fwprop.
11200 (fwprop_addr): Remove.
11201 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
11203 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
11204 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
11205 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
11207 2019-07-04 Jakub Jelinek <jakub@redhat.com>
11209 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
11210 in worksharing loop scans.
11212 PR tree-optimization/91074
11213 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
11216 PR rtl-optimization/90756
11217 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
11220 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
11222 * config/aarch64/aarch64.md: Remove redundant constraints from
11223 define_expand but keep some patterns untouched if they are
11224 specially selected by TARGET_SECONDARY_RELOAD hook.
11225 * config/aarch64/aarch64-sve.md: Likewise.
11226 * config/aarch64/atomics.md: Remove redundant constraints from
11228 * config/aarch64/aarch64-simd.md: Likewise.
11230 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
11232 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
11233 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
11234 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
11236 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
11239 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
11241 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
11242 (STARTFILE_SPEC): Split crt3 into a separate spec.
11243 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
11244 (DARWIN_CRT2_SPEC): New.
11245 (DARWIN_CRT3_SPEC): New.
11246 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
11247 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
11248 (DARWIN_CRT3_SPEC): New.
11250 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
11252 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
11253 Change the RTL attribute "length" from "4" to "*" to allow the
11254 length attribute to be adjusted automatically for prefixed load,
11255 store, and add immediate instructions.
11256 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
11258 (extendsi<mode>2, EXTSI iterator): Likewise.
11259 (movsi_internal1): Likewise.
11260 (movsi_from_sf): Likewise.
11261 (movdi_from_sf_zero_ext): Likewise.
11262 (mov<mode>_internal): Likewise.
11263 (movcc_internal1, QHI iterator): Likewise.
11264 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
11265 (movsf_from_si): Likewise.
11266 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
11267 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
11268 (mov<mode>, FMOVE128 iterator): Likewise.
11269 (movdi_internal64): Likewise.
11270 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
11272 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
11273 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
11274 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
11275 (vsx_splat_v4sf): Likewise.
11277 2019-07-03 Mark Wielaard <mark@klomp.org>
11280 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
11281 DW_AT_addr_base if there is actually a .debug_addr section with
11283 (output_addr_table): Add DWARF5 table header generation here after
11284 checking there are actually any addresses from...
11285 (dwarf2out_finish): ...here.
11287 2019-07-03 Richard Biener <rguenther@suse.de>
11289 PR middle-end/91069
11290 * match.pd (vec_perm -> bit_insert): Fix element read from
11293 2019-07-03 Martin Liska <mliska@suse.cz>
11295 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
11296 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
11298 * generic-match-head.c: Include dbgcnt.h.
11299 * gimple-match-head.c: Likewise.
11301 2019-07-03 Martin Liska <mliska@suse.cz>
11303 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
11304 (GCOV_COUNTER_V_TOPN): New.
11305 (GCOV_COUNTER_V_INDIR): Use _topn.
11306 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
11307 (GCOV_TOPN_VALUES): New.
11308 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
11309 (GCOV_TOPN_VALUES_COUNTERS): New.
11310 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
11312 (gimple_init_gcov_profiler): Rename variables from one_value
11314 (gimple_gen_one_value_profiler): Remove.
11315 (gimple_gen_topn_values_profiler): New function.
11316 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
11317 names instead of SINGLE_VALUE.
11318 (stream_out_histogram_value): Likewise.
11319 (stream_in_histogram_value): Likewise.
11320 (get_most_common_single_value): Likewise.
11321 (gimple_divmod_fixed_value_transform): Likewise.
11322 (gimple_stringops_transform): Likewise.
11323 (gimple_divmod_values_to_profile): Likewise.
11324 (gimple_stringops_values_to_profile): Likewise.
11325 (gimple_find_values_to_profile): Likewise.
11326 * value-prof.h (enum hist_type): Rename to TOPN.
11327 (gimple_gen_one_value_profiler): Remove.
11328 (gimple_gen_topn_values_profiler): New.
11330 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
11332 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
11333 if it has the DW_AT_data_member_location attribute.
11335 2019-07-03 Richard Biener <rguenther@suse.de>
11337 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
11340 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
11342 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
11343 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
11344 (tlsdesc_small_sve_<mode>): Likewise.
11346 2019-07-03 Martin Liska <mliska@suse.cz>
11348 * Makefile.in: Define ZSTD_LIB.
11349 * common.opt: Adjust compression level
11350 to support also zstd levels.
11351 * config.in: Regenerate.
11352 * configure: Likewise.
11353 * configure.ac: Add --with-zstd and --with-zstd-include options
11355 * doc/install.texi: Mention zstd dependency.
11356 * gcc.c: Print supported LTO compression algorithms.
11357 * lto-compress.c (lto_normalized_zstd_level): Likewise.
11358 (lto_compression_zstd): Likewise.
11359 (lto_uncompression_zstd): Likewise.
11360 (lto_end_compression): Dispatch in between zlib and zstd.
11361 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
11362 (lto_uncompression_zlib): Make it static.
11363 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
11364 * lto-section-in.c (lto_get_section_data): Pass info
11365 about used compression.
11366 * lto-streamer-out.c: By default use zstd when possible.
11367 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
11368 (TV_IPA_LTO_COMPRESS): Likewise for compression.
11370 2019-07-03 Martin Liska <mliska@suse.cz>
11372 * lto-section-in.c (lto_get_section_data): Add "lto" section.
11373 * lto-section-out.c (lto_destroy_simple_output_block): Never
11374 compress LTO_section_lto section.
11375 * lto-streamer-out.c (produce_asm): Do not set major_version
11377 (lto_output_toplevel_asms): Likewise.
11378 (produce_lto_section): New function.
11379 (lto_output): Call produce_lto_section.
11380 (lto_write_mode_table): Do not set major_version and
11382 (produce_asm_for_decls): Likewise.
11383 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
11385 (struct lto_header): Remove.
11386 (struct lto_section): New struct.
11387 (struct lto_simple_header): Do not inherit from lto_header.
11388 (struct lto_file_decl_data): Add lto_section_header field.
11390 2019-07-03 Martin Liska <mliska@suse.cz>
11392 * lra-eliminations.c (eliminate_regs_in_insn): Remove
11394 * reg-stack.c (check_asm_stack_operands): Likewise.
11395 * tree-ssa-structalias.c (create_function_info_for): Likewise.
11396 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
11397 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
11398 force_expand_binop.
11400 2019-07-03 Martin Liska <mliska@suse.cz>
11402 PR tree-optimization/90892
11403 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
11404 in string constants.
11406 2019-07-03 Martin Liska <mliska@suse.cz>
11408 PR middle-end/90899
11409 * multiple_target.c (create_dispatcher_calls): Add to comdat
11410 group only if set for ifunc.
11412 2019-07-03 Martin Liska <mliska@suse.cz>
11415 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
11416 Define local_object_name in outer scope in order to handle
11417 use-after-scope issue.
11419 2019-07-03 Martin Liska <mliska@suse.cz>
11421 * common.opt: Add fprofile-note.
11422 * coverage.c (coverage_init): Append the option
11424 * doc/invoke.texi: Document -fprofile-note.
11426 2019-07-03 Jakub Jelinek <jakub@redhat.com>
11428 PR tree-optimization/91033
11429 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
11430 vect_analyze_data_refs): Add bool * arguments.
11431 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
11432 if failure is due to scatter/gather, set *fatal to false if non-NULL.
11433 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
11434 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
11435 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
11436 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
11437 vect_analyze_data_refs caller.
11439 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
11441 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
11442 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
11443 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
11444 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11445 OMP_CLAUSE__SCANTEMP_ entry.
11446 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
11447 * tree-pretty-print.c (dump_omp_clause): Likewise.
11448 * tree-nested.c (convert_nonlocal_omp_clauses,
11449 convert_local_omp_clauses): Likewise.
11450 * omp-general.h (struct omp_for_data): Add have_scantemp and
11451 have_nonctrl_scantemp members.
11452 * omp-general.c (omp_extract_for_data): Initialize them.
11453 * omp-low.c (struct omp_context): Add scan_exclusive member.
11454 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
11455 result again with GF_OMP_FOR_KIND_MASK. Initialize also
11456 ctx->scan_exclusive.
11457 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
11458 of !ctx->scan_inclusive.
11459 (lower_rec_input_clauses): Simplify gimplification of dtors using
11460 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
11461 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
11462 loops. Don't add barrier for reduction_omp_orig_ref if
11463 ctx->scan_??xclusive.
11464 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
11465 (lower_omp_scan): Use ctx->scan_exclusive instead
11466 of !ctx->scan_inclusive. Handle worksharing loops with inscan
11467 reductions. Use new_vard != new_var instead of repeated
11468 omp_is_reference calls.
11469 (omp_find_scan, lower_omp_for_scan): New functions.
11470 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
11472 * omp-expand.c (expand_omp_scantemp_alloc): New function.
11473 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
11474 and fd->have_scantemp.
11476 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
11477 on worksharing loop propagate it as shared clause to containing
11480 * omp-expand.c (expand_omp_for_static_nochunk,
11481 expand_omp_for_static_chunk): For nowait worksharing loop with
11482 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
11485 2019-07-02 qing zhao <qing.zhao@oracle.com>
11487 PR preprocessor/90581
11488 * doc/cppopts.texi: Add document for -fmax-include-depth.
11489 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
11491 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
11493 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
11494 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
11495 (mmx_packssdw): Ditto.
11496 (mmx_punpckhbw): Ditto.
11497 (mmx_punpcklbw): Ditto.
11498 (mmx_punpckhwd): Ditto.
11499 (mmx_punpcklwd): Ditto.
11500 (mmx_punpckhdq): Ditto.
11501 (mmx_punpckldq): Ditto.
11502 (*vec_dupv4hi): Ditto.
11503 (*vec_dupv2si): Ditto.
11504 (mmx_pmovmskb): Ditto.
11505 * config/i386/sse.md (sse_cvtpi2ps): Use
11506 TARGET_SSE2 && SSE_REG_P in split condition.
11507 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
11508 TARGET_SSSE3 && SSE_REGNO_P in split condition.
11509 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
11510 (ssse3_pshufbv8qi3): Ditto.
11511 (ssse3_palignrdi): Ditto.
11513 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
11515 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
11516 with inlined save and restore.
11518 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
11520 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
11521 to be inserted on single successor edge of the entry block. Then call
11522 commit_edge_insertions instead of inserting the instructions manually.
11523 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
11524 RTL expansion and rebuild jump labels chain.
11526 2019-07-02 Richard Biener <rguenther@suse.de>
11528 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
11530 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
11532 * tree.c (build_common_tree_nodes): Initialize them.
11533 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
11534 Make declarations comments.
11535 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
11536 chrec_known): Remove definitions.
11537 (initialize_scalar_evolutions_analyzer): Remove.
11538 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
11539 * tree-streamer.c (preload_common_nodes): Do not preload
11540 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
11542 2019-07-02 Jan Hubicka <jh@suse.cz>
11544 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
11547 2019-07-02 Jan Hubicka <jh@suse.cz>
11549 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
11551 (nonoverlapping_component_refs_since_match_p): ... this one;
11552 handle also non-decl bases; return -1 if search gave up.
11553 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
11554 nonoverlapping_component_refs_of_decl_p_no_alias to
11555 nonoverlapping_component_refs_since_match_p_may_alias,
11556 nonoverlapping_component_refs_since_match_p_no_alias.
11557 (dump_alias_stats): Update dumping.
11558 (aliasing_matching_component_refs_p): Break out from ...;
11559 dispatch to nonoverlapping_component_refs_for_decl_p
11560 and nonoverlapping_component_refs_since_match_p.
11561 (aliasing_component_refs_p): ... here; call
11562 nonoverlapping_component_refs_p in scenarios where we can not
11563 precisely determine base match.
11564 (decl_refs_may_alias_p): Use
11565 nonoverlapping_component_refs_since_match_p.
11566 (indirect_ref_may_alias_decl_p): Do not call
11567 nonoverlapping_component_refs_p.
11568 (indirect_refs_may_alias_p): Likewise.
11570 2019-07-02 Jan Hubicka <jh@suse.cz>
11572 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
11573 to clobber of return value.
11575 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11577 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
11578 for is_neon_type instructions that have not already been categorized.
11580 2019-07-02 Richard Biener <rguenther@suse.de>
11582 PR tree-optimization/58483
11583 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
11584 for MEM_REF base hashing.
11585 (equal_mem_array_ref_p): Likewise for base comparison.
11587 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11589 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
11590 parameterized name.
11591 (signbit<mode>2): Use that name. Simplify.
11593 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
11595 PR middle-end/66726
11596 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
11597 Tune heuristic from PR71016 to allow MIN / MAX.
11599 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11601 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
11602 parameterized name.
11603 (abs<mode>2): Use that name. Simplify.
11605 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11607 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
11608 parameterized name.
11609 (neg<mode>2): Use that name. Simplify.
11611 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11613 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
11615 (abs<mode>2): Use that name. Simplify.
11617 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11619 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
11621 (neg<mode>2): Use that name. Simplify.
11623 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
11625 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
11626 ("enabled" attribute): Handle sse_noavx isa attribute.
11627 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
11628 Use TARGET_SSE && SSE_REGNO_P in split condition.
11629 (*vec_dupv2sf): Ditto.
11631 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11633 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
11635 (floatsi<mode>2): Use that name. Simplify.
11637 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11639 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
11640 parameterized name.
11641 (extenddf<mode>2_vsx): Make this a parameterized name.
11642 (extenddf<mode>2): Use those names. Simplify.
11644 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11646 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
11648 (eh_return): Use that name. Simplify.
11650 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11652 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
11653 (doloop_end): Use that name. Simplify.
11655 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11657 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
11658 parameterized name.
11659 (indirect_jump): Use that name. Simplify.
11661 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11663 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
11664 parameterized name.
11665 (abs<mode>2): Use that name. Simplify.
11667 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11669 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
11670 parameterized name.
11671 (fix_trunc<mode>si2): Use that name. Simplify.
11673 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11675 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
11676 (allocate_stack): Use that name. Simplify.
11678 2019-07-01 Martin Sebor <msebor@redhat.com>
11680 PR middle-end/90923
11681 * hash-map.h (hash_map::put): On insertion invoke element ctor.
11682 (hash_map::get_or_insert): Same. Reformat comment.
11683 * hash-set.h (hash_set::add): On insertion invoke element ctor.
11684 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
11685 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
11686 * hash-table.h (hash_table::operator=): Prevent copy assignment.
11687 (hash_table::hash_table (const hash_table&)): Use copy ctor
11688 instead of assignment to copy elements.
11690 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
11691 John David Anglin <danglin@gcc.gnu.org>
11694 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
11695 using saved frame pointer.
11697 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
11699 PR middle-end/64242
11700 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
11701 Add frame clobber and schedule blockage.
11703 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
11705 * doc/invoke.texi (Link Options): Further editorial changes to
11706 -flinker-output docs.
11708 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
11710 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
11711 Load both operands of a PLUS into registers separately.
11713 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
11715 * config/s390/vector.md: Fix shift count operand printing.
11717 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11719 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
11721 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11723 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
11724 Use recog_data to test for an output operand.
11726 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11728 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
11729 exclude any others that are disparaged or that are bound to need
11731 (ira_get_dup_out_num): Expand comment.
11733 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11735 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
11736 constraint string for each operand/alternative combo. Only handle
11737 '%' at the start of constraint strings, and look for it outside
11740 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
11742 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
11743 alternative_mask instead of HARD_REG_SET to represent a
11744 bitmask of alternatives.
11745 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
11746 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
11748 2019-07-01 Martin Liska <mliska@suse.cz>
11750 * edit-context.c (test_applying_fixits_unreadable_file): Do not
11751 use () for a constructor call.
11752 (test_applying_fixits_line_out_of_range): Likewise.
11753 * ggc-page.c (alloc_page): Use (void *) for %p printf format
11755 (free_page): Likewise.
11757 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
11759 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
11760 parameter names to match usage (no functional change).
11761 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
11763 2019-07-01 Richard Biener <rguenther@suse.de>
11765 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
11767 (pass_fre::execute): Honor it.
11768 * passes.def: Adjust pass_fre invocations to allow iterating,
11769 add non-iterating pass_fre before late threading/dom.
11771 2019-07-01 Richard Biener <rguenther@suse.de>
11773 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
11774 TARGET_MEM_REF handling to also handle address-taken ones.
11776 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
11778 * doc/sourcebuild.texi (Effective-Target Keywords, Other
11779 hardware attributes): Document avx512vp2intersect.
11781 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
11783 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
11784 (abs<mode>2): New expander.
11785 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
11786 Use CODE_FOR_ssse3_absv8qi2.
11787 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
11788 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
11790 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
11792 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
11793 to sse, sse_noavx and avx. Update all uses.
11795 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
11797 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
11798 (*mmx_<plusminus_insn><mode>3): Ditto.
11799 (*mmx_mulv4hi3"): Ditto.
11800 (*mmx_smulv4hi3_highpart): Ditto.
11801 (*mmx_umulv4hi3_highpart): Ditto.
11802 (*mmx_pmaddwd): Ditto.
11803 (*sse2_umulv1siv1di3): Ditto.
11804 (*mmx_<code>v4hi3): Ditto.
11805 (*mmx_<code>v8qi3): Ditto.
11806 (mmx_ashr<mode>3): Ditto.
11807 ("mmx_<shift_insn><mode>3): Ditto.
11808 (*mmx_eq<mode>3): Ditto.
11809 (mmx_gt<mode>3): Ditto.
11810 (mmx_andnot<mode>3): Ditto.
11811 (*mmx_<code><mode>3): Ditto.
11812 (*mmx_pinsrw): Ditto.
11813 (*mmx_pextrw): Ditto.
11814 (mmx_pshufw_1): Ditto.
11815 (*mmx_uavgv8qi3): Ditto.
11816 (*mmx_uavgv4hi3): Ditto.
11817 ("mmx_psadbw): Ditto.
11818 * config/i386/sse.md (sse_cvtps2pi): Ditto.
11819 (sse_cvttps2pi): Ditto.
11820 (ssse3_pmaddubsw): Ditto.
11821 (*ssse3_pmulhrswv4hi3): Ditto.
11822 (ssse3_psign<mode>3): Ditto.
11824 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
11826 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
11827 adjustment for bit-fields to all aggregate types.
11829 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
11831 * config/rs6000/predicates.md (pcrel_address): Use
11832 SYMBOL_REF_LOCAL_P to determine if a label is local.
11833 (pcrel_external_address): New predicate.
11834 (non_prefixed_mem_operand): Delete, predicate not used.
11835 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
11836 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
11838 (SYMBOL_REF_PCREL_P): Likewise.
11841 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
11843 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
11844 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
11845 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
11847 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
11849 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
11850 override on extra_headers.
11852 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
11854 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
11855 * config/darwin-driver.c (darwin_default_min_version): Remove newline
11857 (darwin_driver_init): Likewise.
11859 2019-06-28 Jan Beulich <jbeulich@suse.com>
11861 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
11862 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
11863 Eliminate redundant alternative.
11865 2019-06-28 Jan Beulich <jbeulich@suse.com>
11867 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
11868 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
11869 Use vector_operand.
11871 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
11873 * config/arc/arc.c (arc_rtx_costs): All short instructions are
11874 having a lower cost regardless of the speed option.
11876 2019-06-28 Jan Beulich <jbeulich@suse.com>
11878 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
11879 vector_operand plus, on both alternatives, "Bm" constraint.
11881 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
11883 * config/arm/arm.md: Remove redundant constraints from
11884 define_expand but leave reload_inm and reload_outm patterns
11885 untouched since they need special constraints to work.
11886 * config/arm/arm-fixed.md: Remove redundant constraints from
11888 * config/arm/iwmmxt.md: Likewise.
11889 * config/arm/neon.md: Likewise.
11890 * config/arm/sync.md: Likewise.
11891 * config/arm/thumb1.md: Likewise.
11892 * config/arm/vec-common.md: Likewise.
11894 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
11896 * doc/install.texi: Document --disable-tm-clone-registry.
11898 2019-06-27 Jakub Jelinek <jakub@redhat.com>
11901 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
11904 PR tree-optimization/91010
11905 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
11906 return true. Otherwise, don't call operand_equal_p if offset1 or
11907 offset2 is NULL and just return false.
11909 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
11911 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
11912 user-specified float mode choice for kernel mode code.
11914 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
11916 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
11919 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
11921 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
11922 use longcall for 64b code.
11924 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
11926 * builtins.c (get_memory_rtx): Fix comment.
11927 * optabs.def (movmem_optab): Change to cpymem_optab.
11928 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
11929 (emit_block_move_hints): Change movmem to cpymem.
11930 * defaults.h: Change movmem to cpymem.
11931 * targhooks.c (get_move_ratio): Change movmem to cpymem.
11932 (default_use_by_pieces_infrastructure_p): Ditto.
11933 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
11934 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
11936 * config/aarch64/aarch64.h: Change movmem to cpymem.
11937 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
11938 * config/alpha/alpha.h: Change movmem to cpymem in comment.
11939 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
11941 * config/arc/arc-protos.h: Change movmem to cpymem.
11942 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
11943 * config/arc/arc.h: Change movmem to cpymem in comment.
11944 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
11945 * config/arm/arm-protos.h: Change movmem to cpymem in names.
11946 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
11947 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
11948 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
11949 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
11950 * config/avr/avr-protos.h: Change movmem to cpymem.
11951 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
11952 avr_out_movmem): Change movmem to cpymem.
11953 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
11954 Change movmem to cpymem.
11955 * config/bfin/bfin-protos.h: Change movmem to cpymem.
11956 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
11957 Change movmem to cpymem.
11958 * config/bfin/bfin.h: Change movmem to cpymem in comment.
11959 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
11960 * config/c6x/c6x-protos.h: Change movmem to cpymem.
11961 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
11962 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
11963 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
11964 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
11965 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
11966 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
11967 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
11968 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
11969 expand_small_cpymem_or_setmem,
11970 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
11971 expand_set_or_cpymem_constant_prologue,
11972 ix86_expand_set_or_cpymem): Change movmem to cpymem.
11973 * config/i386/i386-protos.h: Change movmem to cpymem.
11974 * config/i386/i386.h: Change movmem to cpymem in comment.
11975 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
11976 (setmem<mode>): Change expansion function name.
11977 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
11978 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
11979 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
11980 * config/m32c/m32c-protos.h: Change movmem to cpymem.
11981 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
11982 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
11983 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
11985 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
11986 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
11987 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
11988 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
11989 Change movmem to cpymem.
11990 * config/mips/mips.h: Change movmem to cpymem.
11991 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
11992 * config/nds32/nds32-memory-manipulation.c
11993 (nds32_expand_movmemsi_loop_unknown_size,
11994 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
11995 nds32_expand_movmemsi_unroll,
11996 nds32_expand_movmemsi): Change movmem to cpymem.
11997 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
11998 * config/nds32/nds32-protos.h: Change movmem to cpymem.
11999 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
12000 (pa_adjust_insn_length): Change call to compute_movmem_length.
12001 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
12002 movmemdi, movmemdi_prereload,
12003 movmemdi_postreload): Change movmem to cpymem.
12004 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
12005 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
12006 * config/riscv/riscv.c: Change movmem to cpymem in comment.
12007 * config/riscv/riscv.h: Change movmem to cpymem.
12008 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
12009 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
12010 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
12012 * config/s390/s390-protos.h: Change movmem to cpymem.
12013 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
12014 s390_expand_insv): Change movmem to cpymem.
12015 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
12016 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
12017 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
12018 * config/sparc/sparc.h: Change movmem to cpymem in comment.
12019 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
12020 for nonexistent function.
12021 * config/vax/vax.h: Change movmem to cpymem in comment.
12022 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
12023 * config/visium/visium.h: Change movmem to cpymem in comment.
12024 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
12025 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
12026 * doc/md.texi: Change movmem to cpymem and update description to match.
12027 * doc/rtl.texi: Change movmem to cpymem.
12028 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
12029 * doc/tm.texi: Regenerate.
12031 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
12033 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
12034 -fvariable-expansion-in-unroller by default.
12035 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
12038 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
12041 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12042 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12044 * config.gcc(rs6000-*-*): Define target_gtfiles.
12046 2019-06-27 Jan Hubicka <jh@suse.cz>
12048 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
12049 (add_type_duplicate): When odr hash is not allocated, to nothing.
12050 (odr_based_tbaa_p): New function.
12051 (set_type_canonical_for_odr_type): New function.
12052 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
12053 set_type_canonical_for_odr_type): New.
12054 * tree.c (gimple_canonical_types_compatible_p): ODR types with
12055 ODR based TBAA are not equivalent to non-ODR types.
12057 2019-06-27 Martin Liska <mliska@suse.cz>
12059 PR tree-optimization/90974
12060 PR rtl-optimization/90975
12061 PR rtl-optimization/90976
12063 PR tree-optimization/91017
12064 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
12066 * lra.c (lra_set_insn_recog_data): Remove a leftover from
12067 initial commit of IRA.
12068 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
12070 * tree-vect-loop.c (vect_create_epilog_for_reduction):
12071 Remove unused mode1.
12072 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
12075 2019-06-27 Jakub Jelinek <jakub@redhat.com>
12078 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
12079 instead of register_operand for operands[1], add m to its constraints
12080 if operands[2] uses "C" constraint. Ensure in condition that if
12081 operands[2] is not 0, then operands[1] is not a MEM. For last two
12082 alternatives, use unaligned loads instead of aligned if operands[1] is
12083 misaligned_operand.
12085 2019-06-27 Martin Liska <mliska@suse.cz>
12087 * asan.c (asan_emit_allocas_unpoison): Remove obviously
12089 * bt-load.c (move_btr_def): Likewise.
12090 * builtins.c (expand_builtin_apply_args_1): Likewise.
12091 (expand_builtin_apply): Likewise.
12092 * cfgexpand.c (expand_asm_stmt): Likewise.
12093 (construct_init_block): Likewise.
12094 * cfghooks.c (verify_flow_info): Likewise.
12095 * cfgloopmanip.c (remove_path): Likewise.
12096 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
12097 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
12098 * combine.c (simplify_if_then_else): Likewise.
12099 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12100 (choose_basereg): Likewise.
12101 (ix86_expand_prologue): Likewise.
12102 (ix86_preferred_output_reload_class): Likewise.
12103 * cselib.c (cselib_record_sets): Likewise.
12104 * df-scan.c (df_scan_alloc): Likewise.
12105 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
12106 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
12107 * emit-rtl.c (try_split): Likewise.
12108 * graphite-scop-detection.c (assign_parameter_index_in_region):
12110 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
12111 * ira-color.c (setup_profitable_hard_regs): Likewise.
12112 * ira.c (rtx_moveable_p): Likewise.
12113 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
12114 * read-rtl.c (read_subst_mapping): Likewise.
12115 * regrename.c (scan_rtx): Likewise.
12116 * reorg.c (fill_slots_from_thread): Likewise.
12117 * tree-inline.c (tree_function_versioning): Likewise.
12118 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
12119 * tree-ssa-sink.c (statement_sink_location): Likewise.
12120 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
12121 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
12122 (vect_create_epilog_for_reduction): Likewise.
12123 * tree.c (build_nonstandard_integer_type): Likewise.
12125 2019-06-27 Richard Biener <rguenther@suse.de>
12127 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
12129 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
12131 PR tree-optimization/89772
12132 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
12133 out-of-bound accesses checking.
12135 2019-06-27 Martin Liska <mliska@suse.cz>
12137 PR tree-optimization/91014
12138 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
12139 when LHS is NULL_TREE.
12141 2019-06-27 Martin Liska <mliska@suse.cz>
12143 * symbol-summary.h (traverse): Pass
12144 argument a to the call of callback.
12145 (gt_ggc_mx): Mark arguments as unused.
12146 (gt_pch_nx): Likewise.
12148 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
12151 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
12154 2019-06-26 Jeff Law <law@redhat.com>
12156 PR tree-optimization/90883
12157 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
12158 (delete_dead_or_redundant_assignment): Likewise.
12160 PR tree-optimization/90883
12161 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
12162 * tree-ssa-dse.c: Update various comments to distinguish between
12163 dead and redundant stores.
12164 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
12165 (dse_optimize_redundant_stores): New function.
12166 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
12167 Distinguish between dead and redundant calls in dump output. All
12169 (delete_dead_or_redundant_assignment): Similarly for assignments.
12170 (dse_optimize_stmt): Handle _CHK variants. For statements which
12171 store 0 into multiple memory locations, try to prove a subsequent
12172 store is redundant.
12174 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
12177 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
12178 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
12180 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
12182 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
12183 (branch_islands): New extern.
12184 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
12185 * config/rs6000/rs6000.c: .. here.
12187 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
12189 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
12190 (powerpc*-*-*) ... to here.
12192 2019-06-26 Jeff Law <law@redhat.com>
12194 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
12195 memcpy, memmove and memset builtins.
12196 (maybe_trim_memstar_call): Likewise.
12198 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12200 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
12202 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
12204 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12206 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12208 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
12210 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
12212 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
12215 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12217 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
12219 2019-06-26 Richard Biener <rguenther@suse.de>
12222 * tree-inline.c (remap_ssa_name): Copy SSA range info.
12224 2019-06-26 Richard Biener <rguenther@suse.de>
12226 * lto-streamer.h (lto_bitmap_alloc): Remove.
12227 (lto_bitmap_free): Likewise.
12228 * lto-streamer.c (lto_bitmap_alloc): Remove.
12229 (lto_bitmap_free): Likewise.
12230 (lto_obstack): Likewise.
12231 (lto_obstack_initialized): Likewise.
12232 * lto-streamer-out.c (lto_output): Use own obstack for local
12233 bitmap, free it consistently.
12235 2019-06-26 Jakub Jelinek <jakub@redhat.com>
12238 * config/i386/sse.md
12239 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
12240 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
12241 insns if operands[2] is misaligned_operand.
12243 2019-06-26 Li Jia He <helijia@linux.ibm.com>
12245 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
12247 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
12250 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
12252 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
12254 2019-06-26 Martin Liska <mliska@suse.cz>
12256 PR tree-optimization/90973
12257 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
12258 epilogue_cost_vec instead of prologue_cost_vec for
12261 2019-06-26 Martin Liska <mliska@suse.cz>
12263 * bb-reorder.c (connect_better_edge_p): Add missing else
12264 statement in the middle of if-else statements.
12266 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
12267 H.J. Lu <hongjiu.lu@intel.com>
12268 Olga Makhotina <olga.makhotina@intel.com>
12270 * common/config/i386/i386-common.c
12271 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
12272 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
12273 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
12274 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
12275 (ix86_handle_option): Handle -mavx512vp2intersect.
12276 * config/i386/avx512vp2intersectintrin.h: New.
12277 * config/i386/avx512vp2intersectvlintrin.h: New.
12278 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
12279 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
12280 AVX512VP2INTERSECT.
12281 * config/i386/i386-builtin-types.def: Add new types.
12282 * config/i386/i386-builtin.def: Add new builtins.
12283 * config/i386/i386-builtins.c: (enum processor_features): Add
12284 F_AVX512VP2INTERSECT.
12285 (static const _isa_names_table isa_names_table): Ditto.
12286 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12287 __AVX512VP2INTERSECT__.
12288 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
12289 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
12290 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
12291 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
12292 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
12293 * config/i386/i386-options.c (ix86_target_string): Add
12294 -mavx512vp2intersect.
12295 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
12296 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
12297 P2HImode and P2QImode.
12298 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
12299 number for P2QImode and P2HImode.
12300 (ix86_regmode_natural_size): New function.
12301 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
12302 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
12303 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
12304 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
12305 * config/i386/i386.opt: Add -mavx512vp2intersect.
12306 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
12307 avx512vp2intersectvlintrin.h.
12308 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
12309 (define_mode_iterator VI48_AVX512VP2VL): New.
12310 (avx512vp2intersect_2intersect<mode>,
12311 avx512vp2intersect_2intersectv16si): New define_insn patterns.
12312 * config.gcc: Add avx512vp2intersectvlintrin.h and
12313 avx512vp2intersectintrin.h to extra_headers.
12314 * doc/invoke.texi: Document -mavx512vp2intersect.
12316 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
12318 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
12320 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
12322 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
12323 savres_routine_syms, savres_routine_name, morestack_ref,
12324 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12325 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12326 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12327 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12328 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12329 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12330 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12331 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12332 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12333 get_stack_clash_protection_probe_interval,
12334 get_stack_clash_protection_guard_size,
12335 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12336 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12337 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12338 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12339 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12340 gen_frame_mem_offset, rs6000_savres_routine_name,
12341 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12342 ptr_regno_for_savres, rs6000_emit_savres_rtx,
12343 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12344 rs6000_global_entry_point_prologue_needed_p,
12345 rs6000_get_separate_components, rs6000_components_for_bb,
12346 rs6000_disqualify_components, rs6000_emit_prologue_components,
12347 rs6000_emit_epilogue_components, rs6000_set_handled_components,
12348 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12349 rs6000_output_savres_externs, rs6000_output_function_prologue,
12350 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12351 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12352 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12353 rs6000_output_function_epilogue, gen_add3_const,
12354 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12355 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12357 (machine_function): Moved to rs6000.h.
12358 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
12360 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
12361 savres_routine_syms, savres_routine_name, morestack_ref,
12362 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
12363 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
12364 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
12365 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
12366 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
12367 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
12368 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
12369 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
12370 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
12371 get_stack_clash_protection_probe_interval,
12372 get_stack_clash_protection_guard_size,
12373 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
12374 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
12375 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
12376 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
12377 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
12378 gen_frame_mem_offset, rs6000_savres_routine_name,
12379 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
12380 ptr_regno_for_savres, rs6000_emit_savres_rtx,
12381 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
12382 rs6000_global_entry_point_prologue_needed_p,
12383 rs6000_get_separate_components, rs6000_components_for_bb,
12384 rs6000_disqualify_components, rs6000_emit_prologue_components,
12385 rs6000_emit_epilogue_components, rs6000_set_handled_components,
12386 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
12387 rs6000_output_savres_externs, rs6000_output_function_prologue,
12388 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
12389 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
12390 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
12391 rs6000_output_function_epilogue, gen_add3_const,
12392 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
12393 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
12394 to here from rs6000.c.
12395 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
12396 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
12397 quad_address_offset_p) Moved to here from rs6000.c.
12398 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
12399 * config/config.gcc: Add new source file rs6000-logue.c to garbage
12402 2019-06-25 Martin Liska <mliska@suse.cz>
12404 * hash-table.c (hashtab_chk_error): Move here from ...
12405 * hash-table.h (hashtab_chk_error): ... here.
12407 2019-06-25 Martin Liska <mliska@suse.cz>
12409 PR tree-optimization/90978
12410 * df-scan.c (df_update_entry_block_defs): Remove dead else
12412 (df_update_exit_block_uses): Likewise.
12414 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
12415 Andrew Stubbs <ams@codesourcery.com>
12417 * config.gcc (thread_file): Set to gcn for AMD GCN.
12418 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
12419 (TARGET_EMUTLS_VAR_INIT): New hook.
12421 2019-06-25 Martin Jambor <mjambor@suse.cz>
12424 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
12426 2019-06-25 Richard Biener <rguenther@suse.de>
12428 PR tree-optimization/90930
12429 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
12430 into parallel form in the last pass instance.
12432 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
12434 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
12435 (arc_legitimize_pic_address): Simplify and cleanup the function.
12436 (SYMBOLIC_CONST): Remove.
12437 (prepare_pic_move): Likewise.
12438 (prepare_move_operands): Handle complex mov cases here.
12439 (arc_legitimize_address_0): Remove call to
12440 arc_legitimize_pic_address.
12441 (arc_legitimize_address): Remove call to
12442 arc_legitimize_tls_address.
12443 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
12444 (movhi_insn): Likewise.
12446 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12448 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
12450 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
12451 format of "__intN" types for UINTMAX_TYPE.
12452 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
12453 format of "__intN" types for SIZETYPE.
12454 * tree.c (build_common_tree_nodes): Accept "__intN__"
12455 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
12456 * doc/invoke.texi: Document that __intN__ disables pedantic
12459 2019-06-25 Jan Hubicka <jh@suse.cz>
12461 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
12462 base2_alias_set is non-zero before doing TBAA based disambiguation.
12464 2019-06-25 Martin Liska <mliska@suse.cz>
12466 PR tree-optimization/90973
12467 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
12468 of prologue and epilogue.
12470 2019-06-24 Jan Hubicka <jh@suse.cz>
12472 * ipa-utils.h (type_with_linkage_p): Verify that type is
12474 (odr_type_p): Remove extra return.
12475 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
12476 hash STRING_FLAG only for arrays and integers.
12477 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
12478 Update analogously.
12479 * tree-streamer-out.c (pack_ts_type_common_value_fields):
12481 * print-tree.c (print_node): Print cxx-odr-p
12483 * tree.c (need_assembler_name_p): Also check that type
12485 (verify_type_variant): Update verification of SRING_FLAG;
12486 also check CXX_ODR_P.
12487 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
12488 (TYPE_STRING_FLAG): Use it.
12489 (TYPE_CXX_ODR_P): New macro.
12490 * dwarf2out.c (gen_array_type_die): First check that type
12491 is an array and then test string flag.
12493 2019-06-24 Richard Biener <rguenther@suse.de>
12495 PR tree-optimization/90972
12496 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
12497 in common code, dealing with STRING_CST properly.
12499 2019-06-24 Richard Biener <rguenther@suse.de>
12501 PR tree-optimization/90930
12502 PR tree-optimization/90316
12503 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
12504 decrement of limit.
12506 2019-06-24 Martin Sebor <msebor@redhat.com>
12508 * tree-pretty-print.h: Remove unnecessary punctuation characters
12510 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
12512 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
12514 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
12515 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
12516 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
12518 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
12520 * config/rs6000/darwin.h: Handle GCC target pragma.
12522 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
12524 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
12526 2019-06-22 Jeff Law <law@redhat.com>
12528 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12530 2019-06-22 Jan Hubicka <jh@suse.cz>
12532 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
12533 give up on bitfields; continue searching for different refs
12536 2019-06-21 Jakub Jelinek <jakub@redhat.com>
12538 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
12539 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
12540 containing the offset as possible simd lane access. Look through
12541 widening conversion. Move the
12542 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
12544 2019-06-21 Richard Biener <rguenther@suse.de>
12546 PR tree-optimization/90930
12547 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
12548 flag on new stmts to avoid re-processing them.
12550 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
12552 PR c++/90875 - added -Wswitch-outside-range option
12553 * doc/invoke.texi (Wswitch-outside-range): Document.
12555 2019-06-21 Jeff Law <law@redhat.com>
12557 PR tree-optimization/90949
12558 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
12559 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
12561 2019-06-21 Richard Biener <rguenther@suse.de>
12564 * dwarf2out.c (prune_unused_types_walk): Always consider
12565 function-local extern declarations as used.
12567 2019-06-21 Richard Biener <rguenther@suse.de>
12569 PR tree-optimization/90913
12570 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
12571 the scalar variant of if-conversion versioning.
12573 2019-06-21 Jakub Jelinek <jakub@redhat.com>
12575 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
12576 create another "omp scan inscan exclusive" array if
12577 !ctx->scan_inclusive.
12578 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
12579 (lower_omp_scan): Likewise.
12580 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
12581 2-bit bitfield for simd_lane_access_p member.
12582 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
12583 aux == (void *)-4 as simd lane access.
12584 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
12585 comment with permutations to show the canonical permutation order.
12586 (vectorizable_scan_store): Handle exclusive scan.
12587 (vectorizable_store): Call vectorizable_scan_store even for
12588 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
12590 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
12591 "omp simd array" arrays with one byte elements.
12593 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
12595 * config/alpha/alpha.md (@unaligned_store<mode>):
12596 Rename from unaligned_store<mode>.
12597 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
12598 * config/alpha/sync.md (@load_locked_<mode>): Rename
12599 from load_locked_<mode>.
12600 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
12601 (@atomic_compare_and_swap<mode>_1): Rename
12602 from atomic_compare_and_swap<mode>_1.
12603 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
12604 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
12605 Use gen_reload_in_aligned and gen_unaligned_store.
12606 (emit_load_locked): Remove.
12607 (emit_store_conditional): Ditto.
12608 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
12609 (alpha_split_compare_and_swap): Ditto.
12610 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
12611 (alpha_split_compare_and_swap_12): Use gen_load_locked
12612 and gen_store_conditional.
12613 (alpha_split_atomic_exchange): Ditto.
12614 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
12615 (alpha_split_atomic_exchange_12): Use gen_load_locked
12616 and gen_store_conditional.
12618 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
12620 * config/aarch64/aarch64-errata.h: New file.
12621 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
12622 (CA53_ERR_843419_SPEC): Delete.
12623 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
12624 * config/aarch64/aarch64-linux.h: Likewise.
12625 * config/aarch64/aarch64-netbsd.h: Likewise.
12626 * config/aarch64/aarch64-freebsd.h: Likewise.
12628 2019-06-20 Marek Polacek <polacek@redhat.com>
12630 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
12632 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
12634 * config/rs6000/rs6000.md (isa attribute): Add support for
12635 for a future processor.
12637 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
12640 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
12641 standard scalar operation pattern for V2DF.
12642 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
12643 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
12644 (*ieee_<ieee_maxmin><mode>3): Likewise.
12645 (vec_setv2df_0): Likewise.
12647 2019-06-20 Jan Hubicka <jh@suse.cz>
12649 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
12650 parameter; it has no use in gimple memory model.
12651 (indirect_ref_may_alias_decl_p): Update.
12653 2019-06-20 Martin Liska <mliska@suse.cz>
12655 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
12658 2019-06-20 Jakub Jelinek <jakub@redhat.com>
12660 * tree-vect-stmts.c (enum scan_store_kind): New type.
12661 (scan_store_can_perm_p): Change last argument from int * to
12662 vec<enum scan_store_kind> *, record precisely which permutations
12663 need whole vector left shift or that plus VEC_COND_EXPR.
12664 (vectorizable_scan_store): Adjust caller, use whole vector left shift
12665 and additional VEC_COND_EXPR only for those iterations that need it.
12667 2019-06-20 Alexandre Oliva <oliva@adacore.com>
12669 * config.gcc: Fix ARM --with-fpu checking and error message.
12671 2019-06-19 Marek Polacek <polacek@redhat.com>
12673 PR c++/60364 - noreturn after first decl not diagnosed.
12674 * attribs.c (get_attribute_namespace): No longer static.
12675 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
12677 (attr_noreturn_exclusions): Make it extern.
12678 * attribs.h (get_attribute_namespace): Declare.
12679 * tree-inline.c (function_attribute_inlinable_p): Use
12680 get_attribute_name.
12682 2019-06-19 Martin Sebor <msebor@redhat.com>
12684 PR tree-optimization/90626
12685 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
12687 PR tree-optimization/90626
12688 * tree-ssa-strlen.c (strxcmp_unequal): New function.
12689 (handle_builtin_string_cmp): Call it.
12691 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
12693 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
12694 and DARWIN_NOPIE_SPEC.
12695 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
12696 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
12697 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
12698 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
12699 (DARWIN_EXPORT_DYNAMIC): Delete.
12700 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
12701 and pie options processing to darwin.h.
12702 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
12704 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
12706 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
12707 in computing the number of options to be moved.
12709 2019-06-19 Maya Rashish <coypu@sdf.org>
12711 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
12712 (CLEAR_INSN_CACHE) Use it.
12714 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
12716 * config/i386/i386.md (cmpstrnsi): Remove dead code.
12718 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
12720 PR middle-end/84521
12721 * builtins.c (expand_builtin_setjmp_setup): Save
12722 hard_frame_pointer_rtx.
12723 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
12725 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
12727 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
12729 (remove_reg_equal_offset_note): Remove unused function.
12730 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
12732 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12733 (arc_builtin_setjmp_frame_value): Remove function.
12734 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12735 (avr_builtin_setjmp_frame_value): Remove function.
12736 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12737 (ix86_builtin_setjmp_frame_value): Remove function.
12738 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
12739 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12740 (sparc_builtin_setjmp_frame_value): Remove function.
12741 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
12742 (vax_builtin_setjmp_frame_value): Remove function.
12743 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
12744 pointer if has_nonlocal_label.
12746 2019-06-19 Jakub Jelinek <jakub@redhat.com>
12748 * doc/md.texi: Document vec_shl_<mode> pattern.
12749 * optabs.def (vec_shl_optab): New optab.
12750 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
12751 argument, if == vec_shl_optab, check for left whole vector shift
12752 pattern rather than right shift.
12753 (expand_vec_perm_const): Add vec_shl_optab support.
12754 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
12756 * tree-vect-generic.c (lower_vec_perm): Support permutations which
12757 can be handled by vec_shl_optab.
12758 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
12759 (check_scan_store): Use it.
12760 (vectorizable_scan_store): If target can't do normal permutations,
12761 try to use whole vector left shifts and if needed a VEC_COND_EXPR
12763 * config/i386/sse.md (vec_shl_<mode>): New expander.
12765 * omp-low.c (lower_rec_input_clauses): Handle references properly
12767 (lower_omp_scan): Likewise.
12769 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
12771 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
12772 mem_mode is BLKmode.
12774 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
12777 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
12778 pointer adjustment for the case of no callee-saved registers and
12779 stack frame bigger than 128 bytes.
12781 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
12783 PR middle-end/90862
12784 * omp-low.c (check_omp_nesting_restrictions): Handle
12785 GF_OMP_TARGET_KIND_OACC_DECLARE.
12787 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
12789 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
12790 (@add<mode>3_carry): Rename from add<mode>3_carry.
12791 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
12792 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
12793 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
12794 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
12795 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
12796 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
12797 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
12798 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
12799 (cmpstrnsi): Use gen_cmp_1.
12800 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
12801 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
12802 (@umonitor_<mode>): Rename from umonitor_<mode>.
12803 * config/i386/i386-expand.c (ix86_expand_copysign):
12804 Use gen_copysign3_const and gen_copysign3_var.
12805 (ix86_expand_xorsign): Use gen_xorsign3_1.
12806 (ix86_expand_branch): Use gen_sub3_carry_ccc,
12807 gen_sub3_carry_ccgz and gen_cmp1.
12808 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
12809 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
12810 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
12811 (ix86_split_lshr): Ditto.
12812 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
12814 2019-06-18 Jason Merrill <jason@redhat.com>
12816 * tree.c (build_constructor): Add MEM_STAT_DECL.
12818 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
12820 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
12821 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
12822 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
12823 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
12824 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
12825 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
12826 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
12827 Use CC_NZC instead of CC.
12828 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
12829 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
12830 (aarch64_print_operand): Handle E_CC_NZCmode.
12831 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
12832 of gen_set_clobber_cc.
12834 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
12836 * config/aarch64/aarch64-sve.md: Tabify file.
12838 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
12840 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
12841 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
12842 * config/aarch64/aarch64-sve.md: Use it.
12844 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
12846 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
12847 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
12848 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
12849 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
12850 (aarch64_expand_sve_vec_cmp_int): Use it.
12851 (aarch64_expand_sve_vec_cmp_float): Likewise.
12852 * config/aarch64/aarch64-sve.md: Likewise throughout.
12854 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
12855 Kugan Vivekanandarajah <kuganv@linaro.org>
12857 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
12858 (*cond_<optab><mode>_z): Fold into...
12859 (*cond_<optab><mode>_any): ...here. Also handle cases in which
12860 operand 4 can be tied to operand 0 (either inherently or via RA).
12862 2019-06-18 Richard Biener <rguenther@suse.de>
12865 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
12866 as if optimized away.
12868 2019-06-18 Tom de Vries <tdevries@suse.de>
12870 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
12871 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
12872 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
12874 (define_insn "@set_softstack_<mode>"): ... this.
12875 (define_insn "omp_simt_enter_<mode>"): Rename to ...
12876 (define_insn "@omp_simt_enter_<mode>"): ... this.
12877 (define_insn "omp_simt_exit_<mode>"): Rename to ...
12878 (define_insn "@omp_simt_exit_<mode>"): ... this.
12880 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
12882 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
12883 vf parameter. Restore the previous iv step of nscalars_step,
12884 but give it iv_type rather than compare_type. Tweak code order
12885 to match the comments.
12886 (vect_set_loop_condition_masked): Update accordingly.
12887 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
12888 for iv_precision. Tweak comment formatting.
12890 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
12892 * config/darwin.c: Strip trailing whitespace.
12894 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
12896 * config/darwin.c (darwin_emit_unwind_label): New default to false.
12897 (darwin_override_options): Set darwin_emit_unwind_label as needed.
12899 2019-06-18 Martin Jambor <mjambor@suse.cz>
12902 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
12903 caller does not have flag_ipa_cp set.
12905 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
12907 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
12908 from "*fold_left_plus_<mode>", updated operands order.
12909 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
12910 * internal-fn.c (mask_fold_left_direct): New define.
12911 (expand_mask_fold_left_optab_fn): Likewise.
12912 (direct_mask_fold_left_optab_supported_p): Likewise.
12913 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
12914 * optabs.def (mask_fold_left_plus_optab): New optab.
12915 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
12916 masked internal_fn for a reduction ifn.
12917 (vectorize_fold_left_reduction): Add support for masking reductions.
12919 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
12921 PR middle-end/80791
12922 * target.def (predict_doloop_p): New hook.
12923 * targhooks.h (default_predict_doloop_p): New declaration.
12924 * targhooks.c (default_predict_doloop_p): New function.
12925 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
12926 * doc/tm.texi: Regenerate.
12927 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
12928 (TARGET_PREDICT_DOLOOP_P): New macro.
12929 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
12931 2019-06-17 Jakub Jelinek <jakub@redhat.com>
12933 * omp-low.c (struct omp_context): Add scan_inclusive field.
12934 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
12936 (struct omplow_simd_context): Add lastlane member.
12937 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
12938 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
12940 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
12941 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
12942 (lower_omp_scan): New function.
12943 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
12944 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
12945 check 3rd argument if present rather than 2nd.
12946 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
12947 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
12949 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12950 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
12952 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
12953 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
12954 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
12956 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
12957 IFN_GOMP_SIMD_LANE argument.
12958 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
12959 encoded ->aux value.
12960 * tree-vect-stmts.c: Include attribs.h.
12961 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
12962 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
12964 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
12965 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
12967 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
12970 * config/i386/i386.md (*nabstf2_1): New insn pattern.
12971 (*nabs<mode>2_1): Ditto.
12972 (nabs sse-reg splitter): New splitter.
12973 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
12975 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
12977 PR bootstrap/90873.
12978 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
12981 2019-06-17 Tom de Vries <tdevries@suse.de>
12983 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
12984 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
12985 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
12987 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
12989 (define_insn "omp_simt_enter_insn"): Rename to ...
12990 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
12991 match_operand 0, 1 and 2, as well as the unspec_volatile result.
12992 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
12993 gen_omp_simt_enter_si.
12994 (define_expand "omp_simt_exit"): New.
12995 (define_insn "omp_simt_exit"): Rename to ...
12996 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
12999 2019-06-17 Matthew Green <mrg@eterna.com.au>
13000 Maya Rashish <coypu@sdf.org>
13002 * config.gcc (aarch64*-*-netbsd*): New target.
13003 * config/aarch64/aarch64-netbsd.h: New file.
13004 * config/aarch64/t-aarch64-netbsd: Likewise.
13006 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13008 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
13009 the access path from base to first VIEW_CONVERT_EXPR or
13012 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
13014 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
13015 access path on BIT_FIELD_REFs.
13017 2019-06-17 Martin Liska <mliska@suse.cz>
13020 * ipa-utils.h (odr_type_p): Remove dead code.
13022 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13024 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
13025 alternative Solaris 11.4 format.
13026 * configure: Regenerate.
13028 2019-06-17 Tom de Vries <tdevries@suse.de>
13030 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
13031 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
13033 (define_insn "call_value_insn"): Rename to ...
13034 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
13036 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
13039 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
13041 PR middle-end/64242
13042 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
13043 frame clobbers and schedule block.
13044 (builtin_longjmp): Likewise.
13046 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13048 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
13049 describe how to perform MSPABI compliant 64-bit shift.
13050 * config/msp430/msp430.md (ashldi3): New define_expand.
13051 (ashrdi3): New define_expand.
13052 (lshrdi3): New define_expand.
13054 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13056 * doc/sourcebuild.texi: Document new effective target keyword
13059 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
13061 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
13062 indirect_refs_may_alias_p): Revert accidental commits.
13064 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
13065 at the end of structures.
13067 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
13069 * config/darwin.c (machopic_indirect_call_target): Use renamed
13070 darwin_picsymbol_stubs to decide on output.
13071 (darwin_override_options): Handle darwin_picsymbol_stubs.
13072 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
13073 (LD64_VERSION): Revise default.
13074 * config/darwin.opt: (mpic-symbol-stubs): New option.
13075 (darwin_picsymbol_stubs): New variable.
13076 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
13077 rename to TARGET_MACHO_PICSYM_STUBS.
13078 * config/i386/i386.c (output_pic_addr_const): Likewise.
13079 * config/i386/i386.h Likewise.
13080 * config/rs6000/darwin.h: Likewise.
13081 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
13082 darwin_picsymbol_stubs.
13084 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
13086 * config/darwin.opt (prebind, noprebind, seglinkedit,
13087 noseglinkedit): Add RejectNegative.
13089 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
13091 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
13092 in my previous patch.
13094 2019-06-16 Tom de Vries <tdevries@suse.de>
13096 PR tree-optimization/89376
13097 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
13099 2019-06-15 Maya Rashish <coypu@sdf.org>
13101 * doc/invoke.texi (Spec Files): Update location of the
13104 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
13106 * doc/extend.texi (Common Function Attributes): Clarify
13107 no_sanitize. Fix grammar.
13109 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
13111 * tree-ssa-alias.c (alias_stats): Add
13112 nonoverlapping_component_refs_p_may_alias,
13113 nonoverlapping_component_refs_p_no_alias,
13114 nonoverlapping_component_refs_of_decl_p_may_alias,
13115 nonoverlapping_component_refs_of_decl_p_no_alias.
13116 (dump_alias_stats): Dump them.
13117 (nonoverlapping_component_refs_of_decl_p): Add stats.
13118 (nonoverlapping_component_refs_p): Add stats; do not stop on first
13121 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
13123 * config/i386/i386.md (and<mode>3): Generate zero-extends for
13124 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
13126 (*anddi3_doubleword): Split before reload. Merge with
13127 anddi->zext pre-reload splitter.
13128 (*andndi3_doubleword): Split before reload.
13129 (*<code>di3_doubleword): Ditto.
13130 (*one_cmpldi2_doubleword): Ditto.
13132 2019-06-15 Jakub Jelinek <jakub@redhat.com>
13134 PR middle-end/90779
13135 * gimplify.c: Include omp-offload.h and context.h.
13136 (gimplify_bind_expr): Add "omp declare target" attributes
13137 to static block scope variables inside of target region or target
13140 2019-06-15 Tom de Vries <tdevries@suse.de>
13142 PR tree-optimization/90009
13143 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
13144 Return NULL if bb contains IFN_UNIQUE.
13146 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
13148 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
13149 (un): New define_mode_attr.
13150 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
13151 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
13152 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
13154 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
13156 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
13158 * config/darwin.opt: Add RejectNegative where needed, reorder
13159 and add minimal functional descriptions.
13161 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
13163 PR rtl-optimization/90765
13164 * calls.c (update_stack_alignment_for_call): New function.
13165 (expand_call): Call update_stack_alignment_for_call when
13166 outgoing parameter is passed in the stack.
13167 (emit_library_call_value_1): Likewise.
13168 * function.c (locate_and_pad_parm): Don't update
13169 stack_alignment_needed and preferred_stack_boundary.
13171 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
13174 * config/i386/i386-features.c
13175 (dimode_scalar_chain::compute_convert_gain): Replace
13176 mmxsse_to_integer with sse_to_integer.
13177 * config/i386/i386.c (ix86_register_move_cost): Verify that
13178 moves between MMX and non-MMX units require secondary memory.
13179 Correct costs of moves between SSE and integer units.
13180 * config/i386/i386.h (processor_costs): Rename cost of moving
13181 SSE register to integer to sse_to_integer. Rename cost of
13183 2019-06-14 Matt Thomas <matt@3am-software.com>
13184 Matthew Green <mrg@eterna.com.au>
13185 Nick Hudson <skrll@netbsd.org>
13186 Maya Rashish <coypu@sdf.org>
13187 Richard Earnshaw <rearnsha@arm.com>
13189 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
13190 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
13191 * config/arm/netbsd-eabi.h: New file.
13192 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
13194 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
13195 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
13196 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
13197 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
13199 2019-06-14 Richard Biener <rguenther@suse.de>
13201 * tree-loop-distribution.c (classify_partition): Return
13202 whether a reduction appeared in all partitions and do not
13203 stop builtin detection because of this.
13204 (distribute_loop): Sort a non-builtin partition last if
13205 there's a reduction in all partitions and make sure the
13206 partition prevailing as last is not a builtin.
13208 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
13211 * ipa-prop.c (add_to_agg_contents_list): New function.
13212 (clobber_by_agg_contents_list_p): Likewise.
13213 (extract_mem_content): Likewise.
13214 (get_place_in_agg_contents_list): Delete.
13215 (determine_known_aggregate_parts): Renamed from
13216 determine_locally_known_aggregate_parts. New parameter
13219 2019-06-13 Martin Sebor <msebor@redhat.com>
13221 PR tree-optimization/90662
13222 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
13225 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
13228 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
13229 dbase is not TARGET_MEM_REF.
13231 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
13233 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
13235 (and<mode>3): Use gen_extend_insn instead of indirect functions.
13236 Do not generate DImode extends for 32bit targets.
13237 (and->zext post-reload splitter): Use gen_extend_insn
13238 instead of indirect functions.
13239 (anddi->zext pre-reload splitter): New.
13240 (*zext<mode>_doubleword_and): Remove.
13241 (*zext<mode>_doubleword): Ditto.
13242 (*zextsi_doubleword): Dittto.
13244 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
13246 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
13247 Use gen_sub3_insn instead of indirect function.
13248 (ix86_expand_ashl_const): Use gen_add2_insn instead of
13250 (ix86_adjust_counter): Ditto.
13252 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
13253 Lijia He <helijia@linux.ibm.com>
13255 PR tree-optimization/77820
13256 * tree-ssa-threadedge.c
13257 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
13259 (thread_across_edge): Add call to
13260 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
13262 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
13264 * config/darwin-driver.c (validate_macosx_version_min): New.
13265 (darwin_default_min_version): Cleanup and validate supplied version.
13266 (darwin_driver_init): Likewise and push cleaned version into opts.
13268 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
13270 PR tree-optimization/90869
13271 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
13272 converts in MEM_REF referencing decl rather than view converts
13273 from decl type to MEM_REF type.
13275 2019-06-13 Richard Biener <rguenther@suse.de>
13277 PR tree-optimization/90856
13278 * tree-sra.c (build_ref_for_model): Only use
13279 build_reconstructed_reference when address-spaces are the same.
13281 2019-06-13 Jakub Jelinek <jakub@redhat.com>
13283 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
13284 wrap ei variable name in the declaration in ()s.
13285 (nvptx_single): Actually use mode_label variable. Formatting fix.
13287 2019-06-13 Richard Biener <rguenther@suse.de>
13289 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
13290 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
13291 also return the condition stmt.
13292 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
13293 loop we can version and version that, reusing the loop version
13294 created by if-conversion instead of versioning again.
13296 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
13298 * gimple-loop-versioning.cc (prune_loop_conditions): Use
13300 * tree-vrp (value_range_base::may_contain_p): Call into
13301 value_inside_range.
13302 (value_inside_range): Make private inside value_range_base class.
13303 Take min/max from *this.
13304 (range_includes_p): Remove.
13305 * tree-vrp.h (value_range_base): Add value_inside_range.
13306 (range_includes_p): Remove.
13307 (range_includes_zero_p): Call may_contain_p.
13308 * vr-values.c (compare_range_with_value): Same.
13310 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
13312 * doc/extend.texi (ARC Function Attributes): Update info.
13314 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
13316 PR tree-optimization/89713
13317 * doc/invoke.texi (-ffinite-loops): Document new option.
13318 * common.opt (-ffinite-loops): New option.
13319 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
13320 IFN_GOACC_LOOP calls as necessary.
13321 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
13323 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
13324 IFN_GOACC_LOOP call is not used.
13325 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
13327 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13330 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
13331 compare_type is not with Pmode size, we will create an IV with
13332 Pmode size with truncated use (i.e. converted to the correct type).
13333 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
13334 (vect_iv_limit_for_full_masking): New. Factored out of
13335 vect_set_loop_condition_masked.
13336 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
13337 (vect_iv_limit_for_full_masking): Declare.
13339 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13342 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
13343 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
13344 (get_alias_ptr_type_for_ptr_address): Likewise.
13345 (add_iv_candidate_for_use): Add scaled index candidate if useful.
13346 * tree-ssa-address.c (preferred_mem_scale_factor): New.
13347 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
13350 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13352 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
13354 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
13356 * common/config/pru/pru-common.c: New file.
13357 * config.gcc: Add PRU target.
13358 * config/pru/alu-zext.md: New file.
13359 * config/pru/constraints.md: New file.
13360 * config/pru/predicates.md: New file.
13361 * config/pru/pru-opts.h: New file.
13362 * config/pru/pru-passes.c: New file.
13363 * config/pru/pru-pragma.c: New file.
13364 * config/pru/pru-protos.h: New file.
13365 * config/pru/pru.c: New file.
13366 * config/pru/pru.h: New file.
13367 * config/pru/pru.md: New file.
13368 * config/pru/pru.opt: New file.
13369 * config/pru/t-pru: New file.
13370 * doc/extend.texi: Document PRU pragmas.
13371 * doc/invoke.texi: Document PRU-specific options.
13372 * doc/md.texi: Document PRU asm constraints.
13374 2019-06-12 Martin Sebor <msebor@redhat.com>
13376 PR middle-end/90676
13377 * tree-pretty-print.c (dump_mem_ref): New function. Include
13378 MEM_REF type in output when different size than operand.
13379 (dump_generic_node): Move code to dump_mem_ref and call it.
13381 2019-06-12 Martin Sebor <msebor@redhat.com>
13383 PR tree-optimization/90662
13384 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
13387 2019-06-12 Tom de Vries <tdevries@suse.de>
13389 PR tree-optimization/90009
13390 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
13392 2019-06-12 Martin Liska <mliska@suse.cz>
13394 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
13396 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
13397 * mem-stats.h (mem_alloc_description::mem_alloc_description):
13398 Do not sanitize created maps.
13400 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
13402 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
13403 value_range::singleton_p.
13404 * tree-vrp.c (value_range_constant_singleton): Remove.
13405 * tree-vrp.h (value_range_constant_singleton): Remove.
13406 * vr-values.c (vr_values::singleton): Use
13407 value_range::singleton_p.
13409 2019-06-12 Jakub Jelinek <jakub@redhat.com>
13412 * cfgexpand.c (align_local_variable): Add really_expand argument,
13413 don't SET_DECL_ALIGN if it is false.
13414 (add_stack_var): Add really_expand argument, pass it through to
13415 align_local_variable.
13416 (expand_one_stack_var_1): Pass true as really_expand to
13417 align_local_variable.
13418 (expand_one_ssa_partition): Pass true as really_expand to
13420 (expand_one_var): Pass really_expand through to add_stack_var.
13422 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13424 * config/arm/iterators.md (VABAL): New int iterator.
13425 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
13426 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
13427 UNSPEC_VABAL_U values.
13429 2019-06-12 Martin Liska <mliska@suse.cz>
13431 * value-prof.c (stream_out_histogram_value): Only first value
13434 2019-06-12 Jakub Jelinek <jakub@redhat.com>
13437 * symtab.c (symtab_node::set_section): Allow being called on aliases
13438 as long as they aren't analyzed yet.
13440 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
13442 * config/mips/mips.c (mips_final_postscan_insn): Modify call
13443 to `mips_set_text_contents_type' to indicate whether a
13444 non-debug insn follows.
13446 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
13448 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
13449 enabling -mpcrel by default.
13450 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
13451 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
13452 that the test against -mcpu=future is done first. Then test if
13453 -mprefixed-addr is on for -mpcrel.
13454 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
13456 2019-06-11 Jakub Jelinek <jakub@redhat.com>
13459 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
13460 instead of and.u%d.
13462 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
13464 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
13466 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
13468 PR c++/90449 - add -Winaccessible-base option.
13469 * doc/invoke.texi (Winaccessible-base): Document.
13471 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
13473 PR tree-optimization/62041
13474 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
13476 2019-06-11 Jason Merrill <jason@redhat.com>
13478 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
13479 * tree.c (get_tree_code_name): Likewise.
13480 * print-tree.c (print_node): Only briefly print a node with an
13483 2019-06-11 Jakub Jelinek <jakub@redhat.com>
13486 * trans-mem.c (tm_memopt_compute_available): Add assertion
13487 that blocks is not empty. Formatting fix.
13489 2019-06-11 Martin Liska <mliska@suse.cz>
13492 * hash-table.h: Extend create_gcc, add one parameter
13493 that is passed into hash_table::hash_table.
13495 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
13497 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
13499 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
13500 Emit clobber also for non-sse operations.
13501 (ix86_split_fp_absneg_operator): New function.
13502 * config/i386/i386.md (SSEMODEF): New mode iterator.
13503 (ssevecmodef): New mode attribute.
13504 (<code>tf2): Use absneg code iterator.
13505 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
13506 Add three-operand AVX alternatives.
13507 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
13508 Use absneg code iterator and X87MODEF mode iterator.
13509 (absneg fp_reg non-sse splitter): Call absneg code iterator
13510 and X87MODEF mode iterator.
13511 (absneg general_reg non-sse splitter): Use absneg code iterator
13512 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
13513 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
13514 code iterator. Add three-operand AVX alternative.
13515 (absneg sse_reg splitter): Use absneg code iterator
13516 and SSEMODEF mode iterator. Handle AVX operands.
13517 (absneg fp_reg splitter): Use absneg code iterator
13518 and MODEF mode iterator.
13519 (absneg general_reg splitter): Merge splitters using MODEF mode
13520 iterator. Use absneg code iterator. Call
13521 ix86_split_fp_absneg_operator.
13522 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
13523 Do not enable for non-sse modes before reload.
13524 (CSGNMODE): Remove.
13525 (CSGNVMODE): Ditto.
13526 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
13527 ssevecmodef mode attribute instaed of CSGNVMODE.
13528 (copysign<mode>3_const): Ditto.
13529 (copysign<mode>3_var): Ditto.
13530 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
13531 Use absneg code iterator. Simplify code using std::swap.
13532 * config/i386/predicates.md (absneg_operator): Remove.
13534 2019-06-10 Martin Sebor <msebor@redhat.com>
13536 * gimple-fold.c (get_range_strlen): Update comment that didn't
13537 make it into r267503 or related commits.
13539 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
13541 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
13542 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
13544 2019-06-10 Jakub Jelinek <jakub@redhat.com>
13546 * tree.def (OMP_SCAN): New tree code.
13547 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
13548 OMP_CLAUSE_EXCLUSIVE.
13549 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
13550 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
13551 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
13552 OMP_CLAUSE_{IN,EX}CLUSIVE.
13553 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
13554 * tree-nested.c (convert_nonlocal_reference_stmt,
13555 convert_local_reference_stmt, convert_gimple_call): Handle
13557 * tree-pretty-print.c (dump_omp_clause): Handle
13558 OMP_CLAUSE_{IN,EX}CLUSIVE.
13559 (dump_generic_node): Handle OMP_SCAN.
13560 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
13561 * gimple.h (gomp_scan): New type.
13562 (is_a_helper <gomp_scan *>::test,
13563 is_a_helper <const gomp_scan *>::test): New templates.
13564 (gimple_build_omp_scan): Declare.
13565 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
13566 gimple_omp_scan_set_clauses): New inline functions.
13567 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
13568 * gimple.c (gimple_build_omp_scan): New function.
13569 (gimple_copy): Handle GIMPLE_OMP_SCAN.
13570 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
13571 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
13572 GIMPLE_OMP_TASKGROUP.
13573 (dump_gimple_omp_scan): New function.
13574 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
13575 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
13576 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
13577 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
13578 (is_gimple_stmt): Handle OMP_SCAN.
13579 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
13580 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
13581 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
13582 mentioned in nested #pragma omp scan. Handle
13583 OMP_CLAUSE_{IN,EX}CLUSIVE.
13584 (gimplify_expr): Handle OMP_SCAN.
13585 * omp-low.c (check_omp_nesting_restrictions): For parent context,
13586 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
13588 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
13591 2019-06-10 Martin Liska <mliska@suse.cz>
13593 * ipa-cp.c (ignore_edge_p): New function.
13594 (build_toporder_info): Use it.
13595 * ipa-inline.c (ignore_edge_p): New function.
13596 (inline_small_functions): Use it.
13597 * ipa-pure-const.c (ignore_edge_for_nothrow):
13598 Verify opt_for_fn for caller and callee.
13599 (ignore_edge_for_pure_const): Likewise.
13600 * ipa-reference.c (ignore_edge_p): Extend to check
13602 * ipa-utils.c (searchc): Refactor.
13603 * ipa-utils.h: Fix coding style.
13605 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
13607 * config/arc/arc.c (arc_rtx_costs): Update costs.
13609 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
13611 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
13612 (arc_split_ior): Likewise.
13613 (arc_check_mov_const): Likewise.
13614 (arc_split_mov_const): Likewise.
13615 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
13616 (arc_rtx_costs): Replace check Crr with Cax constraint.
13617 (prepare_move_operands): Cleanup, remove unused code.
13618 (arc_split_ior): New function.
13619 (arc_check_ior_const): Likewise.
13620 (arc_split_mov_const): Likewise.
13621 (arc_check_mov_const): Likewise.
13622 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
13623 in define_insn_and_split pattern.
13624 (iorsi3): Likewise.
13625 (mulsi3_v2): Add new matching variant.
13626 (andsi3_i): Cleanup pattern.
13627 (rotrsi3_cnt1): Update pattern.
13628 (rotrsi3_cnt8): New pattern.
13629 (ashlsi2_cnt8): Likewise.
13630 (ashlsi2_cnt16): Likewise.
13631 * config/arc/constraints.md (C0p): Update constraint.
13633 (C0x): New pattern.
13634 (Cax): New pattern.
13636 2019-06-10 Martin Liska <mliska@suse.cz>
13638 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
13639 Update coding style.
13640 (sem_item_optimizer::dump_cong_classes):
13641 Print how many items are in a non-singular class. Improve
13644 2019-06-10 Martin Liska <mliska@suse.cz>
13646 * value-prof.c (dump_histogram_value): Change dump format.
13647 (gimple_mod_subtract_transform): Remove legacy comment.
13649 2019-06-10 Martin Liska <mliska@suse.cz>
13651 * value-prof.c (dump_histogram_value): Print histogram values
13654 2019-06-10 Martin Liska <mliska@suse.cz>
13656 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
13657 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
13658 * ipa-profile.c (ipa_profile_generate_summary):
13659 Use get_most_common_single_value.
13660 * tree-profile.c (gimple_init_gcov_profiler):
13661 Instrument with __gcov_one_value_profiler_v2
13662 and __gcov_indirect_call_profiler_v4.
13663 * value-prof.c (dump_histogram_value):
13664 Print all values for HIST_TYPE_SINGLE_VALUE.
13665 (stream_out_histogram_value): Update assert for
13667 (stream_in_histogram_value): Set number of
13668 counters for HIST_TYPE_SINGLE_VALUE.
13669 (get_most_common_single_value): New.
13670 (gimple_divmod_fixed_value_transform):
13671 Use get_most_common_single_value.
13672 (gimple_ic_transform): Likewise.
13673 (gimple_stringops_transform): Likewise.
13674 (gimple_find_values_to_profile): Set number
13675 of counters for HIST_TYPE_SINGLE_VALUE.
13676 * value-prof.h (get_most_common_single_value): New.
13678 2019-06-10 Martin Liska <mliska@suse.cz>
13680 * hash-map.h: Pass default value to hash_table ctor.
13681 * hash-table.h: Add default value to call of a ctor.
13683 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
13685 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
13686 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
13688 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
13691 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
13692 Call pa_output_function_label.
13693 (TARGET_ASM_FUNCTION_PROLOGUE): define.
13694 * config/pa/pa-protos.h (pa_output_function_label): Declare.
13695 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
13697 (pa_linux_output_function_prologue): Declare.
13698 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
13699 (pa_output_function_label): New.
13700 (pa_output_function_prologue): Revise to use pa_output_function_label.
13701 (pa_linux_output_function_prologue): New.
13702 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
13704 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
13706 * tree-vrp.h (value_range_base::intersect): New.
13707 (value_range::intersect_helper): Move from here...
13708 (value_range_base::intersect_helper): ...to here.
13709 * tree-vrp.c (value_range::intersect_helper): Rename to...
13710 (value_range_base::intersect_helper): ...this, and rewrite to
13711 return a value instead of modifying THIS in place.
13712 Also, move equivalence handling...
13713 (value_range::intersect): ...here, while calling intersect_helper.
13714 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
13716 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
13718 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
13720 2019-06-07 Jakub Jelinek <jakub@redhat.com>
13722 * Makefile.in (genprogerr): Add condmd.
13723 (genprog): Remove it here.
13725 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
13727 * doc/invoke.texi (AMD GCN Options): Add gfx906.
13729 2019-06-07 Richard Biener <rguenther@suse.de>
13732 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
13733 that appear after user labels.
13735 2019-06-07 Martin Liska <mliska@suse.cz>
13737 * cselib.c (cselib_init): Disable hash table
13739 * hash-set.h: Pass new default argument to m_table.
13740 * hash-table.c: Add global variable with hash table
13741 sanitization limit.
13742 * hash-table.h (Allocator>::hash_table): Add new argument
13744 (hashtab_chk_error): New.
13745 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
13746 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
13747 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
13749 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
13751 * common.opt (flto-odr-type-merging): Ignore.
13752 * invoke.texi (-flto-odr-type-merging): Remove.
13753 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
13754 (can_be_vtable_hashed_p): Remove.
13755 (hash_odr_vtable): Remove.
13756 (odr_vtable_hasher::hash): Remove.
13757 (types_same_for_odr): Remove.
13758 (types_odr_comparable): Remove.
13759 (odr_vtable_hasher::equal): Remove.
13760 (odr_vtable_hash_type, odr_vtable_hash): Remove.
13761 (add_type_duplicate): Do not synchronize vtable and name hashtables.
13762 (get_odr_type): Do not use vtable hash.
13763 (dump_odr_type): Remove commented out code.
13764 (build_type_inheritance_graph): Do not allocate vtable hash.
13765 (rebuild_type_inheritance_graph): Do not delete vtable hash.
13766 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
13767 (odr_type_p): Likewise.
13768 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
13771 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
13773 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
13774 immediately after same_types_for_tbaa_p returns -1 and continue
13775 looking for possible exact match; if matching types are arrays
13776 watch for partial overlaps.
13777 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
13778 (indirect_refs_may_alias_p): Do type based disambiguation first;
13781 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
13783 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
13785 2019-06-07 Martin Liska <mliska@suse.cz>
13787 * doc/invoke.texi: Remove param.
13788 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
13790 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
13791 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
13792 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
13793 * profile.c (instrument_values): Remove
13794 HIST_TYPE_INDIR_CALL_TOPN.
13795 * tree-profile.c (init_ic_make_global_vars):
13796 Always build __gcov_indirect_call only.
13797 (gimple_init_gcov_profiler): Remove usage
13798 of PARAM_INDIR_CALL_TOPN_PROFILE.
13799 (gimple_gen_ic_profiler): Likewise.
13800 * value-prof.c (dump_histogram_value): Likewise.
13801 (stream_in_histogram_value): Likewise.
13802 (gimple_indirect_call_to_profile): Likewise.
13803 (gimple_find_values_to_profile): Likewise.
13804 * value-prof.h (enum hist_type): Likewise.
13806 2019-06-07 Martin Liska <mliska@suse.cz>
13808 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
13811 2019-06-07 Martin Liska <mliska@suse.cz>
13813 PR tree-optimization/78902
13814 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
13815 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
13816 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
13817 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
13818 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
13819 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
13820 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
13821 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
13822 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
13823 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
13824 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
13825 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
13826 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
13828 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
13829 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
13830 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
13831 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
13832 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
13833 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
13834 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
13835 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
13836 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
13837 warn_unused_result attribute.
13838 (BUILT_IN_STRDUP): Likewise.
13839 (BUILT_IN_STRNDUP): Likewise.
13840 (BUILT_IN_ALLOCA): Likewise.
13841 (BUILT_IN_CALLOC): Likewise.
13842 (BUILT_IN_MALLOC): Likewise.
13843 (BUILT_IN_REALLOC): Likewise.
13845 2019-06-06 Jim Wilson <jimw@sifive.com>
13848 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
13849 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
13850 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
13852 2019-06-06 Martin Sebor <msebor@redhat.com>
13854 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
13855 (handle_builtin_malloc): Remove trailing spaces.
13856 (handle_builtin_memset): Same.
13857 (handle_builtin_memcmp): Same.
13858 (compute_string_length): Same.
13859 (determine_min_objsize): Same.
13860 (handle_builtin_string_cmp): Same.
13861 (handle_char_store): Same. Break up excessively long line.
13863 2019-06-06 Martin Jambor <mjambor@suse.cz>
13865 * tree-sra.c (build_reconstructed_reference): Drop the alignment
13868 2019-06-06 Martin Jambor <mjambor@suse.cz>
13870 * tree-sra.c (struct access): New field grp_same_access_path.
13871 (dump_access): Dump it.
13872 (build_reconstructed_reference): New function.
13873 (build_ref_for_model): Use it if possible.
13874 (path_comparable_for_same_access): New function.
13875 (same_access_path_p): Likewise.
13876 (sort_and_splice_var_accesses): Set the new flag.
13877 (analyze_access_subtree): Likewise.
13878 (propagate_subaccesses_across_link): Propagate zero value of the new
13879 flag down the access tree.
13881 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
13883 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
13884 * config/gcn/gcn.opt (gpu_type): Add gfx906.
13885 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
13886 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
13889 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13891 PR tree-optimization/90332
13892 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
13893 Handle VALS containing two vectors.
13894 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
13896 (@aarch64_combinez<mode>): ... This.
13897 (*aarch64_combinez_be<mode>): Rename to...
13898 (@aarch64_combinez_be<mode>): ... This.
13899 (vec_init<mode><Vhalf>): New define_expand.
13900 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
13902 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13904 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
13905 library functions only when not optimizing for size.
13906 (ashlsi3): Likewise.
13907 (ashrhi3): Likewise.
13908 (ashrsi3): Likewise.
13909 (lshrhi3): Likewise.
13910 (lshrsi3): Likewise.
13912 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
13914 PR rtl-optimization/88751
13915 * ira.c (ira): Use the number of the actually referenced registers
13916 when calculating the threshold.
13918 2019-06-06 Jakub Jelinek <jakub@redhat.com>
13920 * configure: Regenerate.
13922 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13924 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
13925 register if it is in memory, so the shift can be emulated with a rotate
13927 (ashrhi3): Likewise.
13928 (lshrhi3): Likewise.
13930 2019-06-06 Martin Liska <mliska@suse.cz>
13932 PR tree-optimization/87954
13933 * match.pd: Simplify mult where both arguments are 0 or 1.
13935 2019-06-06 Richard Biener <rguenther@suse.de>
13937 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
13938 put equivalences on UNDEFINED ranges.
13939 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
13940 Make sure to drop defs of stmts added during simplification
13943 2019-06-06 Richard Biener <rguenther@suse.de>
13945 * tree-ssa-structalias.c: Include tree-cfg.h.
13946 (make_heapvar): Do not make heap vars artificial.
13947 (find_func_aliases_for_builtin_call): Handle stack allocation
13949 (find_func_aliases): Delay processing of simple enough returns
13951 (set_uids_in_ptset): Adjust.
13952 (find_what_var_points_to): Likewise.
13953 (solve_constraints): Do not dump points-to sets here.
13954 (compute_points_to_sets): Post-process return statements,
13955 amending the escaped solution. Dump points-to sets afterwards.
13956 (ipa_pta_execute): Dump points-to sets.
13958 2019-06-06 Martin Liska <mliska@suse.cz>
13961 * doc/install.texi: Fix HTML headers and
13962 titles for 'Installing GCC' pages.
13964 2019-06-06 Martin Liska <mliska@suse.cz>
13966 * ipa-icf-gimple.h (dump_message_1): Remove.
13967 (dump_message): Likewise.
13968 (return_false_with_message_1): Print also file.
13969 (return_false_with_msg): Likewise.
13970 (return_with_result): Likewise.
13971 (return_with_debug): Likewise.
13972 * ipa-icf.c (sem_function::equals_private): Remove call
13975 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
13977 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
13978 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
13979 memory operand for it.
13980 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
13982 2019-06-05 Martin Sebor <msebor@redhat.com>
13984 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
13985 Adjust quoting and hyphenation.
13986 * convert.c (convert_to_real_1): Same.
13987 * gcc.c (driver_wrong_lang_callback): Same.
13988 (driver::handle_unrecognized_options): Same.
13989 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
13990 * opts-common.c (cmdline_handle_error): Same.
13991 (read_cmdline_option): Same.
13992 * opts-global.c (complain_wrong_lang): Same.
13993 (print_ignored_options): Same.
13994 (handle_common_deferred_options): Same.
13995 * pretty-print.h: Same.
13996 * print-rtl.c (debug_bb_n_slim): Same.
13997 * sched-rgn.c (make_pass_sched_fusion): Same.
13998 * tree-cfg.c (verify_gimple_assign_unary): Same.
13999 (verify_gimple_label): Same.
14000 * tree-ssa-operands.c (verify_ssa_operands): Same.
14001 * varasm.c (do_assemble_alias): Same.
14002 (assemble_alias): Same.
14004 2019-06-05 Richard Henderson <rth@twiddle.net>
14006 * config/alpha/alpha.c (direct_return): Move down after
14007 struct machine_function definition; use saved frame_size;
14009 (struct machine_function): Add sa_mask, sa_size, frame_size.
14010 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
14011 (alpha_compute_frame_layout): ... new function.
14012 (TARGET_COMPUTE_FRAME_LAYOUT): New.
14013 (alpha_initial_elimination_offset): Use saved sa_size.
14014 (alpha_vms_initial_elimination_offset): Likewise.
14015 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
14016 (alpha_expand_prologue): Use saved frame data. Merge integer
14017 and fp register save loops.
14018 (alpha_expand_epilogue): Likewise.
14019 (alpha_start_function): Use saved frame data.
14020 * config/alpha/alpha-protos.h (direct_return): Update.
14021 (alpha_sa_size): Remove.
14023 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
14025 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
14026 multiplication by a power-of-two value.
14027 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
14028 and turn the modulo operation into a masking operation.
14030 2019-06-05 Jakub Jelinek <jakub@redhat.com>
14033 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
14034 with VOIDmode inner operands.
14036 2019-06-05 Richard Biener <rguenther@suse.de>
14038 PR middle-end/90726
14039 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14040 turn an expression graph into a tree.
14042 2019-06-05 Jakub Jelinek <jakub@redhat.com>
14044 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
14046 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
14047 treat it like explicit monotonic schedule modifier.
14048 (expand_omp_for): Initialize has_lastprivate_conditional.
14049 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
14052 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
14053 references, lookup in in hash map MEM_REF operand instead of the
14055 (lower_omp_1): When looking for lastprivate conditional assignments,
14056 handle MEM_REFs with REFERENCE_TYPE operands.
14058 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
14059 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
14060 and references a VLA. Handle references to non-VLAs if is_simd
14061 all privatization clauses like reductions.
14062 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
14063 If omp_is_reference, use always omp simd arrays and set
14064 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
14065 fails, emit reference initialization.
14067 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
14070 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
14071 _mm_mask_fpclass_sd_mask): New intrinsics.
14072 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
14073 * config/i386/i386-builtin.def
14074 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
14076 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
14077 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
14078 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
14079 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
14080 case QI_FTYPE_V2SF_INT): Ditto.
14081 * config/i386/sse.md
14082 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
14083 Extended to insnstructions with mask operands.
14085 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14087 * config/rs6000/constraints.md (define_register_constraint "wp"):
14089 (define_register_constraint "wq"): Delete.
14090 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14091 (rs6000_init_hard_regno_mode_ok): Adjust.
14092 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14093 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
14094 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
14095 (define_mode_attr VSa): Delete.
14096 (define_mode_attr VSisa): New.
14097 (rest of file): Adjust.
14098 * doc/md.texi (Machine Constraints): Adjust.
14100 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14102 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
14103 (define_attr "enabled"): Handle those new isa values.
14105 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14107 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
14108 (define_mode_attr VSr5): Delete.
14109 (define_mode_attr VStype_sqrt): Delete.
14110 (define_mode_iterator VSX_SPDP): Delete.
14111 (define_mode_attr VS_spdp_res): Delete.
14112 (define_mode_attr VS_spdp_insn): Delete.
14113 (define_mode_attr VS_spdp_type): Delete.
14114 (*vsx_sqrt<mode>2): Adjust.
14115 (vsx_<VS_spdp_insn>): Delete, split to...
14116 (vsx_xscvdpsp): ... this. New. And...
14117 (vsx_xvcvspdp): ... this. New. And...
14118 (vsx_xvcvdpsp): ... this. New.
14120 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14122 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
14124 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
14125 (rest of file): Adjust.
14127 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14129 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
14130 (vsx_extract_<mode>_var): Ditto.
14132 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14134 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
14137 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14139 * config/rs6000/constraints.md (define_register_constraint "ww"):
14141 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14142 (rs6000_init_hard_regno_mode_ok): Adjust.
14143 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14144 RS6000_CONSTRAINT_ww.
14145 * config/rs6000/rs6000.md: Adjust.
14146 * config/rs6000/vsx.md: Adjust.
14147 * doc/md.texi (Machine Constraints): Adjust.
14149 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14151 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
14152 (define_mode_attr sd): New.
14153 (define_mode_attr s): New.
14154 (define_mode_attr Ftrad): Delete.
14155 (define_mode_attr Fvsx): Delete.
14156 (define_mode_attr Fs): Delete.
14157 (rest of file): Use the new mode attributes.
14158 * config.rs6000/vsx.md: Use the new mode attributes.
14160 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14162 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
14165 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14167 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
14168 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
14169 used with VSX_B, VSX_D, or VSX_F, with just "wa".
14171 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
14174 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
14175 C++ with strict ANSI requirements.
14177 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
14179 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
14180 computations when step is 1.
14182 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14184 * config/rs6000/constraints.md (define_register_constraint "wf"):
14186 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14187 (rs6000_init_hard_regno_mode_ok): Adjust.
14188 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14189 RS6000_CONSTRAINT_wf.
14190 * config/rs6000/rs6000.md: Adjust.
14191 * config/rs6000/vsx.md: Adjust.
14192 * doc/md.texi (Machine Constraints): Adjust.
14194 2019-06-04 Andrew Pinski <apinski@marvell.com>
14196 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
14199 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14201 * config/rs6000/constraints.md (define_register_constraint "wd"):
14203 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14204 (rs6000_init_hard_regno_mode_ok): Adjust.
14205 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14206 RS6000_CONSTRAINT_wd.
14207 * config/rs6000/rs6000.md: Adjust.
14208 * config/rs6000/vsx.md: Adjust.
14209 * doc/md.texi (Machine Constraints): Adjust.
14211 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14213 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
14214 (rest of file): Adjust.
14216 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14218 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
14219 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
14220 (vsx_splat_<mode>_reg): Adjust.
14222 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14224 * config/rs6000/constraints.md (define_register_constraint "ws"):
14226 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14227 (rs6000_init_hard_regno_mode_ok): Adjust.
14228 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14229 RS6000_CONSTRAINT_ws.
14230 * config/rs6000/rs6000.md: Adjust.
14231 * config/rs6000/vsx.md: Adjust.
14232 * doc/md.texi (Machine Constraints): Adjust.
14234 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14236 * config/rs6000/constraints.md (define_register_constraint "wv"):
14238 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14239 (rs6000_init_hard_regno_mode_ok): Adjust.
14240 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14241 RS6000_CONSTRAINT_wv.
14242 * config/rs6000/rs6000.md: Adjust.
14243 * config/rs6000/vsx.md: Adjust.
14244 * doc/md.texi (Machine Constraints): Adjust.
14246 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14248 * config/rs6000/constraints.md (define_register_constraint "wi"):
14250 (define_register_constraint "wt"): Delete.
14251 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14252 (rs6000_init_hard_regno_mode_ok): Adjust.
14253 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14254 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
14255 * config/rs6000/rs6000.md: Adjust.
14256 * config/rs6000/vsx.md: Adjust.
14257 * doc/md.texi (Machine Constraints): Adjust.
14259 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
14261 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
14263 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
14264 default_elf_asm_output_external.
14266 2019-06-04 Martin Liska <mliska@suse.cz>
14268 * ipa-icf.c (INCLUDE_LIST): Remove.
14269 (sem_item_optimizer::execute): Remove call to init_wpa.
14270 * ipa-icf.h (init_wpa): Remove.
14272 2019-06-04 Jakub Jelinek <jakub@redhat.com>
14274 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
14275 conditional on combined for simd.
14276 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
14278 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
14279 constructs, don't remove lastprivate_conditional_map, but instead set
14280 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
14281 to parent construct temporaries.
14282 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
14283 like !ctx->lastprivate_conditional_map.
14284 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
14285 use up->outer context instead of up.
14286 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
14287 gimple_omp_for_combined_p.
14288 (expand_omp_for_static_nochunk): Likewise.
14289 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
14290 probably moved over into expand_omp_for_generic rather than being copied
14293 2019-06-04 Martin Liska <mliska@suse.cz>
14295 * value-prof.c (dump_histogram_value): Fix typo.
14296 (gimple_mod_subtract_transform): Likewise.
14298 2019-06-04 Richard Biener <rguenther@suse.de>
14300 PR middle-end/90726
14301 * tree-chrec.c (chrec_contains_symbols): Add to visited.
14302 (tree_contains_chrecs): Likewise.
14303 (chrec_contains_symbols_defined_in_loop): Move here and avoid
14304 exponential behaivor from ...
14305 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
14307 (expression_expensive_p): Avoid exponential behavior and compute
14308 expanded size, rejecting any expansion.
14309 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
14310 (idx_contains_abnormal_ssa_name_p): Likewise.
14311 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
14312 (contains_abnormal_ssa_name_p): Simplify and use
14313 walk_tree_without_duplicates.
14315 2019-06-04 Richard Biener <rguenther@suse.de>
14317 PR tree-optimization/90738
14319 2019-06-03 Richard Biener <rguenther@suse.de>
14321 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14322 full reference tree and record in ref->ref.
14323 (vn_reference_lookup_3): Pass in original ref to
14324 ao_ref_init_from_vn_reference.
14325 (vn_reference_lookup): Likewise.
14326 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14327 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14328 Handle non-decl bases in the original reference.
14330 2019-06-04 Martin Liska <mliska@suse.cz>
14332 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
14333 number of references.
14334 (sem_item_optimizer::do_congruence_step):
14335 (sem_item_optimizer::worklist_push): Dump how references
14337 (sem_item_optimizer::worklist_pop): Use heap.
14338 (sem_item_optimizer::process_cong_reduction): Likewise.
14339 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
14341 2019-06-04 Martin Liska <mliska@suse.cz>
14343 * ipa-icf.h (struct sem_usage_pair_hash): New.
14344 (sem_usage_pair_hash::hash): Likewise.
14345 (sem_usage_pair_hash::equal): Likewise.
14346 (struct sem_usage_hash): Likewise.
14347 * ipa-icf.c (sem_item::sem_item): Initialize
14348 referenced_by_count.
14349 (sem_item::add_reference): Register a reference
14350 in ref_map and not in target->usages.
14351 (sem_item::setup): Remove initialization of
14353 (sem_item::~sem_item): Remove usage of dead vectors.
14354 (sem_item::dump): Remove dump of references.
14355 (sem_item_optimizer::sem_item_optimizer): Initialize
14357 (sem_item_optimizer::read_section): Remove useless
14359 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
14360 (sem_item_optimizer::build_graph): Pass m_references
14361 to ::add_reference.
14362 (sem_item_optimizer::verify_classes): Remove usage of dead
14364 (sem_item_optimizer::traverse_congruence_split): Return true
14365 when a class is split.
14366 (sem_item_optimizer::do_congruence_step_for_index): Use
14367 hash_map for look up of (sem_item *, index). That brings
14368 significant speed up.
14369 (sem_item_optimizer::do_congruence_step): Return true
14370 when a split is done.
14371 (congruence_class::is_class_used): Use referenced_by_count.
14373 2019-06-04 Alan Modra <amodra@gmail.com>
14376 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
14379 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14381 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
14382 * config/rs6000/rs6000.c (direct_move_p): Adjust.
14383 (rs6000_secondary_reload_simple_move): Adjust.
14384 (rs6000_opt_masks): Neuter the "mfpgpr" option.
14385 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
14386 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
14389 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
14390 (floatunssi<mode>2_lfiwzx): Adjust.
14391 (fix_trunc<mode>si2_stfiwx): Adjust.
14392 (fixuns_trunc<mode>si2_stfiwx): Adjust.
14393 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
14394 (mfpgpr): Mark as deprecated.
14395 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
14396 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
14397 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
14399 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
14401 * config/rs6000/constraints.md (define_register_constraint "wg"):
14403 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14404 RS6000_CONSTRAINT_wg.
14405 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14406 (rs6000_init_hard_regno_mode_ok): Adjust.
14407 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
14408 Delete "wg" alternatives.
14409 * doc/md.texi (Machine Constraints): Adjust.
14411 2019-06-03 Alan Modra <amodra@gmail.com>
14413 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
14414 (get_uncond_jump_length): Assert length less than INT_MAX and
14417 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
14419 PR middle-end/64242
14420 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
14422 (expand_builtin_nonlocal_goto): Likewise.
14424 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14426 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
14427 (aarch64_asm_output_external): Declare.
14428 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
14429 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
14430 (aarch64_asm_output_alias): New.
14431 (aarch64_asm_output_external): New.
14432 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
14433 (ASM_OUTPUT_EXTERNAL): Define.
14435 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
14436 * tree-vrp.h (value_range_base::nonzero_p): New.
14437 (value_range_base::set_nonnull): Rename to...
14438 (value_range_base::set_nonzero): ...this.
14439 (value_range_base::set_null): Rename to...
14440 (value_range_base::set_zero): ...this.
14441 (value_range::set_nonnull): Remove.
14442 (value_range::set_null): Remove.
14443 * tree-vrp.c (range_is_null): Remove.
14444 (range_is_nonnull): Remove.
14445 (extract_range_from_binary_expr): Use value_range_base::*zero_p
14446 instead of range_is_*null.
14447 (extract_range_from_unary_expr): Same.
14448 (value_range_base::set_nonnull): Rename to...
14449 (value_range_base::set_nonzero): ...this.
14450 (value_range::set_nonnull): Remove.
14451 (value_range_base::set_null): Rename to...
14452 (value_range_base::set_zero): ...this.
14453 (value_range::set_null): Remove.
14454 (extract_range_from_binary_expr): Rename set_*null uses to
14456 (extract_range_from_unary_expr): Same.
14457 (union_helper): Same.
14458 * vr-values.c (get_value_range): Use set_*zero instead of
14460 (vr_values::extract_range_from_binary_expr): Same.
14461 (vr_values::extract_range_basic): Same.
14463 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
14466 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
14468 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14470 * config/aarch64/iterators.md (MAX_OPP): New code attr.
14471 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
14473 (aarch64_<su>abd<mode>_3): ... This.
14474 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
14476 2019-06-03 Richard Biener <rguenther@suse.de>
14478 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
14479 full reference tree and record in ref->ref.
14480 (vn_reference_lookup_3): Pass in original ref to
14481 ao_ref_init_from_vn_reference.
14482 (vn_reference_lookup): Likewise.
14483 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
14484 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
14485 Handle non-decl bases in the original reference.
14487 2019-06-03 Martin Liska <mliska@suse.cz>
14489 * doc/generic.texi: Remove Java Trees.
14491 2019-06-03 Martin Liska <mliska@suse.cz>
14493 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
14494 returns 0 when operands are equal.
14496 2019-06-03 Richard Biener <rguenther@suse.de>
14498 PR tree-optimization/90716
14499 * tree-loop-distribution.c (destroy_loop): Process blocks in
14502 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14505 * vector-builder.h (vector_builder::count_dups): New method.
14506 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
14508 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
14509 (vec_init<mode><Vel>): New pattern.
14510 * config/aarch64/aarch64.c (emit_insr): New function.
14511 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
14512 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
14513 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
14514 (aarch64_sve_expand_vector_init): Define two overloaded functions.
14516 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14518 PR tree-optimization/90681
14519 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
14520 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
14521 special case for SLP, but fail on non-groupped loads.
14523 2019-06-03 Martin Liska <mliska@suse.cz>
14525 * cfg.c (debug): Use TDF_DETAILS for debug and
14526 print edge info only once.
14528 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
14531 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
14533 2019-06-01 Martin Sebor <msebor@redhat.com>
14535 PR middle-end/90694
14536 * tree-pretty-print.c (dump_generic_node): Add parentheses.
14538 2019-05-31 Jan Hubicka <jh@suse.cz>
14540 * alias.c: Include ipa-utils.h.
14541 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
14542 * ipa-devirt.c (prevailing_odr_type): New.
14543 * ipa-utils.h (previaling_odr_type): Declare.
14545 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
14546 Hongtao Liu <hongtao.liu@intel.com>
14549 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
14550 NOTE_INSN_DELETED_LABEL check.
14552 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
14553 Robert Suchanek <robert.suchanek@mips.com>
14555 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
14556 and 3rd operands of the fmadd/fmsub/maddv builtin.
14558 2019-05-31 Jakub Jelinek <jakub@redhat.com>
14560 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
14561 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
14562 on OMP_SIMD if not nested inside of worksharing loop that also has
14563 lastprivate conditional clause for the same decl.
14564 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
14565 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
14567 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
14569 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
14571 (lower_lastprivate_clauses): Likewise.
14572 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
14573 calling lower_rec_input_clauses.
14574 (lower_omp_for): Likewise.
14575 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
14576 clause on simd construct.
14577 * omp-expand.c (expand_omp_simd): Initialize cond_var if
14578 OMP_CLAUSE__CONDTEMP_ clause is present.
14580 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
14583 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
14586 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
14587 TEX_D32, TEX_D64 or TEX_D128.
14589 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
14591 * match.pd (~(vec?cst1:cst2)): New transformation.
14593 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
14595 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
14596 ((size_t)(A /[ex] B) CMP C): New transformation.
14598 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
14600 * doc/md.texi: Document define_insn_and_rewrite.
14601 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
14602 * gensupport.c (queue_elem): Update comment.
14603 (replace_operands_with_dups): New function.
14604 (gen_rewrite_sequence): Likewise.
14605 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
14606 * read-rtl.c (apply_subst_iterator): Likewise.
14607 (add_condition_to_rtx, named_rtx_p): Likewise.
14608 (rtx_reader::read_rtx_operand): Likewise.
14609 * config/aarch64/aarch64-sve.md
14610 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
14611 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
14612 define_insn_and_rewrite.
14613 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
14614 Remove separate define_split.
14616 2019-05-31 Jan Hubicka <jh@suse.cz>
14618 * tree-ssa-alias.c (type_has_components_p): New function.
14619 (aliasing_component_refs_p): Use it.
14621 2019-05-31 Martin Liska <mliska@suse.cz>
14623 * gdbhooks.py: Add const_tree to TreePrinter.
14625 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
14628 * common.opt (feliminate-unused-debug-symbols): Enable by default.
14629 * doc/invoke.texi (Debugging Options): Document new default of
14630 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
14632 2019-05-31 Jakub Jelinek <jakub@redhat.com>
14634 PR tree-optimization/90671
14635 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
14636 template_block used to be empty on the first call, don't use
14637 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
14638 seq with bb_seq and set it with set_bb_seq.
14640 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
14642 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
14644 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
14645 Michael Meissner <meissner@linux.ibm.com>
14647 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
14648 (prefixed_mem_operand): Likewise.
14649 (non_prefixed_mem_operand): Likewise.
14650 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
14652 * config/rs6000/rs6000.c (print_operand_address): Handle
14653 PC-relative addresses.
14654 (mode_supports_prefixed_address_p): New function.
14655 (rs6000_prefixed_address): New function.
14656 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
14657 (SYMBOL_REF_PCREL_P): Likewise.
14659 2019-05-30 Jakub Jelinek <jakub@redhat.com>
14661 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
14662 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
14663 (gimplify_omp_for): If worksharing loop with lastprivate conditional
14664 is nested inside of parallel region, add _condtemp_ clause to both.
14665 * tree-nested.c (convert_nonlocal_omp_clauses,
14666 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
14668 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
14670 * omp-general.c (omp_extract_for_data): Compute it.
14671 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
14672 (lower_rec_input_clauses): Likewise.
14673 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
14674 clause is already present, just add one further one after it.
14675 (lower_lastprivate_clauses): Handle cond_ptr with array type.
14676 (lower_send_shared_vars): Clear _condtemp_ vars.
14677 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
14678 or section or taskgroup.
14679 * omp-expand.c (determine_parallel_type): Disallow combining only if
14680 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
14681 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
14682 (expand_omp_for_generic, expand_omp_for_static_nochunk,
14683 expand_omp_for_static_chunk, expand_omp_for): Use
14684 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
14685 determine if a special set of API routines are needed and if condtemp
14686 needs to be initialized, while always initialize cond_var if
14687 fd->lastprivate_conditional is non-zero.
14689 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
14690 Michael Meissner <meissner@linux.ibm.com>
14692 * config/rs6000/constraints.md (eI): New constraint.
14693 * config/rs6000/predicates.md (cint34_operand): New predicate.
14694 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
14695 (SIGNED_34BIT_OFFSET_P): Likewise.
14696 * doc/md.texi (eI): Document constraint.
14698 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
14700 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
14702 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
14703 Michael Meissner <meissner@linux.ibm.com>
14705 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
14706 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
14707 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
14708 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
14709 (OTHER_FUTURE_MASKS): Likewise.
14710 (POWERPC_MASKS): Likewise.
14711 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
14712 specified without -mprefixed-addr or -mcpu=future. Error if
14713 -mprefixed-addr is specified without -mcpu=future.
14714 (rs6000_opt_masks): Add entry for prefixed-addr.
14715 * rs6000.opt (mprefixed-addr): New option.
14717 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
14719 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
14720 cfun->is_thunk check.
14722 2019-05-30 Jakub Jelinek <jakub@redhat.com>
14724 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
14727 2019-05-30 Martin Liska <mliska@suse.cz>
14729 * gdbinit.in: Fix 'ptc' command. Add trt
14730 that prints TREE_TYPE($).
14732 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
14733 Alan Modra <amodra@gmail.com>
14735 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
14737 (rs6000_indirect_call_template_1): ...and here.
14738 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
14739 plt16_ha, plt16_lo, mtctr indirect calls. Use
14740 rs6000_pltseq_enum.
14741 (rs6000_decl_ok_for_sibcall): New function.
14742 (rs6000_function_ok_for_sibcall): Refactor.
14743 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
14744 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
14745 when pcrel. Reorganize.
14746 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
14747 * rs6000.h (rs6000_pltseq_enum): New enum.
14748 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
14749 (*pltseq_tocsave): Use rs6000_pltseq_enum.
14750 (*pltseq_plt16_ha): Likewise.
14751 (*pltseq_plt16_lo): Likewise.
14752 (*pltseq_mtctr): Likewise.
14753 (*pltseq_plt_pcrel): New insn.
14754 (*call_local_aix): Handle @notoc calls.
14755 (*call_value_local_aix): Likewise.
14756 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
14757 (*call_value_nonlocal_aix): Likewise.
14758 (*call_indirect_pcrel): New insn.
14759 (*call_value_indirect_pcrel): Likewise.
14761 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
14763 * config/i386/sse.md (*save_multiple<mode>): Rename from
14764 save_multiple<mode>.
14765 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
14766 (*restore_multiple_and_return<mode>): Rename from
14767 restore_multiple_and_return<mode>.
14768 (*restore_multiple_leave_return<mode>): Rename from
14769 restore_multiple_leave_return<mode>.
14771 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
14773 * config.gcc (rx-*-linux*): New target.
14774 * config/rx/elf.opt: New file.
14775 * config/rx/linux.h: Likewise.
14776 * config/rx/t-linux: Likewise.
14777 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
14779 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
14780 (ASM_APP_OFF): Likewise.
14781 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
14784 2019-05-29 Jan Hubicka <jh@suse.cz>
14786 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
14787 variants are pointer equivalent.
14789 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14791 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
14792 * config/aarch64/aarch64-sve2.md: New file.
14793 (<u>avg<mode>3_floor): New pattern.
14794 (<u>avg<mode>3_ceil): Likewise.
14795 (*<sur>h<addsub><mode>): Likewise.
14796 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
14797 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
14799 2019-05-29 Jakub Jelinek <jakub@redhat.com>
14802 * optc-save-gen.awk: In cl_optimization_print, use correct condition
14803 for var_opt_string printing. In cl_optimization_print_diff, print
14804 (null) instead of invoking undefined behavior if one of the
14805 var_opt_string pointers is NULL and use && instead of first || in the
14806 guarding condition. For var_target_other options, handle const char *
14807 target variables similarly to const char * optimize node variables.
14809 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
14811 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
14812 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
14813 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
14814 Add autib1716 and pacib1716 initialisation.
14815 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
14816 for autib1716 and pacib1716.
14817 * config/aarch64/aarch64-protos.h (aarch64_key_type,
14818 aarch64_post_cfi_startproc): Define.
14819 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
14820 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
14821 aarch64_handle_pac_ret_protection): Set default sign key to A.
14822 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
14823 aarch64_expand_prologue): Add check for b-key.
14824 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
14825 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
14826 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
14827 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
14828 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
14829 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
14830 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
14831 * config/aarch64/aarch64.md (do_return): Add check for b-key.
14832 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
14833 pauth_hint_num_a with pauth_hint_num.
14834 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
14835 pauth_hint_num_a with pauth_hint_num.
14836 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
14837 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
14838 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
14839 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
14840 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
14841 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
14842 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
14843 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
14844 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
14845 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
14846 UNSPEC_AUTIA1716 respectively.
14847 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
14848 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
14849 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
14850 * doc/invoke.texi (-mbranch-protection): Add b-key type.
14851 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
14852 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
14854 2019-05-29 Jakub Jelinek <jakub@redhat.com>
14856 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
14857 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
14858 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
14859 explicit clause on combined parallel into implicit shared clause.
14860 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
14861 and firstprivate if the decl has one too from combined parallel to
14862 the worksharing construct.
14864 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
14865 Michael Meissner <meissner@linux.ibm.com>
14867 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
14869 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
14871 * rtl.h (LABEL_REF_P): New #define.
14873 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
14875 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
14877 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
14879 * internal-fn.c: Marked mask_load_direct as vectorizable.
14880 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
14881 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
14882 combined even if masks different with allow_slp_p param.
14883 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
14884 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
14885 dissolve SLP-only vectorizable groups when SLP has been discarded.
14886 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
14887 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
14889 (vect_build_slp_tree_1): Fixed comment typo.
14890 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
14891 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
14892 loads for SLP only.
14893 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
14895 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
14897 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14899 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
14900 Remove obsolete use_thunk reference.
14901 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
14902 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
14903 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
14904 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
14905 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
14906 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
14907 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
14908 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
14909 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
14911 2019-05-28 Nathan Sidwell <nathan@acm.org>
14913 * tree.h (IDENTIFIER_ANON_P): New.
14914 (anon_aggrname_format, anon_aggname_p): Don't declare.
14915 (make_anon_name): Declare.
14916 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
14917 (hash_tree): Likewise.
14918 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
14919 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
14920 (anon_cnt, make_anon_name): New.
14922 2019-05-28 Martin Liska <mliska@suse.cz>
14925 * opts-global.c (decode_options): Print help for all
14926 help_option_arguments.
14927 * opts.c (print_help): Add new argument.
14928 (common_handle_option): Remember all values into
14929 help_option_arguments.
14930 * opts.h (print_help): Add new argument.
14932 2019-05-28 Martin Liska <mliska@suse.cz>
14935 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
14936 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
14937 (func_checker::compare_bb): Call compare_loops.
14939 2019-05-27 Jakub Jelinek <jakub@redhat.com>
14941 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
14942 on sections construct.
14943 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
14945 (lower_omp_sections): Handle lastprivate conditional.
14946 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
14947 lastprivate_conditional_map.
14948 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
14950 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
14951 critical, taskgroup and section regions when looking for a region
14952 with non-NULL lastprivate_conditional_map.
14954 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
14956 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
14957 (*ix86_gen_sub3): Ditto.
14958 (*ix86_gen_sub3_carry): Ditto.
14959 (*ix86_gen_one_cmpl2): Ditto.
14960 (*ix86_gen_andsp): Ditto.
14961 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
14962 (gen_and2_insn): New static function.
14963 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
14964 Use gen_add3_insn instead of ix86_gen_add3.
14965 (ix86_expand_split_stack_prologue): Use gen_add2_insn
14966 instead of ix86_gen_add3.
14967 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
14968 Use gen_sub3_insn instead of ix86_gen_sub3.
14969 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
14970 instead of ix86_gen_add3.
14971 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
14972 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
14973 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
14974 * config/i386/i386-options.c (ix86_option_override_internal):
14975 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
14976 ix86_gen_one_cmpl2 and ix86_gen_andsp.
14978 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
14980 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
14981 and DW_OP_GNU_const_index opcodes.
14983 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
14985 * config/i386/i386.h (STACK_SIZE_MODE): Define.
14987 2019-05-27 Richard Biener <rguenther@suse.de>
14989 PR tree-optimization/90637
14990 * tree-ssa-sink.c (statement_sink_location): Honor the
14991 computed sink location for single-uses.
14993 2019-05-27 Richard Biener <rguenther@suse.de>
14995 PR middle-end/90610
14996 * match.pd (vec_perm): Avoid clobbering op0 when not generating
14999 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15001 * config/i386/i386.md (@sub<mode>3_carry): Rename
15002 from sub<mode>3_carry.
15003 (@leave_<mode>): New expander.
15004 (*leave): Rename from leave.
15005 (*leave_rex64): Rename from leave_rex64.
15006 (@monitorx_<mode>): Rename from monitorx_<mode>.
15007 (@clzero_<mode>): Rename from clzero_<mode>.
15008 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
15009 from sse3_monitor_<mode>.
15010 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
15011 (*ix86_gen_leave): Ditto.
15012 (*ix86_gen_monitor): Ditto.
15013 (*ix86_gen_monitorx): Ditto.
15014 (*ix86_gen_clzero): Ditto.
15015 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
15016 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
15017 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
15018 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
15019 Use gen_sse3_monitor instead of ix86_gen_monitor.
15020 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
15021 instead of ix86_gen_monitorx.
15022 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
15023 instead of ix86_gen_clzero.
15024 * config/i386/i386-options.c (ix86_option_override_internal):
15025 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
15026 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
15028 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15030 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
15031 Rename from tls_global_dynamic_64_<mode>.
15032 (@tls_local_dynamic_base_64_<mode>): Rename from
15033 tls_local_dynamic_base_64_<mode>.
15034 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
15035 Remove indirect function.
15036 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
15037 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
15038 instead of ix86_gen_tls_global_dynamic_64.
15039 Use gen_tls_local_dynamic_base_64 instead of
15040 ix86_gen_tls_local_dynamic_base_64.
15041 * config/i386/i386-options.c (ix86_option_override_internal):
15042 Do not initialize ix86_gen_tls_global_dynamic_64 and
15043 ix86_gen_tls_local_dynamic_base_64.
15045 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
15047 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
15048 Rename from pro_epilogue_adjust_stack_<mode>_add.
15049 (@pro_epilogue_adjust_stack_sub_<mode>)
15050 Rename from pro_epilogue_adjust_stack_<mode>_sub.
15051 (@allocate_stack_worker_probe_<mode>):
15052 Rename from allocate_stack_worker_probe_<mode>.
15053 (allocate_stack): Use gen_allocate_stack_worker_probe.
15054 (probe_stack): Use gen_probe_stack_1.
15055 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
15056 (@adjust_stack_and_probe_<mode>): Rename from
15057 adjust_stack_and_probe<mode>.
15058 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
15059 (stack_protect_set): Use gen_stack_protect_set_1.
15060 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
15061 (stack_protect_test): Use gen_stack_protect_test_1.
15062 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
15063 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
15064 Remove indirect function.
15065 (*ix86_gen_adjust_stack_and_probe): Ditto.
15066 (*ix86_gen_probe_stack_range): Ditto.
15067 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
15068 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
15069 (ix86_adjust_stack_and_probe_stack_clash): Use
15070 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
15071 (ix86_adjust_stack_and_probe): Ditto.
15072 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
15073 of ix86_gen_probe_stack_range.
15074 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
15075 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
15076 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
15077 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
15078 CODE_FOR_stack_protect_test_{si,di}.
15079 * config/i386/i386-options.c (ix86_option_override_internal):
15080 Do not initialize ix86_gen_allocate_stack_worker,
15081 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
15083 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
15085 * doc/invoke.texi (Link Options): Many editorial changes around
15088 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15090 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
15091 pre-Solaris 11 referene and most Studio compiler details.
15093 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
15096 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
15097 DImode to SImode in floating-point registers on 64-bit target.
15098 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
15099 register_operand in xmpyu patterns.
15101 2019-05-24 Jakub Jelinek <jakub@redhat.com>
15103 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
15104 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
15105 OMP_CLAUSE__REDUCTEMP_.
15106 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15107 OMP_CLAUSE__CONDTEMP_.
15108 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
15109 * tree-pretty-print.c (dump_omp_clause): Likewise.
15110 * tree-nested.c (convert_nonlocal_omp_clauses,
15111 convert_local_omp_clauses): Likewise.
15112 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
15113 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
15114 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
15116 (gimplify_omp_for): Warn and disable conditional modifier from
15117 lastprivate on loop iterators.
15118 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
15120 * omp-general.c (omp_extract_for_data): Initialize it.
15121 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
15123 (delete_omp_context): Delete it.
15124 (lower_lastprivate_conditional_clauses): New function.
15125 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
15126 handle lastprivate conditional clauses.
15127 (lower_reduction_clauses): Add CLIST argument, emit it into
15128 the critical section if any.
15129 (lower_omp_sections): Adjust lower_lastprivate_clauses and
15130 lower_reduction_clauses callers.
15131 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
15132 to lower_lastprivate_clauses.
15133 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
15134 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
15135 clist into a critical section if not emitted there already by
15136 lower_reduction_clauses.
15137 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
15139 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
15140 conditional variables.
15141 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
15143 (expand_omp_for_generic, expand_omp_for_static_nochunk,
15144 expand_omp_for_static_chunk): Handle lastprivate conditional.
15145 (expand_omp_for): Handle fd.lastprivate_conditional like
15148 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15150 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
15151 kernel does not exit cleanly.
15152 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
15154 2019-05-24 Jason Merrill <jason@redhat.com>
15157 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15159 2019-05-24 Richard Biener <rguenther@suse.de>
15162 * tree-loop-distribution.c (struct partition): Add location
15164 (partition_alloc): Initialize all fields.
15165 (generate_memset_builtin): Use the location recorded in the
15166 partition for the generated call.
15167 (generate_memcpy_builtin): Likewise.
15168 (classify_partition): Record the location of a single store
15169 as location for the partition.
15171 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
15173 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
15176 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
15179 * common/config/aarch64/aarch64-common.c
15180 (aarch64_rewrite_selected_cpu): Change local temporary variable
15181 type from unsigned long to uint64_t.
15182 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
15183 aarch64_get_extension_string_for_isa_flags): Change declaration to
15184 match new definition by replacing unsigned long with uint64_t.
15186 2019-05-24 Jakub Jelinek <jakub@redhat.com>
15189 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
15190 gen_attr_type just once instead of 4-7 times. Formatting fixes.
15191 Handle stack_protect_test_<mode> codegen similarly to corresponding
15194 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
15196 * config/i386/darwin.h: Reject -mfentry*.
15197 * doc/sourcebuild.texi: Document mfentry target support.
15199 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15201 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
15202 Rename to rs6000_global_entry_point_prologue_needed_p. Return
15203 false for PC-relative functions.
15204 (rs6000_output_function_prologue): Change called function name to
15205 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
15206 name,1" for PC-relative functions.
15207 (rs6000_elf_declare_function_name): Change called function name to
15208 rs6000_global_entry_point_prologue_needed_p.
15210 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
15213 * config/i386/i386.c (gen_rtx_cost):
15214 Use ix86_tune_cost instead of ix86_cost.
15216 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15217 Michael Meissner <meissner@linux.ibm.com>
15218 Segher Boessenkool <segher@kernel.crashing.org>
15220 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
15222 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
15223 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
15224 (rs6000_fndecl_pcrel_p): Likewise.
15225 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
15226 error if -mpcrel is requested without -mcpu=future.
15227 (rs6000_opt_masks): Add entry for pcrel.
15228 (rs6000_fndecl_pcrel_p): New function.
15229 (rs6000_pcrel_p): Likewise.
15230 * config/rs6000/rs6000.opt (mpcrel): New option.
15231 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
15233 2019-05-23 Jan Hubicka <jh@suse.cz>
15234 Martin Liska <mliska@suse.cz>
15236 PR tree-optimization/90576
15237 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
15239 (aliasing_component_refs_p): Fix three way size compare conditional;
15240 give up earlier in case we can not decide on equivalence.
15242 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
15243 Michael Meissner <meissner@linux.ibm.com>
15244 Segher Boessenkool <segher@kernel.crashing.org>
15246 * config.gcc: Add future cpu.
15247 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
15248 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
15250 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
15251 (RS6000_CPU): New instantiation for future cpu.
15252 * config/rs6000/rs6000-opts.h (enum processor_type): Add
15254 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
15255 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
15256 * config/rs6000/rs6000-tables.opt: Regenerate.
15257 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
15258 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
15259 (rs6000_machine_from_flags): Handle future cpu.
15260 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
15261 PROCESSOR_POWER9 for now.
15262 (rs6000_adjust_cost): Likewise.
15263 (rs6000_issue_rate): Likewise.
15264 (rs6000_register_move_cost): Likewise.
15265 (rs6000_opt_masks): Add entry for future.
15266 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
15267 (MASK_FUTURE): New #define.
15268 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
15269 * config/rs6000/rs6000.opt (mfuture): New target option.
15270 * doc/invoke.texi (mcpu): Add future cpu.
15272 2019-05-23 Martin Liska <mliska@suse.cz>
15275 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
15276 operation points to a temporary (pointed via tree_to_wide_ref)
15277 that is out of scope after the &.
15279 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
15282 * doc/extend.texi (Function Names): Add missing word.
15284 2019-05-23 Richard Biener <rguenther@suse.de>
15286 PR tree-optimization/88440
15287 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
15289 * tree-loop-distribution.c (generate_memset_builtin): Fold the
15291 (generate_memcpy_builtin): Likewise.
15292 (distribute_loop): Pass in whether to only distribute patterns.
15293 (prepare_perfect_loop_nest): Also allow size optimization.
15294 (pass_loop_distribution::execute): When optimizing a loop
15295 nest for size allow pattern replacement.
15297 2019-05-23 Jakub Jelinek <jakub@redhat.com>
15300 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
15303 2019-05-23 Martin Liska <mliska@suse.cz>
15306 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
15307 expression similarly to gimplify_decl_expr.
15309 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15311 * cse.c (cse_dump_path): s/dump_file/f.
15313 2019-05-22 David Malcolm <dmalcolm@redhat.com>
15316 * diagnostic-format-json.cc: Include "selftest.h".
15317 (json_from_expanded_location): Only add "file" key for non-NULL
15319 (json_from_location_range): Don't add "start" and "finish"
15320 children if they are UNKNOWN_LOCATION.
15321 (selftest::test_unknown_location): New selftest.
15322 (selftest::test_bad_endpoints): New selftest.
15323 (selftest::diagnostic_format_json_cc_tests): New function.
15324 * json.cc (json::object::get): New function.
15325 (selftest::test_object_get): New selftest.
15326 (selftest::json_cc_tests): Call it.
15327 * json.h (json::object::get): New decl.
15328 * selftest-run-tests.c (selftest::run_tests): Call
15329 selftest::diagnostic_format_json_cc_tests.
15330 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
15333 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
15334 Andrew Stubbs <amd@codesourcery.com>
15336 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
15337 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
15338 (kernel): Rename to...
15339 (main_kernel): ... this.
15340 (load_image): Load _init_array and _fini_array kernels.
15341 (run): Add argument for kernel to run.
15342 (main): Run init_array_kernel before main_kernel, and
15343 fini_array_kernel after.
15344 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
15345 amdgpu_hsa_kernel attribute on functions.
15346 (gcn_disable_constructors): Delete.
15347 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
15348 * config/gcn/crt0.c (size_t): Define.
15349 (_init_array, _fini_array): New.
15350 (__preinit_array_start, __preinit_array_end,
15351 __init_array_start, __init_array_end,
15352 __fini_array_start, __fini_array_end): Declare weak references.
15354 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
15356 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
15358 2019-05-22 Jason Merrill <jason@redhat.com>
15360 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15362 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
15365 * config/i386/i386-options.c (ix86_init_machine_status): Set
15366 stack_frame_required to true.
15367 * config/i386/i386.c (ix86_get_frame_size): New function.
15368 (ix86_frame_pointer_required): Replace get_frame_size with
15369 ix86_get_frame_size.
15370 (ix86_compute_frame_layout): Likewise.
15371 (ix86_find_max_used_stack_alignment): Changed to void. Set
15372 stack_frame_required.
15373 (ix86_finalize_stack_frame_flags): Always call
15374 ix86_find_max_used_stack_alignment. Replace get_frame_size with
15375 ix86_get_frame_size.
15376 * config/i386/i386.h (machine_function): Add stack_frame_required.
15378 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
15380 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
15382 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
15384 * common/config/aarch64/aarch64-common.c
15385 (struct aarch64_option_extension, struct processor_name_to_arch,
15386 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
15387 aarch64_contains_opt,
15388 aarch64_get_extension_string_for_isa_flags): Change type of
15389 variables storing flags to uint64_t.
15390 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
15391 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
15392 * config/aarch64/aarch64.c (struct processor,
15393 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
15394 aarch64_validate_march, aarch64_override_options,
15395 aarch64_option_print, aarch64_handle_attr_isa_flags,
15396 aarch64_declare_function_name, aarch64_start_file): Make flag
15397 variables uint64_t.
15398 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
15399 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
15400 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
15401 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
15402 * config/aarch64/driver-aarch64.c
15403 (struct aarch64_arch_extension, struct aarch64_core_data,
15404 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
15405 flag variables uint64_t.
15406 * doc/invoke.texi: Add documentation for new arguments.
15408 2019-05-22 Richard Biener <rguenther@suse.de>
15410 * alias.c (ao_ref_from_mem): Move stack-slot sharing
15412 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
15414 2019-05-22 Martin Liska <mliska@suse.cz>
15417 * doc/extend.texi: Document the change.
15419 2019-05-22 Richard Biener <rguenther@suse.de>
15421 PR tree-optimization/90450
15422 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
15423 (mem_ref_hasher::equal): Check it.
15424 (mem_ref_alloc): Initialize it.
15425 (gather_mem_refs_stmt): Set it.
15427 2019-05-22 Richard Biener <rguenther@suse.de>
15429 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
15431 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
15434 2019-05-22 Alan Modra <amodra@gmail.com>
15436 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
15437 (ASM_CPU_SPEC): Conditionally add -many.
15438 * config/rs6000/rs6000.c (rs6000_machine): New static var.
15439 (rs6000_machine_from_flags, emit_asm_machine): New functions..
15440 (rs6000_file_start): ..extracted from here, and modified to
15442 (rs6000_output_function_prologue): Emit .machine as necessary.
15444 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
15446 PR middle-end/90553
15447 * ira-lives.c (process_bb_node_lives): Consider defs
15448 for a call insn to be die before the call, not after.
15450 * function.c (assign_parm_setup_block): Raise alignment of
15451 stacked parameter only for STRICT_ALIGNMENT targets.
15453 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15455 * config/rs6000/constraints.md (define_register_constraint "wz"):
15457 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15458 RS6000_CONSTRAINT_wz.
15459 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15460 (rs6000_init_hard_regno_mode_ok): Adjust.
15461 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
15462 * doc/md.texi (Machine Constraints): Adjust.
15464 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15466 * config/rs6000/constraints.md (define_register_constraint "wl"):
15468 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15469 RS6000_CONSTRAINT_wl.
15470 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15471 (rs6000_init_hard_regno_mode_ok): Adjust.
15472 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
15473 * doc/md.texi (Machine Constraints): Adjust.
15475 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15477 * config/rs6000/constraints.md (define_register_constraint "wm"):
15479 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15480 RS6000_CONSTRAINT_wm.
15481 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15482 (rs6000_init_hard_regno_mode_ok): Adjust.
15483 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
15484 * doc/md.texi (Machine Constraints): Adjust.
15486 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15488 * config/rs6000/constraints.md (define_register_constraint "wk"):
15490 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15491 RS6000_CONSTRAINT_wk.
15492 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15493 (rs6000_init_hard_regno_mode_ok): Adjust.
15494 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
15495 * doc/md.texi (Machine Constraints): Adjust.
15497 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15499 * config/rs6000/constraints.md (define_register_constraint "wj"):
15501 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15502 RS6000_CONSTRAINT_wj.
15503 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15504 (rs6000_init_hard_regno_mode_ok): Adjust.
15505 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
15507 * config/rs6000/vsx.md: Ditto.
15508 * doc/md.texi (Machine Constraints): Adjust.
15510 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
15512 * config/rs6000/constraints.md (define_register_constraint "wh"):
15514 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15515 RS6000_CONSTRAINT_wh.
15516 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15517 (rs6000_init_hard_regno_mode_ok): Adjust.
15518 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
15519 * doc/md.texi (Machine Constraints): Adjust.
15521 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15524 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
15525 Avoid calling gen_lowpart with CONST operand.
15527 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
15529 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
15530 field template_last_to_copy.
15531 (ssa_create_duplicates): Set it, and use it. Attempt to
15532 preserve more debug stmts.
15534 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15536 * config/i386/sse.md (VF1_AVX2): New mode iterator.
15537 (signbit<mode>2): New expander
15539 2019-05-21 James Clarke <jrtc27@jrtc27.com>
15542 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
15543 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
15545 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
15547 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
15548 %ebx and %ecx bafore calling cpuid with leaf 1 or
15549 non-constant leaf argument.
15551 2019-05-21 Alan Modra <amodra@gmail.com>
15554 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
15555 power9 direct move cost.
15557 2019-05-21 Richard Biener <rguenther@suse.de>
15559 PR middle-end/90510
15560 * fold-const.c (fold_read_from_vector): New function.
15561 * fold-const.h (fold_read_from_vector): Declare.
15562 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
15563 single-element insert permutations. Canonicalize selector
15564 further and fix issue with last commit.
15566 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
15568 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
15569 parameter with default value false to declaration.
15570 (split_edges_for_insertion): New inline function. Wrapper for
15571 split_critical_edges with for_edge_insertion_p = true.
15572 * tree-cfg.c (split_critical_edges): Don't split non-critical
15573 edges if for_edge_insertion_p is false. Fix whitespace.
15574 * tree-ssa-pre.c (pass_pre::execute): Call
15575 split_edges_for_insertion instead of split_critical_edges.
15576 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
15577 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
15578 (pass_data_sink_code): Update function name in the comment.
15580 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
15582 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
15583 around is_value_included_in that knows how to handle BIT_AND_EXPR.
15584 (is_pred_expr_subset_of): Use the new function. Handle more cases where
15585 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
15588 2019-05-21 Martin Liska <mliska@suse.cz>
15590 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
15592 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
15593 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
15595 * config/rs6000/rs6000.c (rs6000_option_override_internal):
15597 (rs6000_function_arg): Likewise.
15598 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
15599 (rs6000_expand_ternop_builtin): Use interval syntax.
15600 (get_element_number): Likewise.
15601 (altivec_expand_builtin): Likewise.
15602 (rs6000_get_function_versions_dispatcher): Quote target_clones.
15604 2019-05-20 Jakub Jelinek <jakub@redhat.com>
15608 * function.h (struct function): Add calls_eh_return member.
15609 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
15610 gimplifying __builtin_eh_return call.
15611 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
15613 (expand_call_inline): Or in src_cfun->calls_eh_return into
15614 dst_cfun->calls_eh_return.
15615 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
15616 cfun->calls_eh_return.
15617 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
15618 * lto-streamer-out.c (output_struct_function_base): Write
15621 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
15623 PR rtl-optimization/43147
15624 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
15625 IX86_BUILTIN_SHUFPD.
15627 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
15629 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
15630 (refs_may_alias_p_1): ... here; update stats.
15631 (refs_may_alias_p): Do not update stats here.
15633 2019-05-20 Richard Biener <rguenther@suse.de>
15635 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
15636 doesn't produce pointers.
15637 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
15638 the first operand points to.
15640 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
15642 * tree-ssa-alias.c (compare_sizes): New function.
15643 (sompare_type_sizes): New function
15644 (aliasing_component_refs_p): Use it.
15645 (indirect_ref_may_alias_decl_p): Likewise.
15647 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15649 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
15651 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15653 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
15654 (LIBLSAN_EARLY_SPEC): Likewise.
15655 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
15657 2019-05-20 Martin Liska <mliska@suse.cz>
15659 * config/i386/i386.c (ix86_libc_has_fast_function):
15660 Add ATTRIBUTE_UNUSED for the argument.
15662 2019-05-20 Richard Biener <rguenther@suse.de>
15664 * gimple-match-head.c: Include vec-perm-indices.h.
15665 * generic-match-head.c: Likewise.
15666 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
15668 * fold-const.c (fold_vec_perm): Export.
15669 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
15670 (match.pd): ...here.
15672 2019-05-20 Jakub Jelinek <jakub@redhat.com>
15674 * cfgloop.h (struct loop): Add simdlen member.
15675 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
15676 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
15677 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
15678 as new argument to autovectorize_vector_sizes target hook. If
15679 loop->simdlen, pick up vector size where the vectorization factor
15680 is equal to loop->simd, and if there is none, fall back to the first
15682 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
15684 * omp-low.c (omp_clause_aligned_alignment): Likewise.
15685 * omp-general.c (omp_max_vf): Likewise.
15686 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
15687 * tree-vect-slp.c (vect_slp_bb): Likewise.
15688 * target.def (autovectorize_vector_sizes): Add ALL argument and
15690 * doc/tm.texi: Adjust documentation.
15691 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
15692 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
15693 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
15695 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
15696 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
15697 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
15698 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
15699 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
15700 preferred vector size is not 512-bit or 256-bit, just put those
15701 unpreferred ones last.
15703 2019-05-20 Martin Liska <mliska@suse.cz>
15705 * targhooks.c (default_libc_has_fast_function): New function.
15706 * targhooks.h (default_libc_has_fast_function): Likewise.
15708 2019-05-20 Martin Liska <mliska@suse.cz>
15710 PR middle-end/90263
15711 * builtins.c (expand_builtin_memory_copy_args): When having a
15712 target with fast mempcpy implementation do now use memcpy.
15713 * config/i386/i386.c (ix86_libc_has_fast_function): New.
15714 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
15715 * doc/tm.texi: Likewise.
15716 * doc/tm.texi.in: Likewise.
15718 * expr.c (emit_block_move_hints): Add 2 new arguments.
15719 * expr.h (emit_block_move_hints): Bail out when libcall
15720 to memcpy would be used.
15722 2019-05-20 Martin Liska <mliska@suse.cz>
15724 * profile-count.c: Add vertical spacing in order
15725 to separate functions.
15726 * profile-count.h: Likewise.
15728 2019-05-20 Martin Liska <mliska@suse.cz>
15730 * profile-count.h: Do not use full qualified
15732 * profile-count.c (profile_count::to_frequency): Likewise.
15734 2019-05-20 Martin Liska <mliska@suse.cz>
15736 * profile-count.h (enum profile_quality): Use capital letters
15737 for enum value names. Use the adjusted names.
15738 * profile-count.c: Use the adjusted names.
15740 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15742 * config/rs6000/constraints.md (define_register_constraint "wH"):
15744 (define_register_constraint "wI"): Delete.
15745 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15746 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
15747 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15748 (rs6000_init_hard_regno_mode_ok): Adjust.
15749 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
15750 resp. "d", or with "wa" as appropriate, all with "p8v".
15751 * config/rs6000/vsx.md: Ditto.
15752 * doc/md.texi (Machine Constraints): Adjust.
15754 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15756 * config/rs6000/constraints.md (define_register_constraint "wy"):
15758 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15759 RS6000_CONSTRAINT_wy.
15760 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15761 (rs6000_init_hard_regno_mode_ok): Adjust.
15762 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
15763 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
15764 (define_mode_attr Fisa): New.
15765 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
15766 * doc/md.texi (Machine Constraints): Adjust.
15768 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15770 * config/rs6000/constraints.md (define_register_constraint "wu"):
15772 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15773 RS6000_CONSTRAINT_wu.
15774 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15775 (rs6000_init_hard_regno_mode_ok): Adjust.
15776 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
15778 (define_mode_attr Fa): Delete.
15779 * config/rs6000/vsx.md: Ditto.
15780 * doc/md.texi (Machine Constraints): Adjust.
15782 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15784 * config/rs6000/constraints.md (define_register_constraint "wJ"):
15786 (define_register_constraint "wK"): Delete.
15787 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15788 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
15789 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15790 (rs6000_init_hard_regno_mode_ok): Adjust.
15791 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
15792 Replace "wK" constraint by "wH" with "p9v".
15793 * config/rs6000/vsx.md: Ditto.
15794 * doc/md.texi (Machine Constraints): Adjust.
15796 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15798 * config/rs6000/constraints.md (define_register_constraint "wb"):
15800 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15801 RS6000_CONSTRAINT_wb.
15802 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15803 (rs6000_init_hard_regno_mode_ok): Adjust.
15804 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
15805 * config/rs6000/vsx.md: Ditto.
15806 * doc/md.texi (Machine Constraints): Adjust.
15808 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
15810 * config/rs6000/constraints.md (define_register_constraint "wo"):
15812 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15813 RS6000_CONSTRAINT_wo.
15814 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15815 (rs6000_init_hard_regno_mode_ok): Adjust.
15816 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
15817 * config/rs6000/altivec.md: Ditto.
15818 * doc/md.texi (Machine Constraints): Adjust.
15820 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
15822 * config/darwin-c.c (darwin_register_objc_includes): Do not
15823 prepend the sysroot when building gnu-runtime header search
15826 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
15828 * config/darwin.c (darwin_file_end): Use switch_to_section ()
15829 instead of direct output of the asm.
15831 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
15833 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
15834 argument to be type bool (was int before).
15835 (rs6000_emit_epilogue): Simplify some code. Declare some variables
15836 at first use. Use type bool for some variables. Fix a theoretical
15837 eh_return bug for svr4.
15839 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
15841 * config/rs6000/rs6000.md (isa): New attribute.
15842 (enabled): New attribute.
15844 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
15846 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
15847 assemble_start_function and assemble_end_function.
15849 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
15851 PR middle-end/89433
15852 * omp-general.c (oacc_verify_routine_clauses): Change formal
15853 parameters. Add checking if already marked with an OpenACC
15854 'routine' directive. Adjust all users.
15856 PR middle-end/89433
15857 * omp-general.c (oacc_build_routine_dims): Move some of its
15859 (oacc_verify_routine_clauses): ... this new function.
15860 * omp-general.h (oacc_verify_routine_clauses): New prototype.
15862 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
15864 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
15865 formating of picbase labels to match other ports.
15867 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
15869 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
15870 in the generated code.
15872 2019-05-16 Martin Sebor <msebor@redhat.com>
15874 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
15875 identifiers, keywords, operators, and types in diagnostics. Correct
15876 quoting, spelling, and sentence capitalization issues.
15877 (expand_builtin_atomic_is_lock_free): Same.
15878 (fold_builtin_next_arg): Same.
15879 * cfgexpand.c (expand_one_var): Same.
15880 (tree_conflicts_with_clobbers_p): Same.
15881 (expand_asm_stmt): Same.
15882 (verify_loop_structure): Same.
15883 * cgraphunit.c (process_function_and_variable_attributes): Same.
15884 * collect-utils.c (collect_execute): Same.
15885 * collect2.c (maybe_run_lto_and_relink): Same.
15886 (is_lto_object_file): Same.
15887 (scan_prog_file): Same.
15888 * convert.c (convert_to_real_1): Same.
15889 * dwarf2out.c (dwarf2out_begin_prologue): Same.
15890 * except.c (verify_eh_tree): Same.
15891 * gcc.c (execute): Same.
15892 (eval_spec_function): Same.
15893 (run_attempt): Same.
15894 (driver::set_up_specs): Same.
15895 (compare_debug_auxbase_opt_spec_function): Same.
15896 * gcov-tool.c (unlink_gcda_file): Same.
15898 (do_rewrite): Same.
15899 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
15900 * gimplify.c (gimplify_asm_expr): Same.
15901 (gimplify_adjust_omp_clauses): Same.
15902 * hsa-gen.c (gen_hsa_addr_insns): Same.
15903 (gen_hsa_insns_for_load): Same.
15904 (gen_hsa_cmp_insn_from_gimple): Same.
15905 (gen_hsa_insns_for_operation_assignment): Same.
15906 (gen_get_level): Same.
15907 (gen_hsa_alloca): Same.
15908 (omp_simple_builtin::generate): Same.
15909 (gen_hsa_atomic_for_builtin): Same.
15910 (gen_hsa_insns_for_call): Same.
15911 * input.c (dump_location_info): Same.
15912 * ipa-devirt.c (compare_virtual_tables): Same.
15913 * ira.c (ira_setup_eliminable_regset): Same.
15914 * lra-assigns.c (lra_assign): Same.
15915 * lra-constraints.c (lra_constraints): Same.
15916 * lto-streamer-in.c (lto_input_mode_table): Same.
15917 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
15918 (merge_and_complain): Same.
15919 (compile_offload_image): Same.
15920 (compile_images_for_offload_targets): Same.
15921 (debug_objcopy): Same.
15924 * opts.c (print_specific_help): Same.
15925 (parse_no_sanitize_attribute): Same.
15926 (print_help): Same.
15927 (handle_param): Same.
15928 * plugin.c (add_new_plugin): Same.
15929 (parse_plugin_arg_opt): Same.
15930 (try_init_one_plugin): Same.
15931 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
15932 operators, and types in diagnostics. Correct quoting and spelling
15934 * read-rtl-function.c (parse_edge_flag_token): Same.
15935 (function_reader::parse_enum_value): Same.
15936 * reg-stack.c (check_asm_stack_operands): Same.
15937 * regcprop.c (validate_value_data): Same.
15938 * sched-rgn.c (make_pass_sched_fusion): Same.
15939 * stmt.c (check_unique_operand_names): Same.
15940 * targhooks.c (default_target_option_pragma_parse): Same.
15941 * tlink.c (recompile_files): Same.
15942 * toplev.c (process_options): Same.
15943 (do_compile): Same.
15944 * trans-mem.c (diagnose_tm_1): Same.
15945 (ipa_tm_scan_irr_block): Same.
15946 (ipa_tm_diagnose_transaction): Same.
15947 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
15948 format a tree code name in a diagnostic.
15949 (verify_types_in_gimple_min_lval): Same.
15950 (verify_types_in_gimple_reference): Same.
15951 (verify_gimple_call): Same.
15952 (verify_gimple_assign_unary): Same.
15953 (verify_gimple_assign_binary): Same.
15954 (verify_gimple_assign_ternary): Same.
15955 (verify_gimple_assign_single): Same.
15956 (verify_gimple_switch): Same.
15957 (verify_gimple_label): Same.
15958 (verify_gimple_phi): Same.
15959 (verify_gimple_in_seq): Same.
15960 (verify_eh_throw_stmt_node): Same.
15961 (collect_subblocks): Same.
15962 (gimple_verify_flow_info): Same.
15963 (do_warn_unused_result): Same.
15964 * tree-inline.c (expand_call_inline): Same.
15965 * tree-into-ssa.c (update_ssa): Same.
15966 * tree.c (tree_int_cst_elt_check_failed): Same.
15967 (tree_vec_elt_check_failed): Same.
15968 (omp_clause_operand_check_failed): Same.
15969 (verify_type_variant): Same.
15970 (verify_type): Same.
15971 * value-prof.c (verify_histograms): Same.
15972 * varasm.c (assemble_start_function): Same.
15974 2019-05-16 Martin Sebor <msebor@redhat.com>
15976 * config/i386/i386-expand.c (get_element_number): Quote keywords
15977 and other internal names in diagnostics. Adjust other diagnostic
15978 formatting issues noted by -Wformat-diag.
15979 * config/i386/i386-features.c
15980 (ix86_mangle_function_version_assembler_name): Same.
15981 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
15982 * config/i386/i386.c (ix86_function_type_abi): Same.
15983 (ix86_function_ms_hook_prologue): Same.
15984 (classify_argument): Same.
15985 (ix86_expand_prologue): Same.
15986 (ix86_md_asm_adjust): Same.
15987 (ix86_memmodel_check): Same.
15989 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
15991 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
15992 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
15995 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
15998 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
15999 intrinsics without SSE/SSE2/SSSE3.
16000 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
16002 (*mmx_uavgv8qi3): Likewise.
16004 2019-05-17 Richard Biener <rguenther@suse.de>
16006 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
16007 VEC_PERM_EXPR as __VEC_PERM with -gimple.
16009 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
16011 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
16012 vec_sldw insn pattern.
16014 2019-05-17 Richard Biener <rguenther@suse.de>
16016 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
16018 2019-05-17 Martin Liska <mliska@suse.cz>
16021 * toplev.c (output_stack_usage): With LTO and sanitizer it
16022 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
16023 has no file location.
16025 2019-05-16 Jakub Jelinek <jakub@redhat.com>
16028 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
16029 sz0 is equal to sz1, instead return false in that case.
16031 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
16032 has non-constant expression, force sctx.lane and use two
16033 argument IFN_GOMP_SIMD_LANE instead of single argument.
16034 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
16035 two argument IFN_GOMP_SIMD_LANE without lhs.
16036 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
16038 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
16040 (LOOP_REQUIRES_VERSIONING): Or in
16041 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
16042 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
16044 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
16045 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
16046 from simd if clause if needed.
16048 2019-05-16 Richard Biener <rguenther@suse.de>
16050 * tree-affine.c (expr_to_aff_combination): New function split
16052 (tree_to_aff_combination): ... here.
16053 (aff_combination_expand): Avoid building a GENERIC tree.
16055 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
16057 * cgraphunit.c (cgraph_node::expand_thunk): Remove
16058 assemble_start_function and assemble_end_function calls.
16059 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
16060 assemble_start_function and assemble_end_function.
16061 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
16062 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
16063 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
16064 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
16065 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
16066 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
16067 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
16068 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
16069 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16070 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16071 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16072 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
16074 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
16075 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
16076 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
16077 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
16078 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16079 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16080 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
16081 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
16082 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16083 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16084 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16085 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16086 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
16087 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
16089 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16090 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16091 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
16093 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
16095 * tree-ssa-alias.c (alias_stats): Add
16096 aliasing_component_refs_p_may_alias and
16097 aliasing_component_refs_p_no_alias.
16098 (dump_alias_stats): Print aliasing_component_refs_p stats.
16099 (aliasing_component_refs_p): Update stats.
16101 2019-05-16 Martin Liska <mliska@suse.cz>
16104 * multiple_target.c (expand_target_clones): Do not allow
16105 target_clones being used with a symbol that is an alias.
16107 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
16109 PR tree-optimization/90394
16110 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
16111 positives rather than ICE for cases where (code2 == NE_EXPR
16112 && code1 == BIT_AND_EXPR).
16114 2019-05-16 Jakub Jelinek <jakub@redhat.com>
16117 * tree-core.h (struct tree_decl_common): Document
16118 decl_nonshareable_flag for PARM_DECLs.
16119 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
16120 * calls.c (expand_call): Don't try tail call if caller
16121 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
16122 passed on the stack and callee needs to pass any arguments on the
16124 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16125 else if instead of series of mutually exclusive ifs. Handle
16126 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
16127 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16129 * lto-streamer.h (LTO_major_version): Bump to 9.
16131 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
16133 PR tree-optimization/90106
16134 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
16135 new parameter as new internal function call, also move it to new
16137 (use_internal_fn): Pass internal function call to
16138 shrink_wrap_one_built_in_call_with_conds.
16140 2019-05-15 Jakub Jelinek <jakub@redhat.com>
16142 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
16144 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
16145 safelen_int and set loop->dont_vectorize.
16147 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16150 * config/i386/i386-builtin.def: Enable MMX intrinsics with
16152 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
16154 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
16155 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
16156 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
16159 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16162 * config/i386/mmx.md (*vec_dupv2sf): Changed to
16163 define_insn_and_split to support SSE emulation.
16164 (*vec_extractv2sf_0): Likewise.
16165 (*vec_extractv2sf_1): Likewise.
16166 (*vec_extractv2si_0): Likewise.
16167 (*vec_extractv2si_1): Likewise.
16168 (*vec_extractv2si_zext_mem): Likewise.
16169 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
16170 (vec_extractv2sf_1 splitter): Likewise.
16171 (vec_extractv2sfsf): Likewise.
16172 (vec_setv2si): Likewise.
16173 (vec_extractv2si_1 splitter): Likewise.
16174 (vec_extractv2sisi): Likewise.
16175 (vec_setv4hi): Likewise.
16176 (vec_extractv4hihi): Likewise.
16177 (vec_setv8qi): Likewise.
16178 (vec_extractv8qiqi): Likewise.
16179 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
16180 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
16181 (vec_extractv2sisi): Likewise.
16182 (vec_extractv4hihi): Likewise.
16183 (vec_extractv8qiqi): Likewise.
16184 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
16185 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
16186 (vec_initv2sisi): Likewise.
16187 (vec_initv4hihi): Likewise.
16188 (vec_initv8qiqi): Likewise.
16189 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
16190 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
16191 (vec_setv4hi): Likewise.
16192 (vec_setv8qi): Likewise.
16194 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16197 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
16198 TARGET_MMX_WITH_SSE.
16199 (MMXMODE:*mov<mode>_internal): Likewise.
16200 (MMXMODE:movmisalign<mode>): Likewise.
16202 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
16205 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
16206 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
16207 (sse2_cvtpd2pi): Ditto.
16208 (sse2_cvttpd2pi): Ditto.
16209 (*vec_concatv2sf_sse4_1): Ditto.
16210 (*vec_concatv2sf_sse): Ditto.
16211 (*vec_concatv2si_sse4_1): Ditto.
16212 (*vec_concatv2si): Ditto.
16213 (*vec_concatv4si_0): Ditto.
16214 (*vec_concatv2di_0): Ditto.
16216 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16219 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
16221 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16224 * config/i386/sse.md (ssse3_palignrdi): Changed to
16225 define_insn_and_split to support SSE emulation.
16227 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16230 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
16232 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16235 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
16236 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
16239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16242 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
16243 or TARGET_MMX_WITH_SSE.
16244 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
16246 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16249 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
16251 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16254 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
16255 Changed to define_insn_and_split to support SSE emulation.
16257 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16260 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
16261 Changed to define_insn_and_split to support SSE emulation.
16263 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16266 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
16267 (*mmx_<emms>): This.
16268 (mmx_<emms>): New expander.
16270 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16273 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
16275 (*sse2_umulv1siv1di3): Add SSE2 emulation.
16277 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16280 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
16282 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16285 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
16287 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16290 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
16291 TARGET_MMX_WITH_SSE.
16292 (*mmx_uavgv4hi3): Add SSE emulation.
16294 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16297 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
16298 and TARGET_MMX_WITH_SSE.
16299 (*mmx_uavgv8qi3): Add SSE emulation.
16301 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16304 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
16305 maskmovdqu for __MMX_WITH_SSE__.
16307 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16310 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
16311 TARGET_MMX and TARGET_MMX_WITH_SSE.
16312 (*mmx_umulv4hi3_highpart): Add SSE emulation.
16314 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16317 * config/i386/mmx.md (mmx_pmovmskb): Changed to
16318 define_insn_and_split to support SSE emulation.
16320 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16323 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
16324 and TARGET_MMX_WITH_SSE.
16325 (mmx_<code>v8qi3): Likewise.
16326 (smaxmin:<code>v4hi3): New.
16327 (umaxmin:<code>v8qi3): Likewise.
16328 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
16329 (umaxmin:*mmx_<code>v8qi3): Likewise.
16331 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16334 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
16335 TARGET_MMX_WITH_SSE.
16336 (*mmx_pinsrw): Add SSE emulation.
16338 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16341 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
16343 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16346 * config/i386/sse.md (sse_cvtpi2ps): Changed to
16347 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
16350 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16353 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
16354 (sse_cvttps2pi): Likewise.
16356 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16359 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
16360 TARGET_MMX_WITH_SSE.
16361 (mmx_pshufw_1): Add SSE emulation.
16362 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
16363 TARGET_MMX_WITH_SSE to support SSE emulation.
16365 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16368 * config/i386/constraints.md (Yw): New constraint.
16369 * config/i386/mmx.md (*vec_dupv2si): Changed to
16370 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
16371 support SSE emulation.
16373 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16376 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
16377 TARGET_MMX_WITH_SSE.
16378 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
16380 (mmx_gt<mode>3): Likewise.
16382 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16385 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
16386 TARGET_MMX_WITH_SSE. Add SSE support.
16388 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16391 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
16392 TARGET_MMX_WITH_SSE.
16393 (any_logic:<code><mode>3): New.
16394 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
16397 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16400 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
16401 TARGET_MMX_WITH_SSE. Add SSE emulation.
16402 (mmx_<shift_insn><mode>3): Likewise.
16403 (ashr<mode>3): New.
16404 (<shift_insn><mode>3): Likewise.
16406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16409 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
16410 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
16412 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16415 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
16416 TARGET_MMX_WITH_SSE.
16417 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
16420 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16423 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
16424 TARGET_MMX_WITH_SSE.
16426 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
16429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16432 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
16433 (plusminus:mmx_<plusminus_insn><mode>3): Check
16434 TARGET_MMX_WITH_SSE.
16435 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
16436 (<plusminus_insn><mode>3): New.
16437 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
16438 (*mmx_<plusminus_insn><mode>3): Likewise.
16440 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16443 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
16444 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
16446 * config/i386/mmx.m (mmx_punpckhbw): Changed to
16447 define_insn_and_split to support SSE emulation.
16448 (mmx_punpcklbw): Likewise.
16449 (mmx_punpckhwd): Likewise.
16450 (mmx_punpcklwd): Likewise.
16451 (mmx_punpckhdq): Likewise.
16452 (mmx_punpckldq): Likewise.
16454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16455 Uros Bizjak <ubizjak@gmail.com>
16458 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
16460 (ix86_split_mmx_pack): Likewise.
16461 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
16463 (ix86_split_mmx_pack): Likewise.
16464 * config/i386/i386.md (mmx_isa): New.
16465 (enabled): Also check mmx_isa.
16466 * config/i386/mmx.md (any_s_truncate): New code iterator.
16467 (s_trunsuffix): New code attr.
16468 (mmx_packsswb): Removed.
16469 (mmx_packssdw): Likewise.
16470 (mmx_packuswb): Likewise.
16471 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
16472 MMX packsswb/packuswb with SSE2.
16473 (mmx_packssdw): Likewise.
16474 * config/i386/predicates.md (register_mmxmem_operand): New.
16476 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
16479 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16480 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
16481 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
16482 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
16483 (ix86_vector_mode_supported_p): Likewise.
16484 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
16486 2019-05-15 Martin Liska <mliska@suse.cz>
16488 PR middle-end/90478
16489 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
16490 Check for overflow.
16492 2019-05-15 Richard Biener <rguenther@suse.de>
16494 * tree-into-ssa.c (pass_build_ssa::execute): Run
16495 update_address_taken before going into SSA.
16497 2019-05-15 Richard Biener <rguenther@suse.de>
16499 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
16500 as __BIT_FIELD_REF with type with -gimple.
16502 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
16504 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
16505 semantically equivalent branches (left over after prior refactorings).
16507 2019-05-15 Richard Biener <rguenther@suse.de>
16509 PR tree-optimization/88828
16510 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
16513 2019-05-14 Richard Biener <rguenther@suse.de>
16515 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
16516 as __VIEW_CONVERT with -gimple.
16518 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
16521 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
16524 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
16526 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
16527 define_split to become a define_insn_and_split.
16529 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
16531 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
16533 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
16534 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
16535 (sibcall_epilogue): Adjust.
16536 (epilogue): Adjust.
16538 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16540 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
16541 to unsupported ones.
16542 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
16543 * config.host: Likewise.
16544 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
16545 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
16546 __svr4__]: Remove "brand" fallback.
16547 [!KSTAT_DATA_STRING]: Remove.
16548 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
16550 (comdat_group): Likewise.
16551 (set_have_as_tls): Likewise.
16552 (gcc_cv_target_dl_iterate_phdr): Likewise.
16553 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
16554 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
16555 * configure: Regenerate.
16556 * doc/install.texi: Simplify Solaris target triplets.
16557 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
16558 (Specific, *-*-solaris2*): Document Solaris 10 removal.
16559 Remove Solaris 10 references.
16560 Remove obsolete Solaris bug reference.
16561 (Specific, sparc-sun-solaris2.10): Remove.
16563 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
16565 * config/i386/i386.md (any_div): New code iterator.
16566 (paired_mod): New code attribute.
16567 (sgnprefix): Handle DIV and UDIV RTXes.
16569 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
16570 and udivmod<mode>4 patterns using any_div code iterator.
16571 (divmod splitters): Macroize splitters using any_div code iterator.
16572 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
16573 (*udivmodsi4_pow2_zext_2): Ditto.
16574 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
16575 and *udivmod<mode>4_noext patterns using any_div code iterator.
16576 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
16577 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
16578 patterns using any_div code iterator.
16579 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
16580 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
16581 patterns using any_div code iterator.
16582 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
16583 udivmodhiqi3 patterns using any_extend code iterator.
16585 2019-05-14 Richard Biener <rguenther@suse.de>
16586 H.J. Lu <hongjiu.lu@intel.com>
16588 PR tree-optimization/88828
16589 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
16590 permuting in a single non-constant element not extracted
16593 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
16595 * internal-fn.def (SIGNBIT): New.
16596 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
16598 (signbitv4sf2): Likewise.
16600 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
16603 * config/mips/mips.c (mips_split_move): Skip forward SRC into
16604 next insn when the SRC reg is dead.
16606 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
16608 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
16609 (alloc_cand_and_find_basis): Ditto.
16610 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
16611 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
16612 (create_add_imm_cand, slsr_process_cast): Ditto.
16613 (slsr_process_copy, replace_mult_candidate): Ditto.
16614 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
16615 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
16616 (pass_strength_reduction::execute): Init the first NULL element.
16618 2019-05-13 Nathan Sidwell <nathan@acm.org>
16620 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
16621 (run_attempt): Reformat line break.
16623 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
16626 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
16627 data registers in sibcall epilogues.
16628 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
16630 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
16633 * configure.ac (--enable-frame-pointer):
16634 Disable by default for cygwin and mingw.
16635 * configure: Regenerate.
16637 2019-05-13 Nathan Sidwell <nathan@acm.org>
16639 * dwarf2out.c (breakout_comdat_types): Move comment to correct
16641 (const_ok_for_output_1): Balance parens around #if/#else/#endif
16642 (gen_member_die): Move abstract origin check earlier. Only VARs
16643 can be static_inline_p. Simplify splicing control flow.
16645 2019-05-13 Richard Biener <rguenther@suse.de>
16647 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
16649 (vect_build_slp_tree_1): Likewise.
16651 2019-05-13 Richard Biener <rguenther@suse.de>
16653 PR tree-optimization/90402
16654 * tree-if-conv.c (tree_if_conversion): Value number only
16655 the loop body by making the latch an exit of the region
16657 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
16659 (do_rpo_vn): Deal with multiple edges into the entry block
16660 that are not backedges inside the region by skipping PHIs
16661 of the entry block.
16663 2019-05-13 Richard Biener <rguenther@suse.de>
16665 PR tree-optimization/90316
16666 * tree-ssa-pre.c (insert_aux): Fold into ...
16667 (insert): ... this function. Use a RPO walk to reduce the
16668 number of required iterations.
16670 2019-05-13 Martin Liska <mliska@suse.cz>
16672 PR tree-optimization/90416
16673 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
16674 string instead of passing the second part as va_arg argument.
16676 2019-05-13 Martin Liska <mliska@suse.cz>
16678 PR gcov-profile/90380
16679 * gcov.c (handle_cycle): Do not support zero cycle count,
16680 it should not be possible.
16681 (path_contains_zero_cycle_arc): New function.
16682 (circuit): Ignore zero cycle arc counts.
16684 2019-05-13 Martin Liska <mliska@suse.cz>
16686 PR gcov-profile/90380
16687 * gcov.c (enum loop_type): Remove the enum and
16689 (handle_cycle): Assert that we should not reach
16691 (circuit): Use loop_found instead of a tri-state loop_type.
16692 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
16695 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
16698 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
16699 (ix86_output_indirect_branch_via_reg): Use output mechanism
16700 accounting for __USER_LABEL_PREFIX__.
16701 (ix86_output_indirect_branch_via_push): Likewise.
16702 (ix86_output_function_return): Likewise.
16703 (ix86_output_indirect_function_return): Likewise.
16705 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
16707 * doc/md.texi: Document use of code attributes in rtx patterns.
16708 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
16709 * read-rtl.c (find_code): Split out search loops into...
16710 (maybe_find_code): ...this new function.
16711 (check_code_iterator): Make the error message more informative.
16712 (check_code_attribute): New function.
16713 (rtx_reader::rtx_alloc_for_name): Likewise.
16714 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
16715 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
16716 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
16717 <max_opp> directly as an rtx code instead of via a match_operator.
16718 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
16719 (<su>abd<mode>_3): Update accordingly.
16721 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
16723 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
16724 is given, print the state of the EH "save world" computation for
16727 2019-05-11 Jakub Jelinek <jakub@redhat.com>
16730 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
16731 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
16733 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
16735 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
16736 Use pinsrd for TARGET_SSE4_1.
16737 * config/i386/sse.md (movdi_to_sse): Ditto.
16739 2019-05-10 Richard Biener <rguenther@suse.de>
16741 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
16742 (do_rpo_vn): Initialize next_value_id.
16744 2019-05-10 Martin Liska <mliska@suse.cz>
16746 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
16749 2019-05-10 Jakub Jelinek <jakub@redhat.com>
16751 PR tree-optimization/90385
16752 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
16753 arguments of the exit phis.
16756 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
16757 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
16759 (copy_tree_body_r): Likewise.
16760 (copy_fn): Set id.do_not_fold to true.
16762 2019-05-10 Martin Liska <mliska@suse.cz>
16764 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
16765 Reapply changes from r269790.
16767 2019-05-10 Martin Liska <mliska@suse.cz>
16769 PR middle-end/90340
16770 * doc/invoke.texi: New params.
16771 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
16772 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
16773 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
16775 * tree-switch-conversion.h (struct jump_table_cluster):
16778 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
16780 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
16782 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
16784 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
16786 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
16788 PR rtl-optimization/88879
16789 * sel-sched.c (sel_target_adjust_priority): Remove assert.
16791 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
16794 * config/arm/arm.c (callee_saved_reg_p): Move before
16795 thumb_find_work_register.
16796 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
16797 thumb_find_work_register. Only call df_get_live_out once.
16798 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
16799 (thumb_find_work_register): Use
16800 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
16801 algorithms to locate a spare call clobbered reg.
16803 2019-05-09 Martin Liska <mliska@suse.cz>
16805 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
16806 and MAX_EXPR in GIMPLE FE format.
16808 2019-05-09 Martin Liska <mliska@suse.cz>
16810 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
16811 * gimple-pretty-print.c (dump_gimple_bb_header):
16813 (pp_cfg_jump): Dump edge probability.
16814 * profile-count.c (profile_quality_as_string): Simplify
16815 with a static array.
16816 (parse_profile_quality): New function.
16817 (profile_count::dump): Simplify with a static array.
16818 (profile_count::from_gcov_type): Add new argument.
16819 * profile-count.h (parse_profile_quality): Likewise.
16820 * predict.h (set_hot_bb_threshold): New.
16821 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
16823 * predict.c (get_hot_bb_threshold): Set from the new param.
16824 (set_hot_bb_threshold): New.
16826 2019-05-09 Richard Biener <rguenther@suse.de>
16828 PR tree-optimization/90395
16829 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
16830 rewrite vector stores that throw internally.
16832 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
16834 * cif-code.def (CHKP): Remove.
16837 * configure.ac (--enable-frame-pointer): Disable by default for
16839 * configure: Regenerate.
16841 2019-05-09 Alan Modra <amodra@gmail.com>
16844 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
16845 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
16846 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
16847 cost for general <-> vsx when direct moves are available.
16848 Cost union classes at minimal cost for any reg in the class.
16849 Correct calculation for moves between vsx, float, and altivec.
16850 Don't return a low cost for moves between special regs. Don't
16851 use hard coded register numbers.
16852 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
16853 (rs6000_ira_change_pseudo_allocno_class): New function.
16854 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
16855 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
16857 (movsi_internal1): Don't disparage vector alternatives.
16858 (mov<mode>_internal): Likewise, excepting alternative that
16860 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
16861 we <- b alternative.
16863 2019-05-08 Jakub Jelinek <jakub@redhat.com>
16866 PR tree-optimization/89060
16867 * tree-ssa-live.h (live_vars_map): New typedef.
16868 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
16869 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
16870 (struct compute_live_vars_data): New type.
16871 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
16872 live_vars_at_stmt, destroy_live_vars): New functions.
16873 * tree-tailcall.c: Include tree-ssa-live.h.
16874 (live_vars, live_vars_vec): New global variables.
16875 (find_tail_calls): Perform variable life analysis before punting.
16876 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
16877 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
16879 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
16880 Perform variable life analysis to select variables that really need
16882 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
16883 instead set id->eh_landing_pad_dest and assert it is the same.
16884 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
16886 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
16887 Richard Earnshaw <rearnsha@arm.com>
16890 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
16892 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
16893 (thumb1_compute_save_core_reg_mask): Don't force a spare work
16894 register if both the epilogue and prologue can use call-clobbered
16896 (thumb1_unexpanded_epilogue): Use
16897 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
16898 picking temporaries for restoring high regs to match that of the
16899 prologue where possible.
16900 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
16901 the list of work registers. Detect if the return address is still live
16902 at the end of the prologue and avoid using it for a work register if so.
16903 If the return address is not live, add LR to the list of pushable regs
16904 after the first pass.
16906 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
16908 PR tree-optimization/90078
16909 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
16910 (INFTY): Increase the value for infinite cost.
16911 (struct comp_cost): Promote type of members to int64_t.
16912 (infinite_cost): Don't set complexity in initialization.
16913 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
16914 overflows to infinite_cost.
16915 (adjust_setup_cost): Promote type of parameter and cost computation
16917 (struct ainc_cost_data, struct iv_ca): Promote type of member to
16919 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
16920 cost computation to int64_t.
16921 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
16922 int64_t's format specifier in dump.
16924 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
16926 PR tree-optimization/90240
16927 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
16928 with respect to scaling factor pre-computed for each basic block.
16929 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
16930 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
16931 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
16932 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
16933 live range for array of loop's basic blocks. Cleanup aux field of
16934 loop's basic blocks.
16936 2019-05-08 Jakub Jelinek <jakub@redhat.com>
16938 PR tree-optimization/90356
16939 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
16941 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
16943 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
16944 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
16945 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
16946 (ix86_handle_option): Handle -mavx512bf16.
16947 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
16949 * config/i386/avx512bf16vlintrin.h: New.
16950 * config/i386/avx512bf16intrin.h: New.
16951 * config/i386/cpuid.h (bit_AVX512BF16): New.
16952 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
16953 * config/i386/i386-builtin-types.def: Add new types.
16954 * config/i386/i386-builtin.def: Add new builtins.
16955 * config/i386/i386-c.c (ix86_target_macros_internal): Define
16957 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
16958 (ix86_option_override_internal): Handle BF16.
16959 (ix86_valid_target_attribute_inner_p): Ditto.
16960 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
16961 * config/i386/i386-builtin.c (enum processor_features): Add
16963 (static const _isa_names_table isa_names_table): Ditto.
16964 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
16965 (PTA_AVX512BF16): Ditto.
16966 * config/i386/i386.opt: Add -mavx512bf16.
16967 * config/i386/immintrin.h: Include avx512bf16intrin.h
16968 and avx512bf16vlintrin.h.
16969 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
16970 avx512f_cvtneps2bf16_<mode><mask_name>,
16971 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
16972 * config/i386/subst.md (mask_half): Add new subst.
16973 * doc/invoke.texi: Document -mavx512bf16.
16975 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
16977 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
16978 Delete declaration.
16979 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
16980 (rs6000_debug_legitimize_reload_address): Delete.
16981 (rs6000_legitimize_reload_address_ptr): Delete.
16982 (rs6000_option_override_internal): Adjust.
16983 (mem_operand_gpr): Adjust comment.
16984 (legitimate_lo_sum_address_p): Ditto.
16985 (rs6000_legitimize_reload_address): Delete.
16986 (rs6000_debug_legitimize_reload_address): Delete.
16987 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
16989 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
16992 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16993 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
16994 to compute vector element selector for both constant and variable
16997 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
16999 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
17000 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
17001 ashrdi3_cvt using SWI48 mode iterator.
17003 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17005 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
17006 (aarch64_<su>abd<mode>_3): Likewise.
17007 (*aarch64_<su>abd<mode>_3): New define_insn.
17008 (<sur>sad<vsi2qi>): New define_expand.
17009 * config/aarch64/iterators.md: Added MAX_OPP attribute.
17010 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
17011 (build_vect_cond_expr): Likewise.
17013 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
17015 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
17016 clobbers outside of accessible_reg_set.
17017 * config/i386/i386.c (ix86_conditional_register_usage):
17018 Disable register sets by clearing corresponding bits in
17019 accessible_reg_set. Do not set corresponding bits in fixed_regs,
17020 call_used_regs and don't clear corresponding reg_names array members.
17022 2019-05-07 Richard Biener <rguenther@suse.de>
17024 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
17025 not specified still compute a comp_vectype for invariant
17028 2019-05-07 Richard Biener <rguenther@suse.de>
17030 PR tree-optimization/90316
17031 * tree-ssa-pre.c (translate_vuse_through_block): When
17032 same_valid is NULL do not bother to search for a virtual
17034 (phi_translate_1): When operands changed we cannot keep
17035 the same value-number so do not bother to ask whether
17036 that's possible from translate_vuse_through_block.
17038 2019-05-07 Martin Liska <mliska@suse.cz>
17040 * bitmap.c (bitmap_register): Come up with
17041 alloc_descriptor_max_uid and assign it for
17043 (register_overhead): Use get_descriptor as
17045 (release_overhead): New.
17046 (bitmap_elem_to_freelist): Call it.
17047 (bitmap_elt_clear_from): Likewise.
17048 (bitmap_obstack_free): Likewise.
17049 (bitmap_move): Sensitively release memory.
17050 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
17051 (bitmap_initialize): Initialize alloc_descriptor to zero.
17052 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
17054 2019-05-07 Richard Biener <rguenther@suse.de>
17056 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
17057 we build a SLP node. Remove max_size and limiting.
17058 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
17060 2019-05-07 Richard Biener <rguenther@suse.de>
17062 PR tree-optimization/90316
17063 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
17064 limit by reference.
17065 (walk_non_aliased_vuses): Take walking limit argument.
17066 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
17067 walking if it is reached instead of just counting.
17068 (get_continuation_for_phi): Likewise.
17069 (walk_non_aliased_vuses): Likewise, instead of leaving counter
17070 limiting to the callback.
17071 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
17072 (vn_reference_lookup_3): Likewise.
17073 (vn_reference_lookup_pieces): Likewise.
17074 (vn_reference_lookup): Likewise.
17075 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
17076 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
17077 (avail_exprs_stack::lookup_avail_expr): Likewise.
17079 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
17081 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
17082 for comparaible types in the second direction even if first one
17083 hits incomparable type.
17085 2019-05-07 Richard Biener <rguenther@suse.de>
17088 * lto-wrapper.c (debug_objcopy): Use the original filename
17089 including archive offset for the filename used for -save-temps.
17091 2019-05-07 Li Jia He <helijia@linux.ibm.com>
17093 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
17096 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
17097 Hongtao Liu <hongtao.liu@intel.com>
17101 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
17102 Modified, original implementation isn't correct.
17104 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17106 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
17107 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
17108 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
17109 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
17110 (FRAME_POINTER_REGNUM): Change numbering.
17111 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
17112 (alt_reg_names): Adjust.
17113 (rs6000_conditional_register_usage): Don't mark hard register 64 as
17115 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17116 (DWARF_FRAME_REGISTERS): Delete.
17117 (DWARF2_FRAME_REG_OUT): Fix whitespace.
17118 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17120 (REG_ALLOC_ORDER): Adjust.
17121 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
17122 (REG_CLASS_CONTENTS): Adjust.
17123 (RETURN_ADDR_RTX): Change comment.
17124 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
17126 (REGISTER_NAMES): Adjust.
17127 (ADDITIONAL_REGISTER_NAMES): Adjust.
17128 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17130 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17132 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
17134 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17135 (DWARF_FRAME_REGISTERS): Adjust.
17136 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17138 (REG_ALLOC_ORDER): Adjust.
17139 (enum reg_class): Delete SPR_REGS.
17140 (REG_CLASS_NAMES): Delete SPR_REGS.
17141 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
17142 (REGISTER_NAMES): Adjust.
17143 (ADDITIONAL_REGISTER_NAMES): Adjust.
17144 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17145 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
17146 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
17147 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
17148 (htm_spr_regno): Delete.
17149 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
17151 (rs6000_dbx_register_number): Adjust.
17153 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17155 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
17157 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
17159 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
17160 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
17162 2019-05-06 Jakub Jelinek <jakub@redhat.com>
17164 PR tree-optimization/88709
17165 PR tree-optimization/90271
17166 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
17167 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
17168 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
17170 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
17171 of the store merging group is larger than
17172 PARAM_STORE_MERGING_MAX_SIZE parameter.
17173 (split_group): Add bzero_first argument. If set, always emit first
17174 the first store which must be = {} of the whole area and then for the
17175 rest of the stores consider all zero bytes as paddings.
17176 (imm_store_chain_info::output_merged_store): Check if first store
17177 is = {} of the whole area and if yes, determine which setting of
17178 bzero_first for split_group gives smaller number of stores. Adjust
17179 split_group callers.
17180 (lhs_valid_for_store_merging_p): Allow decls.
17181 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
17183 (pass_store_merging::process_store): Likewise.
17185 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
17188 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17189 handling of V1TImode.
17191 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
17194 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
17195 and enable_frame_pointer ...
17196 * configure.ac: ... here. Update help strings for
17197 --enable-frame-pointer.
17198 * configure: Regenerate.
17199 * config/i386/i386-options.c (ix86_option_override_internal): Remove
17200 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
17201 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
17202 (USE_X86_64_FRAME_POINTER): Ditto.
17204 2019-05-06 Martin Liska <mliska@suse.cz>
17206 * config.gcc: Append to target_gtfiles and fix indentation.
17208 2019-05-06 Richard Biener <rguenther@suse.de>
17210 PR tree-optimization/90358
17211 * tree-vect-stmts.c (get_group_load_store_type): Properly
17212 detect unused upper half of load.
17213 (vectorizable_load): Likewise.
17215 2019-05-06 Richard Biener <rguenther@suse.de>
17217 PR tree-optimization/88828
17218 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
17219 (simplify_vector_constructor): ...here. Handle constants in
17222 2019-05-06 Richard Biener <rguenther@suse.de>
17224 PR tree-optimization/90328
17225 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
17226 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
17227 is valid in the loop nest before using it.
17228 (initialize_data_dependence_relation): Adjust.
17229 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
17230 loop as loop-nest to dr_may_alias_p.
17232 2019-05-06 Richard Biener <rguenther@suse.de>
17234 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
17236 2019-05-06 Richard Biener <rguenther@suse.de>
17238 PR tree-optimization/90316
17239 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
17240 compute target on demand.
17241 (get_continuation_for_phi): Remove code walking stmts to
17242 get to a target virtual operand which could end up being
17245 2019-05-06 Martin Liska <mliska@suse.cz>
17248 * config/i386/i386-options.c (ix86_option_override_internal): Error only
17249 when -mabi is selected to a non-default version.
17251 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
17252 Martin Liska <mliska@suse.cz>
17254 * Makefile.in: Add lto-dump.texi.
17255 * cgraph.h: Add new functions get_visibility_string and
17256 get_symtab_type_string.
17257 * doc/gcc.texi: Include lto-dump section.
17258 * doc/lto-dump.texi: New file.
17259 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
17260 (parse_dump_option): Factor out this function.
17261 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
17262 (parse_dump_option): Export the function.
17263 * symtab.c (symtab_node::get_visibility_string): New function.
17264 (symtab_node::get_symtab_type_string): Likewise.
17266 2019-05-06 Martin Liska <mliska@suse.cz>
17268 * config/i386/i386-builtins.c: New file.
17269 * config/i386/i386-builtins.h: New file.
17270 * config/i386/i386-expand.c: New file.
17271 * config/i386/i386-expand.h: New file.
17272 * config/i386/i386-features.c: New file.
17273 * config/i386/i386-features.h: New file.
17274 * config/i386/i386-options.c: New file.
17275 * config/i386/i386-options.h: New file.
17276 * config.gcc: Add new files into extra_objs and
17278 * config/i386/i386.c: Split content of the file
17279 into newly introduced files.
17280 * config/i386/i386.h: Declare common variables
17282 * config/i386/t-i386: Define dependencies for new files.
17284 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
17287 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
17288 Restrict 'all' variant to 32-bit configurations.
17289 (unaligned_loadhiu): Likewise.
17290 (unaligned_storehi): Likewise.
17291 (unaligned_storesi): Likewise.
17292 (unaligned_loadhis): Disable when compiling for thumb1.
17294 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
17296 PR tree-optimization/90269
17297 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
17300 2019-05-03 Martin Liska <mliska@suse.cz>
17302 * hash-map.h: Add is_empty function.
17303 * hash-set.h: Likewise.
17304 * hash-table.h: Likewise.
17305 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
17306 elements () == 0 (and similar usages).
17307 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
17308 * gimplify.c (gimplify_bind_expr): Likewise.
17309 (gimplify_switch_expr): Likewise.
17310 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
17311 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
17312 * postreload-gcse.c (dump_hash_table): Likewise.
17313 (gcse_after_reload_main): Likewise.
17314 * predict.c (combine_predictions_for_bb): Likewise.
17315 * tree-parloops.c (reduction_phi): Likewise.
17316 (separate_decls_in_region): Likewise.
17317 (transform_to_exit_first_loop): Likewise.
17318 (gen_parallel_loop): Likewise.
17319 (gather_scalar_reductions): Likewise.
17320 (try_create_reduction_list): Likewise.
17321 * var-tracking.c (dump_vars): Likewise.
17322 (emit_notes_for_changes): Likewise.
17323 (vt_emit_notes): Likewise.
17325 2019-05-03 Richard Biener <rguenther@suse.de>
17327 PR tree-optimization/90316
17328 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
17331 2019-05-03 Richard Biener <rguenther@suse.de>
17333 * tree-vect-stmts.c (get_group_load_store_type): Avoid
17334 peeling for gaps by loading only lower halves of vectors
17336 (vectorizable_load): Likewise.
17338 2019-05-03 Richard Biener <rguenther@suse.de>
17340 PR middle-end/89518
17341 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
17343 2019-05-03 Richard Biener <rguenther@suse.de>
17345 PR middle-end/87314
17346 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
17347 Handle STRING_CST vs DECL or STRING_CST.
17349 2019-05-03 Richard Biener <rguenther@suse.de>
17351 PR tree-optimization/88963
17352 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
17353 vector loads feeding only BIT_FIELD_REFs to component
17354 loads. Rewrite stores fed by CONSTRUCTORs to component
17357 2019-05-03 Jakub Jelinek <jakub@redhat.com>
17359 * opts.h (finish_options): Remove lang_mask argument.
17360 (print_help, help_option_argument): Declare.
17361 * opts.c (print_help): Remove forward declaration, no longer static.
17362 (finish_options): Remove lang_mask argument, don't call print_help
17364 * opts-global.c (decode_options): Adjust finish_option caller, call
17367 PR tree-optimization/90303
17368 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
17369 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
17371 2019-05-03 Richard Biener <rguenther@suse.de>
17373 PR tree-optimization/89698
17374 * gimple-fold.c (canonicalize_constructor_val): Early out
17375 for constants, handle unfolded INTEGER_CSTs as they appear in
17376 C++ virtual table ctors.
17378 2019-05-03 Richard Biener <rguenther@suse.de>
17380 * passes.c (execute_function_todo): Remove dead code.
17382 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
17384 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
17385 the internal register number, for any "real" register.
17387 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
17389 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
17390 correct numbers for TFHAR, TFIAR, TEXASR.
17392 2019-05-02 Richard Biener <rguenther@suse.de>
17394 PR tree-optimization/89653
17395 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
17396 update-address-taken before the pass.
17397 * passes.def (pass_tree_loop_init): Put comment before it.
17399 2019-05-02 Richard Biener <rguenther@suse.de>
17401 PR tree-optimization/89509
17402 * tree-ssa-structalias.c (compute_dependence_clique): Look
17403 at the first subvar when determining whether it is restrict.
17405 2019-05-02 Richard Biener <rguenther@suse.de>
17407 PR tree-optimization/90273
17408 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
17409 useless debug stmts.
17411 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
17413 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
17415 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
17417 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
17418 VEC_COND_EXPR be inserted to emulate a conditional internal function.
17419 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
17420 (vectorizable_reduction): Use the functions above to vectorize in a
17421 fully masked loop codes that don't have a conditional internal
17424 2019-05-02 Martin Liska <mliska@suse.cz>
17426 * cgraphclones.c: Call valid_attribute_p with 1 for
17428 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
17429 it's for target attribute.
17430 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
17431 Add new boolean argument.
17432 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
17434 (ix86_valid_target_attribute_tree): Pass target_clone_attr
17435 to ix86_valid_target_attribute_inner_p.
17436 (ix86_valid_target_attribute_p): Pass flags argument to
17437 ix86_valid_target_attribute_inner_p.
17438 (get_builtin_code_for_version): Use 0 as it's target attribute.
17440 2019-05-02 Martin Liska <mliska@suse.cz>
17442 * gcc.c (process_command): Add dummy file only
17444 * opts-global.c (decode_options): Pass lang_mask.
17445 * opts.c (print_help): New function.
17446 (finish_options): Print --help if help_option_argument
17448 (common_handle_option): Factor out content of OPT__help_
17450 * opts.h (finish_options): Add new argument.
17452 2019-05-02 Martin Liska <mliska@suse.cz>
17455 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
17456 With -minline-all-stringops use inline expansion using 4B loop.
17457 * doc/invoke.texi: Document the change of
17458 -minline-all-stringops.
17460 2019-05-01 Jeff Law <law@redhat.com>
17462 PR tree-optimization/88797
17463 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
17464 PHI feeds a conditional on the RHS of an assignment.
17466 2019-04-30 Andrew Waterman <andrew@sifive.com>
17467 Jim Wilson <jimw@sifive.com>
17469 * config/riscv/constraints.md (L): New.
17470 * config/riscv/predicates.md (lui_operand): New.
17471 (sfb_alu_operand): New.
17472 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
17473 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
17474 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
17475 * config/riscv/risc.md (type): Add sfb_alu.
17476 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
17477 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
17478 (branch_zero<mode>): Delete.
17479 (mov<mode>cc): New.
17480 (mov<GPR:mode><X:mode>cc): Likewise.
17481 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
17483 2019-04-30 Nathan Sidwell <nathan@acm.org>
17485 * tree.h (MARK_TS_EXP): New.
17487 2019-04-30 Martin Liska <mliska@suse.cz>
17489 * opts.c (enable_warning_as_error): Provide hints
17490 for unknown options.
17492 2019-04-30 Martin Liska <mliska@suse.cz>
17495 * doc/invoke.texi: Add missing dash for gas-locview-support
17496 and gno-as-locview-support.
17498 2019-04-30 Jakub Jelinek <jakub@redhat.com>
17501 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
17502 whitespace at the start of target attribute string.
17504 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17507 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
17508 Define __ARM_FEATURE_ATOMICS.
17510 2019-04-30 Martin Liska <mliska@suse.cz>
17512 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
17513 into built_in_function enum. Remove code for endp == 2 and
17514 use BUILT_IN_* constants.
17515 (gimple_fold_builtin): Call the function with fcode.
17517 2019-04-30 Martin Liska <mliska@suse.cz>
17519 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
17520 DECL_FUNCTION_CODE into ix86_builtins enum before
17521 the switch statement.
17523 2019-04-30 Jakub Jelinek <jakub@redhat.com>
17525 PR tree-optimization/89475
17526 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
17529 2019-04-30 Martin Liska <mliska@suse.cz>
17531 PR translation/90274
17532 * opts.c (print_filtered_help): Wrap string in _(...).
17534 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
17536 PR tree-optimization/90240
17538 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
17540 PR tree-optimization/90078
17541 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
17542 checks for infinite_cost overflow.
17544 2019-04-29 Jeff Law <law@redhat.com>
17546 * passes.def: Move -Wrestrict pass after copy propagation.
17548 2019-04-29 Maya Rashish <coypu@sdf.org>
17550 * config.gcc (default_gnu_indirect_function): Default to yes
17551 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
17552 sparc*-*-netbsd*, x86_64-*-netbsd*.
17554 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
17556 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
17557 where cond2 is NE_EXPR.
17558 (is_value_included_in): Update comment.
17560 2019-04-29 Richard Biener <rguenther@suse.de>
17562 PR tree-optimization/90278
17563 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
17564 EH on comparison simplification.
17566 2019-04-29 Jason Merrill <jason@redhat.com>
17568 PR c++/82081 - tail call optimization breaks noexcept
17569 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
17570 nothrow function to a might-throw function into a tail call.
17572 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
17574 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
17575 (DDR_INNER_LOOP): Likewise.
17576 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
17577 (initialize_data_dependence_relation): Likewise.
17578 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
17580 2019-04-29 Jakub Jelinek <jakub@redhat.com>
17582 PR rtl-optimization/90257
17583 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
17587 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
17591 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
17594 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
17597 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
17599 * lra-spills.c (lra_final_code_change): Remove useless move insns.
17601 2019-04-29 Richard Biener <rguenther@suse.de>
17603 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
17606 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
17608 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
17609 varasm.h, and netbsd-protos.h.
17611 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
17614 * config/i386/i386-protos.h (ix86_data_alignment): Change
17615 the second argument type to unsigned int.
17616 * config/i386/i386.c (ix86_data_alignment): Change "align"
17617 argument type to unsigned int.
17619 2019-04-27 Martin Liska <mliska@suse.cz>
17621 PR middle-end/90258
17622 * opt-suggestions.c (option_proposer::build_option_suggestions):
17623 When get_valid_option_values returns empty values, add the
17624 misspelling candidate.
17626 2019-04-26 Jim Wilson <jimw@sifive.com>
17628 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
17630 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
17631 Pass orig_mode to riscv_build_integer.
17632 (riscv_split_integer): Pass mode to riscv_move_integer.
17633 (riscv_legitimize_const_move): Likewise.
17634 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
17635 promoted_mode. Replace force_reg call with code to load constant into
17636 promoted reg and then subreg it for the store.
17637 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
17638 riscv_move_integer.
17640 2018-04-26 Eugene Sharygin <eush@ispras.ru>
17642 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
17645 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
17647 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
17648 commentary about the encoding of precision.
17650 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
17652 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
17653 * config/i386/t-freebsd64: New file.
17654 * config.gcc: Add the t-freebsd64 for multilib support.
17656 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
17658 * doc/extend.texi (vector_size): Add missing comma after @xref.
17660 2019-04-25 Jakub Jelinek <jakub@redhat.com>
17662 * BASE-VER: Set to 10.0.0.
17664 2019-04-25 Richard Biener <rguenther@suse.de>
17666 PR middle-end/89765
17667 * gimplify.c (gimplify_expr): Avoid turning a lvalue
17668 VIEW_CONVERT_EXPR into one operating on an rvalue.
17670 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
17673 * config/i386/i386.c (feature_priority): Moved to file scope.
17674 (processor_features): Likewise.
17675 (processor_model): Likewise.
17676 (_arch_names_table): Likewise.
17677 (arch_names_table): Likewise.
17678 (_feature_list): Removed.
17679 (feature_list): Likewise.
17680 (_isa_names_table): Moved to file scope. Add priority.
17681 (isa_names_table): Likewise.
17682 (get_builtin_code_for_version): Replace feature_list with
17683 isa_names_table. Update error message for P_ZERO priority.
17685 2019-04-25 Richard Biener <rguenther@suse.de>
17687 * tree-pass.h (make_pass_phi_only_cprop): Remove.
17688 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
17690 2019-04-24 Jeff Law <law@redhat.com>
17692 PR tree-optimization/90037
17693 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
17694 * passes.def: Replace all instance of phi-only cprop with the
17695 lattice propagator. Move propagation pass from after erroneous
17696 path isolation to before erroneous path isolation.
17697 * tree-ssa-phionlycprop.c: Remove.
17699 2019-04-24 Richard Biener <rguenther@suse.de>
17701 PR middle-end/90213
17702 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
17703 by size and BITS_PER_UNIT on poly-wide-ints.
17705 2019-04-25 Richard Biener <rguenther@suse.de>
17707 PR middle-end/90194
17708 * match.pd: Add pattern to simplify view-conversion of an
17711 2019-04-24 Clement Chigot <clement.chigot@atos.net>
17713 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
17714 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
17715 for Go on 32 bit AIX.
17716 * config/rs6000/aix72.h: Likewise.
17718 2019-04-24 Jakub Jelinek <jakub@redhat.com>
17721 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
17722 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
17724 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
17727 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
17728 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
17729 for restored hard frame pointer.
17730 (s390_sched_dependencies_evaluation): Implement new target hook.
17731 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
17733 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
17735 * config/arc/arc-options.def: Fix typos and spelling mistakes.
17736 * config/arc/arc.c (arc_init): Cleanup warning message.
17737 (arc_override_options): Likewise.
17739 2019-04-24 Jakub Jelinek <jakub@redhat.com>
17742 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
17743 a register if both if_true and if_false are MEMs.
17745 PR tree-optimization/90208
17746 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
17747 after labels of new_bb, not before them.
17749 PR tree-optimization/90211
17750 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
17751 which are not SSA_NAMEs.
17753 2018-04-23 Sudakshina Das <sudi.das@arm.com>
17755 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
17757 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
17759 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
17761 PR rtl-optimization/87979
17762 * modulo-sched.c (sms_schedule): Start ii value "mii" should
17765 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
17767 PR rtl-optimization/84032
17768 * modulo-sched.c (ps_insn_find_column): Change condition so that
17769 branch will always be the last insn in a row inside partial
17772 2019-04-23 Richard Biener <rguenther@suse.de>
17775 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
17776 dest_single_pred_p argument.
17777 (remove_forwarder_block): Adjust.
17778 (remove_forwarder_block_with_phi): Likewise.
17780 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17781 Bernd Edlinger <bernd.edlinger@hotmail.de>
17782 Jakub Jelinek <jakub@redhat.com>
17785 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
17786 if used with general-regs-only.
17787 (arm_conditional_register_usage): Don't add non-general regs if
17789 (arm_valid_target_attribute_rec): Handle general-regs-only.
17790 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
17792 (TARGET_HARD_FLOAT_SUB): Define.
17793 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
17794 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
17795 (TARGET_REALLY_IWMMXT2): Likewise.
17796 * config/arm/arm.opt: Add -mgeneral-regs-only.
17797 * doc/extend.texi: Document ARM general-regs-only target.
17798 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
17800 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
17802 PR tree-optimization/90078
17803 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
17804 checks for infinite_cost overflow.
17806 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
17808 PR tree-optimization/90021
17809 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
17810 and check univariate against it.
17811 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
17812 * tree-data-ref.c (add_other_self_distances): Pass new argument.
17814 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
17818 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
17821 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
17824 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
17826 * lra-spills.c (lra_final_code_change): Remove useless move insns.
17828 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
17830 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
17831 names using operand format, rather than hard-wired.
17832 (speculation_barrier): Likewise.
17834 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
17836 PR tree-optimization/88055
17837 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
17838 (gen_one_condition): Use it if !HONOR_NANS.
17840 2019-04-19 Jakub Jelinek <jakub@redhat.com>
17842 PR middle-end/90139
17843 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
17844 assign_temp instead of gen_reg_rtx.
17846 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
17848 PR translation/90118
17849 * config/aarch64/aarch64.c (aarch64_override_options_internal):
17850 Add missing space before %<.
17852 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
17854 PR rtl-optimization/87871
17855 * ira-lives.c (make_object_dead): Don't add conflicts to
17856 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
17858 2019-04-18 Martin Sebor <msebor@redhat.com>
17860 PR middle-end/89797
17861 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
17862 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
17863 assuming type size fits in SHWI.
17865 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
17868 * ipa-inline.c (flatten_function): New parameter UPDATE.
17869 (ipa_inline, early_inliner): Use it.
17871 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
17873 * fold-const.c (int_const_binop): Return early on failure.
17875 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
17877 PR middle-end/85164
17878 * combine.c (force_int_to_mode): Cast the argument rather than
17879 the result of known_alignment.
17880 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
17882 2019-04-18 Richard Biener <rguenther@suse.de>
17885 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
17887 (remove_forwarder_block): ... here.
17888 (remove_forwarder_block_with_phi): Also move debug stmts here.
17890 2019-04-18 Jakub Jelinek <jakub@redhat.com>
17892 PR translation/79183
17893 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
17894 inform where appropriate.
17896 2019-04-18 Richard Biener <rguenther@suse.de>
17898 * tree.c (get_qualified_type): Put found type variants at the
17899 head of the variant list.
17901 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
17903 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
17905 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
17908 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
17909 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
17910 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
17911 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
17912 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
17914 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
17916 * ira-conflicts.c (print_allocno_conflicts): Always print something,
17917 even for allocno's with no conflicts.
17918 (print_conflicts): Print an extra newline.
17920 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
17922 * auto-inc-dec.c (attempt_change): Set the alignment of the
17923 temporary memory to that of the original.
17925 2019-04-17 Joao Moreira <jmoreira@suse.de>
17927 * targhooks.c (default_print_patchable_function_entry): Emit
17928 __patchable_function_entries section with writable flags to allow
17929 relocation resolution.
17931 2019-04-17 Jonny Grant <jg@jguk.org>
17933 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
17935 2019-04-17 Jakub Jelinek <jakub@redhat.com>
17937 PR middle-end/90095
17938 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
17939 on lowpart SUBREGs.
17941 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
17943 * config/arc/arc.c (arc_init): Format diagnostic string.
17944 (arc_override_options): Likewise.
17945 (check_if_valid_regno_const): Likewise.
17946 (arc_reorg): Likewise.
17948 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
17951 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
17953 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
17955 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
17956 (*movdi_update1): Use Pmode.
17957 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
17958 (movdi_<mode>_update_stack): Rename to ...
17959 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
17961 (*movsi_update1): Use Pmode.
17962 (*movsi_update2): Use Pmode.
17963 (movsi_update): Rename to ...
17964 (movsi_<mode>_update): ... this. Use Pmode.
17965 (movsi_update_stack): Fix condition.
17966 (*movhi_update1): Use Pmode. Fix argument to
17967 avoiding_indexed_address_p.
17968 (*movhi_update2): Ditto.
17969 (*movhi_update3): Ditto.
17970 (*movhi_update4): Ditto.
17971 (*movqi_update1): Ditto.
17972 (*movqi_update2): Ditto.
17973 (*movqi_update3): Ditto.
17974 (*movsf_update1, *movdf_update1): Merge, rename to...
17975 (*mov<mode>_update1): This. Use Pmode. Fix argument to
17976 avoiding_indexed_address_p. Add "size" attribute.
17977 (*movsf_update2, *movdf_update2): Merge, rename to...
17978 (*mov<mode>_update2): This. Ditto.
17979 (*movsf_update3): Use Pmode. Fix argument to
17980 avoiding_indexed_address_p.
17981 (*movsf_update4): Ditto.
17982 (allocate_stack): Simplify condition. Adjust pattern names.
17984 2019-04-17 Jakub Jelinek <jakub@redhat.com>
17987 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
17988 whitespace at the start of target attribute string.
17990 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
17993 * config/rs6000/power9.md: Add store forwarding bypass.
17995 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
17998 * valtrack.c (dead_debug_insert_temp): Reset debug references
17999 to the return value of a call being removed.
18001 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18003 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
18004 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
18005 implement target hook.
18006 (arc_memory_move_cost): New function.
18007 (TARGET_REGISTER_MOVE_COST): Define.
18008 (TARGET_MEMORY_MOVE_COST): Likewise.
18009 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
18010 (MEMORY_MOVE_COST): Likewise.
18012 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18014 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
18015 (sibcall_value_insn): Likewise.
18016 * config/arc/constraints.md (Rs5): Remove.
18018 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18020 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
18021 for last two fake registers.
18022 (arc_conditional_register_usage): Make sure fake frame and arg
18023 pointer regs are in general regs class.
18024 (FRAME_POINTER_MASK): Remove.
18025 (RETURN_ADDR_MASK): Remove.
18026 (arc_must_save_register): Use hard frame regnum.
18027 (frame_restore_reg): Use hard_frame_pointer_rtx.
18028 (arc_save_callee_saves): Likewise.
18029 (arc_restore_callee_saves): Likewise.
18030 (arc_save_callee_enter): Likewise.
18031 (arc_restore_callee_leave): Likewise.
18032 (arc_save_callee_milli): Likewise.
18033 (arc_eh_return_address_location): Likewise.
18034 (arc_check_multi): Use hard frame regnum.
18035 (arc_can_eliminate): Likewise.
18036 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
18037 for register allocator.
18038 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
18039 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
18040 (FRAME_POINTER_REGNUM): Change it to a fake register.
18041 (HARD_FRAME_POINTER_REGNUM): Defined.
18042 (ARG_POINTER_REGNUM): Change it to a new fake register.
18043 (ELIMINABLE_REGS): Update.
18044 (REGISTER_NAMES): Update names.
18045 * config/arc/arc.md (LP_START): Remove.
18046 (LP_END): Likewise.
18047 (shift_si3_loop): Update pattern.
18049 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
18051 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
18052 to avoid delay slot scheduling.
18053 (arc_must_save_register): Don't save SP.
18054 * config/arc/arc.md (stack_tie): Remove.
18055 (UNSPEC_ARC_STKTIE): Likewise.
18057 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
18058 Shiva Chen <shiva0217@gmail.com>
18060 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
18061 code gen with large shift amount.
18063 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
18065 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
18068 2019-04-16 Jakub Jelinek <jakub@redhat.com>
18071 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
18072 print -m64/-mx32/-m32 if it is true.
18073 (ix86_debug_options, ix86_function_specific_print): Pass true as
18074 ADD_ABI_P to ix86_target_string.
18075 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
18076 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
18077 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
18079 PR rtl-optimization/90082
18080 * dce.c (can_delete_call): New function.
18081 (deletable_insn_p, mark_insn): Use it.
18083 PR tree-optimization/90090
18084 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
18086 (is_division_by_square): Likewise. Formatting fix.
18088 2019-04-16 Richard Biener <rguenther@suse.de>
18090 PR tree-optimization/56049
18091 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
18092 equality check if alias-set zero will prevail.
18094 2019-04-15 Jeff Law <law@redhat.com>
18096 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
18097 size and alignment as unsigned.
18099 2019-04-15 Richard Biener <rguenther@suse.de>
18102 * tree-loop-distribution.c (destroy_loop): Preserve correct
18105 2019-04-15 Richard Biener <rguenther@suse.de>
18107 PR tree-optimization/90071
18108 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
18109 abnormal operands from def stmts.
18111 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
18113 PR rtl-optimization/89794
18114 * combine.c (count_auto_inc): New function.
18115 (try_combine): Count how many auto_inc expressions there were in the
18116 original instructions. Ensure we have the same number in the new
18117 instructions. Remove the code that tried to ensure auto_inc side
18118 effects on i1 and i0 are not lost.
18120 2019-04-15 Richard Biener <rguenther@suse.de>
18123 * tree.h (auto_var_p): Declare.
18124 * tree.c (auto_var_p): New function, split out from ...
18125 (auto_var_in_fn_p): ... here.
18126 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
18128 (new_var_info): Initialize it.
18129 (set_uids_in_ptset): Also set the shadow variable uid if required.
18130 (ipa_pta_execute): Postprocess points-to solutions assigning
18131 shadow variable uids for locals that may reach their containing
18132 function recursively.
18133 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
18134 assert but instead check whether the points-to solution is
18137 2019-04-15 Martin Jambor <mjambor@suse.cz>
18140 * cgraph.c (clone_of_p): Loop over clone chain for each step in
18143 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
18145 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
18147 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
18148 Kito Cheng <kito.cheng@gmail.com>
18149 Shiva Chen <shiva0217@gmail.com>
18151 * config/nds32/nds32-md-auxiliary.c
18152 (nds32_legitimize_pic_address): Use new PIC pattern.
18153 (nds32_legitimize_tls_address): Use new TLS pattern.
18154 (nds32_output_symrel): New.
18155 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
18156 (nds32_alloc_relax_group_id): Ditto.
18157 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
18158 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
18160 (nds32_group_tls_insn): Ditto.
18161 (nds32_group_float_insns): Ditto.
18162 * config/nds32/nds32.md (tls_le): New.
18165 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
18167 * configure: Add nds32 target for dwarf2 debug_line checking.
18168 * configure.ac: Regenerated.
18170 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
18173 * ipa-devirt.c (skip_in_fields_list_p): New.
18174 (odr_types_equivalent_p): Use it.
18176 2019-04-13 Jakub Jelinek <jakub@redhat.com>
18179 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
18180 instead of strncmp when checking for thumb and arm. Formatting fixes.
18182 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
18184 * doc/install.texi: Document --with-target-system-zlib.
18186 2019-04-12 Martin Sebor <msebor@redhat.com>
18192 * targhooks.c (default_vector_alignment): Avoid assuming
18193 argument fits in SHWI.
18194 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
18195 a shift expression.
18196 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
18198 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18200 PR rtl-optimization/89965
18201 * dce.c: Include rtl-iter.h.
18202 (struct check_argument_load_data): New type.
18203 (check_argument_load): New function.
18204 (find_call_stack_args): Check for loads from stack slots still tracked
18205 in sp_bytes and punt if any is found.
18207 * config/mips/loongson-mmiintrin.h: Fix up #error message.
18209 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
18211 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
18212 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
18214 2019-04-12 Martin Liska <mliska@suse.cz>
18216 PR middle-end/89970
18217 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
18219 (separate_attrs): Handle multiple 'default's.
18220 (expand_target_clones): Rework error handling code.
18222 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
18225 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
18226 mode of vector rather than mode of destination for move instruction.
18227 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
18228 Use QI inner mode with V16QI vector mode.
18230 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18233 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
18234 "invalid %%t operand" in output_operand_lossage message.
18236 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
18238 * config/s390/predicates.md (permute_pattern_operand): New
18240 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
18241 operand for the permute pattern.
18242 ("*vec_perm<mode>"): New insn definition.
18243 ("bswap<mode>"): Generate the permute pattern operand in the
18244 expander and perform the operand reloads for pre arch13 level
18246 ("*bswap<mode>_emu"): Rename to ...
18247 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
18248 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
18249 Add the USE operand for the permute pattern.
18250 ("*vec_set_bswap_vec<mode>"): Likewise.
18252 2019-04-12 Jakub Jelinek <jakub@redhat.com>
18255 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
18256 and gcc_unreachable if it fails, just call tree_to_uhwi which
18257 verifies that too. Test TREE_CHAIN instead of list_length > 1.
18258 Start warning message with a lower-case letter. Formatting fixes.
18260 PR rtl-optimization/90026
18261 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
18262 successors, look for BARRIERs inside of the whole BB_FOOTER chain
18263 rather than just at the start of it. If e->src BB_FOOTER is not NULL
18264 in cfglayout mode, use emit_barrier_after_bb.
18266 2018-04-11 Steve Ellcey <sellcey@marvell.com>
18268 PR rtl-optimization/87763
18269 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
18272 2019-04-11 Tom de Vries <tdevries@suse.de>
18274 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
18275 max macro using statement expression.
18277 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
18279 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
18280 * xcoffout.c (xcoff_private_rodata_section_name): Define.
18281 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
18282 read_only_private_data_section using xcoff_private_rodata_section_name.
18283 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
18285 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
18288 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
18290 2019-04-11 Jakub Jelinek <jakub@redhat.com>
18292 PR rtl-optimization/89965
18293 * dce.c (sp_based_mem_offset): New function.
18294 (find_call_stack_args): Use sp_based_mem_offset.
18296 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
18298 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
18300 2019-04-11 Richard Biener <rguenther@suse.de>
18302 PR tree-optimization/90020
18303 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
18304 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
18305 * tree-ssa-pre.c (compute_avail): Use it to not put
18306 possibly trapping references after a call that might not
18307 return into EXP_GEN.
18308 * gcse.c (compute_hash_table_work): Do not elide
18309 marking a block containing a call if the call might not
18312 2019-04-11 Richard Biener <rguenther@suse.de>
18314 PR tree-optimization/90018
18315 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
18316 Test both SLP and interleaving variants.
18318 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
18320 * config/s390/8561.md: New file.
18321 * config/s390/driver-native.c (s390_host_detect_local_cpu):
18322 Add arch13 cpu model.
18323 * config/s390/s390-opts.h (enum processor_type): Likewise.
18324 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
18325 (s390_get_unit_mask): Likewise.
18326 (s390_is_fpd): Likewise.
18327 (s390_is_fxd): Likewise.
18328 * config/s390/s390.h (s390_tune_attr): Likewise.
18329 * config/s390/s390.md: Include arch13 pipeline description.
18330 * config/s390/s390.opt: Add arch13.
18332 2018-04-10 Steve Ellcey <sellcey@marvell.com>
18334 PR rtl-optimization/87763
18335 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
18337 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
18339 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
18341 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
18342 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
18343 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
18344 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
18346 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
18348 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
18349 "Although" in -fipa-icf documentation.
18351 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
18352 of using multiple -g options.
18354 2019-04-10 Martin Liska <mliska@suse.cz>
18356 PR gcov-profile/89959
18357 * doc/gcov.texi: Make documentation of -x option
18360 2019-04-10 Richard Biener <rguenther@suse.de>
18362 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
18364 (DR_GROUP_SAME_DR_STMT): Remove.
18365 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
18366 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
18367 replace with assert.
18368 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
18369 (vect_record_grouped_load_vectors): Remove unreachable code.
18371 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
18374 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
18375 obsolete reference to N.
18377 2019-04-10 Jakub Jelinek <jakub@redhat.com>
18379 PR middle-end/90025
18380 * expr.c (store_expr): Set properly size on the MEM passed to
18384 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
18385 with strlen in between hostsz-3 and hostsz-1 inclusive when no
18386 translation is needed, and when translation is needed, only append
18387 ... if the string length is hostsz or more bytes long. Avoid using
18390 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
18393 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
18394 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
18396 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
18397 differences directly.
18398 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
18400 2019-04-09 Jakub Jelinek <jakub@redhat.com>
18402 PR translation/90011
18403 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
18405 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
18407 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
18408 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
18409 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
18410 trailing space from -gsplit-dwarf diagnostics.
18412 PR tree-optimization/89998
18413 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
18414 instead of integer_type_node if possible, don't add ranges if return
18415 type is not compatible with int.
18416 * gimple-fold.c (gimple_fold_builtin_sprintf,
18417 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
18420 2019-04-09 Martin Liska <mliska@suse.cz>
18422 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
18423 * doc/install.texi: Document the new config.
18425 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
18427 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
18428 use gimple_expr_type for load and store calls. Skip over the
18429 condition argument in a conditional internal function.
18430 Protect use of TREE_INT_CST_LOW.
18432 2019-04-09 Jakub Jelinek <jakub@redhat.com>
18435 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
18436 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
18437 trailing period from it too.
18439 2019-04-08 wu yuan <wuyuan5@huawei.com>
18441 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
18442 * config/aarch64/aarch64.md : Add "tsv110.md"
18443 * config/aarch64/tsv110.md: New file.
18445 2019-04-08 Richard Biener <rguenther@suse.de>
18447 PR tree-optimization/90006
18448 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
18451 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
18454 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
18456 (fma_root_node): Likewise.
18457 (func_fma_steering): Likewise.
18459 2019-04-08 Jakub Jelinek <jakub@redhat.com>
18461 PR rtl-optimization/89865
18462 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
18464 PR rtl-optimization/89865
18465 * config/i386/i386.md
18466 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
18467 numbers not to clash with the additional operands[4].
18468 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
18469 with extra register copy in the middle.
18471 2019-04-08 Martin Liska <mliska@suse.cz>
18473 PR gcov-profile/89961
18474 * doc/gcov.texi: Document data_file.
18475 * gcov.c (generate_results): Add data_info into JSON output.
18477 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18479 PR tree-optimization/89725
18480 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
18481 loop's chrec as invariant symbol.
18482 * tree-chrec.h (chrec_contains_symbols): New parameter.
18483 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
18484 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
18485 function of loops not in DDR's loop_nest.
18486 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
18488 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
18491 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
18494 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
18497 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
18498 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
18500 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
18502 * sched-deps.c (sched_macro_fuse_insns): Check return value of
18503 targetm.fixed_condition_code_regs.
18505 2019-04-05 Richard Biener <rguenther@suse.de>
18509 * tree-cfgcleanup.c (remove_forwarder_block): Always move
18510 debug bind stmts but reset them if they are not valid at the
18513 2019-04-05 Martin Liska <mliska@suse.cz>
18515 PR translation/89936
18516 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
18517 order to wrap keywords or arguments.
18518 * collect2.c (main): Likewise.
18519 (scan_prog_file): Likewise.
18520 (scan_libraries): Likewise.
18521 * common/config/riscv/riscv-common.c
18522 (riscv_subset_list::parsing_subset_version): Likewise.
18523 (riscv_subset_list::parse_std_ext): Likewise.
18524 * config/aarch64/aarch64.c (aarch64_override_options_internal):
18526 * config/arm/arm.c (arm_option_override): Likewise.
18527 * config/cris/cris.c (cris_print_operand): Likewise.
18528 * config/darwin-c.c (darwin_pragma_options): Likewise.
18529 (darwin_pragma_unused): Likewise.
18530 (darwin_pragma_ms_struct): Likewise.
18531 * config/ft32/ft32.c (ft32_print_operand): Likewise.
18532 * config/i386/i386.c (print_reg): Likewise.
18533 (ix86_print_operand): Likewise.
18534 * config/i386/xm-djgpp.h: Likewise.
18535 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
18536 * config/m32c/m32c.c (m32c_option_override): Likewise.
18537 * config/msp430/msp430.c (msp430_option_override): Likewise.
18538 * config/nds32/nds32.c (nds32_option_override): Likewise.
18539 * config/nvptx/mkoffload.c (main): Likewise.
18540 * config/rx/rx.c (rx_print_operand): Likewise.
18541 (valid_psw_flag): Likewise.
18542 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
18543 (vms_pragma_nomember_alignment): Likewise.
18544 (vms_pragma_extern_model): Likewise.
18545 * lto-wrapper.c (compile_offload_image): Likewise.
18546 * omp-offload.c (oacc_parse_default_dims): Likewise.
18547 * symtab.c (symtab_node::verify_base): Likewise.
18548 * tlink.c (recompile_files): Likewise.
18549 (start_tweaking): Likewise.
18550 * tree-profile.c (parse_profile_filter): Likewise.
18552 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
18554 PR tree-optimization/89956
18555 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
18556 multiple negates of the same value.
18558 2019-04-04 Martin Sebor <msebor@redhat.com>
18560 PR middle-end/89957
18561 PR middle-end/89911
18562 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
18563 have the same precision since the function crashes otherwise.
18564 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
18565 has non-zero arguments.
18567 2019-04-04 Martin Sebor <msebor@redhat.com>
18569 PR middle-end/89934
18570 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
18571 out if the number of arguments is less than expected.
18573 2019-04-04 Jeff Law <law@redhat.com>
18575 PR rtl-optimization/89399
18576 * ree.c (combine_set_extension): Use single_set rather than
18577 digging into PATTERN for items on the candidate list.
18578 (combine_reaching_defs): Likewise.
18580 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
18582 PR rtl-optimization/46590
18583 * loop-invariant.c (find_defs): Move df_remove_problem and
18584 df_process_deferred_rescans to move_invariants.
18585 Move df_live_add_problem and df_live_set_all_dirty calls
18586 to move_invariants.
18587 (move_invariants): Likewise.
18588 (move_loop_invariants): Likewise, making the df_live calls
18589 conditional on -O. Remove the problem again if we added it
18592 2019-04-03 qing zhao <qing.zhao@oracle.com>
18594 PR tree-optimization/89730
18595 * ipa-inline.c (can_inline_edge_p): Delete the checking for
18596 -flive-patching=inline-only-static.
18597 (can_inline_edge_by_limits_p): Add the checking for
18598 -flive-patching=inline-only-static and grant always_inline
18599 even when -flive-patching=inline-only-static is specified.
18601 2019-04-03 Jeff Law <law@redhat.com>
18603 PR rtl-optimization/81025
18604 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
18606 2019-04-03 Richard Biener <rguenther@suse.de>
18608 PR tree-optimization/84101
18609 * tree-vect-stmts.c: Include explow.h for hard_function_value,
18610 regs.h for hard_regno_nregs.
18611 (cfun_returns): New helper.
18612 (vect_model_store_cost): When vectorizing a store to a decl
18613 we return and the function ABI returns in a multi-reg location
18614 account for the possible spilling that will happen.
18616 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
18618 * config/s390/s390.c (s390_legitimate_address_p): Reject long
18619 displacement addresses for vector mode operands.
18621 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
18623 * config/arc/arc.c (GMASK_LEN): Define.
18624 (arc_restore_callee_saves): Restore first blink when
18627 2019-04-03 Sudakshina Das <sudi.das@arm.com>
18629 * doc/extend.texi: Add deprecated comment on sign-return-address
18630 function attribute and add mbranch-protection.
18631 * doc/invoke.texi: Add bti to the options for mbranch-protection.
18633 2019-04-03 Richard Biener <rguenther@suse.de>
18636 * lto-wrapper.c (run_gcc): Avoid implicit rules making
18637 the all target phony.
18639 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
18643 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
18644 Return false for variable DImode shifts.
18645 (dimode_scalar_chain::compute_convert_gain): Do not handle
18646 register count operand in variable DImode shifts.
18647 (dimode_scalar_chain::make_vector_copies): Remove support to copy
18648 count argument of a variable shift instruction to a vector register.
18649 (dimode_scalar_chain::convert_reg): Remove support to convert
18650 count argument of a variable shift instruction.
18652 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
18654 PR rtl-optimization/84206
18655 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
18656 iterating over loop headers.
18658 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
18660 PR rtl-optimization/85876
18661 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
18662 beyond the original fence.
18664 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
18666 * config.gcc: Mark spu* targets as deprecated/obsolete.
18668 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18670 * config/s390/s390-builtin-types.def: New builtin function type
18671 definitions. Remove unused types.
18672 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
18673 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
18674 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
18675 overloaded builtins.
18676 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
18677 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
18678 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
18679 (vec_double, vec_signed, vec_unsigned): Define to use the new
18680 overloaded builtins.
18681 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
18684 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18686 * config/s390/s390-builtin-types.def: New builtin function type
18688 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
18689 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
18690 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
18691 (s390_vstrszh, s390_vstrszf): New low-level builtins.
18692 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
18693 constant definitions.
18694 * config/s390/vecintrin.h (vec_search_string_cc)
18695 (vec_search_string_until_zero_cc): New builtin name definitions.
18696 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
18698 ("vec_vstrs<mode>"): New insn definition.
18700 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18702 * config/s390/s390-builtin-types.def: Add new builtin function
18704 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
18705 New overloaded builtins.
18706 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
18708 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
18709 (UNSPEC_VEC_SLDBYTE): ... this.
18710 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
18711 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
18713 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
18714 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
18715 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
18717 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18719 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
18720 New insn definition.
18721 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
18722 * config/s390/vector.md (V_HW_HSD): ... here.
18724 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18726 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
18727 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
18728 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
18729 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
18730 New insn definitions.
18732 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18734 * config/s390/s390-builtin-types.def: Add new builtin function type.
18735 * config/s390/s390-builtins.def: Add overloaded builtin
18736 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
18737 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
18738 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
18739 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
18740 ("eltswap<mode>"): New expander.
18741 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
18744 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18746 * config/s390/s390-builtin-types.def: Add new builtin function types.
18747 * config/s390/s390-builtins.def: Add overloaded builtin
18748 s390_vec_revb. Add low-level builtins for vlbr and vstbr
18750 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
18751 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
18752 ("bswap<mode>"): New expander.
18753 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
18755 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18757 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
18758 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
18759 vector builtin version number in __VEC__.
18761 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18763 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
18765 (SFSI): New mode attribute.
18766 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
18767 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
18769 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
18770 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
18771 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
18772 ("floatsi<mode>2"): Add wcefb instruction.
18774 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18776 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
18777 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
18779 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
18780 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
18781 support 32 bit fp-int conversions. Rename to ...
18782 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
18783 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
18784 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
18785 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
18788 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18790 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
18791 if-then-else constructs if we can use the select instruction.
18792 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
18794 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18796 * config/s390/s390.md ("*popcountdi_arch13_cc")
18797 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
18799 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
18800 Append _z196 to make it ...
18801 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
18802 ("popcounthi2_z196"): ... this.
18803 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
18804 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
18806 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18808 * config/s390/s390.c (s390_canonicalize_comparison): Convert
18809 certain compares for arch13 in order to make use of the condition
18810 code result produced by the new instructions.
18811 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
18812 nxrk, and nxgrk instruction patterns.
18813 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
18814 (inv_no): Add new code iterator together with some attributes.
18815 ("*andc_split_<mode>"): Disable splitter for arch13.
18816 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
18817 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
18818 ("*<ANDOR:bitops_name>c<GPR:mode>")
18819 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
18820 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
18821 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
18822 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
18824 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
18826 * common/config/s390/s390-common.c (processor_flags_table): New
18828 * config.gcc: Support arch13 with the --with-arch= configure flag.
18829 * config/s390/driver-native.c (s390_host_detect_local_cpu):
18830 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
18831 * config/s390/s390.c (s390_get_sched_attrmask)
18832 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
18833 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
18834 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
18835 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
18836 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
18838 * config/s390/s390.opt: Support arch13 as processor type in
18839 command line options.
18841 2019-04-02 Martin Liska <mliska@suse.cz>
18843 PR translation/89912
18844 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
18845 Fix param description of graphite-max-arrays-per-scop.
18847 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
18849 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
18850 (ASAN_CC1_SPEC): Use it in 64-bit mode.
18851 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
18853 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
18855 PR rtl-optimization/85412
18856 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
18857 sel_sched_region_1, not after.
18859 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
18861 PR rtl-optimization/86928
18862 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
18863 compute_live if necessary.
18864 (sel_redirect_edge_and_branch): Likewise.
18866 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
18868 PR rtl-optimization/89865
18869 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
18870 register if it is a part of small class.
18872 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
18874 PR rtl-optimization/87273
18875 * sel-sched-ir.c (merge_fences): Remove assert.
18877 2019-04-01 Richard Biener <rguenther@suse.de>
18879 PR tree-optimization/46590
18880 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
18881 (dom_walker::m_reachability): Add in place of...
18882 (dom_walker::m_skip_unreachable_blocks): ...this.
18883 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
18884 Move complex initialization ...
18885 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
18886 lazily and initialize edge flags on each invocation.
18887 (dom_walker::bb_reachable): Use m_reachability.
18889 2019-04-01 Martin Liska <mliska@suse.cz>
18892 * opt-suggestions.c (option_proposer::build_option_suggestions):
18893 Add variant without any argument in order to provide better
18896 2019-04-01 Richard Biener <rguenther@suse.de>
18899 * gimple.c: Include langhooks.h.
18900 (gimple_get_alias_set): Treat enumeral types as the underlying
18903 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
18904 Eric Botcazou <ebotcazou@adacore.com>
18906 PR rtl-optimization/89862
18907 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
18908 that operates on the full registers for WORD_REGISTER_OPERATIONS
18911 2019-03-29 Jim Wilson <jimw@sifive.com>
18913 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
18914 Clear MASK_RVC and then set if C subset supported.
18916 2019-03-29 Jakub Jelinek <jakub@redhat.com>
18919 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
18920 non-addressable complit into its initializer if it is volatile.
18922 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
18924 * opts-common.c (integral_argument): Set errno properly in one case.
18926 2019-03-29 Martin Liska <mliska@suse.cz>
18928 * doc/invoke.texi: Remove -Wchkp from documentation.
18930 2019-03-29 Martin Liska <mliska@suse.cz>
18932 * dbgcnt.c (print_limit_reach): New function.
18935 2019-03-29 Martin Liska <mliska@suse.cz>
18937 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
18938 (dbg_cnt_process_opt): Parse first tokens aas
18939 dbg_cnt_process_single_pair is also using strtok.
18941 2019-03-29 Jakub Jelinek <jakub@redhat.com>
18943 PR rtl-optimization/87485
18944 * function.c (expand_function_end): Move stack_protect_epilogue
18945 before loading of return value into hard register(s).
18947 2019-03-28 Jakub Jelinek <jakub@redhat.com>
18949 PR middle-end/89621
18950 * tree-inline.h (struct copy_body_data): Add
18951 dont_remap_vla_if_no_change flag.
18952 * tree-inline.c (remap_type_3, remap_type_2): New functions.
18953 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
18954 and remap_type_2 returns false.
18955 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
18956 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
18957 only from where it is copied to nested contexts.
18959 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
18962 * config/i386/i386.md (RMW operation with LEA peephole):
18963 Use LEAMODE mode attribute instead of SWI mode iterator for
18966 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
18969 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
18970 Also process XEXP (src, 0) of a shift insn.
18972 2019-03-28 David Malcolm <dmalcolm@redhat.com>
18974 PR middle-end/89725
18975 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
18976 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
18978 2019-03-28 Jakub Jelinek <jakub@redhat.com>
18980 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
18982 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
18983 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
18984 immediately after first one with df_analyze in between, but rather
18985 process all bbs, queueing ones that need second pass in a worklist,
18986 df_analyze, process queued debug insn changes and if second pass is
18987 needed, process bbs from worklist, df_analyze, process queued debug
18990 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
18991 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
18992 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
18994 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
18997 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
19000 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
19003 * config/i386/i386.c (ix86_function_value_1): Call the newly added
19004 function for 32-bit MS_ABI.
19005 (function_value_ms_32): New function.
19007 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
19009 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
19010 (movdi): Call gen_movdi_symbol_save_scc.
19011 (gen_movdi_symbol_save_scc): New insn and split.
19013 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
19015 PR rtl-optimization/89313
19016 * function.c (matching_constraint_num): New static function.
19017 (match_asm_constraints_1): Use it. Fixup white space and comment.
19018 Don't replace inputs with non-matching constraints which conflict
19019 with early clobber outputs.
19021 2019-03-27 Jeff Law <law@redhat.com>
19023 PR rtl-optimization/87761
19024 PR rtl-optimization/89826
19025 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
19027 (pass_cprop_hardreg::execute): Call df_analyze after adding the
19028 note problem to get REG_DEAD/REG_UNUSED notes updated.
19030 2019-03-27 Richard Biener <rguenther@suse.de>
19032 PR tree-optimization/89463
19033 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
19034 queue edges to remove.
19035 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
19036 dead stmts. Delay edge removal until PHIs are removed to
19037 make debug-stmt creation not confused by seemingly degenerate
19040 2019-03-27 Alan Modra <amodra@gmail.com>
19042 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
19044 * config/rs6000/darwin.h: Likewise.
19045 * config/rs6000/rs6000.c: Likewise.
19047 2019-03-27 Alan Modra <amodra@gmail.com>
19049 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
19050 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
19052 2019-03-26 Andrew Waterman <andrew@sifive.com>
19053 Jim Wilson <jimw@sifive.com>
19055 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
19056 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
19057 (generic_idivdi, generic_fmul_single, generic_fmul_double)
19058 (generic_fdiv, generic_fsqrt): Add check for generic tune.
19059 (generic_alu): Add auipc to type list.
19060 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
19061 (riscv_microarchitecture): Declare.
19062 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
19063 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
19065 (riscv_microarchitecture): New.
19066 (sifive_7_tune_info): New.
19067 (riscv_cpu_info_table): Add microarchitecture value for rocket and
19068 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
19070 (riscv_store_data_bypass_p): New.
19071 (riscv_option_override): Set riscv_microarchitecture from
19072 cpu->microarchitecture.
19073 * config/riscv/riscv.md: Include sifive-7.md.
19076 (auipc<mode>): Change type to auipc.
19077 (restore_stack_nonlocal): New.
19078 * config/riscv/sifive-7.md: New.
19079 * doc/invoke.texi (RISC-V Options): Update mtune docs.
19081 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
19084 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19085 Also process XEXP (src, 0) of a shift insn.
19087 2019-03-26 Richard Biener <rguenther@suse.de>
19089 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
19090 (copy_debug_stmt): Likewise.
19091 (expand_call_inline): Likewise.
19092 (copy_bb): Avoid redundant lookup & set of gimple_block.
19093 * gimple-low.c (lower_gimple_return): Likewise.
19094 (lower_builtin_setjmp): Likewise.
19096 2019-03-26 Jakub Jelinek <jakub@redhat.com>
19098 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
19099 is constant 0, turn into static const data member initialized to false.
19100 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
19101 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
19103 2019-03-26 Jason Merrill <jason@redhat.com>
19104 Jakub Jelinek <jakub@redhat.com>
19106 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
19108 (mem_alloc_description::release_object_overhead): Fix comment typos.
19109 * hash-table.h (hash_table::~hash_table): Call
19110 release_instance_overhead only if m_entries is non-NULL, otherwise
19111 call unregister_descriptor.
19113 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
19115 PR tree-optimization/81740
19116 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19117 In case of outer loop vectorization, check for backward dependence
19118 at the inner loop if outer loop dependence is reversed.
19120 2019-03-26 Alan Modra <amodra@gmail.com>
19122 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
19123 rs6000_vector_mem init. Correct wI and wJ comment.
19125 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
19127 PR rtl-optimization/88347
19128 PR rtl-optimization/88423
19129 * sched-deps.c (sched_analyze_insn): Take into account that for
19130 tablejumps the barrier appears after a label and a jump_table_data.
19132 2019-03-25 Martin Sebor <msebor@redhat.com>
19135 * c-common.c (check_user_alignment): Rename local. Correct maximum
19136 alignment in diagnostic. Avoid assuming argument fits in SHWI,
19137 convert it to UHWI when it fits.
19139 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
19142 * dwarf2out.c (premark_used_variables): New function.
19143 (prune_unused_types_walk): Do not mark not premarked external
19145 (prune_unused_types): Call premark_used_variables.
19147 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
19149 PR rtl-optimization/89676
19150 * lra-constraints.c (curr_insn_transform): Do match reload for
19151 early clobbers when the match was successful only for different
19154 2019-03-25 Martin Sebor <msebor@redhat.com>
19156 * doc/extend.texi (Common Type Attributes): Document vector_size.
19157 (Common Variable Attributes): Mention size constraint. Correct
19159 (Vector Extensions): Use @dfn when defining bas type. Clarify
19160 base type and size constraints.
19162 2019-03-25 Richard Biener <rguenther@suse.de>
19164 PR tree-optimization/89789
19165 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
19166 changes from non-undefined back to undefined.
19168 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
19170 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
19171 heap string and a gc string, but since this variable is unknown to
19172 ggc the gc string might get reused and corrupted. Fixed by always
19173 using a heap string.
19175 2019-03-25 Richard Biener <rguenther@suse.de>
19177 PR tree-optimization/89779
19178 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
19179 to remove IV defs, delay actual removal.
19180 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
19181 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
19182 very end, properly also reset loop control IV information.
19184 2019-03-25 Richard Biener <rguenther@suse.de>
19186 PR tree-optimization/89802
19187 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
19188 move EH data to folded stmt.
19190 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
19192 * config/s390/s390-builtin-types.def: Remove few unused types and
19193 fix sort order for others.
19195 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
19197 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
19198 expected and found types with -mdebug during builtin matching.
19200 2019-03-25 Richard Biener <rguenther@suse.de>
19202 PR middle-end/89790
19203 * fold-const.c (operand_equal_p): Revert last change with
19206 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
19208 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
19209 notes for the result of the __tls_get_addr calls.
19210 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
19212 2019-03-24 Jeff Law <law@redhat.com>
19214 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
19216 PR rtl-optimization/87761
19217 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
19218 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
19220 (pass_cprop_hardreg::execute): Add df note problem and defer insn
19221 rescans. Reprocess blocks as needed, calling df_analyze before
19222 reprocessing. Always call df_analyze before fixing up debug bind
19225 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
19227 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
19230 2019-03-22 Andrew Pinski <apinski@marvell.com>
19232 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
19233 attrribute for uxtw.
19235 2019-03-26 Jeff Law <law@redhat.com>
19237 PR rtl-optimization/87761
19238 * config/mips/mips-protos.h (mips_split_move): Add new argument.
19239 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
19240 (mips_split_move): Accept new INSN argument. Try to forward SRC
19241 into the next instruction.
19242 (mips_split_move_insn): Pass INSN through to mips_split_move.
19244 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
19246 PR rtl-optimization/89676
19247 * lra-constraints.c (curr_insn_transform): Do match reload for
19248 early clobbers even if the match was successful.
19250 2019-03-22 Jakub Jelinek <jakub@redhat.com>
19253 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
19255 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
19257 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
19259 2019-03-22 Jakub Jelinek <jakub@redhat.com>
19261 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
19262 <avx512>_fmsub_<mode>_mask3<round_name>,
19263 <avx512>_fnmadd_<mode>_mask3<round_name>,
19264 <avx512>_fnmsub_<mode>_mask3<round_name>,
19265 avx512f_vmfmadd_<mode>_mask3<round_name>,
19266 avx512f_vmfmsub_<mode>_mask3<round_name>,
19267 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
19268 instead of register_operand and %v instead of v for match_operand 1.
19269 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
19270 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
19271 <round_nimm_predicate> instead of register_operand and %v instead of v
19272 for match_operand 1.
19274 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
19275 <avx512>_fmadd_<mode>_mask3<round_name>,
19276 <avx512>_fmsub_<mode>_mask<round_name>,
19277 <avx512>_fmsub_<mode>_mask3<round_name>,
19278 <avx512>_fnmadd_<mode>_mask<round_name>,
19279 <avx512>_fnmadd_<mode>_mask3<round_name>,
19280 <avx512>_fnmsub_<mode>_mask<round_name>,
19281 <avx512>_fnmsub_<mode>_mask3<round_name>,
19282 <avx512>_fmaddsub_<mode>_mask<round_name>,
19283 <avx512>_fmaddsub_<mode>_mask3<round_name>,
19284 <avx512>_fmsubadd_<mode>_mask<round_name>,
19285 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
19286 <round_nimm_predicate> instead of nonimmediate_operand.
19287 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
19288 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
19289 Use register_operand instead of <round_nimm_predicate> for the
19290 operand that needs to match output.
19291 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
19292 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
19293 Likewise. Formatting fixes.
19296 * config/i386/i386.c (enum ix86_builtins): Remove
19297 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
19298 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
19299 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
19300 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
19301 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
19302 __builtin_ia32_vfmsubss3_mask3): New builtins.
19303 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
19304 avx512f_vmfmadd_<mode>_mask3<round_name>,
19305 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
19306 *avx512f_vmfmsub_<mode>_mask<round_name>,
19307 avx512f_vmfmsub_<mode>_mask3<round_name>,
19308 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
19309 *avx512f_vmfnmadd_<mode>_mask<round_name>,
19310 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
19311 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
19312 *avx512f_vmfnmsub_<mode>_mask<round_name>,
19313 avx512f_vmfnmsub_<mode>_mask3<round_name>,
19314 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
19315 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
19316 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
19317 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
19318 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
19319 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
19320 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
19321 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
19322 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
19323 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
19324 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
19325 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
19326 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
19327 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
19328 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
19329 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
19330 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
19331 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
19332 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
19333 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
19334 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
19335 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
19337 2019-03-21 Martin Sebor <msebor@redhat.com>
19339 PR tree-optimization/89350
19340 * builtins.c (compute_objsize): Also ignore offsets whose upper
19342 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
19343 (builtin_memref::builtin_memref): Initialize new member.
19344 Allow EXPR to be null.
19345 (builtin_memref::extend_offset_range): Replace local with a member.
19346 Avoid assuming pointer offsets are unsigned.
19347 (builtin_memref::set_base_and_offset): Determine base object
19348 before computing offset range.
19349 (builtin_access::builtin_access): Handle memset.
19350 (builtin_access::generic_overlap): Replace local with a member.
19351 (builtin_access::strcat_overlap): Same.
19352 (builtin_access::overlap): Same.
19353 (maybe_diag_overlap): Same.
19354 (maybe_diag_access_bounds): Same.
19355 (wrestrict_dom_walker::check_call): Handle memset.
19356 (check_bounds_or_overlap): Same.
19358 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
19359 Jakub Jelinek <jakub@redhat.com>
19362 * tree.c (fld_type_variant, fld_incomplete_type_of,
19363 fld_process_array_type): Call fld->pset.add and don't call
19364 add_tree_to_fld_list if it returns true.
19365 (free_lang_data_in_type): Similarly with self-recursive call. Purge
19366 non-marked types from TYPE_NEXT_VARIANT list.
19367 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
19369 2019-03-21 Jakub Jelinek <jakub@redhat.com>
19371 * hash-table.h (hash_table): Add Lazy template parameter defaulted
19372 to false, if true, don't alloc_entries during construction, but defer
19373 it to the first method that needs m_entries allocated.
19374 (hash_table::hash_table, hash_table::~hash_table,
19375 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
19376 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
19377 hash_table::clear_slot, hash_table::traverse_noresize,
19378 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
19379 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
19381 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
19382 NO_INSERT instead of find_with_hash.
19383 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
19384 hash_set::m_table): Add Lazy to template params of hash_table.
19385 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
19386 * attribs.c (test_attribute_exclusions): Likewise.
19387 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
19388 hash_set. Add tests for hash_set with Lazy = true.
19390 2019-03-21 Richard Biener <rguenther@suse.de>
19392 PR tree-optimization/89779
19393 * tree.c (tree_nop_conversion): Consolidate and fix defensive
19394 checks with respect to released SSA names now having error_mark_node
19396 * fold-const.c (operand_equal_p): Likewise.
19398 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
19401 * config/s390/s390.c (global_not_special_regno_p): Move to make it
19403 (s390_optimize_register_info): Use global_not_special_regno_p to
19404 check for global regs.
19406 2019-03-20 Jakub Jelinek <jakub@redhat.com>
19409 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
19410 update this_alternative nor this_alternative_set.
19412 2019-03-19 Jim Wilson <jimw@sifive.com>
19415 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
19416 align, size, offset. Use them to handle a BLKmode reference. Update
19418 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
19420 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19422 PR rtl-optimization/89768
19423 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
19424 instead of GEN_INT.
19425 (unroll_loop_runtime_iterations): Likewise.
19427 2019-03-19 Martin Sebor <msebor@redhat.com>
19429 PR tree-optimization/89644
19430 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
19431 rather than endptr as an indicator of nul-termination.
19433 PR tree-optimization/89644
19434 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
19435 arrays in determining sequence sizes in strncpy and stpncpy.
19437 2019-03-19 Martin Liska <mliska@suse.cz>
19439 PR middle-end/89737
19440 * predict.c (combine_predictions_for_bb): Empty likely_edges and
19441 unlikely_edges if there's an edge that belongs to both these sets.
19443 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
19446 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
19447 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
19448 go via a stack temporary.
19450 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19453 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
19454 instead of gen_rtx_SUBREG.
19455 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
19457 2019-03-19 Richard Biener <rguenther@suse.de>
19460 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
19462 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
19466 * tree.c (free_lang_data_in_decl): Do not free context of C++
19469 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19472 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
19473 subs for the first alternative except when operands[3] is 1.
19476 * gimplify.c (gimplify_asm_expr): For output argument with
19477 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
19480 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
19482 PR rtl-optimization/89753
19483 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
19484 explicit unrolling factor even more robust.
19486 2019-03-19 Jakub Jelinek <jakub@redhat.com>
19489 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
19490 compensation use x2 += 1 instead of x2 -= -1 and when honoring
19491 signed zeros, do another copysign after the compensation.
19493 2019-03-18 Martin Sebor <msebor@redhat.com>
19495 PR tree-optimization/89720
19496 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
19497 more conservatively, the same as anti-range.
19499 2019-03-18 Richard Biener <rguenther@suse.de>
19501 PR middle-end/88945
19502 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
19503 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
19504 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
19505 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
19507 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
19509 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
19510 Extend queue to 1024 entries.
19511 Add "consumed" field.
19512 (gomp_print_output): Remove print_index parameter.
19513 Add final parameter.
19514 Change limit to unsigned.
19515 Use consumed field to implement circular buffer.
19516 Detect interrupted print in final pass.
19517 Flush output at the end.
19518 (run): Update gomp_print_output usage.
19519 (main): Initialize kernargs->output_data.consumed.
19521 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
19523 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
19524 calculation of the minimum number of scalar iterations for
19525 fully-predicated loops.
19527 2019-03-18 Martin Jambor <mjambor@suse.cz>
19529 PR tree-optimization/89546
19530 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
19531 any propagation to its children took place.
19533 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
19536 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
19537 parameter, and make use of it.
19538 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
19540 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19542 * config/arc/arc.opt (mcode-density-frame): Get the inital value
19543 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
19544 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
19545 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
19546 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
19547 match what the ops is doing.
19548 (push_multi_fp_blink): Likewise.
19549 * config/arc/arc.c (arc_override_options): Enable enter/leave when
19550 compiling for size and elf target.
19551 (arc_save_callee_enter): Adjust note to match what enter/leave
19554 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19556 * config/arc/arc.md (tst_movb): Fix constraint.
19558 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19560 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
19562 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
19564 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
19565 * config/arc/arc.c (arc_conditional_register_usage): Remove all
19566 reg_alloc_order references.
19567 (size_alloc_order): Define.
19568 (arc_adjust_reg_alloc_order): New function.
19569 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
19571 (ADJUST_REG_ALLOC_ORDER): Define.
19572 (HONOR_REG_ALLOC_ORDER): Likewise.
19574 2019-03-18 Richard Biener <rguenther@suse.de>
19577 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
19578 loads and stores a bit more.
19580 2019-03-18 Richard Biener <rguenther@suse.de>
19583 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
19584 load pessimization to stores as well.
19586 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
19588 PR middle-end/86979
19589 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
19590 successor, use NULL as its av set.
19592 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
19594 PR rtl-optimization/89721
19595 * lra-constraints (invariant_p): Return false if side_effects_p holds.
19597 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
19600 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
19601 When handling vec_extract, use modular arithmetic to allow
19602 constant selectors greater than vector length.
19603 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
19604 V1TImode vectors to have constant selector values greater than 0.
19605 Use modular arithmetic to compute vector index.
19606 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
19607 index for in-memory vectors. Correct code generation for
19608 in-register vectors.
19609 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
19612 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
19616 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
19619 2019-03-15 Jakub Jelinek <jakub@redhat.com>
19622 * tree.c (inchash::add_expr): Strip any location wrappers.
19623 * fold-const.c (operand_equal_p): Move stripping of location wrapper
19624 after hash verification.
19627 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
19628 SIGN_EXTEND and ZERO_EXTEND.
19630 2019-03-14 Jason Merrill <jason@redhat.com>
19631 Jakub Jelinek <jakub@redhat.com>
19633 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
19634 than if is_empty (*slot).
19635 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
19636 existing elt and for elt removal.
19637 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
19638 of already removed elt.
19640 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
19643 * config/i386/i386.c (remove_partial_avx_dependency): Handle
19644 REG_EH_REGION note.
19646 2019-03-14 Martin Liska <mliska@suse.cz>
19649 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
19651 2019-03-14 Richard Biener <rguenther@suse.de>
19654 * config/i386/i386.c (make_resolver_func): Properly set
19655 DECL_CONTEXT on the RESULT_DECL.
19656 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
19658 2019-03-14 Richard Biener <rguenther@suse.de>
19660 * gimple-pretty-print.c: Include cfgloop.h.
19661 (dump_gimple_phi): Adjust.
19662 (dump_gimple_bb_header): Dump loop header for GIMPLE.
19663 (pp_cfg_jump): Adjust.
19664 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
19665 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
19666 (lower_phi_internal_fn): Remove.
19667 (verify_gimple_call): Remove IFN_PHI special-casing.
19668 (dump_function_to_file): Dump IL state.
19669 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
19670 done to deal with PHI nodes being present in non-SSA state.
19672 2019-03-14 Jakub Jelinek <jakub@redhat.com>
19675 * multiple_target.c (create_dispatcher_calls): Change
19676 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
19677 In the node->iterate_referring loop, push *ref rather than ref, call
19678 ref->remove_reference () and always pass 0 to iterate_referring.
19680 PR rtl-optimization/89679
19681 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
19682 would contain a paradoxical SUBREG.
19684 2019-03-14 Richard Biener <rguenther@suse.de>
19686 PR tree-optimization/89710
19687 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
19690 2019-03-14 Martin Liska <mliska@suse.cz>
19692 * coverage.c (coverage_begin_function): Stream also
19694 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
19695 documentation about function declaration location.
19696 * gcov-dump.c (tag_function): Print whole range
19697 of function declaration.
19698 * gcov.c (struct function_info): Add end_column field.
19699 (function_info::function_info): Initialize it.
19700 (output_json_intermediate_file): Output {start,end}_column
19702 (read_graph_file): Read end_column.
19704 2019-03-14 Richard Biener <rguenther@suse.de>
19706 PR middle-end/89698
19707 * fold-const.c (operand_equal_p): For INDIRECT_REF check
19708 that the access types are similar.
19710 2019-03-14 Jakub Jelinek <jakub@redhat.com>
19712 PR tree-optimization/89703
19713 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
19714 aren't compatible also with builtin_decl_explicit. Check pure
19715 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
19716 and BUILT_IN_STPNCPY{,_CHK}.
19718 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
19721 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
19722 addr32 prefix to VSIB address for X32.
19723 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
19725 (*avx512pf_gatherpf<mode>df_mask): Likewise.
19726 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
19727 (*avx512pf_scatterpf<mode>df_mask): Likewise.
19728 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
19729 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
19730 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
19731 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
19732 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
19733 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
19734 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
19735 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
19736 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
19737 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
19738 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
19739 (*avx512f_scatterdi<mode>): Likewise.
19741 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
19744 * lra-constraints.c (inherit_in_ebb): Update
19745 potential_reload_hard_regs along with live_hard_regs.
19747 2019-03-13 Jakub Jelinek <jakub@redhat.com>
19750 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
19752 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
19754 2019-03-13 Martin Sebor <msebor@redhat.com>
19756 PR tree-optimization/89662
19757 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
19760 2019-03-13 Richard Biener <rguenther@suse.de>
19762 PR middle-end/89677
19763 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
19764 throw FP expressions at tree-affine.
19766 2019-03-14 Richard Biener <rguenther@suse.de>
19768 * tree-pretty-print.c (dump_generic_node): For -gimple properly
19769 dump negative integer constants using _Literal (type) -num.
19771 2019-03-13 Jakub Jelinek <jakub@redhat.com>
19773 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
19774 nonlocal_value member.
19776 PR middle-end/88588
19777 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
19778 (ipa_simd_modify_function_body): Handle PHIs.
19780 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
19782 * config/s390/s390.c (s390_option_override_internal): Use more
19783 aggressive inlining parameters.
19785 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
19787 * config/s390/3906.md: New file.
19788 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
19789 (LONGRUNNING_THRESHOLD): Remove.
19790 (MAX_SCHED_MIX_SCORE): Decrease.
19791 (MAX_SCHED_MIX_DISTANCE): Decrease.
19792 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
19793 (struct s390_sched_state): New struct to hold scheduling state.
19794 (S390_SCHED_STATE_NORMAL): Remove.
19795 (S390_SCHED_STATE_CRACKED): Remove.
19796 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
19797 (s390_get_sched_attrmask): Use new attribute.
19798 (s390_get_unit_mask): Use new units.
19799 (s390_is_fpd): New function.
19800 (s390_is_fxd): New function.
19801 (s390_is_longrunning): New function.
19802 (s390_sched_score): Use new functions.
19803 (s390_sched_reorder): Likewise.
19804 (s390_sched_variable_issue): Rework and use new functions.
19805 (s390_sched_init): Use new functions.
19806 * config/s390/s390.h (s390_tune_attr): Add z14.
19807 * config/s390/s390.md: Add z14.
19809 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
19811 * config/s390/2964.md: Update pipeline description.
19812 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
19813 (LONGRUNNING_THRESHOLD): Remove.
19814 (LATENCY_FACTOR): Remove.
19815 (s390_get_unit_mask): Add unit.
19816 (s390_sched_score): Use fxd/fpd.
19817 (s390_sched_variable_issue): Use fxd/fpd.
19819 2019-03-12 Martin Liska <mliska@suse.cz>
19821 * config/i386/i386.c: Reword an error message.
19823 2019-03-12 Martin Jambor <mjambor@suse.cz>
19825 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
19826 terminate with newline.
19828 2019-03-12 Jakub Jelinek <jakub@redhat.com>
19831 * config/s390/s390.md (tabort): Use %wd instead of
19832 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
19833 letters and periods.
19834 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
19835 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
19838 PR middle-end/89663
19839 * builtins.c (expand_builtin_int_roundingfn,
19840 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
19841 gcc_unreachable if validate_arglist fails.
19843 2019-03-12 Richard Biener <rguenther@suse.de>
19845 PR tree-optimization/89664
19846 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
19847 free the occurance tree after the early out.
19849 2019-03-11 Jakub Jelinek <jakub@redhat.com>
19851 PR middle-end/89655
19853 * vr-values.c (vr_values::update_value_range): If
19854 old_vr->varying_p (), don't update it, make new_vr also VARYING
19857 2019-03-11 Martin Liska <mliska@suse.cz>
19859 * config/aarch64/aarch64.c (aarch64_override_options_internal):
19860 Fix double string quoting.
19862 2019-03-11 Martin Liska <mliska@suse.cz>
19864 * collect-utils.c (collect_wait): Wrap apostrophes
19865 in gcc internal format with %'.
19866 * collect2.c (main): Likewise.
19867 (scan_prog_file): Likewise.
19868 (scan_libraries): Likewise.
19869 * config/i386/i386.c (ix86_expand_call): Likewise.
19870 (ix86_handle_interrupt_attribute): Likewise.
19871 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
19872 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
19873 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
19874 * lto-wrapper.c (find_crtoffloadtable): Likewise.
19875 * symtab.c (symtab_node::verify_base): Likewise.
19876 * tree-cfg.c (verify_gimple_label): Likewise.
19877 * tree.c (verify_type_variant): Likewise.
19879 2019-03-11 Martin Liska <mliska@suse.cz>
19881 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
19882 in a string format message and fix GNU coding style.
19883 (expand_builtin_set_thread_pointer): Likewise.
19884 * common/config/aarch64/aarch64-common.c
19885 (aarch64_rewrite_selected_cpu): Likewise.
19886 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
19887 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
19888 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
19889 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
19890 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
19891 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
19892 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
19893 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
19894 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
19895 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
19897 * common/config/riscv/riscv-common.c
19898 (riscv_subset_list::parsing_subset_version): Likewise.
19899 (riscv_subset_list::parse_std_ext): Likewise.
19900 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
19901 (riscv_subset_list::parse): Likewise.
19902 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
19903 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
19904 (aarch64_override_options_internal): Likewise.
19905 (aarch64_validate_mcpu): Likewise.
19906 (aarch64_validate_march): Likewise.
19907 (aarch64_validate_mtune): Likewise.
19908 (aarch64_override_options): Likewise.
19909 * config/alpha/alpha.c (alpha_option_override): Likewise.
19910 * config/arc/arc.c (arc_init): Likewise.
19911 (parse_mrgf_banked_regs_option): Likewise.
19912 (arc_override_options): Likewise.
19913 (arc_expand_builtin_aligned): Likewise.
19914 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
19915 (arm_expand_builtin): Likewise.
19916 * config/arm/arm.c (arm_option_check_internal): Likewise.
19917 (arm_configure_build_target): Likewise.
19918 (arm_option_override): Likewise.
19919 (arm_options_perform_arch_sanity_checks): Likewise.
19920 (arm_handle_cmse_nonsecure_entry): Likewise.
19921 (arm_handle_cmse_nonsecure_call): Likewise.
19922 (arm_tls_referenced_p): Likewise.
19923 (thumb1_expand_prologue): Likewise.
19924 * config/avr/avr.c (avr_option_override): Likewise.
19925 * config/bfin/bfin.c (bfin_option_override): Likewise.
19926 * config/c6x/c6x.c (c6x_option_override): Likewise.
19927 * config/cr16/cr16.c (cr16_override_options): Likewise.
19928 * config/cris/cris.c (cris_option_override): Likewise.
19929 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
19930 * config/darwin-c.c (macosx_version_as_macro): Likewise.
19931 * config/darwin.c (darwin_override_options): Likewise.
19932 * config/frv/frv.c (frv_expand_builtin): Likewise.
19933 * config/h8300/h8300.c (h8300_option_override): Likewise.
19934 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
19935 (ix86_option_override_internal): Likewise.
19936 (warn_once_call_ms2sysv_xlogues): Likewise.
19937 (ix86_expand_prologue): Likewise.
19938 (split_stack_prologue_scratch_regno): Likewise.
19939 (ix86_warn_parameter_passing_abi): Likewise.
19940 * config/ia64/ia64.c (fix_range): Likewise.
19941 * config/m68k/m68k.c (m68k_option_override): Likewise.
19942 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
19943 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
19944 (mips_set_compression_mode): Likewise.
19945 * config/mmix/mmix.c (mmix_option_override): Likewise.
19946 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
19947 * config/msp430/msp430.c (msp430_option_override): Likewise.
19948 * config/nds32/nds32.c (nds32_option_override): Likewise.
19949 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
19950 (nios2_option_override): Likewise.
19951 (nios2_expand_custom_builtin): Likewise.
19952 * config/nvptx/mkoffload.c (main): Likewise.
19953 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
19954 * config/pa/pa.c (fix_range): Likewise.
19955 (pa_option_override): Likewise.
19956 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
19957 (riscv_option_override): Likewise.
19958 * config/rl78/rl78.c (rl78_option_override): Likewise.
19959 * config/rs6000/aix61.h: Likewise.
19960 * config/rs6000/aix71.h: Likewise.
19961 * config/rs6000/aix72.h: Likewise.
19962 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
19963 * config/rs6000/freebsd64.h: Likewise.
19964 * config/rs6000/linux64.h: Likewise.
19965 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
19966 (rs6000_expand_zeroop_builtin): Likewise.
19967 (rs6000_expand_mtfsb_builtin): Likewise.
19968 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
19969 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
19970 (rs6000_invalid_builtin): Likewise.
19971 (rs6000_expand_split_stack_prologue): Likewise.
19972 * config/rs6000/rtems.h: Likewise.
19973 * config/rx/rx.c (valid_psw_flag): Likewise.
19974 (rx_expand_builtin): Likewise.
19975 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
19976 * config/s390/s390.c (s390_expand_builtin): Likewise.
19977 (s390_function_profiler): Likewise.
19978 (s390_option_override_internal): Likewise.
19979 (s390_option_override): Likewise.
19980 * config/sh/sh.c (sh_option_override): Likewise.
19981 (sh_builtin_saveregs): Likewise.
19982 (sh_fix_range): Likewise.
19983 * config/sh/vxworks.h: Likewise.
19984 * config/sparc/sparc.c (sparc_option_override): Likewise.
19985 * config/spu/spu.c (spu_option_override): Likewise.
19986 (fix_range): Likewise.
19987 * config/visium/visium.c (visium_option_override): Likewise.
19988 (visium_handle_interrupt_attr): Likewise.
19989 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
19990 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
19991 (dbg_cnt_process_opt): Likewise.
19992 * dwarf2out.c (output_dwarf_version): Likewise.
19993 * except.c (expand_eh_return): Likewise.
19994 * gcc.c (defined): Likewise.
19995 (driver_handle_option): Likewise.
19996 (process_command): Likewise.
19997 (compare_files): Likewise.
19998 (driver::prepare_infiles): Likewise.
19999 (driver::do_spec_on_infiles): Likewise.
20000 (driver::maybe_run_linker): Likewise.
20001 * omp-offload.c (oacc_parse_default_dims): Likewise.
20002 * opts-global.c (handle_common_deferred_options): Likewise.
20003 * opts.c (parse_sanitizer_options): Likewise.
20004 (common_handle_option): Likewise.
20005 (enable_warning_as_error): Likewise.
20006 * passes.c (enable_disable_pass): Likewise.
20007 * plugin.c (parse_plugin_arg_opt): Likewise.
20008 (default_plugin_dir_name): Likewise.
20009 * targhooks.c (default_expand_builtin_saveregs): Likewise.
20010 (default_pch_valid_p): Likewise.
20011 * toplev.c (init_asm_output): Likewise.
20012 (process_options): Likewise.
20013 (toplev::run_self_tests): Likewise.
20014 * tree-cfg.c (verify_gimple_call): Likewise.
20015 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
20016 (tree_inlinable_function_p): Likewise.
20017 * var-tracking.c (vt_find_locations): Likewise.
20019 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
20021 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
20022 only on the else branch.
20024 2019-03-11 Martin Liska <mliska@suse.cz>
20026 * gcov.c (output_intermediate_json_line): Print function
20028 (output_json_intermediate_file): Add new argument.
20029 * doc/gcov.texi: Document the change.
20031 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
20033 PR rtl-optimization/89588
20034 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20035 explicit unrolling factor more robust.
20037 2019-03-11 Richard Biener <rguenther@suse.de>
20039 PR tree-optimization/89649
20040 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
20041 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
20042 on the prolog and epilog loops.
20043 (vect_loop_versioning): Return copy of loop.
20044 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
20045 on the non-vectorized version of the loop.
20047 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
20050 * config/i386/sse.md (*vec_extractv2di_0_sse):
20051 Add (=r,x) alternative and corresponding splitter.
20053 2019-03-10 Martin Jambor <mjambor@suse.cz>
20055 PR tree-optimization/85762
20056 PR tree-optimization/87008
20057 PR tree-optimization/85459
20058 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
20059 it points to if there is a type changing MEM_REF. Adjust all callers.
20060 (build_accesses_from_assign): Disable total scalarization if
20061 contains_vce_or_bfcref_p returns true through the new parameter, for
20064 2019-03-09 Jakub Jelinek <jakub@redhat.com>
20067 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
20068 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
20071 * common.opt (fdiagnostics-show-labels,
20072 fdiagnostics-show-line-numbers, fdiagnostics-format=,
20073 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
20074 gas-locview-support, ginline-points, ginternal-reset-location-views):
20075 Terminate description text with a dot.
20076 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
20077 * config/mcore/mcore.opt (m210, m340): Likewise.
20078 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
20079 mnops=): Start description text with a capital letter.
20080 * config/arc/arc.opt (msize-level=): Likewise.
20081 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
20082 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
20083 mnewlib): Likewise.
20084 * config/ft32/ft32.opt (msim): Likewise.
20085 (mft32b, mcompress): Likewise. Terminate description text with a dot.
20086 (mnodiv, mnopm): Terminate description text with a dot.
20087 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
20089 * config/i386/i386.opt (prefer_vector_width, instrument_return):
20091 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
20094 PR rtl-optimization/89634
20095 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
20096 are modified in BB_END (e->src) instruction.
20098 2019-03-08 David Malcolm <dmalcolm@redhat.com>
20101 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
20102 messages more amenable to translation, and improve wording.
20104 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
20106 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
20107 ud- and du-chains between phases.
20109 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
20112 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
20113 instead of POLY_INT_CST.
20115 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
20117 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
20120 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
20125 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
20126 (_mm_storeu_si64): Ditto.
20128 2019-03-08 Martin Liska <mliska@suse.cz>
20131 * config/i386/i386.c (ix86_option_override_internal): Disable
20132 jump tables when retpolines are used.
20134 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
20137 * ipa-split.c (execute_split_functions): Do not split
20138 'noinline' or 'section' function.
20140 2019-03-08 Jakub Jelinek <jakub@redhat.com>
20143 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
20144 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
20145 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
20148 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20149 from diagnostics. Formatting fixes.
20152 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
20153 warn_odr diagnostics.
20156 * lra-constraints.c (process_alt_operands): Avoid one space before
20157 " at the end of line and another after " on another line in a string
20159 * attribs.c (handle_dll_attribute): Likewise.
20160 * config/avr/avr-devices.c (avr_texinfo): Likewise.
20162 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
20163 warning_at or inform messages in G_() if there is no ?:.
20165 PR tree-optimization/89550
20166 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
20167 returned true. Formatting fixes.
20168 (expand_builtin_strnlen): Formatting fixes.
20169 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
20170 if warning_at returned true.
20171 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
20173 2019-03-08 Richard Biener <rguenther@suse.de>
20175 PR middle-end/89578
20176 * cfgloop.h (struct loop): Add owned_clique field.
20177 * cfgloopmanip.c (copy_loop_info): Copy it.
20178 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
20180 * tree-inline.c (copy_loops): Remap owned_clique.
20181 * lto-streamer-in.c (input_cfg): Stream owned_clique.
20182 * lto-streamer-out.c (output_cfg): Likewise.
20184 2019-03-08 Jakub Jelinek <jakub@redhat.com>
20187 * config/darwin.c: Include intl.h.
20188 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
20189 composing the message out of two separate parts.
20191 2019-03-07 Jakub Jelinek <jakub@redhat.com>
20194 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
20195 doesn't start with a capital letter and doesn't end with a dot.
20196 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
20197 with a capital letter.
20198 (ix86_mangle_function_version_assembler_name): Likewise.
20199 (ix86_generate_version_dispatcher_body): Likewise.
20200 (fold_builtin_cpu): Likewise.
20201 (get_builtin_code_for_version): Likewise. Remove extraneous space.
20202 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
20203 translators, wrap full type name in %qs.
20205 PR translation/79999
20206 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
20207 depend clause with source (or sink) modifier.
20208 * omp-expand.c (expand_omp_ordered_sink): Likewise.
20211 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
20212 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
20213 (avx512f_load<mode>_mask): New define_expand.
20214 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
20215 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
20216 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
20217 __builtin_ia32_movess_mask): New builtins.
20218 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
20219 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
20220 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
20221 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
20223 2019-03-07 Martin Jambor <mjambor@suse.cz>
20226 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
20227 for extern inline functions.
20229 2019-03-07 Martin Jambor <mjambor@suse.cz>
20232 * cgraph.h (cgraph_node): New inline method former_thunk_p.
20233 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
20234 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
20235 have multiple callees. At the end check if declarations match as
20236 opposed to cgraph_nodes.
20238 2019-03-07 Martin Liska <mliska@suse.cz>
20240 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
20241 which is equivalent to searching for this in clones chain.
20242 * symtab.c (symtab_node::verify_base): Similarly compare ASM
20243 names with a neighbour and special case first node in a chain.
20245 2019-01-25 Jason Merrill <jason@redhat.com>
20247 PR c++/80916 - spurious "static but not defined" warning.
20248 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
20249 for an internal symbol with DECL_EXTERNAL.
20251 2019-04-07 Richard Biener <rguenther@suse.de>
20253 PR middle-end/89618
20254 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
20255 * tree-inline.c (copy_loops): Simplify.
20257 2019-03-07 Martin Liska <mliska@suse.cz>
20259 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
20261 2019-03-07 Richard Biener <rguenther@suse.de>
20263 PR tree-optimization/89595
20264 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
20265 stmt iterator as reference, take boolean output parameter to
20266 indicate whether the stmt was removed and thus the iterator
20268 (dom_opt_dom_walker::before_dom_children): Re-iterate over
20269 stmts created by folding.
20271 2019-03-07 Jakub Jelinek <jakub@redhat.com>
20274 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
20277 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
20279 PR rtl-optimization/88845
20280 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
20282 * lra.c (remove_scratches_1): New function.
20283 (remove_scratches): Use it.
20284 (lra_emit_move): Likewise.
20286 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
20288 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
20289 unaligned_access variable.
20290 * config/arc/arc.c (arc_override_options): Set unaligned access
20291 default on for HS CPUs.
20292 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
20294 2019-03-06 Martin Liska <mliska@suse.cz>
20296 PR gcov-profile/89577
20297 * doc/gcov.texi: Prefer to use --coverage.
20298 * doc/sourcebuild.texi: Likewise.
20300 2019-03-02 Jason Merrill <jason@redhat.com>
20302 PR c++/86485 - -Wmaybe-unused with empty class ?:
20303 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
20305 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20308 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
20311 PR middle-end/89590
20312 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
20313 exactly one argument.
20315 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20316 Richard Sandiford <richard.sandiford@arm.com>
20318 PR tree-optimization/89570
20319 * match.pd (vec_cond into cond_op simplification): Don't use
20320 get_conditional_internal_fn, use as_internal_fn (cond_op).
20322 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
20325 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
20326 to decide when to split off a non-zero offset from a symbol.
20327 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
20328 in function symbols.
20330 2019-03-05 Richard Biener <rguenther@suse.de>
20332 PR tree-optimization/89594
20333 * tree-if-conv.c (pass_if_conversion::execute): Handle
20334 case where .LOOP_VECTORIZED_FUNCTION was removed.
20336 2019-03-05 Jakub Jelinek <jakub@redhat.com>
20339 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
20340 instead alloca it only when needed with the needed size.
20342 PR tree-optimization/89570
20343 * match.pd (vec_cond into cond_op simplification): Guard with
20344 vectorized_internal_fn_supported_p test and #if GIMPLE.
20346 PR tree-optimization/89566
20347 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
20348 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
20349 Punt if get_user_idx_format succeeds, but idx_format argument is
20350 not provided or doesn't have pointer type, or if idx_args is above
20351 number of provided arguments.
20353 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
20355 PR tree-optimization/89437
20356 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
20358 2019-03-04 Richard Biener <rguenther@suse.de>
20360 PR middle-end/89572
20361 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
20364 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
20366 PR tree-optimization/89487
20367 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
20368 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
20369 (distribute_loop): Don't do runtime alias check if there is non-
20370 addressable data reference.
20371 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
20372 is a register variable.
20374 2019-03-02 Jakub Jelinek <jakub@redhat.com>
20377 * config/arm/arm.md (cmpsi2_addneg): Use
20378 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
20379 If operands[2] is 0 or INT_MIN, force use of subs.
20380 (*compare_scc splitter): Use gen_int_mode.
20381 (*negscc): Likewise.
20382 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
20384 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
20385 Monk Chiang <sh.chiang04@gmail.com>
20387 * common/config/riscv/riscv-common.c: Include sstream.
20388 (riscv_subset_list::to_string): New.
20389 (riscv_arch_str): Likewise.
20390 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
20391 * config.in: Regen.
20392 * config/riscv/riscv-protos.h (riscv_arch_str): New.
20393 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
20394 (riscv_emit_attribute): New.
20395 (riscv_file_start): Emit attribute if needed.
20396 (riscv_option_override): Init riscv_emit_attribute_p.
20397 * config/riscv/riscv.opt (mriscv-attribute): New option.
20398 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
20399 * configure: Regen.
20400 * doc/install.texi: Document --with-riscv-attribute.
20401 * doc/invoke.texi: Document -mriscv-attribute.
20403 * common/config/riscv/riscv-common.c:
20404 Include config/riscv/riscv-protos.h.
20405 (INCLUDE_STRING): Defined.
20406 (RISCV_DONT_CARE_VERSION): Defined.
20407 (riscv_subset_t): Declare.
20408 (riscv_subset_t::riscv_subset_t): New.
20409 (riscv_subset_list): Declare.
20410 (riscv_subset_list::riscv_subset_list): New.
20411 (riscv_subset_list::~riscv_subset_list): Likewise.
20412 (riscv_subset_list::parsing_subset_version): Likewise.
20413 (riscv_subset_list::parse_std_ext): Likewise.
20414 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20415 (riscv_subset_list::add): Likewise.
20416 (riscv_subset_list::lookup): Likewise.
20417 (riscv_subset_list::xlen): Likewise.
20418 (riscv_subset_list::parse): Likewise.
20419 (riscv_supported_std_ext): Likewise.
20420 (current_subset_list): Likewise.
20421 (riscv_parse_arch_string): Using riscv_subset_list::parse to
20424 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
20426 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
20427 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
20428 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
20430 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
20432 PR rtl-optimization/85899
20433 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
20434 fallthru edges leading to the exit block.
20436 2019-03-01 Tamar Christina <tamar.christina@arm.com>
20439 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
20440 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
20442 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
20444 PR tree-optimization/89535
20445 * tree-vect-stmts.c (vectorizable_call): Record the vector types
20446 for each operand. Calculate the fallback choice for mask operands
20447 and pass it to vect_get_vec_def_for_operand.
20449 2019-03-01 Richard Biener <rguenther@suse.de>
20451 PR middle-end/89541
20452 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
20453 get virtual operands.
20454 (get_expr_operands): Handle CONST_DECL like other decls.
20456 2019-03-01 Jakub Jelinek <jakub@redhat.com>
20458 PR middle-end/89503
20459 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
20460 on DECL_P and EXPR_P.
20462 2019-03-01 Richard Biener <rguenther@suse.de>
20464 PR middle-end/89497
20465 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
20466 argument, defaulted to zero.
20467 * passes.c (execute_function_todo): Pass down SSA update flags
20468 to cleanup_tree_cfg.
20469 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
20470 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
20472 (cleanup_tree_cfg): Get and pass down SSA update flags.
20474 2019-03-01 Jakub Jelinek <jakub@redhat.com>
20477 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
20478 early_lto_debug argument.
20480 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
20482 PR tree-optimization/89536
20483 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
20484 only whether bit #0 of the value is 0 instead of the entire value.
20486 2019-02-28 Marek Polacek <polacek@redhat.com>
20488 PR c++/87068 - missing diagnostic with fallthrough statement.
20489 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
20490 at the end of a seq, save its location to walk_stmt_info.
20491 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
20494 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
20497 * tree.c (find_atomic_core_type): Move ahead in file.
20498 (check_base_type): Correctly compare alignments of atomic types.
20500 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
20503 * config/i386/i386.c (get_builtin_code_for_version): Identify
20504 Westmere from PCLMUL, instead of AES.
20506 2019-02-28 Jakub Jelinek <jakub@redhat.com>
20509 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
20510 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
20513 2019-02-28 Tamar Christina <tamar.christina@arm.com>
20516 * config/aarch64/aarch64-option-extensions.def: Document it.
20517 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
20520 2019-02-28 Jakub Jelinek <jakub@redhat.com>
20523 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
20524 builtins if they don't have a single scalar floating point argument.
20527 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
20529 PR rtl-optimization/89490
20530 * varasm.c (get_block_for_section): Bail out for mergeable sections.
20531 (default_use_anchors_for_symbol_p, output_object_block): Assert the
20532 block section is not mergeable.
20534 2019-02-27 Jakub Jelinek <jakub@redhat.com>
20537 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
20538 old define_insn to ...
20539 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
20540 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
20541 Rename old define_insn to ...
20542 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
20543 (thumb2_casesi_internal_pic): New define_expand. Rename old
20545 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
20546 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
20547 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
20549 2019-02-27 Richard Biener <rguenther@suse.de>
20552 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
20554 2019-02-27 Richard Biener <rguenther@suse.de>
20556 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
20559 2019-02-27 Richard Biener <rguenther@suse.de>
20562 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
20563 parameter, prefix section name with .gnu.debuglto_ if true.
20564 (dwarf2out_finish): Pass false to output_comdat_type_unit.
20565 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
20567 2019-02-27 Richard Biener <rguenther@suse.de>
20570 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
20571 rather than on use_debug_types, doing what output_die does.
20572 (value_format): Likewise.
20574 2019-02-27 Martin Jambor <mjambor@suse.cz>
20575 Martin Sebor <msebor@redhat.com>
20577 * doc/invoke.texi (Warning Options): Reword description of
20578 -Wno-absolute-value.
20580 2019-02-27 Jakub Jelinek <jakub@redhat.com>
20582 PR tree-optimization/89280
20583 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
20584 builtin_setjmp_setup_bb): New functions.
20585 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
20586 When visiting __builtin_setjmp_setup block, queue in special
20587 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
20588 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
20589 from visited after the loop if they don't have any visited successor
20592 2018-02-26 Steve Ellcey <sellcey@marvell.com>
20594 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
20596 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
20598 2019-02-26 Jakub Jelinek <jakub@redhat.com>
20601 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
20602 with types other than sizetype/ssizetype.
20604 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
20606 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
20607 (enum sparc_processor_type): ...this.
20608 (enum sparc_code_model_type): New enumeration type.
20609 (enum sparc_memory_model_type): Tweak comments.
20610 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
20612 (mcmodel): Use sparc_code_model enumeration and variable.
20613 (sparc_code_model): New enumeration.
20614 (mdebug): Add Undocumented marker.
20615 * config/sparc/sparc.h (enum cmodel): Delete.
20616 (sparc_cmodel): Likewise.
20617 (TARGET_CM_MEDLOW): Adjust to above renaming.
20618 (TARGET_CM_MEDMID): Likewise.
20619 (TARGET_CM_MEDANY): Likewise.
20620 (TARGET_CM_EMBMEDANY): Likewise.
20621 * config/sparc/sparc.c (sparc_cmodel): Delete.
20622 (sparc_option_override): Remove string/value mapping support for the
20623 code model. Move code and memory model support to after the handling
20624 of target flags. Do private machine setup last.
20625 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
20626 (sparc_legitimize_reload_address): Likewise.
20627 (sparc_output_mi_thunk): Likewise.
20628 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
20630 2019-02-26 Jakub Jelinek <jakub@redhat.com>
20632 PR tree-optimization/89500
20633 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
20634 (handle_builtin_strlen): Remove noncst_bound variable. Always
20635 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
20636 cst if the first cst bytes starting at x are known to be non-zero,
20637 even if the string is not zero terminated. Don't try to modify
20638 *si for strnlen. Update strlen_to_stridx only for strlen or if
20639 we can prove strnlen returns the same value as strlen would.
20641 2019-02-26 Martin Liska <mliska@suse.cz>
20643 * alloc-pool.h (struct pool_usage): Remove extra
20645 * bitmap.h (struct bitmap_usage): Likewise.
20646 * ggc-common.c (struct ggc_usage): Likewise.
20647 * mem-stats.h (struct mem_usage): Likewise.
20648 (mem_alloc_description::dump): Print dash lines
20649 here and repeat header at the end of a table report.
20650 It's then more readable.
20651 * tree-phinodes.c (phinodes_print_statistics): Make
20652 horizontal alignment.
20653 * tree-ssanames.c (ssanames_print_statistics): Likewise.
20654 * vec.c (struct vec_usage): Remove extra print_dash_line.
20655 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
20657 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
20659 * doc/extend.texi (__builtin_object_size):
20660 Use @pxref instead of @xref inside parenthesis.
20661 (__builtin_has_attribute): Add missing comma after @xref.
20662 (__builtin_object_size): Ditto.
20663 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
20665 2019-02-26 Jeff Law <law@redhat.com>
20667 PR rtl-optimization/87761
20668 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
20669 detect obviously dead insns and delete them.
20671 2019-02-26 Richard Biener <rguenther@suse.de>
20673 PR tree-optimization/89505
20674 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
20675 to handle restrict pointed-to vars with multiple subvars
20678 2019-02-26 Richard Biener <rguenther@suse.de>
20680 PR tree-optimization/89489
20681 * tree-parloops.c (create_loop_fn): Copy over last_clique.
20683 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
20685 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
20686 and move around comment.
20687 <BIT_AND_EXPR>: Likewise.
20688 <BIT_NOT_EXPR>: Add specific handling for boolean types.
20690 2019-02-26 Jakub Jelinek <jakub@redhat.com>
20693 * config/i386/i386.c (remove_partial_avx_dependency): Call
20694 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
20695 after changing possibly many instructions to use that pseudo. Fix up
20696 insertion of v4sf_const0 setter at the start of bb.
20698 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
20701 * doc/extend.texi (Variadic Pointer Args): New section.
20703 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
20704 Martin Sebor <msebor@gmail.com>
20706 * common.opt (Wattribute-alias): Likewise.
20707 * doc/invoke.texi (Option Summary): List general form of
20708 -Wattribute-alias=. List positive form of -Wmissing-attributes.
20709 (-Wmissing-attributes): Invert entry, rewrite and correct default.
20710 Add cross-references.
20711 (-Wattribute-alias): Rewrite and correct default. Mention
20712 considered attributes (same as for -Wmissing-attributes).
20714 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
20716 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
20717 (_mm_cvtpd_ps): Likewise.
20718 (_mm_cvttpd_epi32): Likewise.
20721 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
20722 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
20725 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
20727 2019-02-25 Tamar Christina <tamar.christina@arm.com>
20730 * common/config/aarch64/aarch64-common.c
20731 (struct aarch64_option_extension): Add is_synthetic.
20732 (all_extensions): Use it.
20733 (TARGET_OPTION_INIT_STRUCT): Define hook.
20734 (struct gcc_targetm_common): Moved to end.
20735 (all_extensions_by_on): New.
20736 (opt_ext_cmp, typedef opt_ext): New.
20737 (aarch64_option_init_struct): New.
20738 (aarch64_contains_opt): New.
20739 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
20740 * config/aarch64/aarch64-option-extensions.def
20741 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
20742 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
20743 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
20744 Set is_synthetic to false.
20745 (crypto): Set is_synthetic to true.
20746 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
20749 2019-02-25 Tamar Christina <tamar.christina@arm.com>
20751 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
20752 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
20753 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
20754 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
20755 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
20756 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
20757 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
20758 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
20760 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
20761 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
20762 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
20763 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
20764 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
20765 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
20766 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
20767 vfmlsl_laneq_high_f16): ... To this.
20768 * config/arm/neon.md: Update comments.
20770 2019-02-25 Tamar Christina <tamar.christina@arm.com>
20772 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
20773 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
20774 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
20775 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
20776 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
20777 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
20778 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
20779 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
20781 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
20782 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
20783 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
20784 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
20785 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
20786 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
20787 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
20788 vfmlslq_laneq_high_f16): ... To this.
20790 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
20792 PR rtl-optimization/86096
20793 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
20794 comparing mw_order values.
20796 2019-02-25 Jakub Jelinek <jakub@redhat.com>
20799 * config/arm/arm.md (*subsi3_carryin_const): Use
20800 arm_neg_immediate_operand predicate instead of
20801 arm_not_immediate_operand, "L" constraint instead of "K" and
20802 print it using %n2 instead of %B2.
20803 (*subsi3_carryin_const0): New define_insn.
20804 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
20805 instead of arm_not_operand and "I" constraint instead of "K" and
20806 print it using %n3 instead of %B2. Instead of using match_dup 2 add
20807 another match_operand and in the condition check that it is negation
20809 (*subsi3_carryin_compare_const0): New define_ins.
20810 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
20811 *subsi3_carryin_const.
20812 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
20813 split into *subsi3_carryin_compare_const0 if the highpart is zero.
20816 * config/arm.vfp.md (*negdf2_vfp): Use
20817 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
20818 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
20820 2019-02-24 Jakub Jelinek <jakub@redhat.com>
20822 PR rtl-optimization/89445
20823 * simplify-rtx.c (simplify_ternary_operation): Don't use
20824 simplify_merge_mask on operands that may trap.
20825 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
20826 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
20827 second operand is CONST_VECTOR, check if any element could be zero.
20828 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
20829 their operands can trap.
20831 2019-02-23 Martin Sebor <msebor@redhat.com>
20833 * gimple-ssa-sprintf.c (target_strtol): Rename...
20834 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
20835 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
20836 check for range error.
20838 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
20841 * opts-common.c (prune_options): Also prune joined switches
20842 with Negative and RejectNegative.
20843 * config/i386/i386.opt (march=): Add Negative(march=).
20844 (mtune=): Add Negative(mtune=).
20845 * doc/options.texi: Document Negative used together with Joined
20846 and RejectNegative.
20848 2019-02-22 Martin Sebor <msebor@redhat.com>
20850 * doc/extend.texi (Other Builtins): Add
20851 __builtin_is_constant_evaluated.
20853 2019-02-22 Richard Biener <rguenther@suse.de>
20855 PR tree-optimization/87609
20856 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
20858 2019-02-22 Jeff Law <law@redhat.com>
20860 PR rtl-optimization/87761
20861 * config/mips/mips.md: Add new combiner pattern to recognize
20862 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
20864 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
20867 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
20868 destination register in peepholes generating patterns for ADDS/SUBS.
20869 (add<mode>3_compare0,
20870 *addsi3_compare0_uxtw, add<mode>3_compareC,
20871 add<mode>3_compareV_imm, add<mode>3_compareV,
20872 *adds_<optab><ALLX:mode>_<GPI:mode>,
20873 *subs_<optab><ALLX:mode>_<GPI:mode>,
20874 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
20875 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
20876 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
20877 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
20878 sub<mode>3_compare1): Allow stack pointer for source register.
20879 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
20881 2019-02-22 Martin Sebor <msebor@redhat.com>
20883 PR tree-optimization/88993
20884 PR tree-optimization/88853
20885 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
20887 (sprintf_dom_walker::call_info::is_string_func): New helper.
20888 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
20889 for formatted string functions.
20890 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
20892 2019-02-22 Martin Sebor <msebor@redhat.com>
20895 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
20896 unreachable subexpressions.
20898 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
20899 Hongtao Liu <hongtao.liu@intel.com>
20900 Sunil K Pandey <sunil.k.pandey@intel.com>
20903 * config/i386/i386-passes.def: Add
20904 pass_remove_partial_avx_dependency.
20905 * config/i386/i386-protos.h
20906 (make_pass_remove_partial_avx_dependency): New.
20907 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
20909 (pass_data_remove_partial_avx_dependency): New.
20910 (pass_remove_partial_avx_dependency): Likewise.
20911 (make_pass_remove_partial_avx_dependency): Likewise.
20912 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
20913 (*extendsfdf2): Add avx_partial_xmm_update.
20914 (truncdfsf2): Likewise.
20915 (*float<SWI48:mode><MODEF:mode>2): Likewise.
20916 (SF/DF conversion splitters): Disabled for TARGET_AVX.
20918 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
20920 PR middle-end/85598
20921 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
20924 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
20927 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
20928 (PTA_SKYLAKE): Add PTA_AES.
20929 (PTA_GOLDMONT): Likewise.
20931 2019-02-22 Sudakshina Das <sudi.das@arm.com>
20933 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
20934 instruction if enabled.
20935 (aarch64_override_options): Remove reference to return address key.
20937 2019-02-22 Richard Biener <rguenther@suse.de>
20939 PR tree-optimization/89440
20940 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
20941 not necessary assert.
20943 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
20946 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
20947 (oacc_replace_fn_attrib_attr): ... this new function.
20948 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
20949 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
20951 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20953 * config/arm/arm-cpus.in (ares): Rename to...
20954 (neoverse-n1): ... This. Add ares as alias.
20955 * config/arm/arm-tables.opt: Regenerate.
20956 * config/arm/arm-tune.md: Likewise.
20957 * doc/invoke.txt (ARM Options): Document neoverse-n1.
20959 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20961 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
20962 * config/aarch64/aarch64-tune.md: Regenerate.
20963 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
20965 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20967 * config/aarch64/aarch64.c (ares_tunings): Rename to...
20968 (neoversen1_tunings): ... This.
20969 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
20970 (neoverse-n1): New CPU.
20971 * config/aarch64/aarch64-tune.md: Regenerate.
20972 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
20974 2019-02-22 Richard Biener <rguenther@suse.de>
20976 PR middle-end/87609
20977 * cfghooks.h (dependence_hash): New typedef.
20978 (struct copy_bb_data): New type.
20979 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
20980 (duplicate_block): Likewise.
20981 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
20982 (copy_bbs): Create and pass down copy_bb_data.
20983 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
20984 (rtl_duplicate_bb): Likewise.
20985 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
20986 remap dependence info.
20988 2019-02-22 Richard Biener <rguenther@suse.de>
20990 PR tree-optimization/87609
20991 * tree-core.h (tree_base): Document special clique values.
20992 * tree-inline.c (remap_dependence_clique): Do not use the
20993 special clique value of one.
20994 (maybe_set_dependence_info): Use clique one.
20995 (clear_dependence_clique): New callback.
20996 (compute_dependence_clique): Clear clique one from all refs
20997 before assigning it (again).
20999 2019-02-21 Martin Sebor <msebor@redhat.com>
21001 * doc/extend.texi (__clear_cache): Correct signature.
21003 2019-02-21 Ian Lance Taylor <iant@golang.org>
21006 * varasm.c (decode_addr_const): Call lookup_constant_def rather
21007 than output_constant_def.
21008 (add_constant_to_table): New static function.
21009 (output_constant_def): Call add_constant_to_table.
21010 (tree_output_constant_def): Likewise.
21012 2019-02-21 Jakub Jelinek <jakub@redhat.com>
21015 * builtins.c (fold_builtin_arith_overflow): If first two args are
21016 INTEGER_CSTs, set intres and ovfres to constants rather than calls
21019 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
21022 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
21023 error for -mindirect-branch/-mfunction-return with incompatible
21026 2019-02-21 Jakub Jelinek <jakub@redhat.com>
21029 * constraints.md (q): Remove.
21030 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
21033 2019-02-21 Martin Jambor <mjambor@suse.cz>
21036 * omp-general.c (omp_extract_for_data): Removed a duplicate call
21037 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
21038 (omp_adjust_for_condition): ...here. Added necessary parameters.
21039 * omp-general.h (omp_adjust_for_condition): Updated declaration.
21040 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
21041 proper values to new parameters of omp_adjust_for_condition.
21043 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21045 PR middle-end/89412
21046 * expr.c (expand_assignment): If result is a MEM, use change_address
21047 instead of simplify_gen_subreg.
21049 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21050 David Malcolm <dmalcolm@redhat.com>
21052 PR middle-end/89091
21053 * fold-const.c (decode_field_reference): Return NULL_TREE if
21054 lang_hooks.types.type_for_size returns NULL. Check it before
21055 overwriting *exp_. Use return NULL_TREE instead of return 0.
21057 2019-02-20 Jakub Jelinek <jakub@redhat.com>
21059 PR middle-end/88074
21060 PR middle-end/89415
21061 * toplev.c (do_compile): Double the emin/emax exponents to workaround
21064 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
21067 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
21068 TARGET_SSE in addition to TARGET_SSE_MATH.
21070 (ix86_excess_precision): Ditto.
21071 (ix86_float_exceptions_rounding_supported_p): Ditto.
21072 (use_rsqrt_p): Ditto.
21073 * config/i386/sse.md (rsqrt<mode>2): Ditto.
21075 2019-02-20 David Malcolm <dmalcolm@redhat.com>
21078 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
21079 linenum_arith_t when determining if two adjacent line spans are
21080 close enough to merge.
21081 (diagnostic_show_locus): Use linenum_arith_t when iterating over
21082 lines within each line_span.
21084 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
21087 * lra-constraints.c(uses_hard_regs_p): Fix handling of
21088 paradoxical SUBREGS.
21090 2019-02-20 Li Jia He <helijia@linux.ibm.com>
21093 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
21094 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
21095 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
21098 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
21100 * config/gcn/gcn.c (print_operand): Fix typo.
21102 2019-02-19 Richard Biener <rguenther@suse.de>
21104 PR middle-end/88074
21105 * toplev.c (do_compile): Initialize mpfr's exponent range
21106 based on available float modes.
21108 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
21110 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
21111 as long as the epilogue isn't completed.
21113 2019-02-18 Martin Sebor <msebor@redhat.com>
21115 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
21116 __has_cpp_attribute, and __has_include.
21118 2019-02-18 Martin Sebor <msebor@redhat.com>
21120 * doc/invoke.texi (-Wreturn-type): Correct and expand.
21122 2019-02-18 Martin Sebor <msebor@redhat.com>
21124 PR middle-end/89294
21125 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
21127 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
21129 2019-02-18 Richard Biener <rguenther@suse.de>
21131 PR tree-optimization/89296
21132 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
21133 of no-warning flag to cases that might emit the bogus warning.
21135 2019-02-18 Jakub Jelinek <jakub@redhat.com>
21138 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
21140 * config/arm/vfp.md (*movdi_vfp): Likewise.
21141 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
21142 "q" constraint for operands[0].
21145 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
21146 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
21147 pattern in a temporary buffer.
21148 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
21149 than 64-operands[2].
21152 * config/s390/s390.c (s390_indirect_branch_attrvalue,
21153 s390_indirect_branch_settings): Define unconditionally.
21154 (s390_set_current_function): Likewise, but guard the whole body except
21155 the s390_indirect_branch_settings call with
21156 #if S390_USE_TARGET_ATTRIBUTE.
21157 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
21159 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
21160 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
21161 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
21162 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
21163 HOST_WIDE_INT_1U instead of 1ULL.
21164 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
21165 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
21166 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
21167 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
21169 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
21172 2019-02-18 Martin Jambor <mjambor@suse.cz>
21174 PR tree-optimization/89209
21175 * tree-sra.c (create_access_replacement): New optional parameter
21176 reg_tree. Use it as a type if non-NULL and access type is not of
21178 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
21179 to create_access_replacement.
21180 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
21181 Check lacc is non-NULL before attempting to re-create it on the RHS.
21183 2019-02-18 Martin Liska <mliska@suse.cz>
21186 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
21188 (symbol_table::free_edge): Recycle m_summary_id.
21189 * cgraph.h (get_summary_id): New.
21190 (symbol_table::release_symbol): Set m_summary_id to -1
21192 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
21193 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
21194 function_summary to fast_function_summary.
21195 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
21196 * ipa-pure-const.c (class funct_state_summary_t):
21197 Switch from function_summary to fast_function_summary.
21198 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
21199 (class ipa_ref_opt_summary_t): Switch from function_summary
21200 to fast_function_summary.
21201 * symbol-summary.h (class function_summary_base): New class
21202 that is created from base of former function_summary.
21203 (function_summary_base::unregister_hooks): New.
21204 (class function_summary): Inherit from function_summary_base.
21205 (class call_summary_base): New class
21206 that is created from base of former call_summary.
21207 (class call_summary): Inherit from call_summary_base.
21208 (struct is_same): New.
21209 (class fast_function_summary): New summary class.
21210 (class fast_call_summary): New summary class.
21211 * vec.h (vec_safe_grow_cleared): New function.
21213 2019-02-18 Martin Liska <mliska@suse.cz>
21215 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
21216 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
21217 * doc/tm.texi: Document new target hook.
21218 * doc/tm.texi.in: Likewise.
21219 * target.def: Add new target macro.
21220 * gcc.c (find_fortran_preinclude_file): Do not search multilib
21223 2019-02-17 Alan Modra <amodra@gmail.com>
21226 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
21227 output reg on add insn.
21228 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
21230 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
21233 * config/i386/sse.md (ssedoublemode): Remove V4HI.
21234 (PMULHRSW): Likewise.
21235 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
21237 (ssse3_pmulhrswv4hi3): New expander.
21239 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
21241 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
21242 MMX. Add isa attribute.
21244 2019-02-16 Jakub Jelinek <jakub@redhat.com>
21246 PR rtl-optimization/66152
21247 * builtins.h (c_readstr): Declare.
21248 * builtins.c (c_readstr): Remove forward declaration. Add
21249 null_terminated_p argument, if false, read all bytes from the
21250 string instead of stopping after '\0'.
21251 * expr.c (string_cst_read_str): New function.
21252 (store_expr): Use string_cst_read_str instead of
21253 builtin_strncpy_read_str. Try to store by pieces the whole
21254 exp_len first, and only if that fails, split it up into
21255 store by pieces followed by clear_storage. Formatting fix.
21257 * config/i386/i386.md (*movqi_internal): Remove static from
21258 buf variable. Use output_asm_insn (buf, operands); return "";
21259 instead of return buf;.
21260 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
21261 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
21262 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
21264 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21266 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
21267 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
21268 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
21269 (CC1_SPEC): Likewise.
21270 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
21272 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21274 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
21275 the base address on 64-bit strict-alignment platforms.
21277 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
21279 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
21281 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
21283 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
21285 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
21287 PR rtl-optimization/88308
21288 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
21289 on copied instruction.
21291 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
21293 * final.c (insn_current_reference_address): Replace test on JUMP_P
21294 with test on jump_to_label_p.
21295 * config/visium/visium-passes.def: New file.
21296 * config/visium/t-visium (PASSES_EXTRA): Define.
21297 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
21298 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
21299 (TRAMPOLINE_ALIGNMENT): Define.
21300 * config/visium/visium.c (visium_option_override): Do not register
21301 the machine-specific reorg pass here.
21302 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
21304 (output_branch): Adjust threshold for long branch instruction.
21305 * config/visium/visium.md (cpu): Move around.
21306 (length): Adjust for the GR6.
21308 2019-02-15 Richard Biener <rguenther@suse.de>
21309 Jakub Jelinek <jakub@redhat.com>
21311 PR tree-optimization/89278
21312 * tree-loop-distribution.c: Include tree-eh.h.
21313 (generate_memset_builtin, generate_memcpy_builtin): Call
21314 rewrite_to_non_trapping_overflow on builtin->size before passing it
21315 to force_gimple_operand_gsi.
21317 2019-02-15 Jakub Jelinek <jakub@redhat.com>
21320 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
21322 * opth-gen.awk: Likewise.
21324 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
21326 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
21327 Enable MMX, SSE and SSE2 by default.
21328 * config/i386/i386.c (ix86_option_override_internal): Do not
21329 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
21331 2019-02-14 Jakub Jelinek <jakub@redhat.com>
21333 PR rtl-optimization/89354
21334 * combine.c (make_extraction): Punt if extraction_mode is narrower
21337 2019-02-14 Maya Rashish <coypu@sdf.org>
21339 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
21340 * config/netbsd-d.c: New file.
21341 * config/t-netbsd: Add netbsd-d.o
21343 2018-02-14 Steve Ellcey <sellcey@marvell.com>
21345 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
21346 affects_type_identity to true for aarch64_vector_pcs.
21347 (aarch64_comp_type_attributes): New function.
21348 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
21350 2019-02-14 Tamar Christina <tamar.christina@arm.com>
21353 * config/arm/iterators.md (ANY64): Add V4HF.
21355 2019-02-14 Martin Liska <mliska@suse.cz>
21357 PR rtl-optimization/89242
21358 * dce.c (delete_unmarked_insns): Call free_dominance_info we
21359 process a transformation.
21361 2019-02-14 Jakub Jelinek <jakub@redhat.com>
21363 PR tree-optimization/89314
21364 * fold-const.c (fold_binary_loc): Cast strlen argument to
21365 const char * before dereferencing it. Formatting fixes.
21367 PR middle-end/89284
21368 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
21370 2019-02-13 Ian Lance Taylor <iant@golang.org>
21372 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
21373 and set current index for other optimizations.
21375 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
21377 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
21378 nonimmediate_operand as operand 2 predicate.
21379 (vec_set<VF2_512_256:mode>_0): Ditto.
21380 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
21381 (*vec_concatv2si): Remove alternative 2.
21382 (*vec_concatv4si_0): Use vm constraint for alternative 0.
21383 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
21384 (vec_concatv2di): Split alternatives 4,5,6 to ...
21385 (*vec_concatv2di_0) ... new pattern.
21387 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
21390 * config/arm/arm.c (ldm_stm_operation_p) Set
21391 addr_reg_in_reglist correctly for first register.
21392 (load_multiple_sequence): Remove dead base check.
21393 (gen_ldm_seq): Correctly set write_back for Thumb-1.
21395 2019-02-13 Tamar Christina <tamar.christina@arm.com>
21398 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
21399 Expose as @aarch64_pred_mov.
21400 * config/aarch64/aarch64.c (aarch64_classify_address):
21401 Use expand_insn which legitimizes operands.
21403 2019-02-13 Martin Liska <mliska@suse.cz>
21405 * builtins.h (expand_builtin_with_bounds): Remove declaration.
21406 * calls.c (struct arg_data): Remove special_slot, pointer_arg
21407 and pointer_offset fields.
21408 (initialize_argument_information): Remove usage of dead
21410 * cgraph.h (struct cgraph_thunk_info): Remove
21411 add_pointer_bounds_args.
21412 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
21414 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
21416 * config/i386/i386.c (ix86_function_arg_advance): Remove
21418 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
21419 (def_builtin): Remove usage of dead fields.
21420 (ix86_add_new_builtins): Likewise.
21421 * ipa-fnsummary.c (compute_fn_summary): Likewise.
21422 * ipa-icf.c (sem_function::equals_wpa): Likewise.
21423 (sem_function::init): Likewise.
21424 (sem_variable::merge): Likewise.
21425 * ipa-visibility.c (function_and_variable_visibility): Likewise.
21426 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
21427 * lto-cgraph.c (lto_output_node): Likewise.
21428 (lto_output_varpool_node): Likewise.
21429 (input_node): Likewise.
21430 (input_varpool_node): Likewise.
21431 * lto-streamer-out.c (lto_output): Likewise.
21432 * tree-inline.c (expand_call_inline): Remove usage of
21434 * tree-inline.h (struct copy_body_data): Likewise.
21435 * varpool.c (varpool_node::dump): Likewise.
21437 2019-02-13 Jakub Jelinek <jakub@redhat.com>
21439 PR middle-end/89303
21440 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
21441 into pt->vars_contains_escaped_heap instead of setting
21442 pt->vars_contains_escaped_heap to it.
21444 PR middle-end/89281
21445 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
21446 INTVAL (size), compare it to GET_MODE_MASK instead of
21447 1 << GET_MODE_BITSIZE.
21450 * config/i386/predicates.md (x86_64_immediate_operand): Allow
21451 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
21454 2019-02-13 Martin Liska <mliska@suse.cz>
21457 * cfgrtl.c (remove_barriers_from_footer): New function.
21458 (try_redirect_by_replacing_jump): Use it.
21459 (cfg_layout_redirect_edge_and_branch): Likewise.
21461 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
21463 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
21464 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
21465 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
21466 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
21467 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
21468 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
21470 * config/rs6000/rs6000.c (builtin_function_type)
21471 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
21472 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
21473 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
21474 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
21475 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
21477 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
21479 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
21480 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
21482 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
21485 * config/i386/i386.md (*movoi_internal_avx): Revert revision
21486 268678 and revision 268657.
21487 (*movti_internal): Likewise.
21489 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
21492 * config/s390/s390.c (s390_decompose_address): Update comment.
21493 (s390_check_qrst_address): Reject invalid address forms after
21496 2019-02-12 Martin Liska <mliska@suse.cz>
21499 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
21500 we need default values of funct_state for a function that
21503 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
21505 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
21506 the object to pick the size of stores on strict-alignment platforms.
21508 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
21509 (*movdi_insn_sp32): Likewise.
21510 (*movdi_insn_sp64): Likewise.
21512 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
21515 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
21516 types that needs constructiong.
21517 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
21519 2019-02-12 Richard Biener <rguenther@suse.de>
21521 PR tree-optimization/89253
21522 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
21523 duplicate the loop.
21525 2019-02-11 David Malcolm <dmalcolm@redhat.com>
21528 * input.c (selftest::test_line_offset_overflow): New selftest.
21529 (selftest::input_c_tests): Call it.
21531 2019-02-11 Martin Sebor <msebor@redhat.com>
21533 PR tree-optimization/88771
21534 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
21535 when -Wstringop-overflow is set.
21536 (builtin_memref::builtin_memref): Adjust excessive upper bound
21537 only when lower bound is not excessive.
21538 (maybe_diag_overlap): Detect and diagnose excessive bounds via
21539 -Wstringop-ovefflow.
21540 (maybe_diag_offset_bounds): Rename...
21541 (maybe_diag_access_bounds): ...to this.
21542 (check_bounds_or_overlap): Adjust for name change above.
21544 2019-02-11 Martin Sebor <msebor@redhat.com>
21547 * builtins.c (max_object_size): Move from here...
21548 * builtins.h (max_object_size): ...and here...
21549 * tree.c (max_object_size): ...to here...
21550 * tree.h (max_object_size): ...and here.
21552 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
21554 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
21555 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
21556 for correct semantics.
21558 2019-02-11 Alan Modra <amodra@gmail.com>
21560 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
21561 -mlongcall and -mpltseq.
21562 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
21563 (RS/6000 and PowerPC Options <-mpltseq>): Document.
21564 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
21565 * config/rs6000/sysv4.opt (mpltseq): New option.
21566 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
21567 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
21568 support is lacking. Don't allow -mpltseq with -mbss-plt.
21569 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
21570 -mpltseq given for ELFv1.
21571 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
21572 Only use UNSPEC_PLTSEQ for inline PLT calls.
21573 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
21574 use UNSPEC_PLTSEQ for inline PLT calls.
21575 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
21576 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
21577 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
21578 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
21579 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
21580 (pltseq_mtctr_<mode>): Likewise.
21582 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21584 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
21586 * configure: Regenerate.
21588 2019-02-11 Jakub Jelinek <jakub@redhat.com>
21591 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
21594 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
21596 * function.c (assign_parm_setup_block): Use the stored
21597 size, not the passed size, when allocating stack-space,
21598 also for a parameter with alignment larger than
21599 MAX_SUPPORTED_STACK_ALIGNMENT.
21601 2019-02-11 Martin Liska <mliska@suse.cz>
21604 * ipa-cp.c (build_toporder_info): Remove usage of a param.
21605 * ipa-inline.c (inline_small_functions): Likewise.
21606 * ipa-pure-const.c (propagate_pure_const): Likewise.
21607 (propagate_nothrow): Likewise.
21608 * ipa-reference.c (propagate): Likewise.
21609 * ipa-utils.c (struct searchc_env): Remove unused field.
21610 (searchc): Always search across AVAIL_INTERPOSABLE.
21611 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
21612 the only called IPA pure const can properly not propagate
21613 across interposable boundary.
21614 * ipa-utils.h (ipa_reduced_postorder): Remove param.
21616 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
21618 * config/nds32/nds32.md (call_internal, call_value_internal,
21619 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
21621 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
21623 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
21626 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
21628 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
21631 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
21633 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
21635 2019-02-10 Jakub Jelinek <jakub@redhat.com>
21637 PR tree-optimization/89268
21638 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
21639 if preds is non-NULL.
21641 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
21644 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
21647 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
21649 * config/nds32/nds32.md (trap): New pattern.
21651 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
21653 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
21656 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
21658 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
21661 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
21663 * ipa-visibility.c (localize_node): Also do not localize
21664 LDPR_PREVAILING_DEF_IRONLY_EXP.
21666 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
21669 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
21670 instead of type_with_linkage.
21672 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
21675 * params.def (uninlined-function-insns, uninlined-function-time,
21676 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
21677 bound so we don't get overflows.
21679 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
21681 * config/rs6000/rs6000-string.c (expand_compare_loop,
21682 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
21685 2019-02-09 Jakub Jelinek <jakub@redhat.com>
21687 PR middle-end/89246
21688 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
21689 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
21690 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
21692 2019-02-09 Alan Modra <amodra@gmail.com>
21695 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
21696 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
21699 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
21701 PR middle-end/88560
21702 * lra-constraints.c (process_alt_operands): Don't increase reject
21703 for memory when offset memory is required.
21705 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
21707 * config/s390/vector.md: Implement vector copysign.
21709 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
21711 * expr.c (expand_constructor): Correct indentations.
21713 2019-02-08 Richard Biener <rguenther@suse.de>
21715 PR tree-optimization/89247
21716 * tree-if-conv.c: Include tree-cfgcleanup.h.
21717 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
21718 (tree_if_conversion): Pass through predicate vector.
21719 (pass_if_conversion::execute): Do CFG cleanup and SSA update
21720 inline, see if any if-converted loops we refrece in
21721 LOOP_VECTORIZED calls vanished and fixup.
21722 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
21724 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
21726 * config/s390/constraints.md (jdd): New constraint.
21728 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
21731 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
21732 upper 16 vector registers without TARGET_AVX512VL.
21733 (*movti_internal): Likewise.
21735 2019-02-08 Jakub Jelinek <jakub@redhat.com>
21737 PR rtl-optimization/89234
21738 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
21739 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
21740 (copy_reg_eh_region_note_backward): Likewise.
21742 2019-02-08 Richard Biener <rguenther@suse.de>
21744 PR middle-end/89223
21745 * tree-data-ref.c (initialize_matrix_A): Fail if constant
21746 doesn't fit in HWI.
21747 (analyze_subscript_affine_affine): Handle failure from
21748 initialize_matrix_A.
21750 2019-02-08 Jakub Jelinek <jakub@redhat.com>
21752 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
21755 2019-02-07 David Malcolm <dmalcolm@redhat.com>
21757 PR tree-optimization/86637
21758 PR tree-optimization/89235
21759 * tree-vect-loop.c (optimize_mask_stores): Add an
21760 auto_purge_vect_location sentinel to ensure that vect_location is
21762 * tree-vectorizer.c
21763 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
21764 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
21765 to ensure that vect_location is purged on exit.
21766 (pass_slp_vectorize::execute): Likewise, replacing the manual
21768 * tree-vectorizer.h (class auto_purge_vect_location): New class.
21770 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21772 * config/aarch64/iterators.md (max_opp): New code_attr.
21773 (USMAX): New code iterator.
21774 * config/aarch64/predicates.md (aarch64_smin): New predicate.
21775 (aarch64_smax): Likewise.
21776 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
21777 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
21780 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
21783 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
21784 for TARGET_AVX512VL.
21785 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
21787 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
21789 * config/s390/s390-builtin-types.def: Add new types.
21790 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
21791 (s390_vec_xlw4): Make the memory operand into a const pointer.
21792 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
21794 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
21795 a new vector type with the alignment of the scalar memory operand.
21797 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
21798 Jakub Jelinek <jakub@redhat.com>
21801 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
21802 arm_count_ldrdstrd_insns): New declarations.
21803 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
21805 (valid_operands_ldrd_strd): New function.
21806 (arm_count_ldrdstrd_insns): New function.
21807 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
21808 sets instead of single DImode set and define new insns to match this.
21810 2019-02-07 Tamar Christina <tamar.christina@arm.com>
21812 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
21813 Make it a C initializer.
21815 2019-02-07 Tamar Christina <tamar.christina@arm.com>
21818 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
21820 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21822 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
21823 Use neon_dot<q> for type.
21824 (neon_<sup>dot_lane<vsi2qi>): Likewise.
21826 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21828 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
21829 Use neon_dot<q> for type.
21830 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
21831 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
21833 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
21835 PR rtl-optimization/89225
21836 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
21839 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
21841 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
21842 after restoring registers saved to allocate the frame on Windows.
21844 2019-02-06 Richard Biener <rguenther@suse.de>
21846 PR tree-optimization/89182
21847 * graphite.h (cached_scalar_evolution_in_region): Declare.
21848 * graphite.c (struct seir_cache_key): New.
21849 (struct sese_scev_hash): Likewise.
21850 (seir_cache): New global.
21851 (cached_scalar_evolution_in_region): New function.
21852 (graphite_transform_loops): Allocate and release seir_cache.
21853 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
21854 cached_scalar_evolution_in_region.
21855 * graphite-scop-detection.c (scop_detection::can_represent_loop):
21857 (scop_detection::graphite_can_represent_expr: Use
21858 cached_scalar_evolution_in_region.
21859 (scop_detection::stmt_simple_for_scop_p): Likewise.
21860 (find_params_in_bb): Likewise.
21861 (gather_bbs::before_dom_children): Likewise.
21862 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
21863 (add_loop_constraints): Likewise.
21865 2019-02-06 Jakub Jelinek <jakub@redhat.com>
21867 PR middle-end/89210
21868 * fold-const-call.c (fold_const_vec_convert): Pass true as last
21869 operand to new_unary_operation only if both element types are integral
21870 and it isn't a widening conversion. Return NULL_TREE if
21871 new_unary_operation failed.
21873 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
21876 * config/s390/s390.md: Remove load and test FP splitter.
21878 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
21881 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
21882 expand_compare_loop, expand_block_compare_gpr,
21883 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
21884 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
21885 #include "profile-count.h" and "predict.h" for types and functions
21886 needed to work with REG_BR_PROB notes.
21888 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
21891 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
21892 for the long branch case.
21894 2019-02-05 Jakub Jelinek <jakub@redhat.com>
21897 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
21898 can throw, non-call exceptions are enabled and we can't delete
21899 dead exceptions or alter cfg. Set must_clean if
21900 delete_insn_and_edges returns true, don't set it blindly for calls.
21901 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
21903 PR rtl-optimization/89195
21904 * combine.c (make_extraction): For MEMs, don't extract bytes outside
21905 of the original MEM.
21907 2019-02-05 Martin Liska <mliska@suse.cz>
21909 PR gcov-profile/89000
21910 * gcov.c (function_summary): Remove argument.
21911 (file_summary): New function.
21912 (print_usage): Replace tabs with spaces.
21913 (generate_results): Use new function file_summary.
21915 2019-02-05 Jakub Jelinek <jakub@redhat.com>
21918 * optabs.c (prepare_cmp_insn): Pass x and y to
21919 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
21921 2019-02-05 Richard Biener <rguenther@suse.de>
21923 PR middle-end/89150
21924 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
21925 (struct bitmap_element): Drop chain_prev so we properly recurse on
21926 the prev member, supporting tree views.
21927 (struct bitmap_head): GTY skip the obstack member.
21929 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
21932 * doc/extend.texi (Vector Extensions): Add an example of using vector
21933 types together with x86 intrinsics.
21935 2019-02-04 Alan Modra <amodra@gmail.com>
21937 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
21938 str[] size to 160, and comment.
21940 2019-02-04 Alan Modra <amodra@gmail.com>
21942 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
21943 (rs6000_pltseq_template): Guard output of TLS markers with
21944 TARGET_TLS_MARKERS.
21945 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
21946 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
21947 to use inline PLT sequences.
21948 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
21949 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
21950 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
21952 2019-02-04 Martin Liska <mliska@suse.cz>
21955 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
21956 out when ipa_fn_summaries does not contain entry for callee.
21958 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
21960 * config/sparc/sparc.h: Remove superfluous blank lines.
21961 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
21962 (got_register_rtx): ...this.
21963 (sparc_got): Adjust to above renaming.
21964 (sparc_tls_got): Likewise.
21965 (sparc_delegitimize_address): Likewise.
21966 (sparc_output_mi_thunk): Likewise.
21967 (sparc_init_pic_reg): Likewise.
21968 (save_local_or_in_reg_p): Fix test on the GOT register.
21969 (USE_HIDDEN_LINKONCE): Move around.
21970 (get_pc_thunk_name): Likewise.
21971 (gen_load_pcrel_sym): Likewise.
21972 (load_got_register): Likewise.
21974 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
21976 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
21977 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
21979 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
21981 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
21982 into consideration.
21984 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
21986 * config.gcc (with_nds32_lib, glibc):
21987 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
21988 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
21989 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
21991 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
21994 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
21995 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
21996 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
21997 (*rcpsf2_sse): Ditto.
21998 (*rsqrtsf2_sse): Ditto.
21999 (sse4_1_round<mode<2): Ditto.
22001 2019-02-03 Richard Biener <rguenther@suse.de>
22004 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
22007 2019-02-02 Jakub Jelinek <jakub@redhat.com>
22009 PR middle-end/87887
22010 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22011 Punt with warning on aggregate return or argument types. Ignore
22012 type/mode checking for uniform arguments.
22014 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
22016 * combine.c (try_combine): Do not print "Can't combine" messages unless
22017 printing failed combination attempts.
22019 2019-02-01 Martin Jambor <mjambor@suse.cz>
22022 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
22023 segment and global segment variables before making them static.
22025 2019-02-01 Martin Jambor <mjambor@suse.cz>
22027 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
22028 missed optimization dump with dump_enabled_p.
22030 2019-02-01 Richard Biener <rguenther@suse.de>
22032 PR middle-end/88597
22033 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
22034 the instantiate cache.
22035 (instantiate_scev_binary): Elide second operand procesing
22036 if equal to the first.
22037 * tree-chrec.c (chrec_contains_symbols): Add visited set.
22038 (chrec_contains_undetermined): Likewise.
22039 (tree_contains_chrecs): Likewise.
22041 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
22043 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
22045 2019-02-01 Jakub Jelinek <jakub@redhat.com>
22047 PR tree-optimization/89143
22048 * wide-int-range.h (wide_int_range_absu): Declare.
22049 * wide-int-range.cc (wide_int_range_absu): New function.
22050 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
22052 PR tree-optimization/88107
22053 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
22054 instead of assertion that eh_region_outermost is non-NULL, if it
22055 is NULL, set *ALL to true and return NULL.
22056 (move_sese_region_to_fn): Adjust caller, if all is set, call
22057 duplicate_eh_regions with NULL region.
22059 2019-02-01 Richard Biener <rguenth@suse.de>
22061 PR rtl-optimization/88593
22062 * mode-switching.c (optimize_mode_switching): Free dominators before
22063 calling cleanup_cfg.
22065 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
22067 PR tree-optimization/88932
22068 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
22070 2019-01-31 Jakub Jelinek <jakub@redhat.com>
22072 PR middle-end/89137
22073 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
22074 bogus clang warning.
22076 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
22079 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
22080 alternative to avoid partial SSE register stall for TARGET_AVX.
22081 (truncdfsf2): Ditto.
22082 (sse4_1_round<mode>2): Ditto.
22084 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
22086 PR tree-optimization/89008
22087 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
22088 process anything of the form X * 0.
22090 2019-01-31 Richard Biener <rguenther@suse.de>
22092 PR tree-optimization/89135
22093 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
22094 with abnormal preds.
22096 2019-01-31 Jakub Jelinek <jakub@redhat.com>
22099 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
22100 always_inline callees into no_sanitize_address callers.
22102 2019-01-31 Richard Biener <rguenther@suse.de>
22104 PR rtl-optimization/89115
22105 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
22107 2019-01-30 Martin Sebor <msebor@redhat.com>
22110 * doc/extend.texi (cast to a union): Correct and expand.
22112 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
22114 PR rtl-optimization/87246
22115 * lra-constraints.c (simplify_operand_subreg): Reload memory
22116 in subreg if the address became invalid.
22118 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
22121 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
22122 Disable for little-endian.
22124 2019-01-30 Richard Biener <rguenther@suse.de>
22126 PR rtl-optimization/89115
22127 * opts.c (default_options_optimization): Reduce
22128 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
22129 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
22132 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
22134 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
22135 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
22136 type of vector element when vec_extract is implemented by direct
22139 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
22141 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
22143 2019-01-30 Richard Biener <rguenther@suse.de>
22145 PR tree-optimization/89111
22146 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
22147 canonicalization to appropriately sized access types.
22149 2019-01-30 Jakub Jelinek <jakub@redhat.com>
22152 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
22153 for arguments to functions that are TU-local and shouldn't be
22154 referenced by assembly.
22156 2019-01-30 Ulrich Drepper <drepper@redhat.com>
22158 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
22161 2019-01-29 Martin Sebor <msebor@redhat.com>
22164 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
22166 2019-01-29 Jakub Jelinek <jakub@redhat.com>
22170 * omp-simd-clone.c (simd_clone_clauses_extract)
22171 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
22172 OMP_CLAUSE_ALIGNED_ALIGNMENT.
22174 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
22176 * config.gcc: Force .init_array for ARC.
22178 2019-01-29 Richard Biener <rguenther@suse.de>
22181 * dwarf2out.c (collect_skeleton_dies): New helper.
22182 (copy_decls_for_unworthy_types): Call it.
22183 (build_abbrev_table): Assert we do not try to replace
22184 DW_AT_signature refs with local refs.
22186 2019-01-28 Jakub Jelinek <jakub@redhat.com>
22188 PR middle-end/89002
22189 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
22190 for lastprivate/linear IV, push gimplify context around gimplify_assign
22191 and, if it needed any temporaries, pop it into a gimple bind around the
22194 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
22196 * common.opt (-Wattribute-alias): Remove "no-" from name.
22197 Make -Wattribute-alias command line option and
22198 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
22200 2019-01-28 Jakub Jelinek <jakub@redhat.com>
22203 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
22204 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
22206 (bmi2): Add missing @opindex.
22207 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
22208 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
22209 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
22210 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
22211 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
22212 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
22213 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
22214 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
22215 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
22216 xsavec, xsaveopt and xsaves options.
22218 2019-01-28 Richard Biener <rguenther@suse.de>
22221 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
22224 2019-01-28 Richard Biener <rguenther@suse.de>
22226 PR tree-optimization/88739
22227 * tree-cfg.c (verify_types_in_gimple_reference): Verify
22228 BIT_FIELD_REFs only are applied to mode-precision operands
22229 when they are integral.
22230 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
22231 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
22232 BIT_FIELD_REFs of non-mode-precision integral operands.
22234 2019-01-27 Jakub Jelinek <jakub@redhat.com>
22237 * config/i386/sse.md
22238 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
22239 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
22240 first constants in pairs are multiples of 2. Formatting fixes.
22241 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
22242 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
22243 first constants in each quadruple are multiples of 4. Formatting fixes.
22245 2019-01-26 Martin Jambor <mjambor@suse.cz>
22248 * tree-inline.c: Include tree-cfgcleanup.h.
22249 (delete_unreachable_blocks_update_callgraph): Move...
22250 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
22251 ...here, make externally visible, make second argument bool, adjust
22253 * tree-cfgcleanup.c: Include cgraph.h.
22254 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
22256 * ipa-prop.c: Include tree-cfgcleanup.h.
22257 (ipcp_transform_function): Call
22258 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
22260 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
22262 PR rtl-optimization/88846
22263 * ira.c (process_set_for_memref_referenced_p): New.
22264 (memref_referenced_p): Add new param. Use
22265 process_set_for_memref_referenced_p. Add new switch cases.
22266 (memref_used_between_p): Pass new arg to memref_referenced_p.
22268 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
22271 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
22272 argument ABI_BREAK. Set to true if the calculated alignment has
22273 changed in gcc-9. Check bit-fields for their base type alignment.
22274 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
22275 (aarch64_function_arg_boundary): Likewise.
22276 (aarch64_gimplify_va_arg_expr): Likewise.
22278 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
22280 PR middle-end/89037
22281 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
22282 instead of accessing TREE_INT_CST_ELT directly.
22284 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
22286 * doc/sourcebuild.texi (Environment attributes): Add fenv and
22287 fenv_exceptions description.
22289 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
22291 PR rtl-optimization/87763
22292 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
22293 Allow SUBREG when matching CC_NZmode compare.
22295 2019-01-25 Richard Biener <rguenther@suse.de>
22297 PR tree-optimization/89049
22298 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
22299 Look at the pattern stmt to determine if the stmt is vectorized.
22301 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
22303 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
22304 (pred_mov<mode>): Handle all-register forms using both a new
22305 alternative and a split.
22307 2019-01-25 Richard Biener <rguenther@suse.de>
22309 PR tree-optimization/86865
22310 * graphite-scop-detection.c (scop_detection::can_represent_loop):
22311 Reject non-do-while loops.
22313 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
22315 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
22316 * config/rs6000/constraints.md (Q constraint): Use REG_P.
22317 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
22318 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22319 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
22320 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22321 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
22322 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
22323 vlogical_operand, gpc_reg_operand, int_reg_operand,
22324 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
22325 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
22326 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
22327 (save_world_operation, restore_world_operation, lmw_operation,
22328 stmw_operation): Use MEM_P and REG_P.
22329 (tie_operand): Use MEM_P.
22330 (vrsave_operation, crsave_operation): Use REG_P.
22331 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
22332 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
22333 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
22334 (call_operand): Use HARD_REGISTER_P.
22335 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
22337 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
22338 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
22339 quad_aligned_load_p, replace_swapped_aligned_store,
22340 recombine_lvx_pattern, replace_swapped_aligned_load,
22341 recombine_stvx_pattern): Use MEM_P.
22342 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
22343 Use MEM_P and SYMBOL_REF_P.
22344 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
22345 (insn_is_swappable_p): Use REG_P and MEM_P.
22346 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
22347 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
22349 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
22350 Use CONST_DOUBLE_P.
22351 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
22353 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
22354 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
22355 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
22356 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
22358 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22359 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
22360 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
22361 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
22362 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
22363 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
22364 rs6000_split_logical_di): Use CONST_INT_P.
22365 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
22366 REG_P and SYMBOL_REF_P.
22367 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
22368 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
22369 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
22370 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
22371 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
22372 (small_data_operand, print_operand_address): Use CONST_INT_P and
22374 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
22375 (rs6000_init_hard_regno_mode_ok, direct_move_p):
22376 Use HARD_REGISTER_NUM_P.
22377 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
22378 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
22379 SUBREG_P and SYMBOL_REF_P.
22380 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
22381 and HARD_REGISTER_NUM_P.
22382 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
22384 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
22385 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
22387 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
22388 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
22389 find_addr_reg): Use REG_P.
22390 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
22391 (rs6000_emit_le_vsx_move): Use SUBREG_P.
22392 (offsettable_ok_by_alignment, constant_pool_expr_p,
22393 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
22394 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
22395 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
22396 rs6000_assemble_integer, create_TOC_reference,
22397 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
22398 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
22399 (rs6000_split_vec_extract_var): Use reg_or_subregno.
22400 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
22401 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
22402 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22403 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
22404 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
22405 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
22406 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
22407 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
22408 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
22409 and cbranch<mode>4): Use CONST_INT_P.
22410 (multiple define_splits): Use REG_P and SUBREG_P.
22411 (define_expands call, call_value): Use MEM_P.
22412 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
22413 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
22414 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
22415 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
22416 and HARD_REGISTER_NUM_P.
22417 (multiple define_splits): Use HARD_REGISTER_NUM_P.
22419 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
22421 PR rtl-optimization/88948
22422 * rtl.h (prepare_copy_insn): New prototype.
22423 * gcse.c (prepare_copy_insn): New function, split out from
22424 process_insert_insn.
22425 (process_insert_insn): Use prepare_copy_insn.
22426 * store-motion.c (replace_store_insn): Use prepare_copy_insn
22427 instead of gen_move_insn.
22429 2019-01-24 Jakub Jelinek <jakub@redhat.com>
22432 * config/i386/i386.c (ix86_pic_register_p): Return true for
22433 UNSPEC_SET_GOT too.
22435 PR tree-optimization/88964
22436 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
22437 punt if HONOR_SNANS (chrec).
22439 PR middle-end/89015
22440 * tree-nested.c (convert_nonlocal_reference_stmt,
22441 convert_local_reference_stmt, convert_tramp_reference_stmt,
22442 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
22443 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
22444 or GIMPLE_OMP_TASK.
22446 PR tree-optimization/89027
22447 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
22448 for "omp simd array" variables.
22450 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
22453 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
22454 force the alignment of m_val.
22456 2019-01-24 Richard Biener <rguenther@suse.de>
22459 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
22460 When in "legacy" debug mode make sure to reset self-origins.
22462 2019-01-24 Martin Liska <mliska@suse.cz>
22464 PR gcov-profile/88994
22465 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
22466 result will be always smaller or equal to the original.
22467 * gcov.c (mangle_name): Fix else branch where we should
22468 also copy to PTR and shift the pointer.
22470 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
22472 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
22473 * vr-values.c (find_case_label_ranges): Fix a comment typo.
22475 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
22477 * common/config/i386/i386-common.c
22478 (OPTION_MASK_ISA_ENQCMD_SET,
22479 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
22480 (ix86_handle_option): Handle -menqcmd.
22481 * config.gcc (enqcmdintrin.h): New header file.
22482 * config/i386/cpuid.h (bit_ENQCMD): New bit.
22483 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
22485 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
22487 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
22488 __builtin_ia32_enqcmds): New builtins.
22489 * config/i386/i386-c.c (__ENQCMD__): New macro.
22490 * config/i386/i386-option.c (ix86_target_string): Add
22492 (ix86_valid_target_attribute_inner_p): Likewise.
22493 * config/i386/i386-expand.c
22494 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
22495 IX86_BUILTIN_ENQCMDS.
22496 * config/i386/i386.h (TARGET_ENQCMD): New.
22497 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
22498 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
22499 (movdir64b_<mode>): Parameterize to enable share expansion code
22500 with ENQCMD in function ix86_expand_builtin.
22501 * config/i386/i386.opt: Add -menqcmd.
22502 * config/i386/immintrin.h: Include enqcmdintrin.h.
22503 * config/i386/enqcmdintrin.h: New intrinsic file.
22504 * doc/invoke.texi: Add -menqcmd.
22506 2019-01-23 Bin Cheng <bin.cheng@arm.com>
22507 Steve Ellcey <sellcey@marvell.com>
22510 * recog.c (address_operand): Return false on wrong mode for address.
22511 (constrain_operands): Check for mode with 'p' constraint.
22513 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
22516 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
22517 Disparage MMX alternative.
22518 (sse2_cvtpd2pi): Ditto.
22519 (sse2_cvttpd2pi): Ditto.
22521 2019-01-23 David Malcolm <dmalcolm@redhat.com>
22524 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
22525 use-after-free of the result of
22526 aarch64_get_extension_string_for_isa_flags.
22528 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22531 * doc/extend.texi: Document break and continue behavior in
22532 statement expressions.
22534 2019-01-23 Richard Biener <rguenther@suse.de>
22536 PR tree-optimization/89008
22537 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
22538 not leave another stray operand.
22540 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22542 * BASE-VER: Bump to 9.0.1.
22544 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
22546 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
22547 thunk that returns by reference, use the type of the return object
22548 of the thunk instead of that of the alias to build the dereference.
22550 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
22552 * config/arc/atomic.md: Add operand to DMB instruction.
22554 2019-01-23 Jakub Jelinek <jakub@redhat.com>
22556 PR tree-optimization/88964
22557 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
22558 build_zero_cst instead of build_int_cst. Return false for loop
22559 invariants which honor signed zeros.
22561 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
22563 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
22565 2019-01-22 Jakub Jelinek <jakub@redhat.com>
22568 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
22569 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
22570 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
22572 PR middle-end/88968
22573 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
22574 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
22577 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
22578 Disable for little endian.
22580 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
22583 * config/arm/arm.c (arm_needs_double_word_align): Check
22584 DECL_BIT_FIELD_TYPE.
22586 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
22587 H.J. Lu <hongjiu.lu@intel.com>
22590 * config/i386/i386-builtin.def: Add mask2 to all builtin
22591 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
22593 * config/i386/i386.c (BDESC): Add mask2 to the definition.
22594 (BDESC_FIRST): Likewise.
22595 (define_builtin): Add an argument for mask2. Updated to handle
22596 both ix86_isa_flags and ix86_isa_flags2.
22597 (define_builtin_const): Likewise.
22598 (define_builtin_pure): Likewise.
22599 (define_builtin2): Deleted.
22600 (define_builtin_const2): Likewise.
22601 (builtin_description): Add a member, mask2.
22602 (bdesc_*): Add mask2 to builtin initializations.
22603 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
22604 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
22606 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
22608 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
22611 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
22614 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
22617 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
22618 alignment is dominated by a bitfield with 64-bit aligned base type.
22619 (arm_function_arg): Emit a warning if the alignment has changed since
22620 earlier GCC releases.
22621 (arm_function_arg_boundary): Likewise.
22622 (arm_setup_incoming_varargs): Likewise.
22624 2019-01-22 Richard Biener <rguenther@suse.de>
22626 PR tree-optimization/88862
22627 * graphite-scop-detection.c
22628 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
22630 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
22632 * doc/extend.tex (AMD GCN Function Attributes): New section.
22633 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
22634 * doc/invoke.texi (AMD GCN Options): New section.
22635 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
22637 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
22639 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
22640 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
22642 2019-01-22 Jakub Jelinek <jakub@redhat.com>
22644 PR tree-optimization/88044
22645 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
22646 is false in the first iteration, but !every_iteration, return false
22647 instead of true with niter->niter zero.
22649 PR rtl-optimization/88904
22650 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
22651 any nonequal registers before processing BB_END (b).
22654 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
22656 (expand_binop_directly, expand_doubleword_clz,
22657 expand_doubleword_popcount, expand_ctz, expand_ffs,
22658 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
22660 PR rtl-optimization/49429
22662 PR rtl-optimization/86334
22664 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
22665 addressable from here...
22666 (emit_block_op_via_libcall): ... to here.
22668 2019-01-22 Richard Biener <rguenther@suse.de>
22670 * tree-vect-loop.c (vect_analyze_loop_operations): Use
22671 auto_vec for cost vector to fix memleak.
22672 (vectorize_fold_left_reduction): Properly gather SLP defs.
22673 (vectorizable_comparison): Do not swap operands to properly
22676 2019-01-22 Alan Modra <amodra@gmail.com>
22679 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
22680 stays a reg. Allow a const_int.
22681 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
22682 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
22683 (IS_NOMARK_TLSGETADDR): Define.
22684 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
22685 (rs6000_output_tlsargs): New function.
22686 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
22687 __tls_get_addr call takes an arg.
22688 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
22689 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
22691 (call_value_nonlocal_sysv): ..or here, delete split.
22692 (tls_gdld_nomark): Delete.
22693 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
22694 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
22695 (call_value_nonlocal_sysv): Likewise.
22696 (call_value_nonlocal_sysv_secure): Likewise.
22697 (call_value_nonlocal_aix): Likewise.
22698 (call_value_indirect_aix): Likewise.
22699 (call_value_indirect_elfv2): Likewise.
22700 (call_value_local32, call_value_local64): Disable for no-mark tls.
22701 (call_value_local_aix): Likewise.
22703 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
22706 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
22707 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
22709 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
22711 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
22712 string contents as hash_map keys.
22714 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22717 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
22718 for rvalue context. Handle rvalues correctly. Use min_align_of_type
22719 instead of TYPE_ALIGN.
22720 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
22721 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
22722 pointer from TYPE_STUB_DECL.
22724 2019-01-21 Richard Biener <rguenther@suse.de>
22726 PR tree-optimization/88934
22727 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
22728 at the possibly non-constant operand.
22729 (vect_get_constant_vectors): Adjust.
22731 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
22734 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
22735 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
22736 instead of _X86INTRIN_H_INCLUDED.
22737 * onfig/i386/clwbintrin.h: Likewise.
22738 * config/i386/pkuintrin.h: Likewise.
22739 * config/i386/prfchwintrin.h: Likewise.
22740 * config/i386/rdseedintrin.h: Likewise.
22741 * config/i386/wbnoinvdintrin.h: Likewise.
22742 * config/i386/xsavecintrin.h: Likewise.
22743 * config/i386/xsavesintrin.h: Likewise.
22744 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
22745 * config/i386/xsaveintrin.h: Likewise.
22746 * config/i386/xsaveoptintrin.h: Likewise.
22747 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
22748 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
22749 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
22750 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
22751 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
22752 * config/i386/immintrin.h: Here.
22754 2019-01-20 Martin Jambor <mjambor@suse.cz>
22757 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
22758 with aa_walk_budget.
22759 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
22760 aa_walk_budget_p parameter.
22761 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
22762 walk. Updated all callers.
22763 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
22764 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
22766 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
22767 parameter info. Extract info from fbi. Pass fbi to recursive calls
22768 and to unmodified_parm.
22769 (phi_result_unknown_predicate): New parameter fbi, removed parameter
22770 info, updated call to will_be_nonconstant_expr_predicate.
22771 (param_change_prob): New parameter fbi, limit AA walking.
22772 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
22773 calls to various above functions.
22774 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
22775 parameter. Use it to limit AA walking.
22776 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
22777 fbi, limit AA walk.
22778 (detect_type_change): New parameter fbi, pass it on to
22779 detect_type_change_from_memory_writes.
22780 (detect_type_change_ssa): Likewise.
22781 (aa_overwalked): Removed.
22782 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
22783 accordingly, adjust to the neew AA limiting scheme.
22784 (parm_ref_data_preserved_p): Likewise.
22785 (ipa_compute_jump_functions_for_edge): Adjust call to
22787 (ipa_analyze_call_uses): Likewise.
22788 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
22789 (ipa_analyze_node): Initialize aa_walk_budget.
22790 (ipcp_transform_function): Likewise.
22791 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
22792 to get_dynamic_type.
22794 2019-01-19 Jakub Jelinek <jakub@redhat.com>
22796 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
22797 outside of #if CHECKING_P code.
22799 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
22801 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
22802 New function, split out from...
22803 (loop_versioning::analyze_stride): ...here.
22804 (loop_versioning::find_per_loop_multiplication): Use gassign.
22805 (loop_versioning::analyze_term_using_scevs): Return a success code.
22806 (loop_versioning::analyze_arbitrary_term): New function.
22807 (loop_versioning::analyze_address_fragment): Use
22808 analyze_arbitrary_term if all else fails.
22810 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
22813 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
22816 2019-01-18 Richard Biener <rguenther@suse.de>
22818 PR tree-optimization/88903
22819 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
22820 scalar stmts a SLP shift amount is composed of when detecting
22823 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
22826 * config/arm/arm-cpus.in (mp): New feature.
22827 (sec): New feature.
22828 (fgroup ARMv7ve): Add mp and sec features.
22829 (arch armv7-a): Add options to allow mp and sec extensions.
22830 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
22831 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
22832 extenstions to the base architecture.
22833 (cpu cortex-a8): Add sec extension to the base architecture.
22834 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
22835 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
22836 variants down to the base v7-a varaint.
22837 * config/arm/t-multilib (v7_a_arch_variants): New variable.
22838 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
22839 of permitted extensions for -march=armv7-a and for
22840 -mcpu=generic-armv7-a.
22842 2019-01-18 Martin Liska <mliska@suse.cz>
22844 * params.def: Fix comment.
22845 * tree-profile.c (gimple_init_gcov_profiler): Bump function
22847 (gimple_gen_ic_func_profiler): Likewise.
22849 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22851 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
22852 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
22853 and put in error checks for stack protector guard options.
22854 (aarch64_stack_protect_guard): New.
22855 (TARGET_STACK_PROTECT_GUARD): Define.
22856 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
22857 (reg_stack_protect_address<mode>): New.
22858 (stack_protect_set): Adjust for SSP_GLOBAL.
22859 (stack_protect_test): Likewise.
22860 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
22861 (-mstack-protector-guard): Likewise.
22862 (-mstack-protector-guard-offset): Likewise.
22864 2019-01-18 Jakub Jelinek <jakub@redhat.com>
22866 PR tree-optimization/86214
22867 * tree-inline.h (struct copy_body_data): Add
22868 add_clobbers_to_eh_landing_pads member.
22869 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
22870 (copy_edges_for_bb): Call it if EH edge destination is <
22871 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
22872 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
22873 if flag_stack_reuse != SR_NONE and clear it afterwards.
22875 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
22878 * doc/install.texi (with-multilib-list): Document for aarch64.
22880 2019-01-18 Jakub Jelinek <jakub@redhat.com>
22883 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
22884 (("..."))) with ("...").
22886 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
22888 * doc/extend.texi (Built-in Functions for Memory Model Aware
22889 Atomic Operations): Document atomic fetch and nand.
22891 2019-01-18 Martin Liska <mliska@suse.cz>
22892 Richard Biener <rguenther@suse.de>
22894 PR middle-end/88587
22895 * cgraph.h (create_version_clone_with_body): Add new argument
22897 * cgraphclones.c (cgraph_node::create_version_clone): Add
22898 DECL_ATTRIBUTES to a newly created decl. And call
22899 valid_attribute_p so that proper cl_target_optimization_node
22900 is set for the newly created declaration.
22901 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
22903 (expand_target_clones): Do not call valid_attribute_p, it must
22905 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
22908 2019-01-17 Jakub Jelinek <jakub@redhat.com>
22911 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
22912 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
22913 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
22915 2019-01-17 Martin Sebor <msebor@redhat.com>
22917 PR middle-end/88273
22918 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
22919 Handle anti-ranges the same as no range at all.
22921 2018-01-17 Steve Ellcey <sellcey@cavium.com>
22923 * config/aarch64/aarch64.c (cgraph.h): New include.
22924 (intl.h): New include.
22925 (supported_simd_type): New function.
22926 (currently_supported_simd_type): Ditto.
22927 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
22928 (aarch64_simd_clone_adjust): Ditto.
22929 (aarch64_simd_clone_usable): Ditto.
22930 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
22931 (TARGET_SIMD_CLONE_ADJUST): Ditto.
22932 (TARGET_SIMD_CLONE_USABLE): Ditto.
22933 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
22934 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
22937 2019-01-17 Martin Sebor <msebor@redhat.com>
22939 PR tree-optimization/88800
22940 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
22941 NO_WARNING bit here. Avoid folding out-of-bounds calls.
22942 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
22943 redundant argument. Add new argument and issue diagnostics under
22944 its control. Detect out-of-bounds access even with warnings
22946 (check_bounds_or_overlap): Change return type. Add argument.
22947 (wrestrict_dom_walker::check_call): Adjust.
22948 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
22949 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
22950 check_bounds_or_overlap's return value.
22951 (handle_builtin_stxncpy): Same.
22952 (handle_builtin_strcat): Same.
22954 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
22955 Kwok Cheung Yeung <kcy@codesourcery.com>
22956 Julian Brown <julian@codesourcery.com>
22957 Tom de Vries <tom@codesourcery.com>
22959 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
22961 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
22963 * doc/sourcebuild.texi: Document dg-require-effective-target
22964 llvm_binutils and offload_gcn.
22966 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
22967 Kwok Cheung Yeung <kcy@codesourcery.com>
22968 Julian Brown <julian@codesourcery.com>
22969 Tom de Vries <tom@codesourcery.com>
22971 * doc/sourcebuild.texi: Document dg-required-effective-target
22974 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
22975 Kwok Cheung Yeung <kcy@codesourcery.com>
22976 Julian Brown <julian@codesourcery.com>
22977 Tom de Vries <tom@codesourcery.com>
22978 Jan Hubicka <hubicka@ucw.cz>
22979 Martin Jambor <mjambor@suse.cz>
22981 * config.gcc: Add amdgcn*-*-amdhsa configuration.
22982 * configure.ac: Check for dlopen.
22983 * configure: Regenerate.
22985 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
22986 Kwok Cheung Yeung <kcy@codesourcery.com>
22987 Julian Brown <julian@codesourcery.com>
22988 Tom de Vries <tom@codesourcery.com>
22989 Jan Hubicka <hubicka@ucw.cz>
22990 Martin Jambor <mjambor@suse.cz>
22992 * common/config/gcn/gcn-common.c: New file.
22993 * config/gcn/driver-gcn.c: New file.
22994 * config/gcn/gcn-builtins.def: New file.
22995 * config/gcn/gcn-hsa.h: New file.
22996 * config/gcn/gcn-modes.def: New file.
22997 * config/gcn/gcn-opts.h: New file.
22998 * config/gcn/gcn-passes.def: New file.
22999 * config/gcn/gcn-protos.h: New file.
23000 * config/gcn/gcn-run.c: New file.
23001 * config/gcn/gcn-tree.c: New file.
23002 * config/gcn/gcn.c: New file.
23003 * config/gcn/gcn.h: New file.
23004 * config/gcn/gcn.opt: New file.
23005 * config/gcn/t-gcn-hsa: New file.
23007 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
23008 Kwok Cheung Yeung <kcy@codesourcery.com>
23009 Julian Brown <julian@codesourcery.com>
23010 Tom de Vries <tom@codesourcery.com>
23011 Jan Hubicka <hubicka@ucw.cz>
23012 Martin Jambor <mjambor@suse.cz>
23014 * config/gcn/constraints.md: New file.
23015 * config/gcn/gcn-valu.md: New file.
23016 * config/gcn/gcn.md: New file.
23017 * config/gcn/predicates.md: New file.
23019 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
23021 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
23022 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
23023 (stmt_uses_0_or_null_in_undefined_way): Likewise.
23024 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
23026 2019-01-17 Tamar Christina <tamar.christina@arm.com>
23029 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
23030 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
23031 it and document registers.
23033 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23035 * config/aarch64/aarch64.c (ares_tunings): Define.
23036 * config/aarch64/aarch64-cores.def (ares): Use the above.
23038 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23042 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
23044 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
23045 (_mm512_fixupimm_round_pd): Update parameters and builtin.
23046 (_mm512_maskz_fixupimm_round_pd): Ditto.
23047 (_mm512_fixupimm_round_ps): Ditto.
23048 (_mm512_maskz_fixupimm_round_ps): Ditto.
23049 (_mm_fixupimm_round_sd): Ditto.
23050 (_mm_maskz_fixupimm_round_sd): Ditto.
23051 (_mm_fixupimm_round_ss): Ditto.
23052 (_mm_maskz_fixupimm_round_ss): Ditto.
23053 (_mm512_fixupimm_pd): Ditto.
23054 (_mm512_maskz_fixupimm_pd): Ditto.
23055 (_mm512_fixupimm_ps): Ditto.
23056 (_mm512_maskz_fixupimm_ps): Ditto.
23057 (_mm_fixupimm_sd): Ditto.
23058 (_mm_maskz_fixupimm_sd): Ditto.
23059 (_mm_fixupimm_ss): Ditto.
23060 (_mm_maskz_fixupimm_ss): Ditto.
23061 (_mm512_mask_fixupimm_round_pd): Update builtin.
23062 (_mm512_mask_fixupimm_round_ps): Ditto.
23063 (_mm_mask_fixupimm_round_sd): Ditto.
23064 (_mm_mask_fixupimm_round_ss): Ditto.
23065 (_mm512_mask_fixupimm_pd): Ditto.
23066 (_mm512_mask_fixupimm_ps): Ditto.
23067 (_mm_mask_fixupimm_sd): Ditto.
23068 (_mm_mask_fixupimm_ss): Ditto.
23069 * config/i386/avx512vlintrin.h:
23070 (_mm256_fixupimm_pd): Update parameters and builtin.
23071 (_mm256_maskz_fixupimm_pd): Ditto.
23072 (_mm256_fixupimm_ps): Ditto.
23073 (_mm256_maskz_fixupimm_ps): Ditto.
23074 (_mm_fixupimm_pd): Ditto.
23075 (_mm_maskz_fixupimm_pd): Ditto.
23076 (_mm_fixupimm_ps): Ditto.
23077 (_mm_maskz_fixupimm_ps): Ditto.
23078 (_mm256_mask_fixupimm_pd): Update builtin.
23079 (_mm256_mask_fixupimm_ps): Ditto.
23080 (_mm_mask_fixupimm_pd): Ditto.
23081 (_mm_mask_fixupimm_ps): Ditto.
23082 * config/i386/i386-builtin-types.def: Add new types and remove
23084 * config/i386/i386-builtin.def: Update builtin definitions.
23085 * config/i386/i386.c: Handle new builtin types and remove useless ones.
23086 * config/i386/sse.md: Update VFIXUPIMM* patterns.
23087 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23088 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23089 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
23090 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23091 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23092 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
23093 * config/i386/subst.md:
23094 (round_saeonly_sd_mask_operand4): Add new subst_attr.
23095 (round_saeonly_sd_mask_op4): Ditto.
23096 (round_saeonly_expand_operand5): Ditto.
23097 (round_saeonly_expand): Update.
23099 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23103 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
23105 * config/i386/sse.md: Combine VFIXUPIMM* patterns
23106 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23107 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23108 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
23109 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23110 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23111 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
23113 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
23117 2018-12-15 Jakub Jelinek <jakub@redhat.com>
23120 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
23121 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
23122 instead of UNSPEC_FIXUPIMM.
23124 2019-01-17 Richard Biener <rguenther@suse.de>
23127 * dwarf2out.c (want_pubnames): Never generate pubnames sections
23128 and friends for the LTO part of debug info.
23130 2019-01-17 Jakub Jelinek <jakub@redhat.com>
23132 PR tree-optimization/86214
23133 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
23136 PR rtl-optimization/88870
23137 * dce.c (deletable_insn_p): Never delete const/pure calls that can
23138 throw if we can't alter the cfg or delete dead exceptions.
23139 (mark_insn): Don't call find_call_stack_args for such calls.
23141 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
23143 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
23144 prototypes for vec_st.
23145 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
23146 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
23147 mainly on signed/unsigned long long and double.
23149 2019-01-16 David Malcolm <dmalcolm@redhat.com>
23152 * combine.c (delete_noop_moves): Convert to "bool" return,
23153 returning true if any edges are eliminated.
23154 (combine_instructions): Also return true if delete_noop_moves
23157 2019-01-16 Tamar Christina <tamar.christina@arm.com>
23159 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
23160 correct max nunits for endian swap.
23161 (aarch64_expand_fcmla_builtin): Correct subreg code.
23162 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23163 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
23166 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
23168 * config/alpha/alpha.c (alpha_gimplify_va_arg):
23169 Handle split indirect COMPLEX_TYPE arguments.
23171 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
23174 * config/aarch64/aarch64-modes.def: Add comment about how the carry
23175 bit is set by add and compare.
23176 (CC_ADC): New CC_MODE.
23177 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
23178 to cache the code and mode of X. Adjust the shape of a CC_Cmode
23179 comparison. Add detection for CC_ADCmode.
23180 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
23182 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
23183 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
23184 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
23185 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
23186 to eliminate the need for zero-extending the operands.
23187 (add<mode>3_compareC_imm): Delete. Merge into ...
23188 (add<mode>3_compareC): ... this. Restructure the comparison to
23189 eliminate the need for zero-extending the operands.
23190 (add<mode>3_carryin): Use LTU for the overflow detection.
23191 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
23192 Reexpress comparison for overflow.
23193 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
23194 (add<mode>3_carryinC): Likewise.
23195 (add<mode>3_carryinV): Use LTU for carry between partials.
23196 * config/aarch64/predicates.md (aarch64_carry_operation): Update
23197 handling of CC_Cmode and add CC_ADCmode.
23198 (aarch64_borrow_operation): Likewise.
23200 2019-01-16 Tamar Christina <tamar.christina@arm.com>
23202 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
23203 Remove patternmode.
23204 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
23205 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23206 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
23207 Remove endianness conversion.
23209 2019-01-16 Martin Liska <mliska@suse.cz>
23211 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
23213 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
23215 * gcc.c (add_sysrooted_hdrs_prefix): New function.
23216 (path_prefix_reset): Move up in the source file.
23217 (find_fortran_preinclude_file): Make complex search for the
23218 fortran header files.
23220 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
23222 * godump.c (go_output_typedef): When outputting a typedef, refer
23223 to the underlying type by its name and not its structure.
23225 2019-01-15 David Malcolm <dmalcolm@redhat.com>
23228 * tree.c (build_function_type): Assert that arg_types is not
23231 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
23233 PR inline-asm/52813
23234 * doc/extend.texi: Document that listing the stack pointer in the
23235 clobber list of an asm is a deprecated feature.
23236 * common.opt (Wdeprecated): Moved from c-family/c.opt.
23237 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
23238 warning instead of an error for clobbers of the stack pointer.
23239 Add a note explaining why.
23241 2019-01-15 Richard Biener <rguenther@suse.de>
23244 * dwarf2out.c (gen_member_die): Do not generate inheritance
23247 2019-01-15 Richard Biener <rguenther@suse.de>
23249 PR tree-optimization/88855
23250 * tree-if-conv.c (combine_blocks): Collect
23251 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
23253 2019-01-15 Tom de Vries <tdevries@suse.de>
23256 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
23257 lhs == NULL_TREE for gang-level reduction.
23259 2019-01-15 Richard Biener <rguenther@suse.de>
23260 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23263 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
23264 return true if SSA_NAME is already marked in visited bitmap.
23265 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
23267 2019-01-15 Jakub Jelinek <jakub@redhat.com>
23269 PR tree-optimization/88775
23270 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
23271 equal == 0 equality pointer comparisons some more if compared in
23272 integral types and either one points to an automatic var and the
23273 other to a global, or we can prove at least one points to the middle
23274 or both point to start or both point to end.
23276 2019-01-14 Andi Kleen <ak@linux.intel.com>
23278 * Makefile.in: Lower autofdo sampling rate by 10x.
23279 * Makefile.tpl: Dito.
23281 2019-01-14 Tom Honermann <tom@honermann.net>
23283 * defaults.h: Define CHAR8_TYPE.
23285 2019-01-14 Martin Sebor <msebor@redhat.com>
23288 * doc/extend.texi (Darwin Format Checks): Clarify.
23290 2019-01-14 Richard Biener <rguenther@suse.de>
23292 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
23293 whether we are in (simplify ...) or (match ...) context.
23295 2019-01-14 Jakub Jelinek <jakub@redhat.com>
23297 PR rtl-optimization/88796
23298 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
23299 * cfgexpand.c (stack_protect_prologue): Initialize
23300 crtl->stack_protect_guard_decl.
23301 * function.c (stack_protect_epilogue): Use it instead of calling
23302 targetm.stack_protect_guard again.
23303 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
23304 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
23305 crtl->stack_protect_guard_decl.
23306 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
23307 on the returned MEM_EXPR.
23309 2019-01-12 Tom de Vries <tdevries@suse.de>
23311 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
23312 vector length using -fopenacc-dim.
23314 2019-01-12 Tom de Vries <tdevries@suse.de>
23316 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
23317 lengths into account.
23319 2019-01-12 Svante Signell <svante.signell@gmail.com>
23321 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
23322 (TARGET_CAN_SPLIT_STACK): Define.
23323 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
23325 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
23327 * params.def (inline-unit-growth): Set to 40.
23329 2019-01-12 Jakub Jelinek <jakub@redhat.com>
23331 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
23333 2019-01-12 Tom de Vries <tdevries@suse.de>
23335 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
23336 region calling vector-partitionable routine, set default_vector_length
23339 2019-01-12 Tom de Vries <tdevries@suse.de>
23341 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
23342 variable default_vector_length.
23344 2019-01-12 Tom de Vries <tdevries@suse.de>
23346 PR middle-end/88703
23347 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
23348 from oacc_default_dims, as oacc_validate_dims would do it, and apply
23351 2019-01-12 Tom de Vries <tdevries@suse.de>
23353 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
23354 (nvptx_goacc_validate_dims): Add used parameter.
23355 * doc/tm.texi: Regenerate.
23356 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
23357 argument to call to targetm.goacc.validate_dims.
23358 (default_goacc_validate_dims): Add used
23360 * target.def (validate_dims): Add used parameter in DEFHOOK.
23361 * targhooks.h (default_goacc_validate_dims): Add used parameter.
23363 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23365 PR middle-end/85956
23367 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
23369 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
23370 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
23371 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
23372 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
23374 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
23376 PR rtl-optimization/87305
23378 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
23379 for little endian pseudos used as paradoxical subreg.
23381 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23383 PR tree-optimization/88693
23384 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
23385 for STRING_CSTs that don't contain any NUL characters in the first
23386 TREE_STRING_LENGTH bytes.
23388 2019-01-11 Alan Modra <amodra@gmail.com>
23392 * genattrtab.c (min_fn): Don't translate values.
23393 (min_attr_value): Return INT_MAX when the value can't be calculated.
23394 Return minimum among any values that can be calculated.
23395 (max_attr_value): Adjust.
23397 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23399 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
23401 2019-01-11 Steve Ellcey <sellcey@marvell.com>
23403 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23404 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
23405 (aarch64_return_call_with_max_clobbers): New function.
23406 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
23407 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
23409 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
23410 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
23411 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
23412 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
23413 * cselib.c (cselib_process_insn): Add argument to
23414 targetm.hard_regno_call_part_clobbered call.
23415 * ira-conflicts.c (ira_build_conflicts): Ditto.
23416 * ira-costs.c (ira_tune_allocno_costs): Ditto.
23417 * lra-constraints.c (inherit_reload_reg): Ditto.
23418 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
23419 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
23420 argument. Call targetm.return_call_with_max_clobbers.
23421 Add argument to targetm.hard_regno_call_part_clobbered call.
23422 (calls_have_same_clobbers_p): New function.
23423 (process_bb_lives): Add call_insn and last_call_insn variables.
23424 Pass call_insn to check_pseudos_live_through_calls.
23425 Modify if stmt to check targetm.return_call_with_max_clobbers.
23426 Update setting of flush variable.
23427 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
23429 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
23430 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
23431 targetm.hard_regno_call_part_clobbered call.
23432 * reginfo.c (choose_hard_reg_mode): Ditto.
23433 * regrename.c (check_new_reg_p): Ditto.
23434 * reload.c (find_equiv_reg): Ditto.
23435 * reload1.c (emit_reload_insns): Ditto.
23436 * sched-deps.c (deps_analyze_insn): Ditto.
23437 * sel-sched.c (init_regs_for_mode): Ditto.
23438 (mark_unavailable_hard_regs): Ditto.
23439 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
23440 * target.def (hard_regno_call_part_clobbered): Add insn argument.
23441 (return_call_with_max_clobbers): New target function.
23442 * doc/tm.texi: Regenerate.
23443 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
23444 * hooks.c (hook_bool_uint_mode_false): Change to
23445 hook_bool_insn_uint_mode_false.
23446 * hooks.h (hook_bool_uint_mode_false): Ditto.
23448 2019-01-11 Steve Ellcey <sellcey@marvell.com>
23450 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
23451 (aarch64_remove_extra_call_preserved_regs): New function.
23452 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
23453 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
23454 * doc/tm.texi: Regenerate.
23455 * final.c (get_call_reg_set_usage): Call new hook.
23456 * target.def (remove_extra_call_preserved_regs): New hook.
23457 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
23458 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
23460 2019-01-11 Jakub Jelinek <jakub@redhat.com>
23463 * passes.c (finish_optimization_passes): Call print_combine_total_stats
23464 inside of pass_combine_1 dump rather than pass_profile_1.
23466 2019-01-11 Tom de Vries <tdevries@suse.de>
23468 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
23469 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
23470 (PTX_NUM_PER_WORKER_BARRIERS): Define.
23471 (nvptx_apply_dim_limits): Prevent vector_length 64 and
23474 2019-01-11 Tom de Vries <tdevries@suse.de>
23476 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
23478 2019-01-11 Jan Beulich <jbeulich@suse.com>
23480 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
23481 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
23482 sse2_cvtsi2sd): Add {l}.
23483 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
23486 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23489 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
23491 (*float<floatunssuffix>v2div2sf2): New define_insn.
23492 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
23493 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
23494 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
23495 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
23496 match_operands with "const0_operand" "C".
23498 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23500 * config/aarch64/aarch64-builtins.c
23501 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
23502 (aarch64_init_simd_builtins): ...Here
23504 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
23506 PR rtl-optimization/87305
23508 (setup_live_pseudos_and_spill_after_risky_transforms): Check
23509 allocation for big endian pseudos used as paradoxical subregs and
23510 spill them if it is wrong.
23511 * lra-constraints.c (lra_constraints): Add a comment.
23513 2019-01-10 Richard Biener <rguenther@suse.de>
23515 PR tree-optimization/88792
23516 * tree-ssa-pre.c (get_representative_for): Do not return a
23519 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23521 PR middle-end/84877
23523 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
23524 (assign_parm_setup_block): Do the argument slot realignment here
23527 2019-01-10 Stefan Agner <stefan@agner.ch>
23530 * config/arm/arm.c (arm_option_override_internal): Force
23531 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
23533 2019-01-10 Jakub Jelinek <jakub@redhat.com>
23536 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
23539 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23541 * config/arm/arm-builtins.c
23542 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
23543 (MAC_LANE_PAIR_QUALIFIERS): New.
23544 (arm_expand_builtin_args): Use it.
23545 (arm_expand_builtin_1): Likewise.
23546 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
23547 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
23548 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
23549 * config/arm/arm_neon.h:
23550 (vcadd_rot90_f16): New.
23551 (vcaddq_rot90_f16): New.
23552 (vcadd_rot270_f16): New.
23553 (vcaddq_rot270_f16): New.
23556 (vcmla_lane_f16): New.
23557 (vcmla_laneq_f16): New.
23558 (vcmlaq_lane_f16): New.
23559 (vcmlaq_laneq_f16): New.
23560 (vcmla_rot90_f16): New.
23561 (vcmlaq_rot90_f16): New.
23562 (vcmla_rot90_lane_f16): New.
23563 (vcmla_rot90_laneq_f16): New.
23564 (vcmlaq_rot90_lane_f16): New.
23565 (vcmlaq_rot90_laneq_f16): New.
23566 (vcmla_rot180_f16): New.
23567 (vcmlaq_rot180_f16): New.
23568 (vcmla_rot180_lane_f16): New.
23569 (vcmla_rot180_laneq_f16): New.
23570 (vcmlaq_rot180_lane_f16): New.
23571 (vcmlaq_rot180_laneq_f16): New.
23572 (vcmla_rot270_f16): New.
23573 (vcmlaq_rot270_f16): New.
23574 (vcmla_rot270_lane_f16): New.
23575 (vcmla_rot270_laneq_f16): New.
23576 (vcmlaq_rot270_lane_f16): New.
23577 (vcmlaq_rot270_laneq_f16): New.
23578 (vcadd_rot90_f32): New.
23579 (vcaddq_rot90_f32): New.
23580 (vcadd_rot270_f32): New.
23581 (vcaddq_rot270_f32): New.
23584 (vcmla_lane_f32): New.
23585 (vcmla_laneq_f32): New.
23586 (vcmlaq_lane_f32): New.
23587 (vcmlaq_laneq_f32): New.
23588 (vcmla_rot90_f32): New.
23589 (vcmlaq_rot90_f32): New.
23590 (vcmla_rot90_lane_f32): New.
23591 (vcmla_rot90_laneq_f32): New.
23592 (vcmlaq_rot90_lane_f32): New.
23593 (vcmlaq_rot90_laneq_f32): New.
23594 (vcmla_rot180_f32): New.
23595 (vcmlaq_rot180_f32): New.
23596 (vcmla_rot180_lane_f32): New.
23597 (vcmla_rot180_laneq_f32): New.
23598 (vcmlaq_rot180_lane_f32): New.
23599 (vcmlaq_rot180_laneq_f32): New.
23600 (vcmla_rot270_f32): New.
23601 (vcmlaq_rot270_f32): New.
23602 (vcmla_rot270_lane_f32): New.
23603 (vcmla_rot270_laneq_f32): New.
23604 (vcmlaq_rot270_lane_f32): New.
23605 (vcmlaq_rot270_laneq_f32): New.
23606 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
23607 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
23608 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
23609 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
23610 vcmlaq_lane270): New.
23611 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23612 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
23613 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
23614 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
23615 (arm_option_reconfigure_globals): Use them.
23616 * config/arm/iterators.md (VDF, VQ_HSF): New.
23617 (VCADD, VCMLA): New.
23618 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
23619 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
23621 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
23622 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
23624 2019-01-10 Tamar Christina <tamar.christina@arm.com>
23626 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
23627 Add qualifier_lane_pair_index.
23628 (emit-rtl.h): Include.
23629 (TYPES_QUADOP_LANE_PAIR): New.
23630 (aarch64_simd_expand_args): Use it.
23631 (aarch64_simd_expand_builtin): Likewise.
23632 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
23634 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
23635 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
23636 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
23637 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
23638 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
23639 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
23640 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
23641 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
23642 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
23643 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
23644 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
23645 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
23646 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
23647 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
23648 Add __ARM_FEATURE_COMPLEX.
23649 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
23650 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
23651 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
23652 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
23653 fcmlaq_lane270): New.
23654 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23655 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
23656 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
23657 * config/aarch64/arm_neon.h:
23658 (vcadd_rot90_f16): New.
23659 (vcaddq_rot90_f16): New.
23660 (vcadd_rot270_f16): New.
23661 (vcaddq_rot270_f16): New.
23664 (vcmla_lane_f16): New.
23665 (vcmla_laneq_f16): New.
23666 (vcmlaq_lane_f16): New.
23667 (vcmlaq_rot90_lane_f16): New.
23668 (vcmla_rot90_laneq_f16): New.
23669 (vcmla_rot90_lane_f16): New.
23670 (vcmlaq_rot90_f16): New.
23671 (vcmla_rot90_f16): New.
23672 (vcmlaq_laneq_f16): New.
23673 (vcmla_rot180_laneq_f16): New.
23674 (vcmla_rot180_lane_f16): New.
23675 (vcmlaq_rot180_f16): New.
23676 (vcmla_rot180_f16): New.
23677 (vcmlaq_rot90_laneq_f16): New.
23678 (vcmlaq_rot270_laneq_f16): New.
23679 (vcmlaq_rot270_lane_f16): New.
23680 (vcmla_rot270_laneq_f16): New.
23681 (vcmlaq_rot270_f16): New.
23682 (vcmla_rot270_f16): New.
23683 (vcmlaq_rot180_laneq_f16): New.
23684 (vcmlaq_rot180_lane_f16): New.
23685 (vcmla_rot270_lane_f16): New.
23686 (vcadd_rot90_f32): New.
23687 (vcaddq_rot90_f32): New.
23688 (vcaddq_rot90_f64): New.
23689 (vcadd_rot270_f32): New.
23690 (vcaddq_rot270_f32): New.
23691 (vcaddq_rot270_f64): New.
23695 (vcmla_lane_f32): New.
23696 (vcmla_laneq_f32): New.
23697 (vcmlaq_lane_f32): New.
23698 (vcmlaq_laneq_f32): New.
23699 (vcmla_rot90_f32): New.
23700 (vcmlaq_rot90_f32): New.
23701 (vcmlaq_rot90_f64): New.
23702 (vcmla_rot90_lane_f32): New.
23703 (vcmla_rot90_laneq_f32): New.
23704 (vcmlaq_rot90_lane_f32): New.
23705 (vcmlaq_rot90_laneq_f32): New.
23706 (vcmla_rot180_f32): New.
23707 (vcmlaq_rot180_f32): New.
23708 (vcmlaq_rot180_f64): New.
23709 (vcmla_rot180_lane_f32): New.
23710 (vcmla_rot180_laneq_f32): New.
23711 (vcmlaq_rot180_lane_f32): New.
23712 (vcmlaq_rot180_laneq_f32): New.
23713 (vcmla_rot270_f32): New.
23714 (vcmlaq_rot270_f32): New.
23715 (vcmlaq_rot270_f64): New.
23716 (vcmla_rot270_lane_f32): New.
23717 (vcmla_rot270_laneq_f32): New.
23718 (vcmlaq_rot270_lane_f32): New.
23719 (vcmlaq_rot270_laneq_f32): New.
23720 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
23721 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
23722 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
23723 (FCADD, FCMLA): New.
23725 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
23727 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
23731 * config/pa/pa.c: Change "can not" to "cannot".
23732 * gimple-ssa-evrp-analyze.c: Likewise.
23733 * ipa-icf.c: Likewise.
23734 * ipa-polymorphic-call.c: Likewise.
23735 * ipa-pure-const.c: Likewise.
23736 * lra-constraints.c: Likewise.
23737 * lra-remat.c: Likewise.
23738 * reload1.c: Likewise.
23739 * reorg.c: Likewise.
23740 * tree-ssa-uninit.c: Likewise.
23742 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
23746 * Makefile.in: Mechanically replace "can not" with "cannot".
23747 * alias.c: Likewise.
23748 * builtins.c: Likewise.
23749 * calls.c: Likewise.
23750 * cgraph.c: Likewise.
23751 * cgraph.h: Likewise.
23752 * cgraphclones.c: Likewise.
23753 * cgraphunit.c: Likewise.
23754 * combine-stack-adj.c: Likewise.
23755 * combine.c: Likewise.
23756 * common/config/i386/i386-common.c: Likewise.
23757 * config/aarch64/aarch64.c: Likewise.
23758 * config/alpha/sync.md: Likewise.
23759 * config/arc/arc.c: Likewise.
23760 * config/arc/predicates.md: Likewise.
23761 * config/arm/arm-c.c: Likewise.
23762 * config/arm/arm.c: Likewise.
23763 * config/arm/arm.h: Likewise.
23764 * config/arm/arm.md: Likewise.
23765 * config/arm/cortex-r4f.md: Likewise.
23766 * config/csky/csky.c: Likewise.
23767 * config/csky/csky.h: Likewise.
23768 * config/darwin-f.c: Likewise.
23769 * config/epiphany/epiphany.md: Likewise.
23770 * config/i386/i386.c: Likewise.
23771 * config/i386/sol2.h: Likewise.
23772 * config/m68k/m68k.c: Likewise.
23773 * config/mcore/mcore.h: Likewise.
23774 * config/microblaze/microblaze.md: Likewise.
23775 * config/mips/20kc.md: Likewise.
23776 * config/mips/sb1.md: Likewise.
23777 * config/nds32/nds32.c: Likewise.
23778 * config/nds32/predicates.md: Likewise.
23779 * config/pa/pa.c: Likewise.
23780 * config/rs6000/e300c2c3.md: Likewise.
23781 * config/rs6000/rs6000.c: Likewise.
23782 * config/s390/s390.h: Likewise.
23783 * config/sh/sh.c: Likewise.
23784 * config/sh/sh.md: Likewise.
23785 * config/spu/vmx2spu.h: Likewise.
23786 * cprop.c: Likewise.
23787 * dbxout.c: Likewise.
23788 * df-scan.c: Likewise.
23789 * doc/cfg.texi: Likewise.
23790 * doc/extend.texi: Likewise.
23791 * doc/fragments.texi: Likewise.
23792 * doc/gty.texi: Likewise.
23793 * doc/invoke.texi: Likewise.
23794 * doc/lto.texi: Likewise.
23795 * doc/md.texi: Likewise.
23796 * doc/objc.texi: Likewise.
23797 * doc/rtl.texi: Likewise.
23798 * doc/tm.texi: Likewise.
23800 * emit-rtl.c: Likewise.
23801 * emit-rtl.h: Likewise.
23802 * except.c: Likewise.
23803 * expmed.c: Likewise.
23804 * expr.c: Likewise.
23805 * fold-const.c: Likewise.
23806 * genautomata.c: Likewise.
23807 * gimple-fold.c: Likewise.
23808 * hard-reg-set.h: Likewise.
23809 * ifcvt.c: Likewise.
23810 * ipa-comdats.c: Likewise.
23811 * ipa-cp.c: Likewise.
23812 * ipa-devirt.c: Likewise.
23813 * ipa-fnsummary.c: Likewise.
23814 * ipa-icf.c: Likewise.
23815 * ipa-inline-transform.c: Likewise.
23816 * ipa-inline.c: Likewise.
23817 * ipa-polymorphic-call.c: Likewise.
23818 * ipa-profile.c: Likewise.
23819 * ipa-prop.c: Likewise.
23820 * ipa-pure-const.c: Likewise.
23821 * ipa-reference.c: Likewise.
23822 * ipa-split.c: Likewise.
23823 * ipa-visibility.c: Likewise.
23825 * ira-build.c: Likewise.
23826 * ira-color.c: Likewise.
23827 * ira-conflicts.c: Likewise.
23828 * ira-costs.c: Likewise.
23829 * ira-int.h: Likewise.
23830 * ira-lives.c: Likewise.
23833 * loop-invariant.c: Likewise.
23834 * loop-unroll.c: Likewise.
23835 * lower-subreg.c: Likewise.
23836 * lra-assigns.c: Likewise.
23837 * lra-constraints.c: Likewise.
23838 * lra-eliminations.c: Likewise.
23839 * lra-lives.c: Likewise.
23840 * lra-remat.c: Likewise.
23841 * lra-spills.c: Likewise.
23843 * lto-cgraph.c: Likewise.
23844 * lto-streamer-out.c: Likewise.
23845 * postreload-gcse.c: Likewise.
23846 * predict.c: Likewise.
23847 * profile-count.h: Likewise.
23848 * profile.c: Likewise.
23849 * recog.c: Likewise.
23851 * reload.c: Likewise.
23852 * reload1.c: Likewise.
23853 * reorg.c: Likewise.
23854 * resource.c: Likewise.
23855 * rtl.def: Likewise.
23857 * rtlanal.c: Likewise.
23858 * sched-deps.c: Likewise.
23859 * sched-ebb.c: Likewise.
23860 * sched-rgn.c: Likewise.
23861 * sel-sched-ir.c: Likewise.
23862 * sel-sched.c: Likewise.
23863 * shrink-wrap.c: Likewise.
23864 * simplify-rtx.c: Likewise.
23865 * symtab.c: Likewise.
23866 * target.def: Likewise.
23867 * toplev.c: Likewise.
23868 * tree-call-cdce.c: Likewise.
23869 * tree-cfg.c: Likewise.
23870 * tree-complex.c: Likewise.
23871 * tree-core.h: Likewise.
23872 * tree-eh.c: Likewise.
23873 * tree-inline.c: Likewise.
23874 * tree-loop-distribution.c: Likewise.
23875 * tree-nrv.c: Likewise.
23876 * tree-profile.c: Likewise.
23877 * tree-sra.c: Likewise.
23878 * tree-ssa-alias.c: Likewise.
23879 * tree-ssa-dce.c: Likewise.
23880 * tree-ssa-dom.c: Likewise.
23881 * tree-ssa-forwprop.c: Likewise.
23882 * tree-ssa-loop-im.c: Likewise.
23883 * tree-ssa-loop-ivcanon.c: Likewise.
23884 * tree-ssa-loop-ivopts.c: Likewise.
23885 * tree-ssa-loop-niter.c: Likewise.
23886 * tree-ssa-phionlycprop.c: Likewise.
23887 * tree-ssa-phiopt.c: Likewise.
23888 * tree-ssa-propagate.c: Likewise.
23889 * tree-ssa-threadedge.c: Likewise.
23890 * tree-ssa-threadupdate.c: Likewise.
23891 * tree-ssa-uninit.c: Likewise.
23892 * tree-ssanames.c: Likewise.
23893 * tree-streamer-out.c: Likewise.
23894 * tree.c: Likewise.
23895 * tree.h: Likewise.
23896 * vr-values.c: Likewise.
23898 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
23900 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
23901 (ix86_split_xorsign): Ditto.
23902 * config/i386/i386.c (ix86_expand_xorsign): New function.
23903 (ix86_split_xorsign): Ditto.
23904 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
23905 (xorsign<mode>3): New expander.
23906 (xorsign<mode>3_1): New insn_and_split pattern.
23907 * config/i386/sse.md (xorsign<mode>3): New expander.
23909 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
23911 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
23912 (*tablejump_sp64): Likewise.
23913 (*tablejump<P:mode>): ...this.
23914 (*call_address_sp32): Merge into...
23915 (*call_address_sp64): Likewise.
23916 (*call_address<P:mode>): ...this.
23917 (*call_symbolic_sp32): Merge into...
23918 (*call_symbolic_sp64): Likewise.
23919 (*call_symbolic<P:mode>): ...this.
23920 (call_value): Remove constraint and add predicate.
23921 (*call_value_address_sp32): Merge into...
23922 (*call_value_address_sp64): Likewise.
23923 (*call_value_address<P:mode>): ...this.
23924 (*call_value_symbolic_sp32): Merge into...
23925 (*call_value_symbolic_sp64): Likewise.
23926 (*call_value_symbolic<P:mode>): ...this.
23927 (*sibcall_symbolic_sp32): Merge into...
23928 (*sibcall_symbolic_sp64): Likewise.
23929 (*sibcall_symbolic<P:mode>): ...this.
23930 (sibcall_value): Remove constraint and add predicate.
23931 (*sibcall_value_symbolic_sp32): Merge into...
23932 (*sibcall_value_symbolic_sp64): Likewise.
23933 (*sibcall_value_symbolic<P:mode>): ...this.
23934 (window_save): Minor tweak.
23935 (*branch_sp32): Merge into...
23936 (*branch_sp64): Likewise.
23937 (*branch<P:mode>): ...this.
23939 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
23940 James Clarke <jrtc27@jrtc27.com>
23943 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
23944 consistently in TLS address generation and adjust code to the renaming
23945 of patterns. Mark calls to __tls_get_addr as const.
23946 * config/sparc/sparc.md (tgd_hi22): Turn into...
23947 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
23948 (tgd_lo10): Turn into...
23949 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
23950 (tgd_add32): Merge into...
23951 (tgd_add64): Likewise.
23952 (tgd_add<P:mode>): ...this and use Pmode throughout.
23953 (tldm_hi22): Turn into...
23954 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
23955 (tldm_lo10): Turn into...
23956 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
23957 (tldm_add32): Merge into...
23958 (tldm_add64): Likewise.
23959 (tldm_add<P:mode>): ...this and use Pmode throughout.
23960 (tldm_call32): Merge into...
23961 (tldm_call64): Likewise.
23962 (tldm_call<P:mode>): ...this and use Pmode throughout.
23963 (tldo_hix22): Turn into...
23964 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
23965 (tldo_lox10): Turn into...
23966 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
23967 (tldo_add32): Merge into...
23968 (tldo_add64): Likewise.
23969 (tldo_add<P:mode>): ...this and use Pmode throughout.
23970 (tie_hi22): Turn into...
23971 (tie_hi22<P:mode>): ...this and use Pmode throughout.
23972 (tie_lo10): Turn into...
23973 (tie_lo10<P:mode>): ...this and use Pmode throughout.
23974 (tie_ld64): Use DImode throughout.
23975 (tie_add32): Merge into...
23976 (tie_add64): Likewise.
23977 (tie_add<P:mode>): ...this and use Pmode throughout.
23978 (tle_hix22_sp32): Merge into...
23979 (tle_hix22_sp64): Likewise.
23980 (tle_hix22<P:mode>): ...this and use Pmode throughout.
23981 (tle_lox22_sp32): Merge into...
23982 (tle_lox22_sp64): Likewise.
23983 (tle_lox22<P:mode>): ...this and use Pmode throughout.
23984 (*tldo_ldub_sp32): Merge into...
23985 (*tldo_ldub_sp64): Likewise.
23986 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
23987 (*tldo_ldub1_sp32): Merge into...
23988 (*tldo_ldub1_sp64): Likewise.
23989 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
23990 (*tldo_ldub2_sp32): Merge into...
23991 (*tldo_ldub2_sp64): Likewise.
23992 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
23993 (*tldo_ldsb1_sp32): Merge into...
23994 (*tldo_ldsb1_sp64): Likewise.
23995 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
23996 (*tldo_ldsb2_sp32): Merge into...
23997 (*tldo_ldsb2_sp64): Likewise.
23998 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
23999 (*tldo_ldub3_sp64): Use DImode throughout.
24000 (*tldo_ldsb3_sp64): Likewise.
24001 (*tldo_lduh_sp32): Merge into...
24002 (*tldo_lduh_sp64): Likewise.
24003 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
24004 (*tldo_lduh1_sp32): Merge into...
24005 (*tldo_lduh1_sp64): Likewise.
24006 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
24007 (*tldo_ldsh1_sp32): Merge into...
24008 (*tldo_ldsh1_sp64): Likewise.
24009 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
24010 (*tldo_lduh2_sp64): Use DImode throughout.
24011 (*tldo_ldsh2_sp64): Likewise.
24012 (*tldo_lduw_sp32): Merge into...
24013 (*tldo_lduw_sp64): Likewise.
24014 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
24015 (*tldo_lduw1_sp64): Use DImode throughout.
24016 (*tldo_ldsw1_sp64): Likewise.
24017 (*tldo_ldx_sp64): Likewise.
24018 (*tldo_stb_sp32): Merge into...
24019 (*tldo_stb_sp64): Likewise.
24020 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
24021 (*tldo_sth_sp32): Merge into...
24022 (*tldo_sth_sp64): Likewise.
24023 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
24024 (*tldo_stw_sp32): Merge into...
24025 (*tldo_stw_sp64): Likewise.
24026 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
24027 (*tldo_stx_sp64): Use DImode throughout.
24029 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24031 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
24032 check configure option to set BTI and Return Address Signing.
24033 * configure.ac: Add --enable-standard-branch-protection and
24034 --disable-standard-branch-protection.
24035 * configure: Regenerated.
24036 * doc/install.texi: Document the same.
24038 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24039 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24041 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
24042 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
24043 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
24045 * config/aarch64/aarch64-bti-insert.c: New file.
24046 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
24048 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
24050 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
24051 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
24052 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
24053 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
24055 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24057 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
24058 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
24059 Disable bti for -mbranch-protection=none.
24060 (aarch64_handle_standard_branch_protection): Enable bti for
24061 -mbranch-protection=standard.
24062 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
24063 -mbranch-protection.
24064 (aarch64_bti_enabled): Check if bti is enabled.
24065 * config/aarch64/aarch64.opt: Declare target variable.
24066 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
24068 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24070 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
24071 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
24072 (aarch64_expand_epilogue): Likewise.
24073 (aarch64_output_mi_thunk): Likewise.
24074 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
24075 TAILCALL_ADDR_REGS to x16 and x17.
24076 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
24078 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24080 * config/aarch64/aarch64-option-extensions.def: Define
24081 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
24082 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
24083 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
24084 (AARCH64_FL_PREDRES): New.
24085 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
24086 AARCH64_FL_PREDRES by default.
24087 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
24089 2018-01-09 Sudakshina Das <sudi.das@arm.com>
24091 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
24093 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
24094 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
24095 * doc/invoke.texi: Document ARMv8.5-A.
24097 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24099 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
24100 (xorsign<mode>3): Likewise.
24102 2019-01-09 Jelinek <jakub@redhat.com>
24104 PR middle-end/88758
24105 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
24106 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
24108 PR rtl-optimization/88331
24109 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
24110 not currently_expanding_to_rtl.
24112 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
24114 * doc/invoke.texi (-Os): Remove trailing spaces.
24115 (-finline-functions): Remove reference to -O2.
24117 2019-01-08 Jakub Jelinek <jakub@redhat.com>
24119 PR rtl-optimization/79593
24120 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
24122 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
24123 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
24125 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
24128 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
24132 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
24133 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
24135 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
24138 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
24139 ix86_avx_u128_mode_entry.
24141 2019-01-08 Martin Liska <mliska@suse.cz>
24143 PR tree-optimization/88753
24144 * tree-switch-conversion.c (switch_conversion::build_one_array):
24145 Come up with local variable constructor. Convert first to
24146 type of constructor values.
24148 2019-01-08 Richard Biener <rguenther@suse.de>
24150 PR tree-optimization/86554
24151 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
24152 rpo_avail): Move earlier.
24153 (visit_nary_op): When value-numbering to expressions
24154 with different overflow behavior make sure there's an
24155 available expression on the path.
24157 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
24159 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
24160 aarch64_parse_branch_protection,
24161 struct aarch64_branch_protect_type,
24162 aarch64_handle_no_branch_protection,
24163 aarch64_handle_standard_branch_protection,
24164 aarch64_validate_mbranch_protection,
24165 aarch64_handle_pac_ret_protection,
24166 aarch64_handle_attr_branch_protection,
24167 accepted_branch_protection_string,
24168 aarch64_pac_ret_subtypes,
24169 aarch64_branch_protect_types,
24170 aarch64_handle_pac_ret_leaf): Define.
24171 (aarch64_override_options_after_change_1, aarch64_override_options):
24172 Add check for accepted_branch_protection_string.
24173 (aarch64_option_save): Save accepted_branch_protection_string.
24174 (aarch64_option_restore): Save accepted_branch_protection_string.
24175 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
24176 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
24177 msign-return-address.
24178 * doc/invoke.texi: Add mbranch-protection.
24180 2019-01-08 Alan Modra <amodra@gmail.com>
24183 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
24184 Delete "unknownp" parameter. Adjust callers. Handle
24185 CONST_INT, PLUS, MINUS, and MULT.
24186 (attr_value_aligned): Renamed from or_attr_value.
24187 (min_attr_value): Return INT_MIN for unhandled rtl case..
24188 (min_fn): ..and translate to INT_MAX here.
24189 (write_length_unit_log): Modify to cope without "unknown".
24190 (write_attr_value): Handle IF_THEN_ELSE.
24192 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24194 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
24195 optimization for masked stores.
24197 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24199 PR middle-end/88567
24200 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
24201 output vector directly to duplicate_and_interleave instead of
24202 going through a temporary. Postpone insertion of ctor_seq to
24203 the end of the loop.
24205 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
24208 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
24209 unsigned_p. Handle signed and unsigned overflow correction as
24211 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
24213 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
24215 (add<mode>3_compareV_imm): Make this callable for expanding.
24216 (subv<GPI:mode>4): Use register_operand for operand 1. Use
24217 aarch64_plus_operand for operand 2.
24218 (subv<GPI:mode>_insn): New insn pattern.
24219 (subv<GPI:mode>_imm): Likewise.
24220 (negv<GPI:mode>3): New expand pattern.
24221 (negv<GPI:mode>_insn): New insn pattern.
24222 (negv<GPI:mode>_cmp_only): Likewise.
24223 (cmpv<GPI:mode>_insn): Likewise.
24224 (subvti4): Use register_operand for operand 1. Update call to
24225 aarch64_expand_subvti.
24226 (usubvti4): Likewise.
24227 (negvti3): New expand pattern.
24228 (negdi_carryout): New insn pattern.
24229 (negvdi_carryinV): New insn pattern.
24230 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
24231 version the named version.
24232 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
24234 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
24236 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
24238 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
24239 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
24240 (sub<mode>3_carryinCV): Delete.
24241 (sub<GPI:mode>3_carryinV): New expand pattern.
24242 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
24244 2019-01-07 Richard Biener <rguenther@suse.de>
24246 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
24247 of tree_operand_hash.
24249 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24251 PR tree-optimization/88598
24252 * tree.h (single_nonzero_element): Declare.
24253 * tree.c (single_nonzero_element): New function.
24254 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
24255 if I is the only nonzero element of CST.
24257 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
24259 PR tree-optimization/88598
24260 * tree.h (initializer_each_zero_or_onep): Declare.
24261 * tree.c (initializer_each_zero_or_onep): New function.
24262 (signed_or_unsigned_type_for): Handle float types too.
24263 (unsigned_type_for, signed_type_for): Update comments accordingly.
24264 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
24265 x & { 0 or -1, 0 or -1, ... }.
24267 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
24269 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
24270 with x86_64-pc-linux-gnu.
24272 2019-01-07 Tom de Vries <tdevries@suse.de>
24275 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
24277 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
24280 2019-01-07 Jakub Jelinek <jakub@redhat.com>
24282 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
24283 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
24284 TARGET_AVX512F as condition.
24287 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
24288 const_not_ok_for_debug_p target hook.
24289 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
24290 on UNSPEC and subexpressions thereof if all subexpressions of the
24291 UNSPEC are CONSTANT_P.
24293 PR tree-optimization/88676
24294 * tree-ssa-phiopt.c (two_value_replacement): New function.
24295 (tree_ssa_phiopt_worker): Call it.
24298 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
24299 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
24302 * tree-vect-generic.c: Include insn-config.h and recog.h.
24303 (expand_vector_piecewise): Add defaulted ret_type argument,
24304 if non-NULL, use that in preference to type for the result type.
24305 (expand_vector_parallel): Formatting fix.
24306 (do_vec_conversion, do_vec_narrowing_conversion,
24307 expand_vector_conversion): New functions.
24308 (expand_vector_operations_1): Call expand_vector_conversion
24309 for VEC_CONVERT ifn calls.
24310 * internal-fn.def (VEC_CONVERT): New internal function.
24311 * internal-fn.c (expand_VEC_CONVERT): New function.
24312 * fold-const-call.c (fold_const_vec_convert): New function.
24313 (fold_const_call): Use it for CFN_VEC_CONVERT.
24314 * doc/extend.texi (__builtin_convertvector): Document.
24316 2019-01-07 Tom de Vries <tdevries@suse.de>
24318 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
24319 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
24320 vector_red_partition, vector_red_sym): New global variables.
24321 (nvptx_option_override): Initialize vector_red_sym.
24322 (nvptx_declare_function_name): Restore red_partition register.
24323 (nvptx_file_end): Emit code to declare the vector reduction variables.
24324 (nvptx_output_red_partition): New function.
24325 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
24326 large vector reductions.
24327 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
24328 (nvptx_init_builtins): Add VECTOR_ADDR.
24329 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
24330 Handle nvptx_expand_shared_addr.
24331 (nvptx_get_shared_red_addr): Add vector argument and handle large
24333 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
24335 (nvptx_goacc_reduction_init): Likewise.
24336 (nvptx_goacc_reduction_fini): Likewise.
24337 (nvptx_goacc_reduction_teardown): Likewise.
24338 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
24339 init,fini,teardown}.
24340 (nvptx_init_axis_predicate): Initialize vector_red_partition.
24341 (nvptx_set_current_function): Init vector_red_partition.
24342 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
24343 (nvptx_red_partition): New insn.
24344 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
24346 2019-01-07 Tom de Vries <tdevries@suse.de>
24349 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
24352 2019-01-07 Tom de Vries <tdevries@suse.de>
24354 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
24355 (nvptx_option_override): Init oacc_bcast_partition.
24356 (nvptx_init_oacc_workers): New function.
24357 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
24358 (nvptx_needs_shared_bcast): New function.
24359 (nvptx_find_par): Generalize to enable vectors to use shared-memory
24360 to propagate state.
24361 (nvptx_shared_propagate): Initialize vector bcast partition and
24362 synchronization state.
24363 (nvptx_single): Generalize to enable vectors to use shared-memory
24364 to propagate state.
24365 (nvptx_process_pars): Likewise.
24366 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
24367 * config/nvptx/nvptx.h (struct machine_function): Add
24368 bcast_partition and sync_bar members.
24370 2019-01-07 Tom de Vries <tdevries@suse.de>
24372 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
24373 (nvptx_apply_dim_limits): New function.
24374 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
24377 2019-01-07 Tom de Vries <tdevries@suse.de>
24379 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
24380 as late as possible.
24382 2019-01-07 Tom de Vries <tdevries@suse.de>
24384 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
24385 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
24386 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
24387 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
24388 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
24390 2019-01-07 Tom de Vries <tdevries@suse.de>
24392 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
24394 2019-01-07 Tom de Vries <tdevries@suse.de>
24396 * omp-offload.c (oacc_get_min_dim): New function.
24397 * omp-offload.h (oacc_get_min_dim): Declare.
24399 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
24402 * config/i386/i386.c (function_value_ms_64): Return small sturct in
24403 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
24405 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24409 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
24411 * ipa-inline.c (edge_badness): Use inlined_time instead of
24412 inline_summaries->get.
24414 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24416 * opts.c (enable_fdo_optimizations): Enable
24417 version-loops-for-strides, loop-interchange, unrol-and-jam
24418 and tree-loop-distribution.
24419 * invoke.texi: Document newly enabled options.
24421 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24423 * doc/invoke.texi (max-inline-insns-small): New parameters.
24424 * ipa-inline.c (want_early_inline_function_p): simplify.
24425 (want_inline_small_function_p): Fix pasto from previous patch;
24426 use max-inline-insns-small bound.
24427 * params.def (max-inline-insns-small): New param.
24428 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
24429 variables correctly.
24431 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24433 * doc/invoke.texi: Document max-inline-insns-size,
24434 uninlined-function-insns, uninlined-function-time,
24435 uninlined-thunk-insns and uninlined-thunk-time.
24436 * params.def: Add max-inline-insns-size,
24437 uninlined-function-insns, uninlined-function-time,
24438 uninlined-thunk-insns and uninlined-thunk-time.
24439 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
24441 * ipa-inline.c (can_inline_edge_by_limits_p,
24442 want_inline_small_function_p): Use new parameters.
24444 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
24446 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
24448 2019-01-05 Jakub Jelinek <jakub@redhat.com>
24450 PR middle-end/82564
24452 * expr.c (expand_assignment): For calls returning VLA structures
24453 if to_rtx is not a MEM, force it into a stack temporary.
24456 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
24457 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
24458 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
24459 subexpressions of both operands.
24460 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
24461 subrtxes are CONSTANT_P.
24462 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
24463 2018-11-09 changes.
24465 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
24467 * params.def (hot-bb-count-ws-permille): Set to 990.
24469 2019-01-04 Martin Sebor <msebor@redhat.com>
24472 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
24475 2019-01-04 Martin Sebor <msebor@redhat.com>
24478 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
24480 2019-01-04 Jakub Jelinek <jakub@redhat.com>
24482 * gdbinit.in: Turn off pagination for the skip commands, restore
24483 it to previous state afterwards.
24485 2019-01-04 Jakub Jelinek <jakub@redhat.com>
24488 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
24489 of GET_MODE (opN) as modes of the libcall arguments.
24491 2019-01-04 Jan Beulich <jbeulich@suse.com>
24493 * config/i386/sse.md
24494 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
24495 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
24496 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
24497 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
24498 avx512f_vmcmp<mode>3<round_saeonly_name>,
24499 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
24500 avx512f_maskcmp<mode>3,
24501 <avx512>_cvt<ssemodesuffix>2mask<mode>,
24502 <avx512>_cvt<ssemodesuffix>2mask<mode>,
24503 *<avx512>_cvtmask2<ssemodesuffix><mode>,
24504 *<avx512>_cvtmask2<ssemodesuffix><mode>,
24505 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
24506 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
24507 <avx512>_gt<mode>3<mask_scalar_merge_name>,
24508 <avx512>_gt<mode>3<mask_scalar_merge_name>,
24509 <avx512>_testm<mode>3<mask_scalar_merge_name>,
24510 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
24511 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
24512 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
24513 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
24514 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
24515 avx512cd_maskb_vec_dup<mode>,
24516 avx512cd_maskw_vec_dup<mode>,
24517 avx512dq_fpclass<mode><mask_scalar_merge_name>,
24518 avx512dq_vmfpclass<mode>,
24519 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
24522 2019-01-03 Martin Sebor <msebor@redhat.com>
24524 PR tree-optimization/88659
24525 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
24527 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
24529 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
24530 unaligned vsx and avoid lxvd2x/stxvd2x.
24531 (gen_lvx_v4si_move): New function.
24533 2019-01-03 Tom de Vries <tdevries@suse.de>
24535 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
24536 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
24538 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
24540 2019-01-03 Tom de Vries <tdevries@suse.de>
24542 * config/nvptx/nvptx.c (struct offload_attrs): New.
24543 (populate_offload_attrs): New function. Factor mask extraction out of
24544 nvptx_reorg. Add extraction of dimensions.
24545 (nvptx_reorg): Use populate_offload_attrs.
24547 2019-01-03 Tom de Vries <tdevries@suse.de>
24549 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
24550 cases for oacc_min_dims_p and routine_p. Add asserts for
24551 oacc_default_dims_p and offload_region_p.
24553 2019-01-03 Tom de Vries <tdevries@suse.de>
24555 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
24556 factored out of ...
24557 (nvptx_goacc_validate_dims): ... here.
24559 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
24561 PR tree-optimization/85574
24562 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
24564 (struct ssa_equip_hash_traits): Declare.
24565 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
24567 2019-01-03 Jakub Jelinek <jakub@redhat.com>
24570 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
24571 change it to qualified_type.
24573 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
24575 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
24576 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
24578 2019-01-02 Martin Sebor <msebor@redhat.com>
24579 Jeff Law <law@redhat.com>
24581 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
24582 (get_range_strlen_tree): Update appropriately.
24584 * gimple-fold.h (get_range_strlen): Drop unused last argument.
24586 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
24587 rather than set_range_info.
24588 * tree-ssa-strlen.c (set_strlen_range): Extracted from
24589 maybe_set_strlen_range. Handle potentially boundary crossing
24590 cases more conservatively.
24591 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
24592 Call set_strlen_range.
24593 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
24595 PR middle-end/88663
24596 * gimple-fold.c (get_range_strlen): Update prototype to no longer
24597 need the flexp argument.
24598 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
24599 from calls to get_range_strlen. Update comments. Just update
24600 VAL for an unterminated const char array and let the reset of the
24601 code handle it normally. No longer try to set *flexp. Adjust
24603 (get_range_strlen): Update for the new get_range_strlen API.
24604 (get_maxval_strlen): Similarly.
24605 (gimple_fold_builtin_strlen): Handle update meaning of return value
24606 from get_range_strlen.
24607 * gimple-ssa-sprintf.c (get_string_length): Update for the new
24608 get_range_strlen API.
24610 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
24613 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
24614 false at WPA time when body was removed.
24616 2019-01-02 Martin Liska <mliska@suse.cz>
24618 PR tree-optimization/88650
24619 * predict.c (set_even_probabilities): Calculate probability
24620 remainer only when really used.
24622 2019-01-02 Richard Biener <rguenther@suse.de>
24624 PR middle-end/88651
24625 * tree-data-ref.c (analyze_subscript_affine_affine): Use
24626 widest_ints when mangling max_stmt_execution results.
24628 2019-01-02 Richard Biener <rguenther@suse.de>
24630 PR tree-optimization/88621
24631 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
24632 bitfields when canoncalizing.
24634 2019-01-02 Richard Biener <rguenther@suse.de>
24637 * config/i386/x86-tune-costs.h (intel_cost): Adjust
24638 cost of cheap SSE instruction.
24640 2019-01-02 Richard Biener <rguenther@suse.de>
24643 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
24644 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
24646 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
24647 set after UIDs before splitting them.
24649 2019-01-01 Martin Sebor <msebor@redhat.com>
24650 Jeff Law <law@redhat.com>
24652 * gimple-fold.c (get_range_strlen_tree): Record if the computed
24653 length is optimistic. If it is, then arrange to compute the
24654 conservative length as well.
24656 * gimple-fold.h (get_range_strlen): Update prototype.
24657 * builtins.c (check_access): Update call to get_range_strlen to use
24658 c_strlen_data pointer. Change various variable accesses to instead
24659 pull data from the c_strlen_data structure.
24660 (check_strncat_sizes, expand_builtin_strncat): Likewise.
24661 * calls.c (maybe_warn_nonstring_arg): Likewise.
24662 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
24663 minimum length if maximum lengh is unknown.
24664 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
24665 that used c_strlen, it's no longer needed. Restructure slightly.
24666 (format_string): Set unlikely range appropriately.
24667 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
24669 (get_range_strlen): Accept c_strlen_data pointer for external
24670 call sites as well. Pass through to call to internal get_range_strlen.
24671 Adjust minlen, maxlen and maxbound as needed.
24672 (get_maxval_strlen): Update comments.
24673 (gimple_fold_builtin_strlen): Update call to get_range_strlen
24674 to use c_strlen_data pointer. Change variable accesses to instead
24675 use c_strlen_data data members.
24677 * gimple-fold.c (get_range_strlen): Update prototype.
24678 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
24679 local variables. Use pdata to return information to caller.
24680 Update calls to get_range_strlen. Update pdata->maxbound.
24681 (get_range_strlen -- static version): Similarly.
24682 (get_range_strlen -- extern version): Update for internal
24683 get_range_strlen API change. Convert to external data format.
24684 (get_maxval_strlen): Similarly.
24686 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
24688 * coverage.c (get_coverage_counts): Use current_function_decl.
24689 * profile.c (read_thunk_profile): New function.
24690 (branch_prob): Add THUNK parameter.
24691 * tree-profile.c (tree_profiling): Handle thunks.
24692 * value-prof.c (init_node_map): Handle thunks.
24693 * value-prof.h (branch_prob): Upate prototype.
24694 (read_thunk_profile): Declare.
24696 2019-01-01 Jakub Jelinek <jakub@redhat.com>
24698 Update copyright years.
24700 * gcc.c (process_command): Update copyright notice dates.
24701 * gcov-dump.c (print_version): Ditto.
24702 * gcov.c (print_version): Ditto.
24703 * gcov-tool.c (print_version): Ditto.
24704 * gengtype.c (create_file): Ditto.
24705 * doc/cpp.texi: Bump @copying's copyright year.
24706 * doc/cppinternals.texi: Ditto.
24707 * doc/gcc.texi: Ditto.
24708 * doc/gccint.texi: Ditto.
24709 * doc/gcov.texi: Ditto.
24710 * doc/install.texi: Ditto.
24711 * doc/invoke.texi: Ditto.
24713 Copyright (C) 2019 Free Software Foundation, Inc.
24715 Copying and distribution of this file, with or without modification,
24716 are permitted in any medium without royalty provided the copyright
24717 notice and this notice are preserved.