1 2019-07-28 Alan Modra <amodra@gmail.com>
4 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
6 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
7 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
8 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
10 2019-07-28 Alan Modra <amodra@gmail.com>
13 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
14 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
15 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
16 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
17 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
18 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
20 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
21 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
23 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
25 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
27 2019-07-26 Tamar Christina <tamar.christina@arm.com>
30 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
31 * config/aarch64/aarch64-option-extensions.def: Add new comments
32 and restore easier to read options.
34 2019-07-26 Tamar Christina <tamar.christina@arm.com>
36 * convert.c (convert_to_real_1): Move part of conversion code...
37 * match.pd: ...To here.
39 2019-07-26 Martin Jambor <mjambor@suse.cz>
42 * ipa-inline-transform.c (check_speculations_1): New function.
43 (push_all_edges_in_set_to_vec): Likewise.
44 (check_speculations): Use check_speculations_1, new parameter
46 (inline_call): Pass new_edges to check_speculations.
47 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
49 (speculation_useful_p): Early return true if edge is inlined, remove
50 later checks for inline_failed.
52 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
54 PR rtl-optimization/91223
55 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
56 matching with INOUT operand.
58 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
60 * stmt.c (expand_case): Try to narrow the index type if it's larger
63 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
65 * cif-code.def (NEVER_CALL): New code.
66 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
67 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
69 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
71 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
72 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
74 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
76 * ipa-devirt.c (add_type_duplicate): Fix return value.
78 2019-07-25 Richard Biener <rguenther@suse.de>
80 * tree-vrp.c (extract_range_from_multiplicative_op): Add
81 type parameter and use it instead of guessing expression
82 type from the first operand.
83 (extract_range_from_binary_expr): Pass expr_type down.
85 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
87 * config/arm/arm.md (SATrev): Change to code attribute.
88 (*satsi_<SAT:code>): Adjust for the above.
89 (*satsi_<SAT:code>_shift): Likewise.
91 2019-07-25 Richard Biener <rguenther@suse.de>
93 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
94 Make value_range * temporary const.
95 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
97 (evrp_range_analyzer::record_ranges_from_): Likewise.
98 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
99 deal with having recorded a const one.
100 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
101 Return a const value_range *.
102 (evrp_range_analyzer::pop_value_range): Likewise.
103 (evrp_range_analyzer::stack): Record const value_range *s.
104 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
106 * gimple-ssa-sprintf.c (get_int_range): Likewise.
107 (format_integer): Likewise.
108 (sprintf_dom_walker::handle_gimple_call): Likewise.
109 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
110 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
111 (vrp_prop::get_value_range): Adjust.
112 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
113 modifying the lattice in-place.
114 (vrp_prop::visit_stmt): Likewise.
115 * vr-values.c (vr_values::get_lattice_entry): New private method.
116 (vr_values::get_value_range): Wrap it and return a const
118 (vr_values::set_def_to_varying): New.
119 (vr_values::set_defs_to_varying): Use it.
120 (vr_values::update_value_range): Likewise.
121 (vr_values::vrp_stmt_computes_nonzero): Adjust.
122 (values::op_with_constant_singleton_va): Likewise.
123 (vr_values::extract_range_for_var_from_co): Likewise.
124 (vr_values::extract_range_from_ssa_name): Likewise.
125 (vr_values::extract_range_from_cond_expr): Likewise.
126 (vr_values::extract_range_basic): Likewise.
127 (compare_ranges): Take const value_range *, adjust.
128 (compare_range_with_value): Likewise.
129 (vrp_valueize): Adjust.
130 (vrp_valueize_1): Likewise.
131 (vr_values::get_vr_for_comparison): Return a const value_range *.
132 (vr_values::compare_name_with_value): Adjust.
133 (vr_values::compare_names): Likewise.
134 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
136 (vr_values::vrp_evaluate_conditional): Likewise.
137 (find_case_label_ranges): Take a const value_range *.
138 (vr_values::vrp_visit_switch_stmt): Adjust.
139 (vr_values::extract_range_from_phi_node): Likewise.
140 (vr_values::simplify_div_or_mod_using_ran): Likewise.
141 (vr_values::simplify_abs_using_ranges): Likewise.
142 (test_for_singularity): Take a const value_range *.
143 (range_fits_type_p): Likewise.
144 (vr_values::simplify_cond_using_ranges_1): Adjust.
145 (vr_values::simplify_cond_using_ranges_2): Likewise.
146 (vr_values::simplify_switch_using_ranges): Likewise.
147 (vr_values::simplify_float_conversion_usi): Likewise.
148 (vr_values::two_valued_val_range_p): Likewise.
149 * vr-values.h (vr_values::get_value_range): Return a const
151 (vr_values::set_def_to_varying): New.
152 (vr_values::get_lattice_entry): New private method.
153 (vr_values::get_vr_for_comparison): Return a const value_range *.
155 2019-07-25 Martin Liska <mliska@suse.cz>
156 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
159 * common.opt: Add -fallocation-dce
160 * gimple.c (gimple_call_operator_delete_p): New.
161 * gimple.h (gimple_call_operator_delete_p): Likewise.
162 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
163 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
164 DECL_IS_OPERATOR_DELETE_P.
165 (mark_all_reaching_defs_necessary_1): Likewise.
166 (propagate_necessity): Likewise.
167 (eliminate_unnecessary_stmts): Handle
168 gimple_call_operator_delete_p.
169 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
170 Add packing of OPERATOR_DELETE.
171 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
173 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
174 (DECL_SET_IS_OPERATOR_DELETE): New.
175 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
177 2019-07-25 Martin Liska <mliska@suse.cz>
179 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
180 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
181 * coverage.c (coverage_begin_function): Likewise.
182 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
183 * gimple.c (gimple_call_nonnull_result_p): Likewise.
184 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
185 (sem_item::hash_referenced_symbol_properties): Likewise.
186 * lto-streamer-out.c (hash_tree): Likewise.
187 * predict.c (expr_expected_value_1): Likewise.
188 * tree-inline.c (expand_call_inline): Likewise.
189 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
190 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
191 * tree-core.h (enum function_decl_type): New enum.
192 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
193 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
194 (set_function_decl_type): Likewise.
195 (DECL_IS_OPERATOR_NEW_P): New.
196 (DECL_SET_IS_OPERATOR_NEW): Likewise.
197 (DECL_LAMBDA_FUNCTION): Likewise.
198 (DECL_LAMBDA_FUNCTION_P): Likewise.
199 (DECL_IS_OPERATOR_NEW): Remove.
200 (DECL_SET_LAMBDA_FUNCTION): Likewise.
202 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
204 * ipa-profile.c (get_most_common_single_value): Use
205 get_nth_most_common_value.
206 * profile.c (sort_hist_value): New function.
207 (compute_value_histograms): Call sort_hist_value to sort the
208 values after loading from disk.
209 * value-prof.c (get_most_common_single_value): Rename to ...
210 get_nth_most_common_value. Add input params n, return
211 the n_th value and count.
212 (gimple_divmod_fixed_value_transform): Use
213 get_nth_most_common_value.
214 (gimple_ic_transform): Likewise.
215 (gimple_stringops_transform): Likewise.
216 * value-prof.h (get_most_common_single_value): Add input params
219 2019-07-25 Richard Biener <rguenther@suse.de>
221 PR tree-optimization/91236
222 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
223 size of CONSTRUCTOR write. Fix buffer size we pass to
226 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
228 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
229 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
232 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
234 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
235 explicitly disabled with --disable-initfini-array.
237 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
239 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
242 2019-07-24 Martin Sebor <msebor@redhat.com>
244 PR tree-optimization/91183
245 PR tree-optimization/86688
246 * builtins.c (compute_objsize): Handle MEM_REF.
247 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
248 (get_min_string_length): Remove.
249 (count_nonzero_bytes): New function.
250 (handle_char_store): Rename...
251 (handle_store): to this. Handle multibyte stores via integer types.
252 (strlen_check_and_optimize_stmt): Adjust conditional and the called
255 2019-07-24 Martin Sebor <msebor@redhat.com>
258 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
259 (diagnostic_report_diagnostic): Same.
260 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
261 (diagnostic_context::lang_mask): New data member.
262 * ipa-pure-const.c (suggest_attribute): Use
263 lang_hooks.option_lang_mask ().
264 * opts-common.c (option_enabled): Handle new argument.
265 (get_option_state): Pass an additional argument.
266 * opts.c (print_filtered_help): Print supported languages for
267 unsupported options. Adjust printing of current state.
268 * opts.h (option_enabled): Add argument.
269 * toplev.c (print_switch_values): Use lang_mask.
270 (general_init): Set global_dc->lang_mask.
272 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
275 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
277 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
279 * cgraphunit.c (symbol_table::compile): Start and stop
280 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
281 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
283 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
285 * gimplify.c (flag_instrument_functions_exclude_p): Include
286 namespace/class information in the printable name.
287 * opts.c (add_comma_separated_to_vector): Add NUL terminator
288 to tokens entered into the vector.
290 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
292 * tree-nested.c (build_simple_mem_ref_notrap): New function.
293 (get_static_chain): Call it instead of build_simple_mem_ref.
294 (get_frame_field): Likewise.
295 (get_nonlocal_debug_decl): Likewise.
296 (convert_nonlocal_reference_op): Likewise.
298 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
300 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
302 (arc_compute_frame_size): Millicode is disabled when compiling
304 (arc_return_address_register): Likewise.
305 (arc_compute_function_type): Likewise.
306 (arc_compute_frame_size): Likewise.
307 (secondary_reload_info): Likewise.
308 (arc_get_unalign): Likewise.
309 (arc_can_use_return_insn): Declare.
310 * config/arc/arc.c (AUX_LP_START): Define
311 (AUX_LP_END): Likewise.
312 (arc_frame_info): Update gmask member to 64-bit datum.
314 (arc_compute_function_type): Make it static, move it forward.
315 (arc_must_save_register): Update, consider the extra regs.
316 (arc_compute_millicode_save_restore_regs): Update to use the 64
318 (arc_compute_frame_size): Likewise.
319 (arc_enter_leave_p): Likewise.
320 (arc_save_callee_saves): Likewise.
321 (arc_restore_callee_saves): Likewise.
322 (arc_save_callee_enter): Likewise.
323 (arc_restore_callee_leave): Likewise.
324 (arc_save_callee_milli): Likewise.
325 (arc_restore_callee_milli): Likewise.
326 (arc_expand_prologue): Add new interrupt handling.
327 (arc_return_address_register): Make it static, move it forward.
328 (arc_expand_epilogue): Add new interrupt handling.
329 (arc_get_unalign): Delete.
330 (arc_epilogue_uses): Make sure we do not remove the extra
331 saved/restored registers when interrupt.
332 (arc_can_use_return_insn): New function.
333 (push_reg): Likewise.
335 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
337 (arc_restore_callee_saves): Likewise, but restoring.
338 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
359 (type): Add rtie attribute.
360 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
361 (movsi_insn): Accept moves to lp_count.
362 (rtie): Update pattern.
363 (simple_return): Simplify it, don't use this pattern as a return
365 (arc600_rtie): New pattern.
366 (p_return_i): Clean up.
368 * config/arc/builtins.def (rtie): Only available for non ARC6xx
370 * config/arc/predicates.md (move_src_operand): Consider lp_count
373 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
375 * config/s390/predicates.md (addv_const_operand): New predicate.
376 * config/s390/s390-modes.def (CCO): New condition code mode.
377 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
378 (s390_branch_condition_mask): Likewise.
379 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
380 ("mulv<mode>4"): New expanders.
381 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
382 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
385 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
388 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
389 (define_predicates): Add entry for uniform_vector_p.
390 (vec_same_elem_p): New match pattern.
392 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
395 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
396 * config/i386/darwin32-biarch.h .. to here.
397 * config/i386/darwin64-biarch.h: Adjust comments.
398 * config/rs6000/darwin32-biarch.h: Likewise.
399 * config/rs6000/darwin64-biarch.h: Likewise.
400 * config.gcc: Missed commit from r273746
401 (*-*-darwin*): Don't include CPU t-darwin here.
402 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
403 an error message if i686-darwin configuration is attempted for
406 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
409 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
410 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
411 an error message if i686-darwin configuration is attempted for
413 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
414 (powerpc-*-darwin*): Use biarch files where needed.
415 (powerpc64-*-darwin*): Likewise.
416 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
417 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
419 * config/i386/darwin32-biarch.h: New.
420 * config/i386/darwin64.h: Rename.
421 * gcc/config/i386/darwin64-biarch.h: To this.
422 * config/i386/t-darwin: Rename.
423 * gcc/config/i386/t-darwin32-biarch: To this.
424 * config/i386/t-darwin64: Rename.
425 * gcc/config/i386/t-darwin64-biarch: To this.
426 * config/rs6000/darwin32-biarch.h: New.
427 * config/rs6000/darwin64.h: Rename.
428 * config/rs6000/darwin64-biarch.h: To this.
429 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
431 * config/rs6000/t-darwin8: Rename.
432 * config/rs6000/t-darwin32-biarch: To this.
433 * config/rs6000/t-darwin64 Rename.
434 * config/rs6000/t-darwin64-biarch: To this.
436 2019-07-23 Martin Sebor <msebor@redhat.com>
438 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
440 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
442 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
443 (rh): New alias for it.
445 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
447 * gdbhooks.py: Pass replace=True to
448 gdb.printing.register_pretty_printer.
450 2019-07-23 Richard Biener <rguenther@suse.de>
453 * lto-streamer-in.c (input_function): Drop inline-entry markers
454 that ended up with an unknown location block.
456 2019-07-23 Richard Biener <rguenther@suse.de>
458 PR tree-optimization/83518
459 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
460 init from a constant even when partial defs are already recorded.
462 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
464 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
465 * config/i386/znver1.md: Enable patterns for znver2 and add store
466 variants which use extra AGU unit.
468 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
470 * config/i386/i386-options.c (ix86_option_override_internal): Default
471 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
472 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
475 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
477 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
478 (znver2_costs): Update 256 bit SSE costs and multiplication.
480 2019-07-23 Jan Beulich <jbeulich@suse.com>
482 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
483 Require only AVX512F.
484 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
485 alternative expanding to vpternlog.
487 2019-07-23 Martin Liska <mliska@suse.cz>
489 * dwarf2out.c (gen_producer_string): Canonize -flto=N
490 to -flto in dwarf producer string.
492 2019-07-23 Richard Biener <rguenther@suse.de>
494 * tree-cfg.c (label_for_bb): Remove global var.
495 (main_block_label): Take label_for_bb as argument.
496 (cleanup_dead_labels_eh): Likewise, adjust.
497 (cleanup_dead_labels): Adjust.
499 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
501 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
502 Configurations): Add documentation for __builtin_mtfsf.
504 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
506 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
507 * config/riscv/riscv.c (riscv_constant_alignment): Use
508 riscv_align_data_type.
509 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
510 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
511 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
512 * config/riscv/riscv.opt (malign-data): New.
513 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
515 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
517 * cgraph.c (dump_graphviz): New function.
518 * cgraph.h (dump_graphviz): New function.
519 * symtab.c (dump_graphviz): New function.
521 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
523 * config/aarch64/aarch64-simd.md
524 (*aarch64_simd_sra<mode>): New.
525 * config/aarch64/iterators.md
526 (SHIFTRT): New iterator.
527 (sra_op): New attribute.
529 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
531 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
532 callee-saved regs R4->R10 in an interrupt function that calls another
535 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
537 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
538 (_mm_blendv_epi8): New.
540 2019-07-22 Richard Biener <rguenther@suse.de>
542 PR tree-optimization/91221
543 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
544 restrict partial-def handling of empty constructors and
545 memset to refs with known offset.
547 2019-07-22 Jan Beulich <jbeulich@suse.com>
549 * config/i386/sse.md (ternlogsuffix): New.
550 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
552 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
554 2019-07-22 Martin Liska <mliska@suse.cz>
556 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
558 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
560 2019-07-22 Martin Liska <mliska@suse.cz>
562 * lto-section-in.c (lto_get_section_data):
563 Use new function get_compression.
564 * lto-streamer-out.c (produce_lto_section): Use
565 set_compression to encode compression algorithm.
566 * lto-streamer.h (struct lto_section): Do not
567 use bitfields in the format.
569 2019-07-22 Martin Liska <mliska@suse.cz>
572 * opts-common.c (decode_cmdline_option): Decode
573 argument of -Werror and check it for a wrong language.
574 * opts-global.c (complain_wrong_lang): Remove such case.
576 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
578 * config/arc/arc.c (prepare_move_operands): Always use an
579 intermediate register when storing a TLS symbols.
581 2019-07-22 Stafford Horne <shorne@gmail.com>
583 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
586 2019-07-22 Stafford Horne <shorne@gmail.com>
588 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
589 and munordered-float validations.
590 * config/or1k/constraints.md (d): New register constraint.
591 * config/or1k/predicates.md (fp_comparison_operator): New.
592 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
594 (or1k_expand_compare): Normalize unordered comparisons.
595 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
596 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
597 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
598 * config/or1k/or1k.md (type): Add fpu.
599 (fpu): New instruction reservation.
600 (F, f, fr, fi, FI, FOP, fop): New.
601 (<fop><F:mode>3): New ALU instruction definition.
602 (float<fi><F:mode>2): New conversion instruction definition.
603 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
604 (fpcmpcc): New code iterator.
605 (*sf_fp_insn): New instruction definition.
606 (cstore<F:mode>4): New expand definition.
607 (cbranch<F:mode>4): New expand definition.
608 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
609 munordered-float): New options.
610 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
613 2019-07-22 Stafford Horne <shorne@gmail.com>
615 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
616 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
617 documenation to be more clear.
618 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
620 * config/or1k/or1k.opt (mrori): New option.
621 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
622 msfimm, mshftimm): Rewrite documentation to be more clear.
623 * config/or1k/or1k.md (insn_support): Add ror and rori.
624 (enabled): Add conditions for ror and rori.
625 (rotrsi3): Replace condition for shftimm with ror and rori.
627 2019-07-22 Stafford Horne <shorne@gmail.com>
630 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
631 (extend<mode>si2): Update predicate.
632 * gcc/config/or1k/predicates.md (volatile_mem_operand): New.
633 (reg_or_mem_operand): New.
635 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
637 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
638 * config/rs6000/rs6000-call.c: ... to here.
640 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
642 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
645 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
647 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
649 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
651 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
653 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
655 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
656 (any_memory_operand): New predicate.
657 (reg_or_mem_operand): Use it.
659 2019-07-20 Jakub Jelinek <jakub@redhat.com>
662 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
664 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
666 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
667 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
669 2019-07-20 Jakub Jelinek <jakub@redhat.com>
671 * tree.def (OMP_LOOP): New tree code.
672 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
673 (enum omp_clause_bind_kind): New enum.
674 (struct tree_omp_clause): Add subcode.bind_kind.
675 * tree.h (OMP_LOOP_CHECK): Rename to ...
676 (OMP_LOOPING_CHECK): ... this.
677 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
678 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
679 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
680 (OMP_CLAUSE_BIND_KIND): Define.
681 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
683 (walk_tree_1): Handle OMP_CLAUSE_BIND.
684 * tree-pretty-print.c (dump_omp_clause): Likewise.
685 (dump_generic_node): Handle OMP_LOOP.
686 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
687 (in_omp_construct): New variable.
688 (is_gimple_stmt): Handle OMP_LOOP.
689 (gimplify_scan_omp_clauses): For lastprivate don't set
690 check_non_private if code == OMP_LOOP. For reduction clause
691 on OMP_LOOP combined with parallel or teams propagate as shared
692 on the combined construct. Handle OMP_CLAUSE_BIND.
693 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
694 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
695 for constructs from a loop construct to gimplify_scan_omp_clauses.
696 Don't predetermine iterator linear on OMP_SIMD from loop construct.
697 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
698 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
699 to match the implicit ORT_TARGET construct around whole body.
700 Temporarily clear in_omp_construct when processing body.
701 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
702 etc. temporarily set in_omp_construct when processing body.
703 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
704 * omp-low.c (struct omp_context): Add loop_p.
705 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
706 in that the original var might be private.
707 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
708 (check_omp_nesting_restrictions): Adjust nesting restrictions for
709 addition of loop construct.
710 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
712 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
713 lastprivate non-addressable iterator of a collapse(1) simd.
715 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
717 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
720 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
722 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
723 refer to default conditions. Warn for the 'y' spec which is ignored
726 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
728 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
729 cpu_supports_info, builtin_hash_struct, builtin_hasher,
730 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
731 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
732 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
733 init_cumulative_args, rs6000_promote_function_mode,
734 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
735 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
736 rs6000_function_arg_boundary, rs6000_parm_offset,
737 rs6000_parm_start, rs6000_arg_size,
738 rs6000_darwin64_record_arg_advance_flush,
739 rs6000_darwin64_record_arg_advance_recurse,
740 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
741 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
742 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
743 rs6000_mixed_function_arg, rs6000_psave_function_arg,
744 rs6000_finish_function_arg, rs6000_function_arg,
745 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
746 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
747 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
748 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
749 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
750 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
751 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
752 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
753 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
754 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
755 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
756 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
757 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
758 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
759 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
760 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
761 get_element_number, altivec_expand_vec_set_builtin,
762 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
763 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
764 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
765 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
766 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
767 rs6000_expand_builtin, rs6000_vector_type,
768 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
769 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
770 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
772 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
773 cpu_supports_info, builtin_hash_struct, builtin_hasher,
774 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
775 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
776 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
777 init_cumulative_args, rs6000_promote_function_mode,
778 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
779 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
780 rs6000_function_arg_boundary, rs6000_parm_offset,
781 rs6000_parm_start, rs6000_arg_size,
782 rs6000_darwin64_record_arg_advance_flush,
783 rs6000_darwin64_record_arg_advance_recurse,
784 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
785 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
786 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
787 rs6000_mixed_function_arg, rs6000_psave_function_arg,
788 rs6000_finish_function_arg, rs6000_function_arg,
789 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
790 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
791 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
792 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
793 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
794 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
795 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
796 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
797 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
798 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
799 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
800 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
801 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
802 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
803 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
804 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
805 get_element_number, altivec_expand_vec_set_builtin,
806 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
807 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
808 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
809 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
810 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
811 rs6000_expand_builtin, rs6000_vector_type,
812 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
813 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
814 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
815 to here from rs6000.c.
816 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
817 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
818 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
819 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
820 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
821 rs6000_return_in_memory, rs6000_return_in_msb,
822 rs6000_pass_by_reference, setup_incoming_varargs,
823 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
824 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
825 rs6000_function_arg_padding, rs6000_function_arg,
826 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
827 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
828 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
829 rs6000_passes_long_double, rs6000_passes_vector,
830 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
831 altivec_builtin_mask_for_load) Add declarations.
832 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
833 * config/config.gcc: Add new source file rs6000-call.c to garbage
834 collector and extra_objs.
836 2019-07-19 Jeff Law <law@redhat.com>
838 PR tree-optimization/86061
839 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
840 strncpy. Drop some trivial dead code.
841 (maybe_trim_memstar_call): Handle strncpy.
843 2019-07-19 Richard Biener <rguenther@suse.de>
845 PR tree-optimization/91211
846 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
847 memset encoding size.
849 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
852 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
854 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
857 * ipa-inline.c (recursive_inlining): Fix limits check.
859 2019-07-19 Richard Biener <rguenther@suse.de>
861 PR tree-optimization/91200
862 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
863 no PHI nodes in middle-bb.
865 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
867 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
869 * config/aarch64/aarch64-option-extensions.def: Likewise.
871 2019-07-19 Jakub Jelinek <jakub@redhat.com>
874 * function.c (insert_temp_slot_address): Store into the hash table
875 a copy of address to avoid RTL sharing issues.
877 2019-07-19 Richard Biener <rguenther@suse.de>
879 PR tree-optimization/91207
881 2019-07-17 Richard Biener <rguenther@suse.de>
883 PR tree-optimization/91178
884 * tree-vect-stmts.c (get_group_load_store_type): For SLP
885 loads with a gap larger than the vector size always use
887 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
888 avoid loading vectors that are only contained in the gap
889 and thus are not needed.
891 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
893 * config/i386/i386.md (*addqi_2_slp): Remove.
894 (*<code>qi_2_slp): Ditto.
896 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
898 * config/rs6000/predicates.md (prefixed_mem_operand): Call
899 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
900 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
901 Rename function from rs6000_prefixed_address.
902 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
904 (TARGET_TOC): Likewise.
905 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
907 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
909 (TARGET_TOC): Likewise.
910 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
912 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
914 (TARGET_TOC): Likewise.
915 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
916 check to require -mcmodel=medium for pc-relative addressing.
917 (create_TOC_reference): Add assertion for TARGET_TOC.
918 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
920 (rs6000_emit_move): Likewise.
921 (TOC_alias_set): Rename TOC alias set static variable from 'set'
923 (get_TOC_alias_set): Likewise.
924 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
926 (rs6000_can_eliminate): Likewise.
927 (rs6000_prefixed_address_mode_p): Rename function from
928 rs6000_prefixed_address.
929 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
930 TARGET_HAS_TOC and not pc-relative.
931 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
932 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
934 (TARGET_TOC): Likewise.
935 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
938 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
941 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
942 for operand 0. Do not use (match_dup) to match operand 1 with
943 operand 0. Add check in insn constraint that either input operand
944 matches operand 0. Use SWI12 mode iterator to also handle
946 (*and<mode>_1_slp): Ditto.
947 (*<code>qi_1_slp): Ditto.
948 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
949 Do not use (match_dup) to match operand 1 with operand 0. Add
950 check in insn constraint that operand 1 matches operand 0.
951 Use SWI12 mode iterator to also handle HImode operands.
952 (*ashl<mode>3_1_slp): Ditto.
953 (*<shift_insn><mode>3_1_slp): Ditto.
954 (*<rotate_insn><mode>3_1_slp): Ditto.
956 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
958 * config/arm/arm-builtins.c
959 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
960 (arm_expand_unop_builtin): Likewise.
961 * config/arm/crypto.md
962 (crypto_sha1h): Convert from define_insn to define_expand.
963 (crypto_<crypto_pattern>): Likewise.
964 (crypto_sha1h_lb): New define_insn.
965 (crypto_<crypto_pattern>_lb): Likewise.
967 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
970 * config/arm/arm_neon.h
971 (vsha1h_u32): Refactor.
972 (vsha1cq_u32): Likewise.
973 (vsha1pq_u32): Likewise.
974 (vsha1mq_u32): Likewise.
975 * config/arm/crypto.md:
976 (crypto_sha1h): Remove zero extend, correct vec select.
977 (crypto_sha1c): Correct vec select.
978 (crypto_sha1m): Likewise.
979 (crypto_sha1p): Likewise.
981 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
983 * config/arm/predicates.md (arm_borrow_operation): New predicate.
984 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
985 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
986 (subdi_zesidi_zesidi): Likewise.
987 (negdi2_compare, negdi2_insn): Likewise.
988 (negdi_extensidi): Likewise.
989 (negdi_zero_extendsidi): Likewise.
990 (arm_cmpdi_insn): Likewise.
991 (subsi3_carryin): Use arm_borrow_operation.
992 (subsi3_carryin_const): Likewise.
993 (subsi3_carryin_const0): Likewise.
994 (subsi3_carryin_compare): Likewise.
995 (subsi3_carryin_compare_const): Likewise.
996 (subsi3_carryin_compare_const0): Likewise.
997 (subsi3_carryin_shift): Likewise.
998 (rsbsi3_carryin_shift): Likewise.
999 (negsi2_carryin_compare): Likewise.
1001 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
1003 PR tree-optimization/91137
1004 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
1005 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
1006 Init, use and fini the above new field.
1007 (determine_base_object_1): New function.
1008 (determine_base_object): Reimplement using walk_tree.
1010 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
1012 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
1013 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
1014 CLEANUP_FORCE_FAST_DCE is set.
1015 * ifcvt.c (rest_of_handle_if_conversion): Pass
1016 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
1017 if-conversion succeeded.
1019 2019-07-18 Richard Biener <rguenther@suse.de>
1021 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
1022 branches to make code less indented.
1024 2019-07-17 Alexandre Oliva <oliva@adacore.com>
1027 * attribs.c (decls_mismatched_attributes): Simplify the logic
1028 that avoids duplicates and false positives.
1030 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
1032 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
1033 data into data section when generating PIC code.
1034 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
1035 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
1036 generating code for SOM targets earlier than HP-UX 11. Otherwise,
1037 return 2 for SOM and 0 for other targets.
1039 2019-07-17 Jeff Law <law@redhat.com>
1041 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
1042 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
1043 avoid unexpected switch statement fallthru.
1045 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
1047 * config/i386/i386.md (*add<dwi>3_doubleword):
1048 Remove redundant constraints.
1049 (*add<mode>_1): Ditto.
1052 (*addqi_1_slp): Ditto.
1053 (*add<mode>_2): Ditto.
1054 (*addv<mode>4): Ditto.
1055 (*sub<dwi>3_doubleword): Ditto.
1056 (*sub<mode>_1): Ditto.
1057 (*subqi_1_slp): Ditto.
1058 (*sub<mode>_2): Ditto.
1059 (*subv<mode>4): Ditto.
1060 (*sub<mode>_3): Ditto.
1061 (@add<mode>3_carry): Ditto.
1062 (@sub<mode>3_carry): Ditto.
1063 (*add<mode>3_cc_overflow_1): Ditto.
1064 (*add<mode>3_zext_cc_overflow_2): Ditto.
1066 (*and<mode>_1): Ditto.
1068 (*andqi_1_slp): Ditto.
1070 (*andqi_2_maybe_si): Ditto.
1071 (*and<mode>_2): Ditto.
1072 (*andqi_2_slp): Ditto.
1073 (*<code><mode>_1): Ditto.
1074 (*<code>qi_1): Ditto.
1075 (*<code>qi_1_slp): Ditto.
1076 (*<code><mode>_2): Ditto.
1077 (*<code>qi_2_slp): Ditto.
1079 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
1081 * alias.c (record_component_aliases): Do not simplify pointed-to
1084 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
1086 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
1087 partial reg stall on alternative 2.
1089 2019-07-17 Richard Biener <rguenther@suse.de>
1091 PR tree-optimization/91178
1092 * tree-ssa.c (release_defs_bitset): Iterate from higher to
1093 lower SSA names to avoid quadratic behavior in the common case.
1094 * tree-data-ref.c (split_constant_offset): Add limit argument
1095 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1096 (split_constant_offset_1): Add limit argument and use it to
1097 limit SSA def walking. Optimize the common plus/minus case.
1099 2019-07-17 Richard Biener <rguenther@suse.de>
1101 PR tree-optimization/91178
1102 * tree-vect-stmts.c (get_group_load_store_type): For SLP
1103 loads with a gap larger than the vector size always use
1105 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
1106 avoid loading vectors that are only contained in the gap
1107 and thus are not needed.
1109 2019-07-17 Richard Biener <rguenther@suse.de>
1111 PR tree-optimization/91180
1112 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
1113 computation for memset partial defs.
1115 2019-07-17 Jakub Jelinek <jakub@redhat.com>
1117 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
1118 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
1119 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
1120 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
1121 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
1122 * omp-grid.c (grid_process_grid_body,
1123 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
1124 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
1125 == GF_OMP_FOR_KIND_SIMD.
1126 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
1127 check_omp_nesting_restrictions, scan_omp_1_stmt,
1128 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
1129 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
1130 omp_find_scan): Likewise.
1131 * omp-expand.c (expand_omp_for): Likewise.
1132 * omp-general.c (omp_extract_for_data): Likewise.
1134 PR tree-optimization/91157
1135 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
1136 a vector boolean with scalar mode.
1137 (expand_vector_condition): Handle first operand being a vector boolean
1139 (expand_vector_operations_1): For comparisons, don't bail out early
1140 if the return type is vector boolean with scalar mode, but comparison
1141 operand type is not.
1143 2019-07-17 Richard Biener <rguenther@suse.de>
1145 PR tree-optimization/91181
1146 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
1149 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
1151 * config/i386/i386.md (*testdi_1): Match CCZmode for
1152 constants that might have the SImode sign bit set.
1153 (*testqi_1_maybe_si): Remove "!" constraint modifier.
1154 Use correct constraints for pentium pairing.
1155 (*test<mode>_1): Ditto.
1157 2019-07-16 Jeff Law <law@redhat.com>
1159 PR rtl-optimization/91173
1160 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
1161 SSA_NAME with a constant value, fold its value into the offset
1162 and clear the base before calling gen_addr_rtx.
1164 2019-07-16 Jakub Jelinek <jakub@redhat.com>
1166 PR rtl-optimization/91164
1167 * dse.c (rest_of_handle_dse): If dead edges have been purged,
1168 invalidate dominance info.
1170 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1172 * read-md.h (md_reader::record_potential_iterator_use): Add a
1173 file_location parameter.
1174 * read-rtl.c (attribute_use::loc): New field.
1175 (map_attr_string): Take a file_location parameter. Report cases
1176 in which attributes map to multiple distinct values.
1177 (apply_attribute_uses): Update call accordingly.
1178 (md_reader::handle_overloaded_name): Likewise.
1179 (md_reader::apply_iterator_to_string): Likewise. Skip empty
1181 (record_attribute_use): Take a file_location parameter.
1182 Initialize attribute_use::loc.
1183 (md_reader::record_potential_iterator_use): Take a file_location
1184 parameter. Update call to record_attribute_use.
1185 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
1186 (rtx_reader::read_rtx_code): Likewise.
1187 (rtx_reader::read_rtx_operand): Likewise. Record a location
1188 for implicitly-expanded empty strings.
1190 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1192 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
1193 Use file_location instead of separate fields.
1194 (md_reader::set_md_ptr_loc): Take a file_location instead of a
1195 separate filename and line number.
1196 * read-md.c (ptr_loc): As above.
1197 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
1198 (md_reader::fprint_md_ptr_loc): Likewise.
1199 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
1200 instead of a separate filename and line number.
1201 (md_reader::read_string): Update call accordingly.
1203 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1205 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
1206 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
1207 leaving the choice between SFDF and P implicit.
1208 (*mov<mode>_update2): Likewise.
1209 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
1210 rather than leaving the choice betweem IBM128 and GPR implicit.
1211 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
1212 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
1214 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
1215 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
1216 * config/rs6000/vsx.md
1217 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
1218 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
1219 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
1220 and VSX_EXTRACT_I implicit.
1222 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
1224 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
1225 Explicitly use <MOVEP1:MODE> for the mode attribute.
1227 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
1230 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
1232 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
1235 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
1238 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
1240 * config/i386/i386.md (@test<mode>_ccno_1):
1241 Rename from test<mode>_ccno_1.
1242 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
1243 (*testqi_1_maybe_si): Remove modrm attribute.
1244 (*test<mode>_1): Ditto.
1245 * config/i386/i386-expand.c (ix86_split_idivmod): Use
1246 gen_test_ccno_1 and gen_extend_insn.
1248 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
1250 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
1253 2019-07-15 Richard Biener <rguenther@suse.de>
1256 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
1257 node make sure to replace all uses with something valid.
1259 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
1261 PR tree-optimization/88497
1262 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
1263 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
1264 function undistribute_bitref_for_vector.
1265 (undistribute_bitref_for_vector): New function.
1266 (cleanup_vinfo_map): Likewise.
1267 (sort_by_mach_mode): Likewise.
1269 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
1271 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
1272 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
1273 and testdi_ccno_1 using SWI48 mode attribute.
1274 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
1275 x86_64_szext_general_operand.
1276 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
1277 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
1278 instead of genera_operand mode attribute.
1280 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
1282 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
1283 fopen and fclose to their respective types.
1284 (DotFn.invoke): Ditto.
1286 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
1288 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
1289 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
1290 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
1291 (array_index_predicate): Remove.
1292 (analyze_function_body): Account cost for variable ofsetted array
1294 (estimate_node_size_and_time): Do not compute array index hint.
1295 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
1296 (inline_read_section): Do not read array index hint.
1297 (ipa_fn_summary_write): Do not write array index hint.
1298 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
1299 * ipa-cp.c (hint_time_bonus): Remove.
1300 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
1301 (ipa_fnsummary): Remove array_index.
1302 * ipa-inline.c (want_inline_small_function_p): Do not use
1304 (edge_badness): Likewise.
1305 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
1307 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
1310 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
1311 superfluous "builtin function" phrasing.
1313 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
1315 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
1317 (aliasing_component_refs_walk): Break out from ...
1318 (aliasing_component_refs_p): ... here.
1320 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
1323 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
1324 "builtin function" phrasing.
1326 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1329 * recog.h (temporary_volatile_ok): New class.
1330 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
1331 volatile_ok temporarily to true using temporary_volatile_ok.
1332 * expr.c (emit_block_move_via_cpymem): Likewise.
1333 * optabs.c (maybe_legitimize_operand): Likewise.
1335 2019-07-13 Jakub Jelinek <jakub@redhat.com>
1337 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
1338 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
1339 uses inside of order(concurrent) constructs.
1340 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
1341 OMP_CLAUSE_ORDER is seen.
1342 * omp-low.c (struct omp_context): Add order_concurrent member.
1343 (scan_sharing_clauses): Set ctx->order_concurrent if
1344 OMP_CLAUSE_ORDER is seen.
1345 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
1346 of simd order(concurrent). Diagnose constructs not allowed inside of
1347 for order(concurrent).
1348 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
1349 complaining about static double setjmp (double); or class static
1350 methods or non-global namespace setjmps.
1351 (omp_runtime_api_call): New function.
1352 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
1353 order(concurrent) loops.
1355 2019-07-12 Martin Sebor <msebor@redhat.com>
1357 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
1358 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
1359 * tree-vrp.c (vrp_prop::check_mem_ref): Use
1360 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
1362 2019-07-12 Jan Hubicka <jh@suse.cz>
1364 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
1365 (indirect_refs_may_alias_p): ... here.
1366 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
1367 mem refs in the access paths.
1369 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
1371 PR tree-optimization/89430
1372 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
1373 store elimination for local variable without address escape.
1375 2019-07-12 Jeff Law <law@redhat.com>
1377 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
1378 for the ".far" section.
1380 2019-07-12 Richard Biener <rguenther@suse.de>
1382 PR tree-optimization/91145
1383 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
1386 2019-07-12 Alexandre Oliva <oliva@adacore.com>
1388 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
1389 rather than this_state as the lowering context for the ELSE
1390 seq in a GIMPLE_EH_ELSE.
1392 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1394 * vector-builder.h (vector_builder::elt): Allow already-supplied
1395 elements to be read back before building is complete.
1397 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
1399 PR rtl-optimization/91136
1400 * df-core.c (ACCESSING REFS): Fix typos in comment.
1401 * resource.c (mark_target_live_reg): Add artificial defs that occur at
1402 the beginning of the block to the initial set of live registers.
1404 2019-07-12 Richard Biener <rguenther@suse.de>
1406 * fold-const.h (get_array_ctor_element_at_index): Adjust.
1407 * fold-const.c (get_array_ctor_element_at_index): Add
1408 ctor_idx output parameter informing the caller where in
1409 the constructor the element was (not) found. Add early exit
1410 for when the ctor is sorted.
1411 * gimple-fold.c (fold_array_ctor_reference): Support constant
1412 folding across multiple array elements.
1414 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
1416 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
1417 doesn't have location, set the current location to the function's end.
1419 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1421 * config/aarch64/aarch64.md (*compare_condjump<mode>)
1422 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
1423 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
1424 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
1425 * config/aarch64/aarch64-simd.md
1426 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
1427 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
1428 * config/aarch64/aarch64-sve.md
1429 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
1430 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
1432 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
1434 * doc/md.texi: Document that @ patterns can have different
1435 numbers of operands.
1436 * genemit.c (handle_overloaded_gen): Handle this case.
1437 * genopinit.c (handle_overloaded_gen): Likewise.
1438 * gensupport.c (replace_operands_with_dups): Iterate over
1439 the new rtx's format rather than the old one's.
1441 2019-07-12 Jakub Jelinek <jakub@redhat.com>
1443 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
1444 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1445 order clause entries.
1446 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
1447 * tree-pretty-print.c (dump_omp_clause): Likewise.
1448 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
1450 * omp-low.c (scan_sharing_clauses): Likewise.
1451 * tree-nested.c (convert_nonlocal_omp_clauses,
1452 convert_local_omp_clauses): Likewise.
1454 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
1456 * gcc/cfgrtl.c (print_rtl_with_bb): Emit a hint if the
1457 fallthrough target of current basic block isn't the placed
1460 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
1463 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
1464 (_mm512_storeu_epi64): Likewise.
1465 (_mm512_loadu_epi32): Likewise.
1466 (_mm512_storeu_epi32): Likewise.
1467 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
1468 (_mm_storeu_epi64): Likewise.
1469 (_mm256_storeu_epi32): Likewise.
1470 (_mm_storeu_epi32): Likewise.
1472 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
1474 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
1476 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
1478 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
1481 2019-07-11 Jakub Jelinek <jakub@redhat.com>
1484 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
1485 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
1486 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
1487 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
1488 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
1489 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
1491 (ufix_truncv2dfv2si2<mask_name>): Change into ...
1492 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
1493 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
1495 (sse2_cvttpd2dq<mask_name>): Change into ...
1496 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
1497 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
1498 (*sse2_cvtpd2dq<mask_name>): Change into ...
1499 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
1500 Add "C" constraint to const0_operand.
1501 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
1502 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
1506 * config/i386/i386-builtin-types.def
1507 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
1508 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
1509 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
1510 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
1511 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
1512 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
1513 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
1514 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
1515 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
1516 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
1517 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
1518 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
1519 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
1520 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
1521 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
1522 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
1523 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
1524 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
1525 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
1526 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
1527 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
1528 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
1529 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
1530 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
1531 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
1532 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
1533 __builtin_ia32_vpdpbusd_v4si_maskz,
1534 __builtin_ia32_vpdpbusds_v16si_mask,
1535 __builtin_ia32_vpdpbusds_v16si_maskz,
1536 __builtin_ia32_vpdpbusds_v8si_mask,
1537 __builtin_ia32_vpdpbusds_v8si_maskz,
1538 __builtin_ia32_vpdpbusds_v4si_mask,
1539 __builtin_ia32_vpdpbusds_v4si_maskz,
1540 __builtin_ia32_vpdpwssd_v16si_mask,
1541 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
1542 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
1543 __builtin_ia32_vpdpwssd_v4si_maskz,
1544 __builtin_ia32_vpdpwssds_v16si_mask,
1545 __builtin_ia32_vpdpwssds_v16si_maskz,
1546 __builtin_ia32_vpdpwssds_v8si_mask,
1547 __builtin_ia32_vpdpwssds_v8si_maskz,
1548 __builtin_ia32_vpdpwssds_v4si_mask,
1549 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
1550 suffixed types rather than *_INT.
1551 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
1552 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
1553 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
1554 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
1555 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
1556 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
1558 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
1560 * tree-vrp.c (intersect_ranges): If we know the intersection is
1561 empty, there is no need to conservatively add anything else to
1564 2019-07-11 Richard Biener <rguenther@suse.de>
1567 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
1568 when the object is volatile and we have not cleared it even though
1569 there are no nonzero elements.
1571 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
1573 * config/rs6000/predicates.md (cint34_operand): Update
1574 SIGNED_34BIT_OFFSET_P call.
1575 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
1576 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
1577 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
1578 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
1579 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
1581 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
1582 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
1583 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
1584 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
1585 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
1587 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
1589 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
1590 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
1591 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
1592 (DEF_MIN_OSX_VERSION): New.
1594 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
1596 * fold-const.c (fold_relational_const): Fix folding of
1597 vector-to-scalar NE_EXPRs.
1598 (test_vector_folding): Add more tests.
1600 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
1603 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
1604 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
1605 (vec_setv2di_internal): Reexpress as...
1606 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
1607 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
1608 rather than gen_neon_vset_lane<mode>.
1610 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
1613 * lra-constraints.c (process_alt_operands): Don't match user
1614 defined regs only if they are early clobbers.
1616 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
1618 * wide-int.h (wi::lshift): Reject negative values for the fast path.
1620 2019-07-10 Richard Biener <rguenther@suse.de>
1622 PR tree-optimization/91126
1623 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
1624 native encoding offset for BYTES_BIG_ENDIAN.
1625 (vn_reference_lookup_3): Likewise.
1627 2019-07-10 Richard Biener <rguenther@suse.de>
1629 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
1630 LHS whenever possible.
1632 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
1634 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
1635 from ...; work also on duplicated types.
1636 (nonoverlapping_component_refs_since_match): ... here
1637 (ncr_type_uid): Break out from ...
1638 (ncr_compar): ... here; look for TYPE_UID of canonical type if
1640 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
1641 the types and nonoverlapping_component_refs_p_1 to disambiguate.
1643 2019-07-09 Martin Sebor <msebor@redhat.com>
1645 PR tree-optimization/90989
1646 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
1647 optimization to just single character stores.
1649 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
1651 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
1652 Swap operands only once.
1654 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1656 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
1657 for both call instructions.
1659 2019-07-09 John Darrington <john@darrington.wattle.id.au>
1661 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
1662 rather than GET_MODE_BITSIZE to better handle partial integer modes.
1664 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
1666 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
1667 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
1668 function from rs6000-logue.c back to rs6000.c.
1669 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
1671 2019-07-09 Martin Sebor <msebor@redhat.com>
1674 * auto-profile.c: Change class-key of PODs to struct and others
1676 * basic-block.h: Same.
1677 * bitmap.c (bitmap_alloc): Same.
1679 * builtins.c (expand_builtin_prefetch): Same.
1680 (expand_builtin_interclass_mathfn): Same.
1681 (expand_builtin_strlen): Same.
1682 (expand_builtin_mempcpy_args): Same.
1683 (expand_cmpstr): Same.
1684 (expand_builtin___clear_cache): Same.
1685 (expand_ifn_atomic_bit_test_and): Same.
1686 (expand_builtin_thread_pointer): Same.
1687 (expand_builtin_set_thread_pointer): Same.
1688 * caller-save.c (setup_save_areas): Same.
1689 (replace_reg_with_saved_mem): Same.
1690 (insert_restore): Same.
1691 (insert_save): Same.
1692 (add_used_regs): Same.
1693 * cfg.c (get_bb_copy): Same.
1694 (set_loop_copy): Same.
1697 * cfgexpand.c (alloc_stack_frame_space): Same.
1698 (add_stack_var): Same.
1699 (add_stack_var_conflict): Same.
1700 (add_scope_conflicts_1): Same.
1701 (update_alias_info_with_stack_vars): Same.
1702 (expand_used_vars): Same.
1703 * cfghooks.c (redirect_edge_and_branch_force): Same.
1704 (delete_basic_block): Same.
1706 (make_forwarder_block): Same.
1707 (force_nonfallthru): Same.
1708 (duplicate_block): Same.
1709 (lv_flush_pending_stmts): Same.
1711 * cfgloop.c (flow_loops_cfg_dump): Same.
1712 (flow_loop_nested_p): Same.
1713 (superloop_at_depth): Same.
1714 (get_loop_latch_edges): Same.
1715 (flow_loop_dump): Same.
1716 (flow_loops_dump): Same.
1717 (flow_loops_free): Same.
1718 (flow_loop_nodes_find): Same.
1719 (establish_preds): Same.
1720 (flow_loop_tree_node_add): Same.
1721 (flow_loop_tree_node_remove): Same.
1722 (flow_loops_find): Same.
1723 (find_subloop_latch_edge_by_profile): Same.
1724 (find_subloop_latch_edge_by_ivs): Same.
1725 (mfb_redirect_edges_in_set): Same.
1726 (form_subloop): Same.
1727 (merge_latch_edges): Same.
1728 (disambiguate_multiple_latches): Same.
1729 (disambiguate_loops_with_multiple_latches): Same.
1730 (flow_bb_inside_loop_p): Same.
1732 (get_loop_body_with_size): Same.
1733 (get_loop_body): Same.
1734 (fill_sons_in_loop): Same.
1735 (get_loop_body_in_dom_order): Same.
1736 (get_loop_body_in_custom_order): Same.
1737 (release_recorded_exits): Same.
1738 (get_loop_exit_edges): Same.
1739 (num_loop_branches): Same.
1740 (remove_bb_from_loops): Same.
1741 (find_common_loop): Same.
1742 (delete_loop): Same.
1743 (cancel_loop): Same.
1744 (verify_loop_structure): Same.
1745 (loop_preheader_edge): Same.
1746 (loop_exit_edge_p): Same.
1747 (single_exit): Same.
1748 (loop_exits_to_bb_p): Same.
1749 (loop_exits_from_bb_p): Same.
1750 (get_loop_location): Same.
1751 (record_niter_bound): Same.
1752 (get_estimated_loop_iterations_int): Same.
1753 (max_stmt_executions_int): Same.
1754 (likely_max_stmt_executions_int): Same.
1755 (get_estimated_loop_iterations): Same.
1756 (get_max_loop_iterations): Same.
1757 (get_max_loop_iterations_int): Same.
1758 (get_likely_max_loop_iterations): Same.
1759 * cfgloop.h (simple_loop_desc): Same.
1763 (loop_iterator::next): Same.
1764 (loop_outermost): Same.
1765 * cfgloopanal.c (mark_irreducible_loops): Same.
1766 (num_loop_insns): Same.
1767 (average_num_loop_insns): Same.
1768 (expected_loop_iterations_unbounded): Same.
1769 (expected_loop_iterations): Same.
1770 (mark_loop_exit_edges): Same.
1771 (single_likely_exit): Same.
1772 * cfgloopmanip.c (fix_bb_placement): Same.
1773 (fix_bb_placements): Same.
1774 (remove_path): Same.
1775 (place_new_loop): Same.
1777 (scale_loop_frequencies): Same.
1778 (scale_loop_profile): Same.
1779 (create_empty_if_region_on_edge): Same.
1780 (create_empty_loop_on_edge): Same.
1783 (fix_loop_placements): Same.
1784 (copy_loop_info): Same.
1785 (duplicate_loop): Same.
1786 (duplicate_subloops): Same.
1787 (loop_redirect_edge): Same.
1788 (can_duplicate_loop_p): Same.
1789 (duplicate_loop_to_header_edge): Same.
1790 (mfb_keep_just): Same.
1791 (has_preds_from_loop): Same.
1792 (create_preheader): Same.
1793 (create_preheaders): Same.
1794 (lv_adjust_loop_entry_edge): Same.
1795 (loop_version): Same.
1796 * cfgloopmanip.h: Same.
1798 * cgraphbuild.c: Same.
1799 * combine.c (make_extraction): Same.
1800 * config/i386/i386-features.c: Same.
1801 * config/i386/i386-features.h: Same.
1802 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
1803 (ix86_emit_outlined_ms2sysv_restore): Same.
1804 (ix86_noce_conversion_profitable_p): Same.
1805 (ix86_init_cost): Same.
1806 (ix86_simd_clone_usable): Same.
1807 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
1809 * coretypes.h: Same.
1810 * data-streamer-in.c (string_for_index): Change class-key of PODs
1811 to struct and others to class.
1812 (streamer_read_indexed_string): Same.
1813 (streamer_read_string): Same.
1814 (bp_unpack_indexed_string): Same.
1815 (bp_unpack_string): Same.
1816 (streamer_read_uhwi): Same.
1817 (streamer_read_hwi): Same.
1818 (streamer_read_gcov_count): Same.
1819 (streamer_read_wide_int): Same.
1820 * data-streamer.h (streamer_write_bitpack): Same.
1821 (bp_unpack_value): Same.
1822 (streamer_write_char_stream): Same.
1823 (streamer_write_hwi_in_range): Same.
1824 (streamer_write_record_start): Same.
1825 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
1826 (add_cross_iteration_register_deps): Same.
1827 (build_intra_loop_deps): Same.
1828 * df-core.c (df_analyze): Same.
1829 (loop_post_order_compute): Same.
1830 (loop_inverted_post_order_compute): Same.
1831 * df-problems.c (df_rd_alloc): Same.
1832 (df_rd_simulate_one_insn): Same.
1833 (df_rd_local_compute): Same.
1834 (df_rd_init_solution): Same.
1835 (df_rd_confluence_n): Same.
1836 (df_rd_transfer_function): Same.
1838 (df_rd_dump_defs_set): Same.
1839 (df_rd_top_dump): Same.
1840 (df_lr_alloc): Same.
1841 (df_lr_reset): Same.
1842 (df_lr_local_compute): Same.
1844 (df_lr_confluence_n): Same.
1846 (df_lr_top_dump): Same.
1847 (df_lr_verify_transfer_functions): Same.
1848 (df_live_alloc): Same.
1849 (df_live_reset): Same.
1850 (df_live_init): Same.
1851 (df_live_confluence_n): Same.
1852 (df_live_finalize): Same.
1853 (df_live_free): Same.
1854 (df_live_top_dump): Same.
1855 (df_live_verify_transfer_functions): Same.
1856 (df_mir_alloc): Same.
1857 (df_mir_reset): Same.
1858 (df_mir_init): Same.
1859 (df_mir_confluence_n): Same.
1860 (df_mir_free): Same.
1861 (df_mir_top_dump): Same.
1862 (df_word_lr_alloc): Same.
1863 (df_word_lr_reset): Same.
1864 (df_word_lr_init): Same.
1865 (df_word_lr_confluence_n): Same.
1866 (df_word_lr_free): Same.
1867 (df_word_lr_top_dump): Same.
1868 (df_md_alloc): Same.
1869 (df_md_simulate_one_insn): Same.
1870 (df_md_reset): Same.
1873 (df_md_top_dump): Same.
1874 * df-scan.c (df_insn_delete): Same.
1875 (df_insn_rescan): Same.
1876 (df_notes_rescan): Same.
1877 (df_sort_and_compress_mws): Same.
1878 (df_install_mws): Same.
1879 (df_refs_add_to_chains): Same.
1880 (df_ref_create_structure): Same.
1881 (df_ref_record): Same.
1882 (df_def_record_1): Same.
1883 (df_find_hard_reg_defs): Same.
1884 (df_uses_record): Same.
1885 (df_get_conditional_uses): Same.
1886 (df_get_call_refs): Same.
1887 (df_recompute_luids): Same.
1888 (df_get_entry_block_def_set): Same.
1889 (df_entry_block_defs_collect): Same.
1890 (df_get_exit_block_use_set): Same.
1891 (df_exit_block_uses_collect): Same.
1892 (df_mws_verify): Same.
1893 (df_bb_verify): Same.
1894 * df.h (df_scan_get_bb_info): Same.
1895 * doc/tm.texi: Same.
1896 * dse.c (record_store): Same.
1898 * emit-rtl.c (const_fixed_hasher::equal): Same.
1899 (set_mem_attributes_minus_bitpos): Same.
1900 (change_address): Same.
1901 (adjust_address_1): Same.
1902 (offset_address): Same.
1904 * except.c (dw2_build_landing_pads): Same.
1905 (sjlj_emit_dispatch_table): Same.
1906 * explow.c (allocate_dynamic_stack_space): Same.
1907 (emit_stack_probe): Same.
1908 (probe_stack_range): Same.
1909 * expmed.c (store_bit_field_using_insv): Same.
1910 (store_bit_field_1): Same.
1911 (store_integral_bit_field): Same.
1912 (extract_bit_field_using_extv): Same.
1913 (extract_bit_field_1): Same.
1914 (emit_cstore): Same.
1915 * expr.c (emit_block_move_via_cpymem): Same.
1916 (expand_cmpstrn_or_cmpmem): Same.
1917 (set_storage_via_setmem): Same.
1918 (emit_single_push_insn_1): Same.
1919 (expand_assignment): Same.
1920 (store_constructor): Same.
1921 (expand_expr_real_2): Same.
1922 (expand_expr_real_1): Same.
1925 * function.c (try_fit_stack_local): Same.
1926 (assign_stack_local_1): Same.
1927 (assign_stack_local): Same.
1928 (cut_slot_from_list): Same.
1929 (insert_slot_to_list): Same.
1930 (max_slot_level): Same.
1931 (move_slot_to_level): Same.
1932 (temp_address_hasher::equal): Same.
1933 (remove_unused_temp_slot_addresses): Same.
1934 (assign_temp): Same.
1935 (combine_temp_slots): Same.
1936 (update_temp_slot_address): Same.
1937 (preserve_temp_slots): Same.
1940 * gcc-rich-location.h: Same.
1942 * genattrtab.c (check_attr_test): Same.
1943 (check_attr_value): Same.
1944 (convert_set_attr_alternative): Same.
1945 (convert_set_attr): Same.
1947 (copy_boolean): Same.
1948 (get_attr_value): Same.
1949 (expand_delays): Same.
1950 (make_length_attrs): Same.
1952 (make_alternative_compare): Same.
1953 (simplify_test_exp): Same.
1954 (tests_attr_p): Same.
1955 (get_attr_order): Same.
1956 (clear_struct_flag): Same.
1958 (compares_alternatives_p): Same.
1961 (find_attrs_to_cache): Same.
1962 (write_test_expr): Same.
1963 (walk_attr_value): Same.
1964 (write_attr_get): Same.
1965 (eliminate_known_true): Same.
1966 (write_insn_cases): Same.
1967 (write_attr_case): Same.
1968 (write_attr_valueq): Same.
1969 (write_attr_value): Same.
1970 (write_dummy_eligible_delay): Same.
1971 (next_comma_elt): Same.
1973 (make_internal_attr): Same.
1974 (copy_rtx_unchanging): Same.
1975 (gen_insn_reserv): Same.
1976 (check_tune_attr): Same.
1977 (make_automaton_attrs): Same.
1979 * genextract.c (gen_insn): Same.
1980 (VEC_char_to_string): Same.
1981 * genmatch.c (print_operand): Same.
1983 (parser::parse_operation): Same.
1984 (parser::parse_capture): Same.
1985 (parser::parse_c_expr): Same.
1986 (parser::parse_simplify): Same.
1988 * genoutput.c (output_operand_data): Same.
1989 (output_get_insn_name): Same.
1990 (compare_operands): Same.
1991 (place_operands): Same.
1992 (process_template): Same.
1993 (validate_insn_alternatives): Same.
1994 (validate_insn_operands): Same.
1996 (note_constraint): Same.
1997 * genpreds.c (write_one_predicate_function): Same.
1998 (add_constraint): Same.
1999 (process_define_register_constraint): Same.
2000 (write_lookup_constraint_1): Same.
2001 (write_lookup_constraint_array): Same.
2002 (write_insn_constraint_len): Same.
2003 (write_reg_class_for_constraint_1): Same.
2004 (write_constraint_satisfied_p_array): Same.
2005 * genrecog.c (optimize_subroutine_group): Same.
2006 * gensupport.c (process_define_predicate): Same.
2007 (queue_pattern): Same.
2008 (remove_from_queue): Same.
2009 (process_rtx): Same.
2010 (is_predicable): Same.
2011 (change_subst_attribute): Same.
2012 (subst_pattern_match): Same.
2013 (alter_constraints): Same.
2014 (alter_attrs_for_insn): Same.
2015 (shift_output_template): Same.
2016 (alter_output_for_subst_insn): Same.
2017 (process_one_cond_exec): Same.
2019 (process_define_cond_exec): Same.
2020 (mnemonic_htab_callback): Same.
2021 (gen_mnemonic_attr): Same.
2022 (read_md_rtx): Same.
2024 * gimple-loop-interchange.cc (dump_reduction): Same.
2025 (dump_induction): Same.
2026 (loop_cand::~loop_cand): Same.
2027 (free_data_refs_with_aux): Same.
2028 (tree_loop_interchange::interchange_loops): Same.
2029 (tree_loop_interchange::map_inductions_to_loop): Same.
2030 (tree_loop_interchange::move_code_to_inner_loop): Same.
2031 (compute_access_stride): Same.
2032 (compute_access_strides): Same.
2033 (proper_loop_form_for_interchange): Same.
2034 (tree_loop_interchange_compute_ddrs): Same.
2035 (prune_datarefs_not_in_loop): Same.
2036 (prepare_data_references): Same.
2037 (pass_linterchange::execute): Same.
2038 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
2039 (unroll_jam_possible_p): Same.
2041 (adjust_unroll_factor): Same.
2042 (tree_loop_unroll_and_jam): Same.
2043 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
2044 (loop_versioning::expensive_stmt_p): Same.
2045 (loop_versioning::version_for_unity): Same.
2046 (loop_versioning::dump_inner_likelihood): Same.
2047 (loop_versioning::find_per_loop_multiplication): Same.
2048 (loop_versioning::analyze_term_using_scevs): Same.
2049 (loop_versioning::record_address_fragment): Same.
2050 (loop_versioning::analyze_expr): Same.
2051 (loop_versioning::analyze_blocks): Same.
2052 (loop_versioning::prune_conditions): Same.
2053 (loop_versioning::merge_loop_info): Same.
2054 (loop_versioning::add_loop_to_queue): Same.
2055 (loop_versioning::decide_whether_loop_is_versionable): Same.
2056 (loop_versioning::make_versioning_decisions): Same.
2057 (loop_versioning::implement_versioning_decisions): Same.
2058 * gimple-ssa-evrp-analyze.c
2059 (evrp_range_analyzer::record_ranges_from_phis): Same.
2060 * gimple-ssa-store-merging.c (split_store::split_store): Same.
2061 (count_multiple_uses): Same.
2062 (split_group): Same.
2063 (imm_store_chain_info::output_merged_store): Same.
2064 (pass_store_merging::process_store): Same.
2065 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
2066 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
2068 (alloca_call_type): Same.
2069 (pass_walloca::execute): Same.
2070 * gimple-streamer-in.c (input_phi): Same.
2071 (input_gimple_stmt): Same.
2072 * gimple-streamer.h: Same.
2073 * godump.c (go_force_record_alignment): Same.
2074 (go_format_type): Same.
2075 (go_output_type): Same.
2076 (go_output_fndecl): Same.
2077 (go_output_typedef): Same.
2078 (keyword_hash_init): Same.
2079 (find_dummy_types): Same.
2080 * graph.c (draw_cfg_nodes_no_loops): Same.
2081 (draw_cfg_nodes_for_loop): Same.
2082 * hard-reg-set.h (hard_reg_set_iter_next): Same.
2084 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
2085 * hsa-dump.c (dump_hsa_cfun): Same.
2086 * hsa-gen.c (gen_function_def_parameters): Same.
2087 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
2088 * input.c (dump_line_table_statistics): Same.
2091 * internal-fn.c (get_multi_vector_move): Same.
2092 (expand_load_lanes_optab_fn): Same.
2093 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
2094 (expand_GOMP_SIMT_EXIT): Same.
2095 (expand_GOMP_SIMT_LAST_LANE): Same.
2096 (expand_GOMP_SIMT_ORDERED_PRED): Same.
2097 (expand_GOMP_SIMT_VOTE_ANY): Same.
2098 (expand_GOMP_SIMT_XCHG_BFLY): Same.
2099 (expand_GOMP_SIMT_XCHG_IDX): Same.
2100 (expand_addsub_overflow): Same.
2101 (expand_neg_overflow): Same.
2102 (expand_mul_overflow): Same.
2103 (expand_call_mem_ref): Same.
2104 (expand_mask_load_optab_fn): Same.
2105 (expand_scatter_store_optab_fn): Same.
2106 (expand_gather_load_optab_fn): Same.
2107 * ipa-cp.c (ipa_get_parm_lattices): Same.
2108 (print_all_lattices): Same.
2109 (ignore_edge_p): Same.
2110 (build_toporder_info): Same.
2111 (free_toporder_info): Same.
2112 (push_node_to_stack): Same.
2113 (ipcp_lattice<valtype>::set_contains_variable): Same.
2114 (set_agg_lats_to_bottom): Same.
2115 (ipcp_bits_lattice::meet_with): Same.
2116 (set_single_call_flag): Same.
2117 (initialize_node_lattices): Same.
2118 (ipa_get_jf_ancestor_result): Same.
2119 (ipcp_verify_propagated_values): Same.
2120 (propagate_scalar_across_jump_function): Same.
2121 (propagate_context_across_jump_function): Same.
2122 (propagate_bits_across_jump_function): Same.
2123 (ipa_vr_operation_and_type_effects): Same.
2124 (propagate_vr_across_jump_function): Same.
2125 (set_check_aggs_by_ref): Same.
2126 (set_chain_of_aglats_contains_variable): Same.
2127 (merge_aggregate_lattices): Same.
2128 (agg_pass_through_permissible_p): Same.
2129 (propagate_aggs_across_jump_function): Same.
2130 (call_passes_through_thunk_p): Same.
2131 (propagate_constants_across_call): Same.
2132 (devirtualization_time_bonus): Same.
2133 (good_cloning_opportunity_p): Same.
2134 (context_independent_aggregate_values): Same.
2135 (gather_context_independent_values): Same.
2136 (perform_estimation_of_a_value): Same.
2137 (estimate_local_effects): Same.
2138 (value_topo_info<valtype>::add_val): Same.
2139 (add_all_node_vals_to_toposort): Same.
2140 (value_topo_info<valtype>::propagate_effects): Same.
2141 (ipcp_propagate_stage): Same.
2142 (ipcp_discover_new_direct_edges): Same.
2143 (same_node_or_its_all_contexts_clone_p): Same.
2144 (cgraph_edge_brings_value_p): Same.
2145 (gather_edges_for_value): Same.
2146 (create_specialized_node): Same.
2147 (find_more_scalar_values_for_callers_subset): Same.
2148 (find_more_contexts_for_caller_subset): Same.
2149 (copy_plats_to_inter): Same.
2150 (intersect_aggregates_with_edge): Same.
2151 (find_aggregate_values_for_callers_subset): Same.
2152 (cgraph_edge_brings_all_agg_vals_for_node): Same.
2153 (decide_about_value): Same.
2154 (decide_whether_version_node): Same.
2155 (spread_undeadness): Same.
2156 (identify_dead_nodes): Same.
2157 (ipcp_store_vr_results): Same.
2158 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
2159 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
2160 (redirect_to_unreachable): Same.
2161 (edge_set_predicate): Same.
2162 (evaluate_conditions_for_known_args): Same.
2163 (evaluate_properties_for_edge): Same.
2164 (ipa_fn_summary_t::duplicate): Same.
2165 (ipa_call_summary_t::duplicate): Same.
2166 (dump_ipa_call_summary): Same.
2167 (ipa_dump_fn_summary): Same.
2168 (eliminated_by_inlining_prob): Same.
2169 (set_cond_stmt_execution_predicate): Same.
2170 (set_switch_stmt_execution_predicate): Same.
2171 (compute_bb_predicates): Same.
2172 (will_be_nonconstant_expr_predicate): Same.
2173 (phi_result_unknown_predicate): Same.
2174 (analyze_function_body): Same.
2175 (compute_fn_summary): Same.
2176 (estimate_edge_devirt_benefit): Same.
2177 (estimate_edge_size_and_time): Same.
2178 (estimate_calls_size_and_time): Same.
2179 (estimate_node_size_and_time): Same.
2180 (remap_edge_change_prob): Same.
2181 (remap_edge_summaries): Same.
2182 (ipa_merge_fn_summary_after_inlining): Same.
2183 (ipa_fn_summary_generate): Same.
2184 (inline_read_section): Same.
2185 (ipa_fn_summary_read): Same.
2186 (ipa_fn_summary_write): Same.
2187 * ipa-fnsummary.h: Same.
2188 * ipa-hsa.c (ipa_hsa_read_section): Same.
2189 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
2190 * ipa-icf.c (sem_function::param_used_p): Same.
2191 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
2192 * ipa-inline.c (edge_badness): Same.
2193 (inline_small_functions): Same.
2194 * ipa-polymorphic-call.c
2195 (ipa_polymorphic_call_context::stream_out): Same.
2196 * ipa-predicate.c (predicate::remap_after_duplication): Same.
2197 (predicate::remap_after_inlining): Same.
2198 (predicate::stream_out): Same.
2199 * ipa-predicate.h: Same.
2200 * ipa-profile.c (ipa_profile_read_summary): Same.
2201 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
2202 (count_formal_params): Same.
2203 (ipa_dump_param): Same.
2204 (ipa_alloc_node_params): Same.
2205 (ipa_print_node_jump_functions_for_edge): Same.
2206 (ipa_print_node_jump_functions): Same.
2207 (ipa_load_from_parm_agg): Same.
2208 (get_ancestor_addr_info): Same.
2209 (ipa_compute_jump_functions_for_edge): Same.
2210 (ipa_analyze_virtual_call_uses): Same.
2211 (ipa_analyze_stmt_uses): Same.
2212 (ipa_analyze_params_uses_in_bb): Same.
2213 (update_jump_functions_after_inlining): Same.
2214 (try_decrement_rdesc_refcount): Same.
2215 (ipa_impossible_devirt_target): Same.
2216 (update_indirect_edges_after_inlining): Same.
2217 (combine_controlled_uses_counters): Same.
2218 (ipa_edge_args_sum_t::duplicate): Same.
2219 (ipa_write_jump_function): Same.
2220 (ipa_write_indirect_edge_info): Same.
2221 (ipa_write_node_info): Same.
2222 (ipa_read_edge_info): Same.
2223 (ipa_prop_read_section): Same.
2224 (read_replacements_section): Same.
2225 * ipa-prop.h (ipa_get_param_count): Same.
2226 (ipa_get_param): Same.
2227 (ipa_get_type): Same.
2228 (ipa_get_param_move_cost): Same.
2229 (ipa_set_param_used): Same.
2230 (ipa_get_controlled_uses): Same.
2231 (ipa_set_controlled_uses): Same.
2232 (ipa_get_cs_argument_count): Same.
2233 * ipa-pure-const.c (analyze_function): Same.
2234 (pure_const_read_summary): Same.
2236 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
2237 * ipa-split.c (test_nonssa_use): Same.
2238 (dump_split_point): Same.
2239 (dominated_by_forbidden): Same.
2240 (split_part_set_ssa_name_p): Same.
2241 (find_split_points): Same.
2242 * ira-build.c (finish_loop_tree_nodes): Same.
2243 (low_pressure_loop_node_p): Same.
2244 * ira-color.c (ira_reuse_stack_slot): Same.
2246 * ira.c (setup_reg_equiv): Same.
2247 (print_insn_chain): Same.
2249 * loop-doloop.c (doloop_condition_get): Same.
2251 (record_reg_sets): Same.
2252 (doloop_optimize): Same.
2253 * loop-init.c (loop_optimizer_init): Same.
2254 (fix_loop_structure): Same.
2255 * loop-invariant.c (merge_identical_invariants): Same.
2256 (compute_always_reached): Same.
2258 (may_assign_reg_p): Same.
2259 (find_invariants_bb): Same.
2260 (find_invariants_body): Same.
2261 (replace_uses): Same.
2262 (can_move_invariant_reg): Same.
2263 (free_inv_motion_data): Same.
2264 (move_single_loop_invariants): Same.
2265 (change_pressure): Same.
2266 (mark_ref_regs): Same.
2267 (calculate_loop_reg_pressure): Same.
2268 * loop-iv.c (biv_entry_hasher::equal): Same.
2269 (iv_extend_to_rtx_code): Same.
2270 (check_iv_ref_table_size): Same.
2271 (clear_iv_info): Same.
2272 (latch_dominating_def): Same.
2273 (iv_get_reaching_def): Same.
2274 (iv_constant): Same.
2280 (get_biv_step): Same.
2282 (analyzed_for_bivness_p): Same.
2284 (iv_analyze_biv): Same.
2285 (iv_analyze_expr): Same.
2286 (iv_analyze_def): Same.
2287 (iv_analyze_op): Same.
2289 (iv_analyze_result): Same.
2291 (eliminate_implied_conditions): Same.
2292 (simplify_using_initial_values): Same.
2293 (shorten_into_mode): Same.
2294 (canonicalize_iv_subregs): Same.
2295 (determine_max_iter): Same.
2296 (check_simple_exit): Same.
2297 (find_simple_exit): Same.
2298 (get_simple_loop_desc): Same.
2299 * loop-unroll.c (report_unroll): Same.
2300 (decide_unrolling): Same.
2301 (unroll_loops): Same.
2302 (loop_exit_at_end_p): Same.
2303 (decide_unroll_constant_iterations): Same.
2304 (unroll_loop_constant_iterations): Same.
2305 (compare_and_jump_seq): Same.
2306 (unroll_loop_runtime_iterations): Same.
2307 (decide_unroll_stupid): Same.
2308 (unroll_loop_stupid): Same.
2309 (referenced_in_one_insn_in_loop_p): Same.
2310 (reset_debug_uses_in_loop): Same.
2311 (analyze_iv_to_split_insn): Same.
2312 * lra-eliminations.c (lra_debug_elim_table): Same.
2313 (setup_can_eliminate): Same.
2315 (lra_get_elimination_hard_regno): Same.
2316 (lra_eliminate_regs_1): Same.
2317 (eliminate_regs_in_insn): Same.
2318 (update_reg_eliminate): Same.
2319 (init_elimination): Same.
2320 (lra_eliminate): Same.
2322 * lra-lives.c (initiate_live_solver): Same.
2323 * lra-remat.c (create_remat_bb_data): Same.
2324 * lra-spills.c (lra_spill): Same.
2325 * lra.c (lra_set_insn_recog_data): Same.
2326 (lra_set_used_insn_alternative_by_uid): Same.
2327 (init_reg_info): Same.
2328 (expand_reg_info): Same.
2329 * lto-cgraph.c (output_symtab): Same.
2330 (read_identifier): Same.
2331 (get_alias_symbol): Same.
2333 (input_varpool_node): Same.
2336 (input_cgraph_1): Same.
2338 (input_symtab): Same.
2339 (input_offload_tables): Same.
2340 (output_cgraph_opt_summary): Same.
2341 (input_edge_opt_summary): Same.
2342 (input_cgraph_opt_section): Same.
2343 * lto-section-in.c (lto_free_raw_section_data): Same.
2344 (lto_create_simple_input_block): Same.
2345 (lto_free_function_in_decl_state_for_node): Same.
2346 * lto-streamer-in.c (lto_tag_check_set): Same.
2347 (lto_location_cache::revert_location_cache): Same.
2348 (lto_location_cache::input_location): Same.
2349 (lto_input_location): Same.
2350 (stream_input_location_now): Same.
2351 (lto_input_tree_ref): Same.
2352 (lto_input_eh_catch_list): Same.
2353 (input_eh_region): Same.
2354 (lto_init_eh): Same.
2355 (make_new_block): Same.
2357 (fixup_call_stmt_edges): Same.
2358 (input_struct_function_base): Same.
2359 (input_function): Same.
2360 (lto_read_body_or_constructor): Same.
2361 (lto_read_tree_1): Same.
2362 (lto_read_tree): Same.
2363 (lto_input_scc): Same.
2364 (lto_input_tree_1): Same.
2365 (lto_input_toplevel_asms): Same.
2366 (lto_input_mode_table): Same.
2367 (lto_reader_init): Same.
2368 (lto_data_in_create): Same.
2369 * lto-streamer-out.c (output_cfg): Same.
2370 * lto-streamer.h: Same.
2371 * modulo-sched.c (duplicate_insns_of_cycles): Same.
2372 (generate_prolog_epilog): Same.
2373 (mark_loop_unsched): Same.
2374 (dump_insn_location): Same.
2375 (loop_canon_p): Same.
2376 (sms_schedule): Same.
2377 * omp-expand.c (expand_omp_for_ordered_loops): Same.
2378 (expand_omp_for_generic): Same.
2379 (expand_omp_for_static_nochunk): Same.
2380 (expand_omp_for_static_chunk): Same.
2381 (expand_omp_simd): Same.
2382 (expand_omp_taskloop_for_inner): Same.
2383 (expand_oacc_for): Same.
2384 (expand_omp_atomic_pipeline): Same.
2385 (mark_loops_in_oacc_kernels_region): Same.
2386 * omp-offload.c (oacc_xform_loop): Same.
2387 * omp-simd-clone.c (simd_clone_adjust): Same.
2388 * optabs-query.c (get_traditional_extraction_insn): Same.
2389 * optabs.c (expand_vector_broadcast): Same.
2390 (expand_binop_directly): Same.
2391 (expand_twoval_unop): Same.
2392 (expand_twoval_binop): Same.
2393 (expand_unop_direct): Same.
2394 (emit_indirect_jump): Same.
2395 (emit_conditional_move): Same.
2396 (emit_conditional_neg_or_complement): Same.
2397 (emit_conditional_add): Same.
2398 (vector_compare_rtx): Same.
2399 (expand_vec_perm_1): Same.
2400 (expand_vec_perm_const): Same.
2401 (expand_vec_cond_expr): Same.
2402 (expand_vec_series_expr): Same.
2403 (maybe_emit_atomic_exchange): Same.
2404 (maybe_emit_sync_lock_test_and_set): Same.
2405 (expand_atomic_compare_and_swap): Same.
2406 (expand_atomic_load): Same.
2407 (expand_atomic_store): Same.
2408 (maybe_emit_op): Same.
2409 (valid_multiword_target_p): Same.
2410 (create_integer_operand): Same.
2411 (maybe_legitimize_operand_same_code): Same.
2412 (maybe_legitimize_operand): Same.
2413 (create_convert_operand_from_type): Same.
2414 (can_reuse_operands_p): Same.
2415 (maybe_legitimize_operands): Same.
2416 (maybe_gen_insn): Same.
2417 (maybe_expand_insn): Same.
2418 (maybe_expand_jump_insn): Same.
2419 (expand_insn): Same.
2420 * optabs.h (create_expand_operand): Same.
2421 (create_fixed_operand): Same.
2422 (create_output_operand): Same.
2423 (create_input_operand): Same.
2424 (create_convert_operand_to): Same.
2425 (create_convert_operand_from): Same.
2428 * predict.c (optimize_insn_for_speed_p): Same.
2429 (optimize_loop_for_size_p): Same.
2430 (optimize_loop_for_speed_p): Same.
2431 (optimize_loop_nest_for_speed_p): Same.
2432 (get_base_value): Same.
2433 (predicted_by_loop_heuristics_p): Same.
2434 (predict_extra_loop_exits): Same.
2435 (predict_loops): Same.
2436 (predict_paths_for_bb): Same.
2437 (predict_paths_leading_to): Same.
2438 (propagate_freq): Same.
2439 (pass_profile::execute): Same.
2441 * profile-count.c (profile_count::differs_from_p): Same.
2442 (profile_probability::differs_lot_from_p): Same.
2443 * profile-count.h: Same.
2444 * profile.c (branch_prob): Same.
2445 * regrename.c (free_chain_data): Same.
2446 (mark_conflict): Same.
2447 (create_new_chain): Same.
2448 (merge_overlapping_regs): Same.
2449 (init_rename_info): Same.
2450 (merge_chains): Same.
2451 (regrename_analyze): Same.
2452 (regrename_do_replace): Same.
2453 (scan_rtx_reg): Same.
2454 (record_out_operands): Same.
2455 (build_def_use): Same.
2456 * regrename.h: Same.
2458 * reload1.c (init_reload): Same.
2459 (maybe_fix_stack_asms): Same.
2460 (copy_reloads): Same.
2461 (count_pseudo): Same.
2462 (count_spilled_pseudo): Same.
2464 (find_reload_regs): Same.
2465 (select_reload_regs): Same.
2466 (spill_hard_reg): Same.
2467 (fixup_eh_region_note): Same.
2468 (set_reload_reg): Same.
2469 (allocate_reload_reg): Same.
2470 (compute_reload_subreg_offset): Same.
2471 (reload_adjust_reg_for_icode): Same.
2472 (emit_input_reload_insns): Same.
2473 (emit_output_reload_insns): Same.
2474 (do_input_reload): Same.
2475 (inherit_piecemeal_p): Same.
2477 * sanopt.c (maybe_get_dominating_check): Same.
2478 (maybe_optimize_ubsan_ptr_ifn): Same.
2479 (can_remove_asan_check): Same.
2480 (maybe_optimize_asan_check_ifn): Same.
2481 (sanopt_optimize_walker): Same.
2482 * sched-deps.c (add_dependence_list): Same.
2483 (chain_to_prev_insn): Same.
2484 (add_insn_mem_dependence): Same.
2485 (create_insn_reg_set): Same.
2486 (maybe_extend_reg_info_p): Same.
2487 (sched_analyze_reg): Same.
2488 (sched_analyze_1): Same.
2489 (get_implicit_reg_pending_clobbers): Same.
2490 (chain_to_prev_insn_p): Same.
2491 (deps_analyze_insn): Same.
2492 (deps_start_bb): Same.
2493 (sched_free_deps): Same.
2495 (init_deps_reg_last): Same.
2497 * sched-ebb.c: Same.
2498 * sched-int.h: Same.
2499 * sched-rgn.c (add_branch_dependences): Same.
2500 (concat_insn_mem_list): Same.
2502 (sched_rgn_compute_dependencies): Same.
2503 * sel-sched-ir.c (reset_target_context): Same.
2504 (copy_deps_context): Same.
2505 (init_id_from_df): Same.
2506 (has_dependence_p): Same.
2507 (change_loops_latches): Same.
2508 (bb_top_order_comparator): Same.
2509 (make_region_from_loop_preheader): Same.
2510 (sel_init_pipelining): Same.
2511 (get_loop_nest_for_rgn): Same.
2512 (make_regions_from_the_rest): Same.
2513 (sel_is_loop_preheader_p): Same.
2514 * sel-sched-ir.h (inner_loop_header_p): Same.
2515 (get_all_loop_exits): Same.
2517 * sese.c (sese_build_liveouts): Same.
2518 (sese_insert_phis_for_liveouts): Same.
2519 * sese.h (defined_in_sese_p): Same.
2520 * sreal.c (sreal::stream_out): Same.
2522 * streamer-hooks.h: Same.
2523 * target-globals.c (save_target_globals): Same.
2524 * target-globals.h: Same.
2527 * targhooks.c (default_has_ifunc_p): Same.
2528 (default_empty_mask_is_expensive): Same.
2529 (default_init_cost): Same.
2530 * targhooks.h: Same.
2532 * tree-affine.c (aff_combination_mult): Same.
2533 (aff_combination_expand): Same.
2534 (aff_combination_constant_multiple_p): Same.
2535 * tree-affine.h: Same.
2536 * tree-cfg.c (build_gimple_cfg): Same.
2537 (replace_loop_annotate_in_block): Same.
2538 (replace_uses_by): Same.
2540 (dump_cfg_stats): Same.
2541 (gimple_duplicate_sese_region): Same.
2542 (gimple_duplicate_sese_tail): Same.
2543 (move_block_to_fn): Same.
2544 (replace_block_vars_by_duplicates): Same.
2545 (move_sese_region_to_fn): Same.
2546 (print_loops_bb): Same.
2548 (print_loops): Same.
2550 (debug_loops): Same.
2552 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
2553 (chrec_fold_multiply_poly_poly): Same.
2554 (chrec_evaluate): Same.
2555 (chrec_component_in_loop_num): Same.
2556 (reset_evolution_in_loop): Same.
2557 (is_multivariate_chrec): Same.
2558 (chrec_contains_symbols): Same.
2559 (nb_vars_in_chrec): Same.
2560 (chrec_convert_1): Same.
2561 (chrec_convert_aggressive): Same.
2562 * tree-chrec.h: Same.
2563 * tree-core.h: Same.
2564 * tree-data-ref.c (dump_data_dependence_relation): Same.
2565 (canonicalize_base_object_address): Same.
2566 (data_ref_compare_tree): Same.
2567 (prune_runtime_alias_test_list): Same.
2568 (get_segment_min_max): Same.
2569 (create_intersect_range_checks): Same.
2570 (conflict_fn_no_dependence): Same.
2571 (object_address_invariant_in_loop_p): Same.
2572 (analyze_ziv_subscript): Same.
2573 (analyze_siv_subscript_cst_affine): Same.
2574 (analyze_miv_subscript): Same.
2575 (analyze_overlapping_iterations): Same.
2576 (build_classic_dist_vector_1): Same.
2577 (add_other_self_distances): Same.
2578 (same_access_functions): Same.
2579 (build_classic_dir_vector): Same.
2580 (subscript_dependence_tester_1): Same.
2581 (subscript_dependence_tester): Same.
2582 (access_functions_are_affine_or_constant_p): Same.
2583 (get_references_in_stmt): Same.
2584 (loop_nest_has_data_refs): Same.
2585 (graphite_find_data_references_in_stmt): Same.
2586 (find_data_references_in_bb): Same.
2587 (get_base_for_alignment): Same.
2588 (find_loop_nest_1): Same.
2589 (find_loop_nest): Same.
2590 * tree-data-ref.h (dr_alignment): Same.
2591 (ddr_dependence_level): Same.
2592 * tree-if-conv.c (fold_build_cond_expr): Same.
2593 (add_to_predicate_list): Same.
2594 (add_to_dst_predicate_list): Same.
2595 (phi_convertible_by_degenerating_args): Same.
2596 (idx_within_array_bound): Same.
2597 (all_preds_critical_p): Same.
2598 (pred_blocks_visited_p): Same.
2599 (predicate_bbs): Same.
2600 (build_region): Same.
2601 (if_convertible_loop_p_1): Same.
2602 (is_cond_scalar_reduction): Same.
2603 (predicate_scalar_phi): Same.
2604 (remove_conditions_and_labels): Same.
2605 (combine_blocks): Same.
2606 (version_loop_for_if_conversion): Same.
2607 (versionable_outer_loop_p): Same.
2608 (ifcvt_local_dce): Same.
2609 (tree_if_conversion): Same.
2610 (pass_if_conversion::gate): Same.
2611 * tree-if-conv.h: Same.
2612 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
2613 * tree-loop-distribution.c (bb_top_order_cmp): Same.
2615 (stmt_has_scalar_dependences_outside_loop): Same.
2616 (copy_loop_before): Same.
2617 (create_bb_after_loop): Same.
2618 (const_with_all_bytes_same): Same.
2619 (generate_memset_builtin): Same.
2620 (generate_memcpy_builtin): Same.
2621 (destroy_loop): Same.
2622 (build_rdg_partition_for_vertex): Same.
2623 (compute_access_range): Same.
2624 (data_ref_segment_size): Same.
2625 (latch_dominated_by_data_ref): Same.
2626 (compute_alias_check_pairs): Same.
2627 (fuse_memset_builtins): Same.
2628 (finalize_partitions): Same.
2629 (find_seed_stmts_for_distribution): Same.
2630 (prepare_perfect_loop_nest): Same.
2631 * tree-parloops.c (lambda_transform_legal_p): Same.
2632 (loop_parallel_p): Same.
2633 (reduc_stmt_res): Same.
2634 (add_field_for_name): Same.
2635 (create_call_for_reduction_1): Same.
2636 (replace_uses_in_bb_by): Same.
2637 (transform_to_exit_first_loop_alt): Same.
2638 (try_transform_to_exit_first_loop_alt): Same.
2639 (transform_to_exit_first_loop): Same.
2641 (gen_parallel_loop): Same.
2642 (gather_scalar_reductions): Same.
2643 (get_omp_data_i_param): Same.
2644 (try_create_reduction_list): Same.
2645 (oacc_entry_exit_single_gang): Same.
2646 (parallelize_loops): Same.
2647 * tree-pass.h: Same.
2648 * tree-predcom.c (determine_offset): Same.
2649 (last_always_executed_block): Same.
2650 (split_data_refs_to_components): Same.
2651 (suitable_component_p): Same.
2652 (valid_initializer_p): Same.
2653 (find_looparound_phi): Same.
2654 (insert_looparound_copy): Same.
2655 (add_looparound_copies): Same.
2656 (determine_roots_comp): Same.
2657 (predcom_tmp_var): Same.
2658 (initialize_root_vars): Same.
2659 (initialize_root_vars_store_elim_1): Same.
2660 (initialize_root_vars_store_elim_2): Same.
2661 (finalize_eliminated_stores): Same.
2662 (initialize_root_vars_lm): Same.
2663 (remove_stmt): Same.
2664 (determine_unroll_factor): Same.
2665 (execute_pred_commoning_cbck): Same.
2666 (base_names_in_chain_on): Same.
2667 (combine_chains): Same.
2668 (pcom_stmt_dominates_stmt_p): Same.
2669 (try_combine_chains): Same.
2670 (prepare_initializers_chain_store_elim): Same.
2671 (prepare_initializers_chain): Same.
2672 (prepare_initializers): Same.
2673 (prepare_finalizers_chain): Same.
2674 (prepare_finalizers): Same.
2675 (insert_init_seqs): Same.
2676 * tree-scalar-evolution.c (loop_phi_node_p): Same.
2677 (compute_overall_effect_of_inner_loop): Same.
2678 (add_to_evolution_1): Same.
2679 (add_to_evolution): Same.
2680 (follow_ssa_edge_binary): Same.
2681 (follow_ssa_edge_expr): Same.
2682 (backedge_phi_arg_p): Same.
2683 (follow_ssa_edge_in_condition_phi_branch): Same.
2684 (follow_ssa_edge_in_condition_phi): Same.
2685 (follow_ssa_edge_inner_loop_phi): Same.
2686 (follow_ssa_edge): Same.
2687 (analyze_evolution_in_loop): Same.
2688 (analyze_initial_condition): Same.
2689 (interpret_loop_phi): Same.
2690 (interpret_condition_phi): Same.
2691 (interpret_rhs_expr): Same.
2692 (interpret_expr): Same.
2693 (interpret_gimple_assign): Same.
2694 (analyze_scalar_evolution_1): Same.
2695 (analyze_scalar_evolution): Same.
2696 (analyze_scalar_evolution_for_address_of): Same.
2697 (get_instantiated_value_entry): Same.
2698 (loop_closed_phi_def): Same.
2699 (instantiate_scev_name): Same.
2700 (instantiate_scev_poly): Same.
2701 (instantiate_scev_binary): Same.
2702 (instantiate_scev_convert): Same.
2703 (instantiate_scev_not): Same.
2704 (instantiate_scev_r): Same.
2705 (instantiate_scev): Same.
2706 (resolve_mixers): Same.
2707 (initialize_scalar_evolutions_analyzer): Same.
2708 (scev_reset_htab): Same.
2710 (derive_simple_iv_with_niters): Same.
2711 (simple_iv_with_niters): Same.
2712 (expression_expensive_p): Same.
2713 (final_value_replacement_loop): Same.
2714 * tree-scalar-evolution.h (block_before_loop): Same.
2715 * tree-ssa-address.h: Same.
2716 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
2717 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
2718 (record_edge_info): Same.
2719 * tree-ssa-live.c (var_map_base_fini): Same.
2720 (remove_unused_locals): Same.
2721 * tree-ssa-live.h: Same.
2722 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
2723 (pass_ch_vect::execute): Same.
2724 (pass_ch::process_loop_p): Same.
2725 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
2726 (movement_possibility): Same.
2727 (outermost_invariant_loop): Same.
2729 (determine_max_movement): Same.
2730 (invariantness_dom_walker::before_dom_children): Same.
2731 (move_computations): Same.
2732 (may_move_till): Same.
2733 (force_move_till_op): Same.
2734 (force_move_till): Same.
2735 (memref_free): Same.
2736 (record_mem_ref_loc): Same.
2737 (set_ref_stored_in_loop): Same.
2738 (mark_ref_stored): Same.
2739 (sort_bbs_in_loop_postorder_cmp): Same.
2740 (sort_locs_in_loop_postorder_cmp): Same.
2741 (analyze_memory_references): Same.
2742 (mem_refs_may_alias_p): Same.
2743 (find_ref_loc_in_loop_cmp): Same.
2744 (rewrite_mem_ref_loc::operator): Same.
2745 (first_mem_ref_loc_1::operator): Same.
2746 (sm_set_flag_if_changed::operator): Same.
2747 (execute_sm_if_changed_flag_set): Same.
2749 (hoist_memory_references): Same.
2750 (ref_always_accessed::operator): Same.
2751 (refs_independent_p): Same.
2752 (record_dep_loop): Same.
2753 (ref_indep_loop_p_1): Same.
2754 (ref_indep_loop_p): Same.
2755 (can_sm_ref_p): Same.
2756 (find_refs_for_sm): Same.
2757 (loop_suitable_for_sm): Same.
2758 (store_motion_loop): Same.
2759 (store_motion): Same.
2760 (fill_always_executed_in): Same.
2761 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
2762 (estimated_unrolled_size): Same.
2763 (loop_edge_to_cancel): Same.
2764 (remove_exits_and_undefined_stmts): Same.
2765 (remove_redundant_iv_tests): Same.
2766 (unloop_loops): Same.
2767 (estimated_peeled_sequence_size): Same.
2768 (try_peel_loop): Same.
2769 (canonicalize_loop_induction_variables): Same.
2770 (canonicalize_induction_variables): Same.
2771 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
2773 (stmt_after_inc_pos): Same.
2774 (contains_abnormal_ssa_name_p): Same.
2775 (niter_for_exit): Same.
2778 (find_givs_in_bb): Same.
2779 (find_induction_variables): Same.
2780 (find_interesting_uses_cond): Same.
2781 (outermost_invariant_loop_for_expr): Same.
2782 (idx_find_step): Same.
2783 (add_candidate_1): Same.
2784 (add_iv_candidate_derived_from_uses): Same.
2785 (alloc_use_cost_map): Same.
2786 (prepare_decl_rtl): Same.
2787 (generic_predict_doloop_p): Same.
2788 (computation_cost): Same.
2789 (determine_common_wider_type): Same.
2790 (get_computation_aff_1): Same.
2791 (get_use_type): Same.
2792 (determine_group_iv_cost_address): Same.
2794 (difference_cannot_overflow_p): Same.
2795 (may_eliminate_iv): Same.
2796 (determine_set_costs): Same.
2797 (cheaper_cost_pair): Same.
2798 (compare_cost_pair): Same.
2799 (iv_ca_cand_for_group): Same.
2800 (iv_ca_recount_cost): Same.
2801 (iv_ca_set_remove_invs): Same.
2802 (iv_ca_set_no_cp): Same.
2803 (iv_ca_set_add_invs): Same.
2804 (iv_ca_set_cp): Same.
2805 (iv_ca_add_group): Same.
2807 (iv_ca_compare_deps): Same.
2808 (iv_ca_delta_reverse): Same.
2809 (iv_ca_delta_commit): Same.
2810 (iv_ca_cand_used_p): Same.
2811 (iv_ca_delta_free): Same.
2815 (iv_ca_extend): Same.
2816 (iv_ca_narrow): Same.
2817 (iv_ca_prune): Same.
2818 (cheaper_cost_with_cand): Same.
2819 (iv_ca_replace): Same.
2820 (try_add_cand_for): Same.
2821 (get_initial_solution): Same.
2822 (try_improve_iv_set): Same.
2823 (find_optimal_iv_set_1): Same.
2824 (create_new_iv): Same.
2825 (rewrite_use_compare): Same.
2826 (remove_unused_ivs): Same.
2827 (determine_scaling_factor): Same.
2828 * tree-ssa-loop-ivopts.h: Same.
2829 * tree-ssa-loop-manip.c (create_iv): Same.
2830 (compute_live_loop_exits): Same.
2831 (add_exit_phi): Same.
2832 (add_exit_phis): Same.
2833 (find_uses_to_rename_use): Same.
2834 (find_uses_to_rename_def): Same.
2835 (find_uses_to_rename_in_loop): Same.
2836 (rewrite_into_loop_closed_ssa): Same.
2837 (check_loop_closed_ssa_bb): Same.
2838 (split_loop_exit_edge): Same.
2840 (ip_normal_pos): Same.
2841 (copy_phi_node_args): Same.
2842 (gimple_duplicate_loop_to_header_edge): Same.
2843 (can_unroll_loop_p): Same.
2844 (determine_exit_conditions): Same.
2845 (scale_dominated_blocks_in_loop): Same.
2846 (niter_for_unrolled_loop): Same.
2847 (tree_transform_and_unroll_loop): Same.
2848 (rewrite_all_phi_nodes_with_iv): Same.
2849 * tree-ssa-loop-manip.h: Same.
2850 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
2851 (number_of_iterations_ne): Same.
2852 (assert_no_overflow_lt): Same.
2853 (assert_loop_rolls_lt): Same.
2854 (number_of_iterations_lt): Same.
2855 (adjust_cond_for_loop_until_wrap): Same.
2856 (tree_simplify_using_condition): Same.
2857 (simplify_using_initial_conditions): Same.
2858 (simplify_using_outer_evolutions): Same.
2859 (loop_only_exit_p): Same.
2860 (ssa_defined_by_minus_one_stmt_p): Same.
2861 (number_of_iterations_popcount): Same.
2862 (number_of_iterations_exit): Same.
2863 (find_loop_niter): Same.
2864 (finite_loop_p): Same.
2865 (chain_of_csts_start): Same.
2866 (get_val_for): Same.
2867 (loop_niter_by_eval): Same.
2868 (derive_constant_upper_bound_ops): Same.
2869 (do_warn_aggressive_loop_optimizations): Same.
2870 (record_estimate): Same.
2871 (get_cst_init_from_scev): Same.
2872 (record_nonwrapping_iv): Same.
2873 (idx_infer_loop_bounds): Same.
2874 (infer_loop_bounds_from_ref): Same.
2875 (infer_loop_bounds_from_array): Same.
2876 (infer_loop_bounds_from_pointer_arith): Same.
2877 (infer_loop_bounds_from_signedness): Same.
2878 (bound_index): Same.
2879 (discover_iteration_bound_by_body_walk): Same.
2880 (maybe_lower_iteration_bound): Same.
2881 (estimate_numbers_of_iterations): Same.
2882 (estimated_loop_iterations): Same.
2883 (estimated_loop_iterations_int): Same.
2884 (max_loop_iterations): Same.
2885 (max_loop_iterations_int): Same.
2886 (likely_max_loop_iterations): Same.
2887 (likely_max_loop_iterations_int): Same.
2888 (estimated_stmt_executions_int): Same.
2889 (max_stmt_executions): Same.
2890 (likely_max_stmt_executions): Same.
2891 (estimated_stmt_executions): Same.
2892 (stmt_dominates_stmt_p): Same.
2893 (nowrap_type_p): Same.
2894 (loop_exits_before_overflow): Same.
2895 (scev_var_range_cant_overflow): Same.
2896 (scev_probably_wraps_p): Same.
2897 (free_numbers_of_iterations_estimates): Same.
2898 * tree-ssa-loop-niter.h: Same.
2899 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
2900 (idx_analyze_ref): Same.
2901 (analyze_ref): Same.
2902 (gather_memory_references_ref): Same.
2903 (mark_nontemporal_store): Same.
2904 (emit_mfence_after_loop): Same.
2905 (may_use_storent_in_loop_p): Same.
2906 (mark_nontemporal_stores): Same.
2907 (should_unroll_loop_p): Same.
2908 (volume_of_dist_vector): Same.
2909 (add_subscript_strides): Same.
2910 (self_reuse_distance): Same.
2911 (insn_to_prefetch_ratio_too_small_p): Same.
2912 * tree-ssa-loop-split.c (split_at_bb_p): Same.
2913 (patch_loop_exit): Same.
2914 (find_or_create_guard_phi): Same.
2915 (easy_exit_values): Same.
2916 (connect_loop_phis): Same.
2917 (connect_loops): Same.
2918 (compute_new_first_bound): Same.
2920 (tree_ssa_split_loops): Same.
2921 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
2922 (is_maybe_undefined): Same.
2923 (tree_may_unswitch_on): Same.
2924 (simplify_using_entry_checks): Same.
2925 (tree_unswitch_single_loop): Same.
2926 (tree_unswitch_loop): Same.
2927 (tree_unswitch_outer_loop): Same.
2928 (empty_bb_without_guard_p): Same.
2929 (used_outside_loop_p): Same.
2930 (get_vop_from_header): Same.
2931 (hoist_guard): Same.
2932 * tree-ssa-loop.c (gate_oacc_kernels): Same.
2933 (get_lsm_tmp_name): Same.
2934 * tree-ssa-loop.h: Same.
2935 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
2936 (build_and_add_sum): Same.
2937 (no_side_effect_bb): Same.
2939 (linearize_expr): Same.
2940 (should_break_up_subtract): Same.
2941 (linearize_expr_tree): Same.
2942 * tree-ssa-scopedtables.c: Same.
2943 * tree-ssa-scopedtables.h: Same.
2944 * tree-ssa-structalias.c (condense_visit): Same.
2945 (label_visit): Same.
2946 (dump_pred_graph): Same.
2947 (perform_var_substitution): Same.
2948 (move_complex_constraints): Same.
2949 (remove_preds_and_fake_succs): Same.
2950 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
2951 (determine_bb_domination_status): Same.
2952 (duplicate_thread_path): Same.
2953 (thread_through_all_blocks): Same.
2954 * tree-ssa-threadupdate.h: Same.
2955 * tree-streamer-in.c (streamer_read_string_cst): Same.
2956 (input_identifier): Same.
2957 (unpack_ts_type_common_value_fields): Same.
2958 (unpack_ts_block_value_fields): Same.
2959 (unpack_ts_translation_unit_decl_value_fields): Same.
2960 (unpack_ts_omp_clause_value_fields): Same.
2961 (streamer_read_tree_bitfields): Same.
2962 (streamer_alloc_tree): Same.
2963 (lto_input_ts_common_tree_pointers): Same.
2964 (lto_input_ts_vector_tree_pointers): Same.
2965 (lto_input_ts_poly_tree_pointers): Same.
2966 (lto_input_ts_complex_tree_pointers): Same.
2967 (lto_input_ts_decl_minimal_tree_pointers): Same.
2968 (lto_input_ts_decl_common_tree_pointers): Same.
2969 (lto_input_ts_decl_non_common_tree_pointers): Same.
2970 (lto_input_ts_decl_with_vis_tree_pointers): Same.
2971 (lto_input_ts_field_decl_tree_pointers): Same.
2972 (lto_input_ts_function_decl_tree_pointers): Same.
2973 (lto_input_ts_type_common_tree_pointers): Same.
2974 (lto_input_ts_type_non_common_tree_pointers): Same.
2975 (lto_input_ts_list_tree_pointers): Same.
2976 (lto_input_ts_vec_tree_pointers): Same.
2977 (lto_input_ts_exp_tree_pointers): Same.
2978 (lto_input_ts_block_tree_pointers): Same.
2979 (lto_input_ts_binfo_tree_pointers): Same.
2980 (lto_input_ts_constructor_tree_pointers): Same.
2981 (lto_input_ts_omp_clause_tree_pointers): Same.
2982 (streamer_read_tree_body): Same.
2983 * tree-streamer.h: Same.
2984 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
2985 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
2986 (vect_analyze_possibly_independent_ddr): Same.
2987 (vect_analyze_data_ref_dependence): Same.
2988 (vect_compute_data_ref_alignment): Same.
2989 (vect_enhance_data_refs_alignment): Same.
2990 (vect_analyze_data_ref_access): Same.
2991 (vect_check_gather_scatter): Same.
2992 (vect_find_stmt_data_reference): Same.
2993 (vect_create_addr_base_for_vector_ref): Same.
2994 (vect_setup_realignment): Same.
2995 (vect_supportable_dr_alignment): Same.
2996 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
2997 (adjust_phi_and_debug_stmts): Same.
2998 (vect_set_loop_mask): Same.
2999 (add_preheader_seq): Same.
3000 (vect_maybe_permute_loop_masks): Same.
3001 (vect_set_loop_masks_directly): Same.
3002 (vect_set_loop_condition_masked): Same.
3003 (vect_set_loop_condition_unmasked): Same.
3004 (slpeel_duplicate_current_defs_from_edges): Same.
3005 (slpeel_add_loop_guard): Same.
3006 (slpeel_can_duplicate_loop_p): Same.
3007 (create_lcssa_for_virtual_phi): Same.
3009 (vect_update_ivs_after_vectorizer): Same.
3010 (vect_gen_vector_loop_niters_mult_vf): Same.
3011 (slpeel_update_phi_nodes_for_loops): Same.
3012 (slpeel_update_phi_nodes_for_guard1): Same.
3013 (find_guard_arg): Same.
3014 (slpeel_update_phi_nodes_for_guard2): Same.
3015 (slpeel_update_phi_nodes_for_lcssa): Same.
3016 (vect_do_peeling): Same.
3017 (vect_create_cond_for_alias_checks): Same.
3018 (vect_loop_versioning): Same.
3019 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
3020 (vect_inner_phi_in_double_reduction_p): Same.
3021 (vect_analyze_scalar_cycles_1): Same.
3022 (vect_fixup_scalar_cycles_with_patterns): Same.
3023 (vect_get_loop_niters): Same.
3024 (bb_in_loop_p): Same.
3025 (vect_get_max_nscalars_per_iter): Same.
3026 (vect_verify_full_masking): Same.
3027 (vect_compute_single_scalar_iteration_cost): Same.
3028 (vect_analyze_loop_form_1): Same.
3029 (vect_analyze_loop_form): Same.
3030 (vect_active_double_reduction_p): Same.
3031 (vect_analyze_loop_operations): Same.
3032 (neutral_op_for_slp_reduction): Same.
3033 (vect_is_simple_reduction): Same.
3034 (vect_model_reduction_cost): Same.
3035 (get_initial_def_for_reduction): Same.
3036 (get_initial_defs_for_reduction): Same.
3037 (vect_create_epilog_for_reduction): Same.
3038 (vectorize_fold_left_reduction): Same.
3039 (vectorizable_reduction): Same.
3040 (vectorizable_induction): Same.
3041 (vectorizable_live_operation): Same.
3042 (loop_niters_no_overflow): Same.
3043 (vect_get_loop_mask): Same.
3044 (vect_transform_loop_stmt): Same.
3045 (vect_transform_loop): Same.
3046 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
3047 (vect_determine_precisions): Same.
3048 (vect_pattern_recog_1): Same.
3049 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
3050 * tree-vect-stmts.c (stmt_vectype): Same.
3051 (process_use): Same.
3052 (vect_init_vector_1): Same.
3053 (vect_truncate_gather_scatter_offset): Same.
3054 (get_group_load_store_type): Same.
3055 (vect_build_gather_load_calls): Same.
3056 (vect_get_strided_load_store_ops): Same.
3057 (vectorizable_simd_clone_call): Same.
3058 (vectorizable_store): Same.
3059 (permute_vec_elements): Same.
3060 (vectorizable_load): Same.
3061 (vect_transform_stmt): Same.
3062 (supportable_widening_operation): Same.
3063 * tree-vectorizer.c (vec_info::replace_stmt): Same.
3064 (vec_info::free_stmt_vec_info): Same.
3065 (vect_free_loop_info_assumptions): Same.
3066 (vect_loop_vectorized_call): Same.
3067 (set_uid_loop_bbs): Same.
3068 (vectorize_loops): Same.
3069 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
3070 * tree.c (add_tree_to_fld_list): Same.
3071 (fld_type_variant_equal_p): Same.
3072 (fld_decl_context): Same.
3073 (fld_incomplete_type_of): Same.
3074 (free_lang_data_in_binfo): Same.
3075 (need_assembler_name_p): Same.
3076 (find_decls_types_r): Same.
3077 (get_eh_types_for_runtime): Same.
3078 (find_decls_types_in_eh_region): Same.
3079 (find_decls_types_in_node): Same.
3080 (assign_assembler_name_if_needed): Same.
3081 * value-prof.c (stream_out_histogram_value): Same.
3082 * value-prof.h: Same.
3083 * var-tracking.c (use_narrower_mode): Same.
3084 (prepare_call_arguments): Same.
3085 (vt_expand_loc_callback): Same.
3086 (resolve_expansions_pending_recursion): Same.
3087 (vt_expand_loc): Same.
3088 * varasm.c (const_hash_1): Same.
3089 (compare_constant): Same.
3090 (tree_output_constant_def): Same.
3091 (simplify_subtraction): Same.
3092 (get_pool_constant): Same.
3093 (output_constant_pool_2): Same.
3094 (output_constant_pool_1): Same.
3095 (mark_constants_in_pattern): Same.
3096 (mark_constant_pool): Same.
3097 (get_section_anchor): Same.
3098 * vr-values.c (compare_range_with_value): Same.
3099 (vr_values::extract_range_from_phi_node): Same.
3100 * vr-values.h: Same.
3101 * web.c (unionfind_union): Same.
3104 2019-07-09 Martin Sebor <msebor@redhat.com>
3107 * align.h: Change class-key from class to struct and vice versa
3108 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
3109 * alloc-pool.h: Same.
3110 * asan.c (shadow_mem_size): Same.
3111 * auto-profile.c: Same.
3112 * basic-block.h: Same.
3114 * cfgexpand.c (set_rtl): Same.
3115 (expand_one_stack_var_at): Same.
3119 * config/i386/i386.h: Same.
3120 * df-problems.c (df_print_bb_index): Same.
3122 * df.h (df_single_use): Same.
3123 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
3124 (layout::annotation_line_showed_range_p): Same.
3125 (get_printed_columns): Same.
3126 (correction::ensure_terminated): Same.
3127 (line_corrections::~line_corrections): Same.
3130 * dump-context.h: Same.
3132 * dwarf2out.c: Same.
3133 * edit-context.c: Same.
3134 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
3136 * function.c (assign_stack_local): Same.
3139 * gcov.c (block_info::block_info): Same.
3140 * genattrtab.c: Same.
3141 * genextract.c: Same.
3142 * genmatch.c (comparison_code_p): Same.
3143 (id_base::id_base): Same.
3144 (decision_tree::print): Same.
3145 * genoutput.c: Same.
3146 * genpreds.c (write_one_predicate_function): Same.
3147 * genrecog.c (validate_pattern): Same.
3148 (find_operand_positions): Same.
3149 (optimize_subroutine_group): Same.
3150 (merge_pattern_transition::merge_pattern_transition): Same.
3151 (merge_pattern_info::merge_pattern_info): Same.
3152 (merge_state_result::merge_state_result): Same.
3153 (merge_into_state): Same.
3154 * gensupport.c: Same.
3155 * gensupport.h: Same.
3156 * ggc-common.c (init_ggc_heuristics): Same.
3157 * ggc-tests.c (test_union): Same.
3158 * gimple-loop-interchange.cc (dump_induction): Same.
3159 * gimple-loop-versioning.cc: Same.
3160 * gimple-match.h (gimple_match_cond::any_else): Same.
3161 * gimple-ssa-backprop.c: Same.
3162 * gimple-ssa-sprintf.c: Same.
3163 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
3165 (store_immediate_info::store_immediate_info): Same.
3166 (merged_store_group::apply_stores): Same.
3167 (get_location_for_stmts): Same.
3168 * gimple-ssa-strength-reduction.c: Same.
3169 * gimple-ssa-warn-alloca.c: Same.
3170 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
3171 * godump.c (go_type_decl): Same.
3172 * hash-map-tests.c (test_map_of_strings_to_int): Same.
3174 * hash-set-tests.c (test_set_of_strings): Same.
3176 * hsa-common.h: Same.
3177 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
3178 * input.c (assert_loceq): Same.
3181 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
3182 * ipa-fnsummary.h: Same.
3183 * ipa-inline.h: Same.
3185 * ipa-split.c (visit_bb): Same.
3186 * ira-int.h (minmax_set_iter_next): Same.
3187 * loop-invariant.c: Same.
3189 * lra-eliminations.c: Same.
3191 * lra-lives.c (mark_regno_dead): Same.
3192 * lra-remat.c: Same.
3193 * lra-spills.c: Same.
3194 * lto-streamer.h: Same.
3195 * mem-stats.h: Same.
3196 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
3197 * omp-low.c (omp_clause_aligned_alignment): Same.
3198 * optabs-query.h (get_vcond_eq_icode): Same.
3200 * opts.c (wrap_help): Same.
3202 * predict.c (predict_paths_leading_to_edge): Same.
3203 * pretty-print.h: Same.
3204 * profile-count.h: Same.
3206 * read-rtl-function.c: Same.
3209 * regrename.c: Same.
3210 * regrename.h: Same.
3213 * rtl.h (costs_add_n_insns): Same.
3215 * sched-int.h: Same.
3216 * sel-sched-ir.h: Same.
3218 * sese.h (vec_find): Same.
3220 * target-globals.h: Same.
3221 * tree-affine.c (aff_combination_find_elt): Same.
3222 * tree-affine.h: Same.
3223 * tree-data-ref.h: Same.
3224 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
3225 * tree-predcom.c: Same.
3226 * tree-scalar-evolution.c (find_var_scev_info): Same.
3227 * tree-ssa-alias.h: Same.
3228 * tree-ssa-ccp.c: Same.
3229 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
3230 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
3231 (rewrite_mem_refs): Same.
3232 (execute_sm_if_changed): Same.
3233 (hoist_memory_references): Same.
3234 * tree-ssa-loop-ivopts.c (operator<=): Same.
3235 * tree-ssa-loop.h: Same.
3236 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
3237 * tree-ssa-structalias.c: Same.
3238 * tree-switch-conversion.h (cluster::cluster): Same.
3239 (simple_cluster::simple_cluster): Same.
3240 * tree-vect-patterns.c (type_conversion_p): Same.
3241 * tree-vectorizer.c (dump_stmt_cost): Same.
3242 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
3243 * tree.c (protected_set_expr_location): Same.
3244 * tree.h (desired_pro_or_demotion_p): Same.
3245 (fndecl_built_in_p): Same.
3246 * unique-ptr-tests.cc: Same.
3247 * var-tracking.c (delete_variable_part): Same.
3248 * varasm.c (assemble_real): Same.
3249 (tree_output_constant_def): Same.
3251 * wide-int-bitmask.h: Same.
3252 * wide-int.h (decompose): Same.
3254 2019-07-09 Richard Biener <rguenther@suse.de>
3256 PR tree-optimization/91114
3257 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
3258 find a vector type isn't fatal.
3260 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3262 * config/aarch64/aarch64-simd.md
3263 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
3264 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
3265 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
3266 (*aarch64_crypto_aese_fused,
3267 *aarch64_crypto_aesd_fused): Update to new definition.
3268 * config/aarch64/aarch64.c
3269 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
3271 2019-07-09 Richard Biener <rguenther@suse.de>
3273 * gimple-match.h (gimple_match_op::resimplify): New.
3274 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
3275 gimple_resimplify4, gimple_resimplify5): Remove.
3276 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
3277 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
3279 (gimple_match_op::resimplify): New.
3280 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
3281 according to availability. Use gimple_match_op::resimplify.
3283 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
3285 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
3287 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
3289 * config/arm/crypto.md:
3290 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
3291 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
3292 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
3293 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
3295 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
3296 * config/arm/aarch-common-protos.h
3297 (aarch_crypto_can_dual_issue): Remove.
3298 * config/arm/aarch-common.c
3299 (aarch_crypto_can_dual_issue): Likewise.
3300 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
3301 * config/arm/cortex-a53.md: Likewise.
3302 * config/arm/cortex-a57.md: Likewise.
3303 * config/arm/iterators.md:
3304 (CRYPTO_BINARY): Redefine.
3305 (CRYPTO_UNARY): Removed.
3306 (CRYPTO_AES, CRYPTO_AESMC): New.
3308 2019-07-09 Richard Biener <rguenther@suse.de>
3310 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
3311 (vn_reference_lookup_3): If the main ref has no access path recorded
3312 but orig_ref has use it to do access-path based disambiguation.
3313 (vn_reference_lookup_pieces): Adjust.
3314 (vn_reference_lookup): Pass down original ref if we valueized.
3316 2019-07-09 Martin Liska <mliska@suse.cz>
3318 * doc/extend.texi: Document influence on loop
3321 2019-07-09 Martin Liska <mliska@suse.cz>
3323 * lto-compress.c (lto_normalized_zstd_level): Do not use
3324 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
3325 of libzstd. One can use 0 as a default compression level.
3327 2019-07-09 Martin Liska <mliska@suse.cz>
3329 * doc/invoke.texi: Add link from -fprofile-dir option.
3330 Use better wording for 'gcno filename'.
3332 2019-07-08 Martin Sebor <msebor@redhat.com>
3336 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
3338 (args_loc_t): New type.
3339 (args_loc_t, locmap_t): same.
3340 (diag_returned_locals): New function.
3341 (is_addr_local): Same.
3342 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
3343 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
3344 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
3346 2019-07-08 Jakub Jelinek <jakub@redhat.com>
3348 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
3349 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
3350 and casts in offset when different, both through gimple stmts
3351 and through trees. Rewritten using loops to minimize code duplication
3354 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
3356 * emit-rtl.c (set_insn_locations): New function moved from...
3357 * function.c (set_insn_locations): ...here.
3358 * ira-emit.c (emit_moves): Propagate location of the first instruction
3359 to the inserted move instructions.
3360 * reg-stack.c (compensate_edge): Set the location if the sequence is
3361 inserted on the edge.
3362 * rtl.h (set_insn_locations): Declare.
3364 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3366 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
3367 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
3370 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
3372 PR rtl-optimization/88233
3373 * common.opt (fsplit-wide-types-early): New option.
3374 * common/config/rs6000/rs6000-common.c
3375 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
3377 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
3378 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
3379 flag_split_wide_types_early.
3380 (pass_data_lower_subreg3): New.
3381 (pass_lower_subreg3): New.
3382 (make_pass_lower_subreg3): New.
3383 * passes.def (pass_lower_subreg2): Move after the loop passes.
3384 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
3385 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
3386 the pass pipeline; its previous place is taken by ...
3387 (make_pass_lower_subreg3): ... this.
3389 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3391 * config/s390/s390.c (s390_shift_truncation_mask): Define.
3392 (TARGET_SHIFT_TRUNCATION_MASK): Define.
3394 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
3396 * config/s390/constraints.md: Add new jsc constraint.
3397 * config/s390/predicates.md: New predicates.
3398 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
3399 * config/s390/s390.c (s390_valid_shift_count): New function.
3400 (print_shift_count_operand): Use s390_valid_shift_count.
3401 (print_operand): Likewise.
3402 * config/s390/s390.md: Use new predicate.
3403 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
3404 * config/s390/vector.md: Use new predicate.
3406 2019-07-08 Joern Rennecke <joern.rennecke@riscy-ip.com>
3408 Avoid clash with system header declaration.
3409 * testsuite/gcc.dg/vect/slp-reduc-sad.c (uint32_t):
3410 Remove unused declaration.
3412 2019-07-08 Andrew Waterman <andrew@sifive.com>
3413 Jim Wilson <jimw@sifive.com>
3415 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
3416 bitsize instead of BITS_PER_WORD.
3419 2019-07-08 Martin Liska <mliska@suse.cz>
3421 * collect2.c (defined): Revert to before r254460.
3422 (scan_prog_file): Revert to before r254460.
3424 2019-07-08 Richard Biener <rguenther@suse.de>
3426 PR tree-optimization/83518
3427 * tree-ssa-sccvn.c: Include splay-tree.h.
3428 (struct pd_range, struct pd_data): New.
3429 (struct vn_walk_cb_data): Add data to track partial definitions.
3430 (vn_walk_cb_data::~vn_walk_cb_data): New.
3431 (vn_walk_cb_data::push_partial_def): New.
3432 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
3433 (vn_reference_lookup_2): When partial defs are registered give up.
3434 (vn_reference_lookup_3): Track partial defs for memset and
3435 constructor zeroing and for defs from constants.
3437 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
3439 * doc/install.texi (bootstrap-Og): Document.
3441 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
3443 * config/riscv/pic.md (*local_pic_load_s<mode>)
3444 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
3445 referenced by <mode>, giving...
3446 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
3447 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
3448 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
3449 use <X:MODE> for the mode attribute.
3451 2019-07-07 Jeff Law <law@redhat.com>
3453 PR tree-optimization/91090
3454 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
3455 in handling of ranges to simplify switch statements.
3457 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
3459 * config/darwin.c (darwin_override_options): Make a final check on PIC
3462 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
3464 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
3467 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
3470 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
3471 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
3472 instead of matching them to "l" output operands.
3474 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
3476 * config/mips/mips.c (mips_split_move): Zero-initialize addr
3477 and check whether addr.reg is nonnull before using it.
3479 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3481 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
3482 ctx->for_simd_scan_phase simd copy the outer var to the privatized
3483 variable(s). For conditional lastprivate look through outer
3484 GIMPLE_OMP_SCAN context.
3485 (lower_omp_1): For conditional lastprivate look through outer
3486 GIMPLE_OMP_SCAN context.
3488 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
3489 member to combined_into_simd_safelen1.
3490 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
3491 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
3492 clauses if ctx->combined_into_simd_safelen1 put statements after the
3493 predicate conditionalized block rather than into it.
3495 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3497 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
3499 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
3500 Make the choice of <mode> explicit, giving...
3501 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
3503 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3505 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
3506 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
3508 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
3509 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
3510 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
3511 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
3512 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
3513 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
3514 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
3515 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
3516 (*avx512f_scatterdi<mode>): Likewise.
3517 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
3519 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3521 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
3522 specify the mode iterator referenced by <mode>, giving...
3523 (*push1_h8300hs_<QHI:mode>): ...this.
3525 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3527 * config/gcn/gcn-valu.md
3528 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
3529 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
3530 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
3531 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
3532 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
3533 but using the _exec comparison patterns.
3534 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
3535 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
3536 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
3537 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
3538 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
3539 but using the _exec comparison patterns.
3541 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
3543 * config/arm/sync.md
3544 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
3545 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
3546 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise
3547 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
3550 2019-07-06 Jakub Jelinek <jakub@redhat.com>
3552 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
3553 (maybe_lookup_ctx): Add forward declaration.
3554 (omp_find_scan): Likewise. Walk into body of simd if composited
3555 with worksharing loop.
3556 (scan_omp_simd_scan): New function.
3557 (scan_omp_1_stmt): Call it.
3558 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
3559 ctx->for_simd_scan_phase.
3560 (lower_rec_input_clauses): Do much less work for inscan reductions
3561 in ctx->for_simd_scan_phase is_simd regions.
3562 (lower_omp_scan): Set is_simd also on simd constructs composited
3563 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
3564 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
3565 emit their body after in simd constructs composited with worksharing
3567 (lower_omp_for_scan): Handle worksharing loop composited with simd.
3569 * omp-low.c (omp_find_scan): Make static.
3570 (lower_omp_for_scan): Fix order of merge arguments in input phase of
3571 the second loop, var2 represents the first partial sum and so needs
3572 to go before rprivb[ivar].
3574 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
3576 * config/rs6000/rs6000-logue.c: Remove unused code.
3578 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3580 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
3582 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
3585 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
3586 check with a frame laid out check.
3588 2019-07-05 Richard Biener <rguenther@suse.de>
3590 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
3591 when comparing against a store with possibly the same value.
3593 2019-07-05 Richard Biener <rguenther@suse.de>
3595 PR tree-optimization/91091
3596 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
3597 (walk_non_aliased_vuses): Likewise.
3598 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
3599 (get_continuation_for_phi): New tbaa_p parameter and pass
3601 (walk_non_aliased_vuses): Likewise.
3602 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
3603 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
3604 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
3606 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
3607 (adjust_offsets_for_equal_base_address): New function.
3608 (vn_reference_lookup_3): Use it to catch more base equivalences.
3609 Handle and pass down tbaa_p flag.
3610 (vn_reference_lookup_pieces): Adjust.
3611 (vn_reference_lookup): Remove alias-set altering, instead pass
3612 down false as tbaa_p.
3614 2019-07-05 Richard Biener <rguenther@suse.de>
3616 PR tree-optimization/91091
3617 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
3618 accesses can happen with -fno-strict-aliasing.
3620 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
3622 * tree-ssa-alias.c (alias_stats): Add
3623 nonoverlapping_component_refs_since_match_p_must_overlap.
3624 (dump_alias_stats): Print it.
3625 (nonoverlapping_component_refs_since_match_p): Add early exit.
3626 (nonoverlapping_component_refs_p): Do not account early exit.
3628 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3630 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
3631 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
3632 (emit_eh_dispatch): Delete.
3633 (lower_catch): Emit the eh_dispatch manually and set the location of
3634 the first catch statement onto it.
3635 (lower_eh_filter): Emit the eh_dispatch manually and set location.
3636 (lower_eh_dispatch): Propagate location.
3637 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
3638 (eliminate_build): Likewise.
3640 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
3642 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
3643 phi nodes if possible.
3644 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
3645 location info on the newly created statement.
3646 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
3647 newly created increment if needed.
3649 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3652 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
3653 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
3654 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
3655 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
3656 ctx->add_safelen1 is set.
3658 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
3659 GOMP_loop_start at the start of second worksharing loop in a scan.
3660 For nowait, don't emit GOMP_loop_end_nowait at the end of first
3661 worksharing loop in a scan even if there are conditional lastprivates,
3662 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
3664 2019-07-04 Jan Hubicka <jh@suse.cz>
3666 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
3667 Fix check for match in the ref walk.
3669 2019-07-04 Martin Liska <mliska@suse.cz>
3671 * tree-ssa-loop-niter.c
3672 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
3673 (estimate_numbers_of_iterations):
3674 Support __builtin_expect_with_probability for analysis
3675 of # of loop iterations.
3677 2019-07-04 Alexandre Oliva <oliva@adacore.com>
3679 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
3680 * except.c: Likewise.
3681 * expr.c (expand_expr_real_1): Reject it.
3682 * gimplify.c (gimplify_expr): Gimplify it, within
3684 * tree-dump.c (dequeue_and_dump): Dump it.
3685 * tree-pretty-print.c (dump_generic_node): Likewise.
3686 * tree.c (block_may_fallthru): Handle it.
3687 * tree.def (EH_ELSE_EXPR): Introduce it.
3688 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
3689 with GIMPLE_EH_ELSE as try/finally/else.
3691 2019-07-04 Richard Biener <rguenther@suse.de>
3694 * tree-pass.h (execute_all_ipa_transforms): Add a flag
3695 parameter whether to disable GC collection.
3696 * passes.c (execute_one_ipa_transform_pass): Likewise, and
3698 (execute_all_ipa_transforms): Likewise and pass it down.
3699 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
3700 collection from applying IPA transforms.
3701 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
3702 from applying IPA transforms.
3704 2019-07-04 Richard Biener <rguenther@suse.de>
3706 PR tree-optimization/90911
3707 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
3708 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
3709 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
3710 scalar_loop_scaling.
3711 (vect_transform_loop): Scale scalar loop profile if needed.
3712 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
3713 the loop copy from if-conversion adjust edge probabilities
3714 and scale the vectorized loop body profile, queue the scalar
3715 profile for updating after peeling.
3717 2019-07-04 Jan Hubicka <jh@suse.cz>
3719 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
3720 parameters; return early for must-alias.
3721 (indirect_ref_may_alias_decl_p): Likewise; when establishing
3722 outer types match, try nonoverlapping_component_refs
3723 if must-alias is not obvious.
3724 (indirect_refs_may_alias_p): Likewise.
3725 (refs_may_alias_p_2): Likewise.
3727 2019-07-04 Richard Biener <rguenther@suse.de>
3729 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
3731 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
3733 (struct vn_walk_cb_data): New callback data struct.
3734 (vn_reference_lookup_2): Adjust.
3735 (vn_reference_lookup_3): Likewise.
3736 (vn_reference_lookup_pieces): Likewise.
3737 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
3738 (visit_reference_op_load): Adjust.
3740 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3742 PR tree-optimization/91063
3743 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
3744 stmt from stmts sequence before calling vect_init_vector_1.
3747 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3750 * fwprop.c (reg_single_def_p): New function.
3751 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
3752 (forward_propagate_into): New parameter reg_prop_only
3753 with default value false.
3754 Propagate def's src into loop only if SET_SRC and SET_DEST
3755 of def_set have single definitions.
3756 Likewise if reg_prop_only is set to true.
3757 (fwprop): New param fwprop_addr_p.
3758 Integrate fwprop_addr into fwprop.
3759 (fwprop_addr): Remove.
3760 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
3762 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
3763 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
3764 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
3766 2019-07-04 Jakub Jelinek <jakub@redhat.com>
3768 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
3769 in worksharing loop scans.
3771 PR tree-optimization/91074
3772 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
3775 PR rtl-optimization/90756
3776 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
3779 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
3781 * config/aarch64/aarch64.md: Remove redundant constraints from
3782 define_expand but keep some patterns untouched if they are
3783 specially selected by TARGET_SECONDARY_RELOAD hook.
3784 * config/aarch64/aarch64-sve.md: Likewise.
3785 * config/aarch64/atomics.md: Remove redundant constraints from
3787 * config/aarch64/aarch64-simd.md: Likewise.
3789 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
3791 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
3792 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
3793 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
3795 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
3798 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
3800 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
3801 (STARTFILE_SPEC): Split crt3 into a separate spec.
3802 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
3803 (DARWIN_CRT2_SPEC): New.
3804 (DARWIN_CRT3_SPEC): New.
3805 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
3806 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
3807 (DARWIN_CRT3_SPEC): New.
3809 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
3811 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
3812 Change the RTL attribute "length" from "4" to "*" to allow the
3813 length attribute to be adjusted automatically for prefixed load,
3814 store, and add immediate instructions.
3815 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
3817 (extendsi<mode>2, EXTSI iterator): Likewise.
3818 (movsi_internal1): Likewise.
3819 (movsi_from_sf): Likewise.
3820 (movdi_from_sf_zero_ext): Likewise.
3821 (mov<mode>_internal): Likewise.
3822 (movcc_internal1, QHI iterator): Likewise.
3823 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
3824 (movsf_from_si): Likewise.
3825 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
3826 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
3827 (mov<mode>, FMOVE128 iterator): Likewise.
3828 (movdi_internal64): Likewise.
3829 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
3831 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
3832 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
3833 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
3834 (vsx_splat_v4sf): Likewise.
3836 2019-07-03 Mark Wielaard <mark@klomp.org>
3839 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
3840 DW_AT_addr_base if there is actually a .debug_addr section with
3842 (output_addr_table): Add DWARF5 table header generation here after
3843 checking there are actually any addresses from...
3844 (dwarf2out_finish): ...here.
3845 * testsuite/g++.dg/pr90981.C: New test.
3847 2019-07-03 Richard Biener <rguenther@suse.de>
3850 * match.pd (vec_perm -> bit_insert): Fix element read from
3853 2019-07-03 Martin Liska <mliska@suse.cz>
3855 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
3856 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
3858 * generic-match-head.c: Include dbgcnt.h.
3859 * gimple-match-head.c: Likewise.
3861 2019-07-03 Martin Liska <mliska@suse.cz>
3863 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
3864 (GCOV_COUNTER_V_TOPN): New.
3865 (GCOV_COUNTER_V_INDIR): Use _topn.
3866 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
3867 (GCOV_TOPN_VALUES): New.
3868 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
3869 (GCOV_TOPN_VALUES_COUNTERS): New.
3870 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
3872 (gimple_init_gcov_profiler): Rename variables from one_value
3874 (gimple_gen_one_value_profiler): Remove.
3875 (gimple_gen_topn_values_profiler): New function.
3876 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
3877 names instead of SINGLE_VALUE.
3878 (stream_out_histogram_value): Likewise.
3879 (stream_in_histogram_value): Likewise.
3880 (get_most_common_single_value): Likewise.
3881 (gimple_divmod_fixed_value_transform): Likewise.
3882 (gimple_stringops_transform): Likewise.
3883 (gimple_divmod_values_to_profile): Likewise.
3884 (gimple_stringops_values_to_profile): Likewise.
3885 (gimple_find_values_to_profile): Likewise.
3886 * value-prof.h (enum hist_type): Rename to TOPN.
3887 (gimple_gen_one_value_profiler): Remove.
3888 (gimple_gen_topn_values_profiler): New.
3890 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
3892 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
3893 if it has the DW_AT_data_member_location attribute.
3895 2019-07-03 Richard Biener <rguenther@suse.de>
3897 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
3900 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
3902 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
3903 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
3904 (tlsdesc_small_sve_<mode>): Likewise.
3906 2019-07-03 Martin Liska <mliska@suse.cz>
3908 * Makefile.in: Define ZSTD_LIB.
3909 * common.opt: Adjust compression level
3910 to support also zstd levels.
3911 * config.in: Regenerate.
3912 * configure: Likewise.
3913 * configure.ac: Add --with-zstd and --with-zstd-include options
3915 * doc/install.texi: Mention zstd dependency.
3916 * gcc.c: Print supported LTO compression algorithms.
3917 * lto-compress.c (lto_normalized_zstd_level): Likewise.
3918 (lto_compression_zstd): Likewise.
3919 (lto_uncompression_zstd): Likewise.
3920 (lto_end_compression): Dispatch in between zlib and zstd.
3921 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
3922 (lto_uncompression_zlib): Make it static.
3923 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
3924 * lto-section-in.c (lto_get_section_data): Pass info
3925 about used compression.
3926 * lto-streamer-out.c: By default use zstd when possible.
3927 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
3928 (TV_IPA_LTO_COMPRESS): Likewise for compression.
3930 2019-07-03 Martin Liska <mliska@suse.cz>
3932 * lto-section-in.c (lto_get_section_data): Add "lto" section.
3933 * lto-section-out.c (lto_destroy_simple_output_block): Never
3934 compress LTO_section_lto section.
3935 * lto-streamer-out.c (produce_asm): Do not set major_version
3937 (lto_output_toplevel_asms): Likewise.
3938 (produce_lto_section): New function.
3939 (lto_output): Call produce_lto_section.
3940 (lto_write_mode_table): Do not set major_version and
3942 (produce_asm_for_decls): Likewise.
3943 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
3945 (struct lto_header): Remove.
3946 (struct lto_section): New struct.
3947 (struct lto_simple_header): Do not inherit from lto_header.
3948 (struct lto_file_decl_data): Add lto_section_header field.
3950 2019-07-03 Martin Liska <mliska@suse.cz>
3952 * lra-eliminations.c (eliminate_regs_in_insn): Remove
3954 * reg-stack.c (check_asm_stack_operands): Likewise.
3955 * tree-ssa-structalias.c (create_function_info_for): Likewise.
3956 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
3957 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
3960 2019-07-03 Martin Liska <mliska@suse.cz>
3962 PR tree-optimization/90892
3963 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
3964 in string constants.
3966 2019-07-03 Martin Liska <mliska@suse.cz>
3969 * multiple_target.c (create_dispatcher_calls): Add to comdat
3970 group only if set for ifunc.
3972 2019-07-03 Martin Liska <mliska@suse.cz>
3975 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
3976 Define local_object_name in outer scope in order to handle
3977 use-after-scope issue.
3979 2019-07-03 Martin Liska <mliska@suse.cz>
3981 * common.opt: Add fprofile-note.
3982 * coverage.c (coverage_init): Append the option
3984 * doc/invoke.texi: Document -fprofile-note.
3986 2019-07-03 Jakub Jelinek <jakub@redhat.com>
3988 PR tree-optimization/91033
3989 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
3990 vect_analyze_data_refs): Add bool * arguments.
3991 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
3992 if failure is due to scatter/gather, set *fatal to false if non-NULL.
3993 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
3994 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
3995 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
3996 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
3997 vect_analyze_data_refs caller.
3999 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
4001 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
4002 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
4003 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
4004 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4005 OMP_CLAUSE__SCANTEMP_ entry.
4006 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
4007 * tree-pretty-print.c (dump_omp_clause): Likewise.
4008 * tree-nested.c (convert_nonlocal_omp_clauses,
4009 convert_local_omp_clauses): Likewise.
4010 * omp-general.h (struct omp_for_data): Add have_scantemp and
4011 have_nonctrl_scantemp members.
4012 * omp-general.c (omp_extract_for_data): Initialize them.
4013 * omp-low.c (struct omp_context): Add scan_exclusive member.
4014 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
4015 result again with GF_OMP_FOR_KIND_MASK. Initialize also
4016 ctx->scan_exclusive.
4017 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
4018 of !ctx->scan_inclusive.
4019 (lower_rec_input_clauses): Simplify gimplification of dtors using
4020 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
4021 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
4022 loops. Don't add barrier for reduction_omp_orig_ref if
4023 ctx->scan_??xclusive.
4024 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
4025 (lower_omp_scan): Use ctx->scan_exclusive instead
4026 of !ctx->scan_inclusive. Handle worksharing loops with inscan
4027 reductions. Use new_vard != new_var instead of repeated
4028 omp_is_reference calls.
4029 (omp_find_scan, lower_omp_for_scan): New functions.
4030 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
4032 * omp-expand.c (expand_omp_scantemp_alloc): New function.
4033 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
4034 and fd->have_scantemp.
4036 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
4037 on worksharing loop propagate it as shared clause to containing
4040 * omp-expand.c (expand_omp_for_static_nochunk,
4041 expand_omp_for_static_chunk): For nowait worksharing loop with
4042 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
4045 2019-07-02 Joern Rennecke <joern.rennecke@riscy-ip.com>
4048 * testsuite/gcc.dg/plugin/start_unit_plugin.c: Register a root tab
4049 to reference fake_var.
4051 2019-07-02 qing zhao <qing.zhao@oracle.com>
4053 PR preprocessor/90581
4054 * doc/cppopts.texi: Add document for -fmax-include-depth.
4055 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
4057 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
4059 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
4060 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
4061 (mmx_packssdw): Ditto.
4062 (mmx_punpckhbw): Ditto.
4063 (mmx_punpcklbw): Ditto.
4064 (mmx_punpckhwd): Ditto.
4065 (mmx_punpcklwd): Ditto.
4066 (mmx_punpckhdq): Ditto.
4067 (mmx_punpckldq): Ditto.
4068 (*vec_dupv4hi): Ditto.
4069 (*vec_dupv2si): Ditto.
4070 (mmx_pmovmskb): Ditto.
4071 * config/i386/sse.md (sse_cvtpi2ps): Use
4072 TARGET_SSE2 && SSE_REG_P in split condition.
4073 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
4074 TARGET_SSSE3 && SSE_REGNO_P in split condition.
4075 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
4076 (ssse3_pshufbv8qi3): Ditto.
4077 (ssse3_palignrdi): Ditto.
4079 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
4081 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
4082 with inlined save and restore.
4084 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
4086 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
4087 to be inserted on single successor edge of the entry block. Then call
4088 commit_edge_insertions instead of inserting the instructions manually.
4089 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
4090 RTL expansion and rebuild jump labels chain.
4092 2019-07-02 Richard Biener <rguenther@suse.de>
4094 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
4096 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4098 * tree.c (build_common_tree_nodes): Initialize them.
4099 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
4100 Make declarations comments.
4101 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
4102 chrec_known): Remove definitions.
4103 (initialize_scalar_evolutions_analyzer): Remove.
4104 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
4105 * tree-streamer.c (preload_common_nodes): Do not preload
4106 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
4108 2019-07-02 Jan Hubicka <jh@suse.cz>
4110 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
4113 2019-07-02 Jan Hubicka <jh@suse.cz>
4115 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
4117 (nonoverlapping_component_refs_since_match_p): ... this one;
4118 handle also non-decl bases; return -1 if search gave up.
4119 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
4120 nonoverlapping_component_refs_of_decl_p_no_alias to
4121 nonoverlapping_component_refs_since_match_p_may_alias,
4122 nonoverlapping_component_refs_since_match_p_no_alias.
4123 (dump_alias_stats): Update dumping.
4124 (aliasing_matching_component_refs_p): Break out from ...;
4125 dispatch to nonoverlapping_component_refs_for_decl_p
4126 and nonoverlapping_component_refs_since_match_p.
4127 (aliasing_component_refs_p): ... here; call
4128 nonoverlapping_component_refs_p in scenarios where we can not
4129 precisely determine base match.
4130 (decl_refs_may_alias_p): Use
4131 nonoverlapping_component_refs_since_match_p.
4132 (indirect_ref_may_alias_decl_p): Do not call
4133 nonoverlapping_component_refs_p.
4134 (indirect_refs_may_alias_p): Likewise.
4136 2019-07-02 Jan Hubicka <jh@suse.cz>
4138 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
4139 to clobber of return value.
4141 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4143 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
4144 for is_neon_type instructions that have not already been categorized.
4146 2019-07-02 Richard Biener <rguenther@suse.de>
4148 PR tree-optimization/58483
4149 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
4150 for MEM_REF base hashing.
4151 (equal_mem_array_ref_p): Likewise for base comparison.
4153 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4155 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
4157 (signbit<mode>2): Use that name. Simplify.
4159 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
4162 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
4163 Tune heuristic from PR71016 to allow MIN / MAX.
4164 * testsuite/gcc.dg/tree-ssa/pr66726-4.c: New testcase.
4166 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4168 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
4170 (abs<mode>2): Use that name. Simplify.
4172 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4174 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
4176 (neg<mode>2): Use that name. Simplify.
4178 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4180 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
4182 (abs<mode>2): Use that name. Simplify.
4184 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4186 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
4188 (neg<mode>2): Use that name. Simplify.
4190 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
4192 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
4193 ("enabled" attribute): Handle sse_noavx isa attribute.
4194 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
4195 Use TARGET_SSE && SSE_REGNO_P in split condition.
4196 (*vec_dupv2sf): Ditto.
4198 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4200 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
4202 (floatsi<mode>2): Use that name. Simplify.
4204 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4206 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
4208 (extenddf<mode>2_vsx): Make this a parameterized name.
4209 (extenddf<mode>2): Use those names. Simplify.
4211 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4213 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
4215 (eh_return): Use that name. Simplify.
4217 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4219 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
4220 (doloop_end): Use that name. Simplify.
4222 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4224 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
4226 (indirect_jump): Use that name. Simplify.
4228 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4230 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
4232 (abs<mode>2): Use that name. Simplify.
4234 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4236 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
4238 (fix_trunc<mode>si2): Use that name. Simplify.
4240 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4242 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
4243 (allocate_stack): Use that name. Simplify.
4245 2019-07-01 Martin Sebor <msebor@redhat.com>
4248 * hash-map.h (hash_map::put): On insertion invoke element ctor.
4249 (hash_map::get_or_insert): Same. Reformat comment.
4250 * hash-set.h (hash_set::add): On insertion invoke element ctor.
4251 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4252 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
4253 * hash-table.h (hash_table::operator=): Prevent copy assignment.
4254 (hash_table::hash_table (const hash_table&)): Use copy ctor
4255 instead of assignment to copy elements.
4257 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
4258 John David Anglin <danglin@gcc.gnu.org>
4261 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
4262 using saved frame pointer.
4264 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
4267 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
4268 Add frame clobber and schedule blockage.
4270 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
4272 * doc/invoke.texi (Link Options): Further editorial changes to
4273 -flinker-output docs.
4275 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
4277 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
4278 Load both operands of a PLUS into registers separately.
4280 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
4282 * config/s390/vector.md: Fix shift count operand printing.
4284 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4286 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
4288 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4290 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
4291 Use recog_data to test for an output operand.
4293 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4295 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
4296 exclude any others that are disparaged or that are bound to need
4298 (ira_get_dup_out_num): Expand comment.
4300 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4302 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
4303 constraint string for each operand/alternative combo. Only handle
4304 '%' at the start of constraint strings, and look for it outside
4307 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
4309 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
4310 alternative_mask instead of HARD_REG_SET to represent a
4311 bitmask of alternatives.
4312 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
4313 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
4315 2019-07-01 Martin Liska <mliska@suse.cz>
4317 * edit-context.c (test_applying_fixits_unreadable_file): Do not
4318 use () for a constructor call.
4319 (test_applying_fixits_line_out_of_range): Likewise.
4320 * ggc-page.c (alloc_page): Use (void *) for %p printf format
4322 (free_page): Likewise.
4324 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
4326 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
4327 parameter names to match usage (no functional change).
4328 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
4330 2019-07-01 Richard Biener <rguenther@suse.de>
4332 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
4334 (pass_fre::execute): Honor it.
4335 * passes.def: Adjust pass_fre invocations to allow iterating,
4336 add non-iterating pass_fre before late threading/dom.
4338 2019-07-01 Richard Biener <rguenther@suse.de>
4340 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
4341 TARGET_MEM_REF handling to also handle address-taken ones.
4343 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
4345 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4346 hardware attributes): Document avx512vp2intersect.
4348 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4350 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
4351 (abs<mode>2): New expander.
4352 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
4353 Use CODE_FOR_ssse3_absv8qi2.
4354 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
4355 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
4357 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4359 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
4360 to sse, sse_noavx and avx. Update all uses.
4362 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
4364 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
4365 (*mmx_<plusminus_insn><mode>3): Ditto.
4366 (*mmx_mulv4hi3"): Ditto.
4367 (*mmx_smulv4hi3_highpart): Ditto.
4368 (*mmx_umulv4hi3_highpart): Ditto.
4369 (*mmx_pmaddwd): Ditto.
4370 (*sse2_umulv1siv1di3): Ditto.
4371 (*mmx_<code>v4hi3): Ditto.
4372 (*mmx_<code>v8qi3): Ditto.
4373 (mmx_ashr<mode>3): Ditto.
4374 ("mmx_<shift_insn><mode>3): Ditto.
4375 (*mmx_eq<mode>3): Ditto.
4376 (mmx_gt<mode>3): Ditto.
4377 (mmx_andnot<mode>3): Ditto.
4378 (*mmx_<code><mode>3): Ditto.
4379 (*mmx_pinsrw): Ditto.
4380 (*mmx_pextrw): Ditto.
4381 (mmx_pshufw_1): Ditto.
4382 (*mmx_uavgv8qi3): Ditto.
4383 (*mmx_uavgv4hi3): Ditto.
4384 ("mmx_psadbw): Ditto.
4385 * config/i386/sse.md (sse_cvtps2pi): Ditto.
4386 (sse_cvttps2pi): Ditto.
4387 (ssse3_pmaddubsw): Ditto.
4388 (*ssse3_pmulhrswv4hi3): Ditto.
4389 (ssse3_psign<mode>3): Ditto.
4391 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
4393 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
4394 adjustment for bit-fields to all aggregate types.
4396 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
4398 * config/rs6000/predicates.md (pcrel_address): Use
4399 SYMBOL_REF_LOCAL_P to determine if a label is local.
4400 (pcrel_external_address): New predicate.
4401 (non_prefixed_mem_operand): Delete, predicate not used.
4402 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
4403 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
4405 (SYMBOL_REF_PCREL_P): Likewise.
4408 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
4410 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
4411 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
4412 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
4414 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
4416 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
4417 override on extra_headers.
4419 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
4421 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
4422 * config/darwin-driver.c (darwin_default_min_version): Remove newline
4424 (darwin_driver_init): Likewise.
4426 2019-06-28 Jan Beulich <jbeulich@suse.com>
4428 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4429 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
4430 Eliminate redundant alternative.
4432 2019-06-28 Jan Beulich <jbeulich@suse.com>
4434 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
4435 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
4438 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
4440 * config/arc/arc.c (arc_rtx_costs): All short instructions are
4441 having a lower cost regardless of the speed option.
4443 2019-06-28 Jan Beulich <jbeulich@suse.com>
4445 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
4446 vector_operand plus, on both alternatives, "Bm" constraint.
4448 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
4450 * config/arm/arm.md: Remove redundant constraints from
4451 define_expand but leave reload_inm and reload_outm patterns
4452 untouched since they need special constraints to work.
4453 * config/arm/arm-fixed.md: Remove redundant constraints from
4455 * config/arm/iwmmxt.md: Likewise.
4456 * config/arm/neon.md: Likewise.
4457 * config/arm/sync.md: Likewise.
4458 * config/arm/thumb1.md: Likewise.
4459 * config/arm/vec-common.md: Likewise.
4461 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
4463 * doc/install.texi: Document --disable-tm-clone-registry.
4465 2019-06-27 Jakub Jelinek <jakub@redhat.com>
4468 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
4471 PR tree-optimization/91010
4472 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
4473 return true. Otherwise, don't call operand_equal_p if offset1 or
4474 offset2 is NULL and just return false.
4476 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4478 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
4479 user-specified float mode choice for kernel mode code.
4481 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4483 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
4486 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
4488 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
4489 use longcall for 64b code.
4491 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
4493 * builtins.c (get_memory_rtx): Fix comment.
4494 * optabs.def (movmem_optab): Change to cpymem_optab.
4495 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
4496 (emit_block_move_hints): Change movmem to cpymem.
4497 * defaults.h: Change movmem to cpymem.
4498 * targhooks.c (get_move_ratio): Change movmem to cpymem.
4499 (default_use_by_pieces_infrastructure_p): Ditto.
4500 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
4501 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
4503 * config/aarch64/aarch64.h: Change movmem to cpymem.
4504 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
4505 * config/alpha/alpha.h: Change movmem to cpymem in comment.
4506 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
4508 * config/arc/arc-protos.h: Change movmem to cpymem.
4509 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
4510 * config/arc/arc.h: Change movmem to cpymem in comment.
4511 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
4512 * config/arm/arm-protos.h: Change movmem to cpymem in names.
4513 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
4514 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
4515 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
4516 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
4517 * config/avr/avr-protos.h: Change movmem to cpymem.
4518 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
4519 avr_out_movmem): Change movmem to cpymem.
4520 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
4521 Change movmem to cpymem.
4522 * config/bfin/bfin-protos.h: Change movmem to cpymem.
4523 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
4524 Change movmem to cpymem.
4525 * config/bfin/bfin.h: Change movmem to cpymem in comment.
4526 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
4527 * config/c6x/c6x-protos.h: Change movmem to cpymem.
4528 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
4529 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
4530 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
4531 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
4532 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
4533 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
4534 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
4535 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
4536 expand_small_cpymem_or_setmem,
4537 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
4538 expand_set_or_cpymem_constant_prologue,
4539 ix86_expand_set_or_cpymem): Change movmem to cpymem.
4540 * config/i386/i386-protos.h: Change movmem to cpymem.
4541 * config/i386/i386.h: Change movmem to cpymem in comment.
4542 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
4543 (setmem<mode>): Change expansion function name.
4544 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
4545 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
4546 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
4547 * config/m32c/m32c-protos.h: Change movmem to cpymem.
4548 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
4549 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
4550 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
4552 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
4553 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
4554 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
4555 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
4556 Change movmem to cpymem.
4557 * config/mips/mips.h: Change movmem to cpymem.
4558 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
4559 * config/nds32/nds32-memory-manipulation.c
4560 (nds32_expand_movmemsi_loop_unknown_size,
4561 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
4562 nds32_expand_movmemsi_unroll,
4563 nds32_expand_movmemsi): Change movmem to cpymem.
4564 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
4565 * config/nds32/nds32-protos.h: Change movmem to cpymem.
4566 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
4567 (pa_adjust_insn_length): Change call to compute_movmem_length.
4568 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
4569 movmemdi, movmemdi_prereload,
4570 movmemdi_postreload): Change movmem to cpymem.
4571 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
4572 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
4573 * config/riscv/riscv.c: Change movmem to cpymem in comment.
4574 * config/riscv/riscv.h: Change movmem to cpymem.
4575 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
4576 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
4577 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
4579 * config/s390/s390-protos.h: Change movmem to cpymem.
4580 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
4581 s390_expand_insv): Change movmem to cpymem.
4582 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
4583 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
4584 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
4585 * config/sparc/sparc.h: Change movmem to cpymem in comment.
4586 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
4587 for nonexistent function.
4588 * config/vax/vax.h: Change movmem to cpymem in comment.
4589 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
4590 * config/visium/visium.h: Change movmem to cpymem in comment.
4591 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
4592 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
4593 * doc/md.texi: Change movmem to cpymem and update description to match.
4594 * doc/rtl.texi: Change movmem to cpymem.
4595 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
4596 * doc/tm.texi: Regenerate.
4598 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
4600 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
4601 -fvariable-expansion-in-unroller by default.
4602 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
4605 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
4608 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4609 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
4611 * config.gcc(rs6000-*-*): Define target_gtfiles.
4613 2019-06-27 Jan Hubicka <jh@suse.cz>
4615 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
4616 (add_type_duplicate): When odr hash is not allocated, to nothing.
4617 (odr_based_tbaa_p): New function.
4618 (set_type_canonical_for_odr_type): New function.
4619 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
4620 set_type_canonical_for_odr_type): New.
4621 * tree.c (gimple_canonical_types_compatible_p): ODR types with
4622 ODR based TBAA are not equivalent to non-ODR types.
4624 2019-06-27 Martin Liska <mliska@suse.cz>
4626 PR tree-optimization/90974
4627 PR rtl-optimization/90975
4628 PR rtl-optimization/90976
4630 PR tree-optimization/91017
4631 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
4633 * lra.c (lra_set_insn_recog_data): Remove a leftover from
4634 initial commit of IRA.
4635 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
4637 * tree-vect-loop.c (vect_create_epilog_for_reduction):
4638 Remove unused mode1.
4639 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
4642 2019-06-27 Jakub Jelinek <jakub@redhat.com>
4645 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
4646 instead of register_operand for operands[1], add m to its constraints
4647 if operands[2] uses "C" constraint. Ensure in condition that if
4648 operands[2] is not 0, then operands[1] is not a MEM. For last two
4649 alternatives, use unaligned loads instead of aligned if operands[1] is
4652 2019-06-27 Martin Liska <mliska@suse.cz>
4654 * asan.c (asan_emit_allocas_unpoison): Remove obviously
4656 * bt-load.c (move_btr_def): Likewise.
4657 * builtins.c (expand_builtin_apply_args_1): Likewise.
4658 (expand_builtin_apply): Likewise.
4659 * cfgexpand.c (expand_asm_stmt): Likewise.
4660 (construct_init_block): Likewise.
4661 * cfghooks.c (verify_flow_info): Likewise.
4662 * cfgloopmanip.c (remove_path): Likewise.
4663 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
4664 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
4665 * combine.c (simplify_if_then_else): Likewise.
4666 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
4667 (choose_basereg): Likewise.
4668 (ix86_expand_prologue): Likewise.
4669 (ix86_preferred_output_reload_class): Likewise.
4670 * cselib.c (cselib_record_sets): Likewise.
4671 * df-scan.c (df_scan_alloc): Likewise.
4672 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
4673 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
4674 * emit-rtl.c (try_split): Likewise.
4675 * graphite-scop-detection.c (assign_parameter_index_in_region):
4677 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
4678 * ira-color.c (setup_profitable_hard_regs): Likewise.
4679 * ira.c (rtx_moveable_p): Likewise.
4680 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
4681 * read-rtl.c (read_subst_mapping): Likewise.
4682 * regrename.c (scan_rtx): Likewise.
4683 * reorg.c (fill_slots_from_thread): Likewise.
4684 * tree-inline.c (tree_function_versioning): Likewise.
4685 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
4686 * tree-ssa-sink.c (statement_sink_location): Likewise.
4687 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
4688 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
4689 (vect_create_epilog_for_reduction): Likewise.
4690 * tree.c (build_nonstandard_integer_type): Likewise.
4692 2019-06-27 Richard Biener <rguenther@suse.de>
4694 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
4696 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
4698 PR tree-optimization/89772
4699 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
4700 out-of-bound accesses checking.
4702 2019-06-27 Martin Liska <mliska@suse.cz>
4704 PR tree-optimization/91014
4705 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
4706 when LHS is NULL_TREE.
4708 2019-06-27 Martin Liska <mliska@suse.cz>
4710 * symbol-summary.h (traverse): Pass
4711 argument a to the call of callback.
4712 (gt_ggc_mx): Mark arguments as unused.
4713 (gt_pch_nx): Likewise.
4715 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
4718 * gcc/loop-iv.c (find_simple_exit): Call finite_loop_p to update
4721 2019-06-26 Jeff Law <law@redhat.com>
4723 PR tree-optimization/90883
4724 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
4725 (delete_dead_or_redundant_assignment): Likewise.
4727 PR tree-optimization/90883
4728 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
4729 * tree-ssa-dse.c: Update various comments to distinguish between
4730 dead and redundant stores.
4731 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
4732 (dse_optimize_redundant_stores): New function.
4733 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
4734 Distinguish between dead and redundant calls in dump output. All
4736 (delete_dead_or_redundant_assignment): Similarly for assignments.
4737 (dse_optimize_stmt): Handle _CHK variants. For statements which
4738 store 0 into multiple memory locations, try to prove a subsequent
4741 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
4744 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
4745 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
4747 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
4749 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
4750 (branch_islands): New extern.
4751 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
4752 * config/rs6000/rs6000.c: .. here.
4754 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
4756 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
4757 (powerpc*-*-*) ... to here.
4759 2019-06-26 Jeff Law <law@redhat.com>
4761 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
4762 memcpy, memmove and memset builtins.
4763 (maybe_trim_memstar_call): Likewise.
4765 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4767 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
4769 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
4771 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
4773 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4775 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
4777 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
4779 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
4782 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4784 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
4786 2019-06-26 Richard Biener <rguenther@suse.de>
4789 * tree-inline.c (remap_ssa_name): Copy SSA range info.
4791 2019-06-26 Richard Biener <rguenther@suse.de>
4793 * lto-streamer.h (lto_bitmap_alloc): Remove.
4794 (lto_bitmap_free): Likewise.
4795 * lto-streamer.c (lto_bitmap_alloc): Remove.
4796 (lto_bitmap_free): Likewise.
4797 (lto_obstack): Likewise.
4798 (lto_obstack_initialized): Likewise.
4799 * lto-streamer-out.c (lto_output): Use own obstack for local
4800 bitmap, free it consistently.
4802 2019-06-26 Jakub Jelinek <jakub@redhat.com>
4805 * config/i386/sse.md
4806 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
4807 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
4808 insns if operands[2] is misaligned_operand.
4810 2019-06-26 Li Jia He <helijia@linux.ibm.com>
4812 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
4814 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
4817 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
4819 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
4821 2019-06-26 Martin Liska <mliska@suse.cz>
4823 PR tree-optimization/90973
4824 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
4825 epilogue_cost_vec instead of prologue_cost_vec for
4828 2019-06-26 Martin Liska <mliska@suse.cz>
4830 * bb-reorder.c (connect_better_edge_p): Add missing else
4831 statement in the middle of if-else statements.
4833 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
4834 H.J. Lu <hongjiu.lu@intel.com>
4835 Olga Makhotina <olga.makhotina@intel.com>
4837 * common/config/i386/i386-common.c
4838 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
4839 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
4840 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
4841 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
4842 (ix86_handle_option): Handle -mavx512vp2intersect.
4843 * config/i386/avx512vp2intersectintrin.h: New.
4844 * config/i386/avx512vp2intersectvlintrin.h: New.
4845 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
4846 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4848 * config/i386/i386-builtin-types.def: Add new types.
4849 * config/i386/i386-builtin.def: Add new builtins.
4850 * config/i386/i386-builtins.c: (enum processor_features): Add
4851 F_AVX512VP2INTERSECT.
4852 (static const _isa_names_table isa_names_table): Ditto.
4853 * config/i386/i386-c.c (ix86_target_macros_internal): Define
4854 __AVX512VP2INTERSECT__.
4855 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
4856 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
4857 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
4858 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
4859 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
4860 * config/i386/i386-options.c (ix86_target_string): Add
4861 -mavx512vp2intersect.
4862 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
4863 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
4864 P2HImode and P2QImode.
4865 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
4866 number for P2QImode and P2HImode.
4867 (ix86_regmode_natural_size): New function.
4868 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
4869 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
4870 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
4871 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
4872 * config/i386/i386.opt: Add -mavx512vp2intersect.
4873 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
4874 avx512vp2intersectvlintrin.h.
4875 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
4876 (define_mode_iterator VI48_AVX512VP2VL): New.
4877 (avx512vp2intersect_2intersect<mode>,
4878 avx512vp2intersect_2intersectv16si): New define_insn patterns.
4879 * config.gcc: Add avx512vp2intersectvlintrin.h and
4880 avx512vp2intersectintrin.h to extra_headers.
4881 * doc/invoke.texi: Document -mavx512vp2intersect.
4883 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
4885 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
4887 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
4889 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
4890 savres_routine_syms, savres_routine_name, morestack_ref,
4891 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
4892 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
4893 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
4894 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
4895 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
4896 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
4897 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
4898 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
4899 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
4900 get_stack_clash_protection_probe_interval,
4901 get_stack_clash_protection_guard_size,
4902 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
4903 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
4904 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
4905 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
4906 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
4907 gen_frame_mem_offset, rs6000_savres_routine_name,
4908 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
4909 ptr_regno_for_savres, rs6000_emit_savres_rtx,
4910 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
4911 rs6000_global_entry_point_prologue_needed_p,
4912 rs6000_get_separate_components, rs6000_components_for_bb,
4913 rs6000_disqualify_components, rs6000_emit_prologue_components,
4914 rs6000_emit_epilogue_components, rs6000_set_handled_components,
4915 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
4916 rs6000_output_savres_externs, rs6000_output_function_prologue,
4917 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
4918 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
4919 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
4920 rs6000_output_function_epilogue, gen_add3_const,
4921 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
4922 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
4924 (machine_function): Moved to rs6000.h.
4925 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
4927 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
4928 savres_routine_syms, savres_routine_name, morestack_ref,
4929 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
4930 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
4931 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
4932 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
4933 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
4934 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
4935 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
4936 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
4937 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
4938 get_stack_clash_protection_probe_interval,
4939 get_stack_clash_protection_guard_size,
4940 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
4941 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
4942 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
4943 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
4944 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
4945 gen_frame_mem_offset, rs6000_savres_routine_name,
4946 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
4947 ptr_regno_for_savres, rs6000_emit_savres_rtx,
4948 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
4949 rs6000_global_entry_point_prologue_needed_p,
4950 rs6000_get_separate_components, rs6000_components_for_bb,
4951 rs6000_disqualify_components, rs6000_emit_prologue_components,
4952 rs6000_emit_epilogue_components, rs6000_set_handled_components,
4953 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
4954 rs6000_output_savres_externs, rs6000_output_function_prologue,
4955 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
4956 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
4957 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
4958 rs6000_output_function_epilogue, gen_add3_const,
4959 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
4960 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
4961 to here from rs6000.c.
4962 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
4963 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
4964 quad_address_offset_p) Moved to here from rs6000.c.
4965 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
4966 * config/config.gcc: Add new source file rs6000-logue.c to garbage
4969 2019-06-25 Martin Liska <mliska@suse.cz>
4971 * hash-table.c (hashtab_chk_error): Move here from ...
4972 * hash-table.h (hashtab_chk_error): ... here.
4974 2019-06-25 Martin Liska <mliska@suse.cz>
4976 PR tree-optimization/90978
4977 * df-scan.c (df_update_entry_block_defs): Remove dead else
4979 (df_update_exit_block_uses): Likewise.
4981 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
4982 Andrew Stubbs <ams@codesourcery.com>
4984 * config.gcc (thread_file): Set to gcn for AMD GCN.
4985 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
4986 (TARGET_EMUTLS_VAR_INIT): New hook.
4988 2019-06-25 Martin Jambor <mjambor@suse.cz>
4991 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
4993 2019-06-25 Richard Biener <rguenther@suse.de>
4995 PR tree-optimization/90930
4996 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
4997 into parallel form in the last pass instance.
4999 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
5001 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
5002 (arc_legitimize_pic_address): Simplify and cleanup the function.
5003 (SYMBOLIC_CONST): Remove.
5004 (prepare_pic_move): Likewise.
5005 (prepare_move_operands): Handle complex mov cases here.
5006 (arc_legitimize_address_0): Remove call to
5007 arc_legitimize_pic_address.
5008 (arc_legitimize_address): Remove call to
5009 arc_legitimize_tls_address.
5010 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
5011 (movhi_insn): Likewise.
5013 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5015 * gcc/c-family/c-common.c (c_common_nodes_and_builtins): Define
5016 alternate "__intN__" name for "__intN" types.
5017 * gcc/c/c-parser.c (c_parse_init): Create keyword for "__intN__" type.
5018 * gcc/cp/lex.c (init_reswords): Likewise.
5019 * gcc/config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
5021 * gcc/cp/cp-tree.h (cp_decl_specifier_seq): New bitfield "int_n_alt".
5022 * gcc/c/c-decl.c (declspecs_add_type): Don't pedwarn about "__intN" ISO
5023 C incompatibility if alternate "__intN__" form is used.
5024 * gcc/cp/decl.c (grokdeclarator): Likewise.
5025 * gcc/cp/parser.c (cp_parser_simple_type_specifier): Set
5026 decl_specs->int_n_alt if "__intN__" form is used.
5027 * gcc/gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
5028 format of "__intN" types for UINTMAX_TYPE.
5029 * gcc/brig/brig-lang.c (brig_build_c_type_nodes): Accept "__intN__"
5030 format of "__intN" types for SIZE_TYPE.
5031 * gcc/lto/lto-lang.c (lto_build_c_type_nodes): Likewise.
5032 * gcc/stor-layout.c (initialize_sizetypes): Accept "__intN__"
5033 format of "__intN" types for SIZETYPE.
5034 * gcc/tree.c (build_common_tree_nodes): Accept "__intN__"
5035 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
5036 * gcc/doc/invoke.texi: Document that __intN__ disables pedantic
5039 2019-06-25 Jan Hubicka <jh@suse.cz>
5041 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
5042 base2_alias_set is non-zero before doing TBAA based disambiguation.
5044 2019-06-25 Martin Liska <mliska@suse.cz>
5046 PR tree-optimization/90973
5047 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
5048 of prologue and epilogue.
5050 2019-06-24 Jan Hubicka <jh@suse.cz>
5052 * ipa-utils.h (type_with_linkage_p): Verify that type is
5054 (odr_type_p): Remove extra return.
5055 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
5056 hash STRING_FLAG only for arrays and integers.
5057 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
5059 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5061 * print-tree.c (print_node): Print cxx-odr-p
5063 * tree.c (need_assembler_name_p): Also check that type
5065 (verify_type_variant): Update verification of SRING_FLAG;
5066 also check CXX_ODR_P.
5067 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
5068 (TYPE_STRING_FLAG): Use it.
5069 (TYPE_CXX_ODR_P): New macro.
5070 * dwarf2out.c (gen_array_type_die): First check that type
5071 is an array and then test string flag.
5073 2019-06-24 Richard Biener <rguenther@suse.de>
5075 PR tree-optimization/90972
5076 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
5077 in common code, dealing with STRING_CST properly.
5079 2019-06-24 Richard Biener <rguenther@suse.de>
5081 PR tree-optimization/90930
5082 PR tree-optimization/90316
5083 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
5086 2019-06-24 Martin Sebor <msebor@redhat.com>
5088 * tree-pretty-print.h: Remove unnecessary punctuation characters
5090 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
5092 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
5094 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
5095 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
5096 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
5098 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
5100 * config/rs6000/darwin.h: Handle GCC target pragma.
5102 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
5104 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
5106 2019-06-22 Jeff Law <law@redhat.com>
5108 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5110 2019-06-22 Jan Hubicka <jh@suse.cz>
5112 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
5113 give up on bitfields; continue searching for different refs
5116 2019-06-21 Jakub Jelinek <jakub@redhat.com>
5118 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5119 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
5120 containing the offset as possible simd lane access. Look through
5121 widening conversion. Move the
5122 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
5124 2019-06-21 Richard Biener <rguenther@suse.de>
5126 PR tree-optimization/90930
5127 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
5128 flag on new stmts to avoid re-processing them.
5130 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
5132 PR c++/90875 - added -Wswitch-outside-range option
5133 * doc/invoke.texi (Wswitch-outside-range): Document.
5135 2019-06-21 Jeff Law <law@redhat.com>
5137 PR tree-optimization/90949
5138 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
5139 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
5141 2019-06-21 Richard Biener <rguenther@suse.de>
5144 * dwarf2out.c (prune_unused_types_walk): Always consider
5145 function-local extern declarations as used.
5147 2019-06-21 Richard Biener <rguenther@suse.de>
5149 PR tree-optimization/90913
5150 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
5151 the scalar variant of if-conversion versioning.
5153 2019-06-21 Jakub Jelinek <jakub@redhat.com>
5155 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
5156 create another "omp scan inscan exclusive" array if
5157 !ctx->scan_inclusive.
5158 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
5159 (lower_omp_scan): Likewise.
5160 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
5161 2-bit bitfield for simd_lane_access_p member.
5162 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
5163 aux == (void *)-4 as simd lane access.
5164 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
5165 comment with permutations to show the canonical permutation order.
5166 (vectorizable_scan_store): Handle exclusive scan.
5167 (vectorizable_store): Call vectorizable_scan_store even for
5168 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
5170 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
5171 "omp simd array" arrays with one byte elements.
5173 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
5175 * config/alpha/alpha.md (@unaligned_store<mode>):
5176 Rename from unaligned_store<mode>.
5177 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
5178 * config/alpha/sync.md (@load_locked_<mode>): Rename
5179 from load_locked_<mode>.
5180 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
5181 (@atomic_compare_and_swap<mode>_1): Rename
5182 from atomic_compare_and_swap<mode>_1.
5183 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
5184 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
5185 Use gen_reload_in_aligned and gen_unaligned_store.
5186 (emit_load_locked): Remove.
5187 (emit_store_conditional): Ditto.
5188 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
5189 (alpha_split_compare_and_swap): Ditto.
5190 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
5191 (alpha_split_compare_and_swap_12): Use gen_load_locked
5192 and gen_store_conditional.
5193 (alpha_split_atomic_exchange): Ditto.
5194 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
5195 (alpha_split_atomic_exchange_12): Use gen_load_locked
5196 and gen_store_conditional.
5198 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
5200 * config/aarch64/aarch64-errata.h: New file.
5201 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
5202 (CA53_ERR_843419_SPEC): Delete.
5203 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
5204 * config/aarch64/aarch64-linux.h: Likewise.
5205 * config/aarch64/aarch64-netbsd.h: Likewise.
5206 * config/aarch64/aarch64-freebsd.h: Likewise.
5208 2019-06-20 Marek Polacek <polacek@redhat.com>
5210 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
5212 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
5214 * config/rs6000/rs6000.md (isa attribute): Add support for
5215 for a future processor.
5217 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
5220 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
5221 standard scalar operation pattern for V2DF.
5222 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
5223 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
5224 (*ieee_<ieee_maxmin><mode>3): Likewise.
5225 (vec_setv2df_0): Likewise.
5227 2019-06-20 Jan Hubicka <jh@suse.cz>
5229 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
5230 parameter; it has no use in gimple memory model.
5231 (indirect_ref_may_alias_decl_p): Update.
5233 2019-06-20 Martin Liska <mliska@suse.cz>
5235 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
5238 2019-06-20 Jakub Jelinek <jakub@redhat.com>
5240 * tree-vect-stmts.c (enum scan_store_kind): New type.
5241 (scan_store_can_perm_p): Change last argument from int * to
5242 vec<enum scan_store_kind> *, record precisely which permutations
5243 need whole vector left shift or that plus VEC_COND_EXPR.
5244 (vectorizable_scan_store): Adjust caller, use whole vector left shift
5245 and additional VEC_COND_EXPR only for those iterations that need it.
5247 2019-06-20 Alexandre Oliva <oliva@adacore.com>
5249 * config.gcc: Fix ARM --with-fpu checking and error message.
5251 2019-06-19 Marek Polacek <polacek@redhat.com>
5253 PR c++/60364 - noreturn after first decl not diagnosed.
5254 * attribs.c (get_attribute_namespace): No longer static.
5255 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
5257 (attr_noreturn_exclusions): Make it extern.
5258 * attribs.h (get_attribute_namespace): Declare.
5259 * tree-inline.c (function_attribute_inlinable_p): Use
5262 2019-06-19 Martin Sebor <msebor@redhat.com>
5264 PR tree-optimization/90626
5265 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
5267 PR tree-optimization/90626
5268 * tree-ssa-strlen.c (strxcmp_unequal): New function.
5269 (handle_builtin_string_cmp): Call it.
5271 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5273 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
5274 and DARWIN_NOPIE_SPEC.
5275 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
5276 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
5277 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
5278 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
5279 (DARWIN_EXPORT_DYNAMIC): Delete.
5280 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
5281 and pie options processing to darwin.h.
5282 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
5284 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
5286 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
5287 in computing the number of options to be moved.
5289 2019-06-19 Maya Rashish <coypu@sdf.org>
5291 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
5292 (CLEAR_INSN_CACHE) Use it.
5294 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
5296 * config/i386/i386.md (cmpstrnsi): Remove dead code.
5298 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
5301 * builtins.c (expand_builtin_setjmp_setup): Save
5302 hard_frame_pointer_rtx.
5303 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
5305 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
5307 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
5309 (remove_reg_equal_offset_note): Remove unused function.
5310 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
5312 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5313 (arc_builtin_setjmp_frame_value): Remove function.
5314 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5315 (avr_builtin_setjmp_frame_value): Remove function.
5316 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5317 (ix86_builtin_setjmp_frame_value): Remove function.
5318 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
5319 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5320 (sparc_builtin_setjmp_frame_value): Remove function.
5321 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
5322 (vax_builtin_setjmp_frame_value): Remove function.
5323 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
5324 pointer if has_nonlocal_label.
5326 2019-06-19 Jakub Jelinek <jakub@redhat.com>
5328 * doc/md.texi: Document vec_shl_<mode> pattern.
5329 * optabs.def (vec_shl_optab): New optab.
5330 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
5331 argument, if == vec_shl_optab, check for left whole vector shift
5332 pattern rather than right shift.
5333 (expand_vec_perm_const): Add vec_shl_optab support.
5334 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
5336 * tree-vect-generic.c (lower_vec_perm): Support permutations which
5337 can be handled by vec_shl_optab.
5338 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
5339 (check_scan_store): Use it.
5340 (vectorizable_scan_store): If target can't do normal permutations,
5341 try to use whole vector left shifts and if needed a VEC_COND_EXPR
5343 * config/i386/sse.md (vec_shl_<mode>): New expander.
5345 * omp-low.c (lower_rec_input_clauses): Handle references properly
5347 (lower_omp_scan): Likewise.
5349 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5351 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
5352 mem_mode is BLKmode.
5354 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
5357 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
5358 pointer adjustment for the case of no callee-saved registers and
5359 stack frame bigger than 128 bytes.
5361 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
5364 * omp-low.c (check_omp_nesting_restrictions): Handle
5365 GF_OMP_TARGET_KIND_OACC_DECLARE.
5367 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
5369 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
5370 (@add<mode>3_carry): Rename from add<mode>3_carry.
5371 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
5372 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
5373 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
5374 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
5375 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
5376 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
5377 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
5378 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
5379 (cmpstrnsi): Use gen_cmp_1.
5380 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
5381 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
5382 (@umonitor_<mode>): Rename from umonitor_<mode>.
5383 * config/i386/i386-expand.c (ix86_expand_copysign):
5384 Use gen_copysign3_const and gen_copysign3_var.
5385 (ix86_expand_xorsign): Use gen_xorsign3_1.
5386 (ix86_expand_branch): Use gen_sub3_carry_ccc,
5387 gen_sub3_carry_ccgz and gen_cmp1.
5388 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
5389 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
5390 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
5391 (ix86_split_lshr): Ditto.
5392 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
5394 2019-06-18 Jason Merrill <jason@redhat.com>
5396 * tree.c (build_constructor): Add MEM_STAT_DECL.
5398 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5400 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
5401 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
5402 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
5403 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
5404 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
5405 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
5406 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
5407 Use CC_NZC instead of CC.
5408 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
5409 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
5410 (aarch64_print_operand): Handle E_CC_NZCmode.
5411 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
5412 of gen_set_clobber_cc.
5414 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5416 * config/aarch64/aarch64-sve.md: Tabify file.
5418 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5420 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
5421 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
5422 * config/aarch64/aarch64-sve.md: Use it.
5424 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5426 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
5427 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
5428 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
5429 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
5430 (aarch64_expand_sve_vec_cmp_int): Use it.
5431 (aarch64_expand_sve_vec_cmp_float): Likewise.
5432 * config/aarch64/aarch64-sve.md: Likewise throughout.
5434 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5435 Kugan Vivekanandarajah <kuganv@linaro.org>
5437 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
5438 (*cond_<optab><mode>_z): Fold into...
5439 (*cond_<optab><mode>_any): ...here. Also handle cases in which
5440 operand 4 can be tied to operand 0 (either inherently or via RA).
5442 2019-06-18 Richard Biener <rguenther@suse.de>
5445 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
5446 as if optimized away.
5448 2019-06-18 Tom de Vries <tdevries@suse.de>
5450 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
5451 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
5452 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
5454 (define_insn "@set_softstack_<mode>"): ... this.
5455 (define_insn "omp_simt_enter_<mode>"): Rename to ...
5456 (define_insn "@omp_simt_enter_<mode>"): ... this.
5457 (define_insn "omp_simt_exit_<mode>"): Rename to ...
5458 (define_insn "@omp_simt_exit_<mode>"): ... this.
5460 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
5462 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
5463 vf parameter. Restore the previous iv step of nscalars_step,
5464 but give it iv_type rather than compare_type. Tweak code order
5465 to match the comments.
5466 (vect_set_loop_condition_masked): Update accordingly.
5467 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
5468 for iv_precision. Tweak comment formatting.
5470 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
5472 * config/darwin.c: Strip trailing whitespace.
5474 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
5476 * config/darwin.c (darwin_emit_unwind_label): New default to false.
5477 (darwin_override_options): Set darwin_emit_unwind_label as needed.
5479 2019-06-18 Martin Jambor <mjambor@suse.cz>
5482 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
5483 caller does not have flag_ipa_cp set.
5485 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
5487 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
5488 from "*fold_left_plus_<mode>", updated operands order.
5489 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
5490 * internal-fn.c (mask_fold_left_direct): New define.
5491 (expand_mask_fold_left_optab_fn): Likewise.
5492 (direct_mask_fold_left_optab_supported_p): Likewise.
5493 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
5494 * optabs.def (mask_fold_left_plus_optab): New optab.
5495 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
5496 masked internal_fn for a reduction ifn.
5497 (vectorize_fold_left_reduction): Add support for masking reductions.
5499 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
5502 * target.def (predict_doloop_p): New hook.
5503 * targhooks.h (default_predict_doloop_p): New declaration.
5504 * targhooks.c (default_predict_doloop_p): New function.
5505 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
5506 * doc/tm.texi: Regenerate.
5507 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
5508 (TARGET_PREDICT_DOLOOP_P): New macro.
5509 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
5511 2019-06-17 Jakub Jelinek <jakub@redhat.com>
5513 * omp-low.c (struct omp_context): Add scan_inclusive field.
5514 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
5516 (struct omplow_simd_context): Add lastlane member.
5517 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
5518 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
5520 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
5521 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
5522 (lower_omp_scan): New function.
5523 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
5524 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
5525 check 3rd argument if present rather than 2nd.
5526 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
5527 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
5529 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5530 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
5532 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
5533 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
5534 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
5536 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
5537 IFN_GOMP_SIMD_LANE argument.
5538 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
5539 encoded ->aux value.
5540 * tree-vect-stmts.c: Include attribs.h.
5541 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
5542 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
5544 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
5545 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
5547 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
5550 * config/i386/i386.md (*nabstf2_1): New insn pattern.
5551 (*nabs<mode>2_1): Ditto.
5552 (nabs sse-reg splitter): New splitter.
5553 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
5555 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5558 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
5561 2019-06-17 Tom de Vries <tdevries@suse.de>
5563 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
5564 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
5565 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
5567 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
5569 (define_insn "omp_simt_enter_insn"): Rename to ...
5570 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
5571 match_operand 0, 1 and 2, as well as the unspec_volatile result.
5572 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
5573 gen_omp_simt_enter_si.
5574 (define_expand "omp_simt_exit"): New.
5575 (define_insn "omp_simt_exit"): Rename to ...
5576 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
5579 2019-06-17 Matthew Green <mrg@eterna.com.au>
5580 Maya Rashish <coypu@sdf.org>
5582 * config.gcc (aarch64*-*-netbsd*): New target.
5583 * config/aarch64/aarch64-netbsd.h: New file.
5584 * config/aarch64/t-aarch64-netbsd: Likewise.
5586 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5588 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
5589 the access path from base to first VIEW_CONVERT_EXPR or
5592 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
5594 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
5595 access path on BIT_FIELD_REFs.
5597 2019-06-17 Martin Liska <mliska@suse.cz>
5600 * ipa-utils.h (odr_type_p): Remove dead code.
5602 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5604 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
5605 alternative Solaris 11.4 format.
5606 * configure: Regenerate.
5608 2019-06-17 Tom de Vries <tdevries@suse.de>
5610 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
5611 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
5613 (define_insn "call_value_insn"): Rename to ...
5614 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
5616 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
5619 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
5622 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
5623 frame clobbers and schedule block.
5624 (builtin_longjmp): Likewise.
5626 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5628 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
5629 describe how to perform MSPABI compliant 64-bit shift.
5630 * config/msp430/msp430.md (ashldi3): New define_expand.
5631 (ashrdi3): New define_expand.
5632 (lshrdi3): New define_expand.
5634 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5636 * doc/sourcebuild.texi: Document new effective target keyword
5639 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
5641 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
5642 indirect_refs_may_alias_p): Revert accidental commits.
5644 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
5645 at the end of structures.
5647 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
5649 * config/darwin.c (machopic_indirect_call_target): Use renamed
5650 darwin_picsymbol_stubs to decide on output.
5651 (darwin_override_options): Handle darwin_picsymbol_stubs.
5652 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
5653 (LD64_VERSION): Revise default.
5654 * config/darwin.opt: (mpic-symbol-stubs): New option.
5655 (darwin_picsymbol_stubs): New variable.
5656 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
5657 rename to TARGET_MACHO_PICSYM_STUBS.
5658 * config/i386/i386.c (output_pic_addr_const): Likewise.
5659 * config/i386/i386.h Likewise.
5660 * config/rs6000/darwin.h: Likewise.
5661 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
5662 darwin_picsymbol_stubs.
5664 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
5666 * config/darwin.opt (prebind, noprebind, seglinkedit,
5667 noseglinkedit): Add RejectNegative.
5669 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
5671 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
5672 in my previous patch.
5674 2019-06-16 Tom de Vries <tdevries@suse.de>
5676 PR tree-optimization/89376
5677 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
5679 2019-06-15 Maya Rashish <coypu@sdf.org>
5681 * doc/invoke.texi (Spec Files): Update location of the
5684 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
5686 * doc/extend.texi (Common Function Attributes): Clarify
5687 no_sanitize. Fix grammar.
5689 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
5691 * tree-ssa-alias.c (alias_stats): Add
5692 nonoverlapping_component_refs_p_may_alias,
5693 nonoverlapping_component_refs_p_no_alias,
5694 nonoverlapping_component_refs_of_decl_p_may_alias,
5695 nonoverlapping_component_refs_of_decl_p_no_alias.
5696 (dump_alias_stats): Dump them.
5697 (nonoverlapping_component_refs_of_decl_p): Add stats.
5698 (nonoverlapping_component_refs_p): Add stats; do not stop on first
5701 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
5703 * config/i386/i386.md (and<mode>3): Generate zero-extends for
5704 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
5706 (*anddi3_doubleword): Split before reload. Merge with
5707 anddi->zext pre-reload splitter.
5708 (*andndi3_doubleword): Split before reload.
5709 (*<code>di3_doubleword): Ditto.
5710 (*one_cmpldi2_doubleword): Ditto.
5712 2019-06-15 Jakub Jelinek <jakub@redhat.com>
5715 * gimplify.c: Include omp-offload.h and context.h.
5716 (gimplify_bind_expr): Add "omp declare target" attributes
5717 to static block scope variables inside of target region or target
5720 2019-06-15 Tom de Vries <tdevries@suse.de>
5722 PR tree-optimization/90009
5723 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
5724 Return NULL if bb contains IFN_UNIQUE.
5726 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
5728 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
5729 (un): New define_mode_attr.
5730 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
5731 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
5732 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
5734 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
5736 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
5738 * config/darwin.opt: Add RejectNegative where needed, reorder
5739 and add minimal functional descriptions.
5741 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
5743 PR rtl-optimization/90765
5744 * calls.c (update_stack_alignment_for_call): New function.
5745 (expand_call): Call update_stack_alignment_for_call when
5746 outgoing parameter is passed in the stack.
5747 (emit_library_call_value_1): Likewise.
5748 * function.c (locate_and_pad_parm): Don't update
5749 stack_alignment_needed and preferred_stack_boundary.
5751 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
5754 * config/i386/i386-features.c
5755 (dimode_scalar_chain::compute_convert_gain): Replace
5756 mmxsse_to_integer with sse_to_integer.
5757 * config/i386/i386.c (ix86_register_move_cost): Verify that
5758 moves between MMX and non-MMX units require secondary memory.
5759 Correct costs of moves between SSE and integer units.
5760 * config/i386/i386.h (processor_costs): Rename cost of moving
5761 SSE register to integer to sse_to_integer. Rename cost of
5763 2019-06-14 Matt Thomas <matt@3am-software.com>
5764 Matthew Green <mrg@eterna.com.au>
5765 Nick Hudson <skrll@netbsd.org>
5766 Maya Rashish <coypu@sdf.org>
5767 Richard Earnshaw <rearnsha@arm.com>
5769 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
5770 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
5771 * config/arm/netbsd-eabi.h: New file.
5772 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
5774 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
5775 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
5776 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
5777 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
5779 2019-06-14 Richard Biener <rguenther@suse.de>
5781 * tree-loop-distribution.c (classify_partition): Return
5782 whether a reduction appeared in all partitions and do not
5783 stop builtin detection because of this.
5784 (distribute_loop): Sort a non-builtin partition last if
5785 there's a reduction in all partitions and make sure the
5786 partition prevailing as last is not a builtin.
5788 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
5791 * ipa-prop.c (add_to_agg_contents_list): New function.
5792 (clobber_by_agg_contents_list_p): Likewise.
5793 (extract_mem_content): Likewise.
5794 (get_place_in_agg_contents_list): Delete.
5795 (determine_known_aggregate_parts): Renamed from
5796 determine_locally_known_aggregate_parts. New parameter
5799 2019-06-13 Martin Sebor <msebor@redhat.com>
5801 PR tree-optimization/90662
5802 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
5805 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
5808 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
5809 dbase is not TARGET_MEM_REF.
5811 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
5813 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
5815 (and<mode>3): Use gen_extend_insn instead of indirect functions.
5816 Do not generate DImode extends for 32bit targets.
5817 (and->zext post-reload splitter): Use gen_extend_insn
5818 instead of indirect functions.
5819 (anddi->zext pre-reload splitter): New.
5820 (*zext<mode>_doubleword_and): Remove.
5821 (*zext<mode>_doubleword): Ditto.
5822 (*zextsi_doubleword): Dittto.
5824 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
5826 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
5827 Use gen_sub3_insn instead of indirect function.
5828 (ix86_expand_ashl_const): Use gen_add2_insn instead of
5830 (ix86_adjust_counter): Ditto.
5832 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
5833 Lijia He <helijia@linux.ibm.com>
5835 PR tree-optimization/77820
5836 * tree-ssa-threadedge.c
5837 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
5839 (thread_across_edge): Add call to
5840 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
5842 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
5844 * config/darwin-driver.c (validate_macosx_version_min): New.
5845 (darwin_default_min_version): Cleanup and validate supplied version.
5846 (darwin_driver_init): Likewise and push cleaned version into opts.
5848 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
5850 PR tree-optimization/90869
5851 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
5852 converts in MEM_REF referencing decl rather than view converts
5853 from decl type to MEM_REF type.
5855 2019-06-13 Richard Biener <rguenther@suse.de>
5857 PR tree-optimization/90856
5858 * tree-sra.c (build_ref_for_model): Only use
5859 build_reconstructed_reference when address-spaces are the same.
5861 2019-06-13 Jakub Jelinek <jakub@redhat.com>
5863 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
5864 wrap ei variable name in the declaration in ()s.
5865 (nvptx_single): Actually use mode_label variable. Formatting fix.
5867 2019-06-13 Richard Biener <rguenther@suse.de>
5869 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
5870 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
5871 also return the condition stmt.
5872 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
5873 loop we can version and version that, reusing the loop version
5874 created by if-conversion instead of versioning again.
5876 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
5878 * gimple-loop-versioning.cc (prune_loop_conditions): Use
5880 * tree-vrp (value_range_base::may_contain_p): Call into
5882 (value_inside_range): Make private inside value_range_base class.
5883 Take min/max from *this.
5884 (range_includes_p): Remove.
5885 * tree-vrp.h (value_range_base): Add value_inside_range.
5886 (range_includes_p): Remove.
5887 (range_includes_zero_p): Call may_contain_p.
5888 * vr-values.c (compare_range_with_value): Same.
5890 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
5892 * doc/extend.texi (ARC Function Attributes): Update info.
5894 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
5896 PR tree-optimization/89713
5897 * doc/invoke.texi (-ffinite-loops): Document new option.
5898 * common.opt (-ffinite-loops): New option.
5899 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
5900 IFN_GOACC_LOOP calls as necessary.
5901 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
5903 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
5904 IFN_GOACC_LOOP call is not used.
5905 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
5907 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5910 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
5911 compare_type is not with Pmode size, we will create an IV with
5912 Pmode size with truncated use (i.e. converted to the correct type).
5913 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
5914 (vect_iv_limit_for_full_masking): New. Factored out of
5915 vect_set_loop_condition_masked.
5916 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
5917 (vect_iv_limit_for_full_masking): Declare.
5919 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5922 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
5923 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
5924 (get_alias_ptr_type_for_ptr_address): Likewise.
5925 (add_iv_candidate_for_use): Add scaled index candidate if useful.
5926 * tree-ssa-address.c (preferred_mem_scale_factor): New.
5927 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
5930 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
5932 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
5934 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
5936 * common/config/pru/pru-common.c: New file.
5937 * config.gcc: Add PRU target.
5938 * config/pru/alu-zext.md: New file.
5939 * config/pru/constraints.md: New file.
5940 * config/pru/predicates.md: New file.
5941 * config/pru/pru-opts.h: New file.
5942 * config/pru/pru-passes.c: New file.
5943 * config/pru/pru-pragma.c: New file.
5944 * config/pru/pru-protos.h: New file.
5945 * config/pru/pru.c: New file.
5946 * config/pru/pru.h: New file.
5947 * config/pru/pru.md: New file.
5948 * config/pru/pru.opt: New file.
5949 * config/pru/t-pru: New file.
5950 * doc/extend.texi: Document PRU pragmas.
5951 * doc/invoke.texi: Document PRU-specific options.
5952 * doc/md.texi: Document PRU asm constraints.
5954 2019-06-12 Martin Sebor <msebor@redhat.com>
5957 * tree-pretty-print.c (dump_mem_ref): New function. Include
5958 MEM_REF type in output when different size than operand.
5959 (dump_generic_node): Move code to dump_mem_ref and call it.
5961 2019-06-12 Martin Sebor <msebor@redhat.com>
5963 PR tree-optimization/90662
5964 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
5967 2019-06-12 Tom de Vries <tdevries@suse.de>
5969 PR tree-optimization/90009
5970 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
5972 2019-06-12 Martin Liska <mliska@suse.cz>
5974 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
5976 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
5977 * mem-stats.h (mem_alloc_description::mem_alloc_description):
5978 Do not sanitize created maps.
5980 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
5982 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
5983 value_range::singleton_p.
5984 * tree-vrp.c (value_range_constant_singleton): Remove.
5985 * tree-vrp.h (value_range_constant_singleton): Remove.
5986 * vr-values.c (vr_values::singleton): Use
5987 value_range::singleton_p.
5989 2019-06-12 Jakub Jelinek <jakub@redhat.com>
5992 * cfgexpand.c (align_local_variable): Add really_expand argument,
5993 don't SET_DECL_ALIGN if it is false.
5994 (add_stack_var): Add really_expand argument, pass it through to
5995 align_local_variable.
5996 (expand_one_stack_var_1): Pass true as really_expand to
5997 align_local_variable.
5998 (expand_one_ssa_partition): Pass true as really_expand to
6000 (expand_one_var): Pass really_expand through to add_stack_var.
6002 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
6004 * config/arm/iterators.md (VABAL): New int iterator.
6005 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
6006 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
6007 UNSPEC_VABAL_U values.
6009 2019-06-12 Martin Liska <mliska@suse.cz>
6011 * value-prof.c (stream_out_histogram_value): Only first value
6014 2019-06-12 Jakub Jelinek <jakub@redhat.com>
6017 * symtab.c (symtab_node::set_section): Allow being called on aliases
6018 as long as they aren't analyzed yet.
6020 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
6022 * config/mips/mips.c (mips_final_postscan_insn): Modify call
6023 to `mips_set_text_contents_type' to indicate whether a
6024 non-debug insn follows.
6026 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
6028 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
6029 enabling -mpcrel by default.
6030 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
6031 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
6032 that the test against -mcpu=future is done first. Then test if
6033 -mprefixed-addr is on for -mpcrel.
6034 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
6036 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6039 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
6042 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
6044 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
6046 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
6048 PR c++/90449 - add -Winaccessible-base option.
6049 * doc/invoke.texi (Winaccessible-base): Document.
6051 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
6053 PR tree-optimization/62041
6054 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
6056 2019-06-11 Jason Merrill <jason@redhat.com>
6058 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
6059 * tree.c (get_tree_code_name): Likewise.
6060 * print-tree.c (print_node): Only briefly print a node with an
6063 2019-06-11 Jakub Jelinek <jakub@redhat.com>
6066 * trans-mem.c (tm_memopt_compute_available): Add assertion
6067 that blocks is not empty. Formatting fix.
6069 2019-06-11 Martin Liska <mliska@suse.cz>
6072 * hash-table.h: Extend create_gcc, add one parameter
6073 that is passed into hash_table::hash_table.
6075 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
6077 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
6079 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
6080 Emit clobber also for non-sse operations.
6081 (ix86_split_fp_absneg_operator): New function.
6082 * config/i386/i386.md (SSEMODEF): New mode iterator.
6083 (ssevecmodef): New mode attribute.
6084 (<code>tf2): Use absneg code iterator.
6085 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
6086 Add three-operand AVX alternatives.
6087 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
6088 Use absneg code iterator and X87MODEF mode iterator.
6089 (absneg fp_reg non-sse splitter): Call absneg code iterator
6090 and X87MODEF mode iterator.
6091 (absneg general_reg non-sse splitter): Use absneg code iterator
6092 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
6093 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
6094 code iterator. Add three-operand AVX alternative.
6095 (absneg sse_reg splitter): Use absneg code iterator
6096 and SSEMODEF mode iterator. Handle AVX operands.
6097 (absneg fp_reg splitter): Use absneg code iterator
6098 and MODEF mode iterator.
6099 (absneg general_reg splitter): Merge splitters using MODEF mode
6100 iterator. Use absneg code iterator. Call
6101 ix86_split_fp_absneg_operator.
6102 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
6103 Do not enable for non-sse modes before reload.
6106 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
6107 ssevecmodef mode attribute instaed of CSGNVMODE.
6108 (copysign<mode>3_const): Ditto.
6109 (copysign<mode>3_var): Ditto.
6110 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
6111 Use absneg code iterator. Simplify code using std::swap.
6112 * config/i386/predicates.md (absneg_operator): Remove.
6114 2019-06-10 Martin Sebor <msebor@redhat.com>
6116 * gimple-fold.c (get_range_strlen): Update comment that didn't
6117 make it into r267503 or related commits.
6119 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
6121 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
6122 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
6124 2019-06-10 Jakub Jelinek <jakub@redhat.com>
6126 * tree.def (OMP_SCAN): New tree code.
6127 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
6128 OMP_CLAUSE_EXCLUSIVE.
6129 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
6130 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
6131 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
6132 OMP_CLAUSE_{IN,EX}CLUSIVE.
6133 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6134 * tree-nested.c (convert_nonlocal_reference_stmt,
6135 convert_local_reference_stmt, convert_gimple_call): Handle
6137 * tree-pretty-print.c (dump_omp_clause): Handle
6138 OMP_CLAUSE_{IN,EX}CLUSIVE.
6139 (dump_generic_node): Handle OMP_SCAN.
6140 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
6141 * gimple.h (gomp_scan): New type.
6142 (is_a_helper <gomp_scan *>::test,
6143 is_a_helper <const gomp_scan *>::test): New templates.
6144 (gimple_build_omp_scan): Declare.
6145 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
6146 gimple_omp_scan_set_clauses): New inline functions.
6147 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
6148 * gimple.c (gimple_build_omp_scan): New function.
6149 (gimple_copy): Handle GIMPLE_OMP_SCAN.
6150 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
6151 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
6152 GIMPLE_OMP_TASKGROUP.
6153 (dump_gimple_omp_scan): New function.
6154 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
6155 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
6156 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
6157 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
6158 (is_gimple_stmt): Handle OMP_SCAN.
6159 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
6160 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
6161 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
6162 mentioned in nested #pragma omp scan. Handle
6163 OMP_CLAUSE_{IN,EX}CLUSIVE.
6164 (gimplify_expr): Handle OMP_SCAN.
6165 * omp-low.c (check_omp_nesting_restrictions): For parent context,
6166 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
6168 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
6171 2019-06-10 Martin Liska <mliska@suse.cz>
6173 * ipa-cp.c (ignore_edge_p): New function.
6174 (build_toporder_info): Use it.
6175 * ipa-inline.c (ignore_edge_p): New function.
6176 (inline_small_functions): Use it.
6177 * ipa-pure-const.c (ignore_edge_for_nothrow):
6178 Verify opt_for_fn for caller and callee.
6179 (ignore_edge_for_pure_const): Likewise.
6180 * ipa-reference.c (ignore_edge_p): Extend to check
6182 * ipa-utils.c (searchc): Refactor.
6183 * ipa-utils.h: Fix coding style.
6185 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
6187 * config/arc/arc.c (arc_rtx_costs): Update costs.
6189 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
6191 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
6192 (arc_split_ior): Likewise.
6193 (arc_check_mov_const): Likewise.
6194 (arc_split_mov_const): Likewise.
6195 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
6196 (arc_rtx_costs): Replace check Crr with Cax constraint.
6197 (prepare_move_operands): Cleanup, remove unused code.
6198 (arc_split_ior): New function.
6199 (arc_check_ior_const): Likewise.
6200 (arc_split_mov_const): Likewise.
6201 (arc_check_mov_const): Likewise.
6202 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
6203 in define_insn_and_split pattern.
6205 (mulsi3_v2): Add new matching variant.
6206 (andsi3_i): Cleanup pattern.
6207 (rotrsi3_cnt1): Update pattern.
6208 (rotrsi3_cnt8): New pattern.
6209 (ashlsi2_cnt8): Likewise.
6210 (ashlsi2_cnt16): Likewise.
6211 * config/arc/constraints.md (C0p): Update constraint.
6216 2019-06-10 Martin Liska <mliska@suse.cz>
6218 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
6219 Update coding style.
6220 (sem_item_optimizer::dump_cong_classes):
6221 Print how many items are in a non-singular class. Improve
6224 2019-06-10 Martin Liska <mliska@suse.cz>
6226 * value-prof.c (dump_histogram_value): Change dump format.
6227 (gimple_mod_subtract_transform): Remove legacy comment.
6229 2019-06-10 Martin Liska <mliska@suse.cz>
6231 * value-prof.c (dump_histogram_value): Print histogram values
6234 2019-06-10 Martin Liska <mliska@suse.cz>
6236 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
6237 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
6238 * ipa-profile.c (ipa_profile_generate_summary):
6239 Use get_most_common_single_value.
6240 * tree-profile.c (gimple_init_gcov_profiler):
6241 Instrument with __gcov_one_value_profiler_v2
6242 and __gcov_indirect_call_profiler_v4.
6243 * value-prof.c (dump_histogram_value):
6244 Print all values for HIST_TYPE_SINGLE_VALUE.
6245 (stream_out_histogram_value): Update assert for
6247 (stream_in_histogram_value): Set number of
6248 counters for HIST_TYPE_SINGLE_VALUE.
6249 (get_most_common_single_value): New.
6250 (gimple_divmod_fixed_value_transform):
6251 Use get_most_common_single_value.
6252 (gimple_ic_transform): Likewise.
6253 (gimple_stringops_transform): Likewise.
6254 (gimple_find_values_to_profile): Set number
6255 of counters for HIST_TYPE_SINGLE_VALUE.
6256 * value-prof.h (get_most_common_single_value): New.
6258 2019-06-10 Martin Liska <mliska@suse.cz>
6260 * hash-map.h: Pass default value to hash_table ctor.
6261 * hash-table.h: Add default value to call of a ctor.
6263 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
6265 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
6266 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
6268 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
6271 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
6272 Call pa_output_function_label.
6273 (TARGET_ASM_FUNCTION_PROLOGUE): define.
6274 * config/pa/pa-protos.h (pa_output_function_label): Declare.
6275 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
6277 (pa_linux_output_function_prologue): Declare.
6278 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
6279 (pa_output_function_label): New.
6280 (pa_output_function_prologue): Revise to use pa_output_function_label.
6281 (pa_linux_output_function_prologue): New.
6282 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
6284 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
6286 * tree-vrp.h (value_range_base::intersect): New.
6287 (value_range::intersect_helper): Move from here...
6288 (value_range_base::intersect_helper): ...to here.
6289 * tree-vrp.c (value_range::intersect_helper): Rename to...
6290 (value_range_base::intersect_helper): ...this, and rewrite to
6291 return a value instead of modifying THIS in place.
6292 Also, move equivalence handling...
6293 (value_range::intersect): ...here, while calling intersect_helper.
6294 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
6296 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
6298 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
6300 2019-06-07 Jakub Jelinek <jakub@redhat.com>
6302 * Makefile.in (genprogerr): Add condmd.
6303 (genprog): Remove it here.
6305 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
6307 * doc/invoke.texi (AMD GCN Options): Add gfx906.
6309 2019-06-07 Richard Biener <rguenther@suse.de>
6312 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
6313 that appear after user labels.
6315 2019-06-07 Martin Liska <mliska@suse.cz>
6317 * cselib.c (cselib_init): Disable hash table
6319 * hash-set.h: Pass new default argument to m_table.
6320 * hash-table.c: Add global variable with hash table
6322 * hash-table.h (Allocator>::hash_table): Add new argument
6324 (hashtab_chk_error): New.
6325 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
6326 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
6327 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
6329 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6331 * common.opt (flto-odr-type-merging): Ignore.
6332 * invoke.texi (-flto-odr-type-merging): Remove.
6333 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
6334 (can_be_vtable_hashed_p): Remove.
6335 (hash_odr_vtable): Remove.
6336 (odr_vtable_hasher::hash): Remove.
6337 (types_same_for_odr): Remove.
6338 (types_odr_comparable): Remove.
6339 (odr_vtable_hasher::equal): Remove.
6340 (odr_vtable_hash_type, odr_vtable_hash): Remove.
6341 (add_type_duplicate): Do not synchronize vtable and name hashtables.
6342 (get_odr_type): Do not use vtable hash.
6343 (dump_odr_type): Remove commented out code.
6344 (build_type_inheritance_graph): Do not allocate vtable hash.
6345 (rebuild_type_inheritance_graph): Do not delete vtable hash.
6346 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
6347 (odr_type_p): Likewise.
6348 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
6351 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
6353 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
6354 immediately after same_types_for_tbaa_p returns -1 and continue
6355 looking for possible exact match; if matching types are arrays
6356 watch for partial overlaps.
6357 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
6358 (indirect_refs_may_alias_p): Do type based disambiguation first;
6361 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
6363 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
6365 2019-06-07 Martin Liska <mliska@suse.cz>
6367 * doc/invoke.texi: Remove param.
6368 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
6370 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
6371 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
6372 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
6373 * profile.c (instrument_values): Remove
6374 HIST_TYPE_INDIR_CALL_TOPN.
6375 * tree-profile.c (init_ic_make_global_vars):
6376 Always build __gcov_indirect_call only.
6377 (gimple_init_gcov_profiler): Remove usage
6378 of PARAM_INDIR_CALL_TOPN_PROFILE.
6379 (gimple_gen_ic_profiler): Likewise.
6380 * value-prof.c (dump_histogram_value): Likewise.
6381 (stream_in_histogram_value): Likewise.
6382 (gimple_indirect_call_to_profile): Likewise.
6383 (gimple_find_values_to_profile): Likewise.
6384 * value-prof.h (enum hist_type): Likewise.
6386 2019-06-07 Martin Liska <mliska@suse.cz>
6388 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
6391 2019-06-07 Martin Liska <mliska@suse.cz>
6393 PR tree-optimization/78902
6394 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
6395 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
6396 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6397 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
6398 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
6399 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6400 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
6401 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
6402 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6403 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
6404 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
6405 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
6406 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
6408 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
6409 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
6410 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
6411 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6412 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
6413 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
6414 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6415 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
6416 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
6417 warn_unused_result attribute.
6418 (BUILT_IN_STRDUP): Likewise.
6419 (BUILT_IN_STRNDUP): Likewise.
6420 (BUILT_IN_ALLOCA): Likewise.
6421 (BUILT_IN_CALLOC): Likewise.
6422 (BUILT_IN_MALLOC): Likewise.
6423 (BUILT_IN_REALLOC): Likewise.
6425 2019-06-06 Jim Wilson <jimw@sifive.com>
6428 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
6429 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
6430 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
6432 2019-06-06 Martin Sebor <msebor@redhat.com>
6434 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
6435 (handle_builtin_malloc): Remove trailing spaces.
6436 (handle_builtin_memset): Same.
6437 (handle_builtin_memcmp): Same.
6438 (compute_string_length): Same.
6439 (determine_min_objsize): Same.
6440 (handle_builtin_string_cmp): Same.
6441 (handle_char_store): Same. Break up excessively long line.
6443 2019-06-06 Martin Jambor <mjambor@suse.cz>
6445 * tree-sra.c (build_reconstructed_reference): Drop the alignment
6448 2019-06-06 Martin Jambor <mjambor@suse.cz>
6450 * tree-sra.c (struct access): New field grp_same_access_path.
6451 (dump_access): Dump it.
6452 (build_reconstructed_reference): New function.
6453 (build_ref_for_model): Use it if possible.
6454 (path_comparable_for_same_access): New function.
6455 (same_access_path_p): Likewise.
6456 (sort_and_splice_var_accesses): Set the new flag.
6457 (analyze_access_subtree): Likewise.
6458 (propagate_subaccesses_across_link): Propagate zero value of the new
6459 flag down the access tree.
6461 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
6463 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
6464 * config/gcn/gcn.opt (gpu_type): Add gfx906.
6465 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
6466 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
6469 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6471 PR tree-optimization/90332
6472 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
6473 Handle VALS containing two vectors.
6474 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
6476 (@aarch64_combinez<mode>): ... This.
6477 (*aarch64_combinez_be<mode>): Rename to...
6478 (@aarch64_combinez_be<mode>): ... This.
6479 (vec_init<mode><Vhalf>): New define_expand.
6480 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
6482 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6484 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
6485 library functions only when not optimizing for size.
6486 (ashlsi3): Likewise.
6487 (ashrhi3): Likewise.
6488 (ashrsi3): Likewise.
6489 (lshrhi3): Likewise.
6490 (lshrsi3): Likewise.
6492 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
6494 PR rtl-optimization/88751
6495 * ira.c (ira): Use the number of the actually referenced registers
6496 when calculating the threshold.
6498 2019-06-06 Jakub Jelinek <jakub@redhat.com>
6500 * configure: Regenerate.
6502 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6504 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
6505 register if it is in memory, so the shift can be emulated with a rotate
6507 (ashrhi3): Likewise.
6508 (lshrhi3): Likewise.
6510 2019-06-06 Martin Liska <mliska@suse.cz>
6512 PR tree-optimization/87954
6513 * match.pd: Simplify mult where both arguments are 0 or 1.
6515 2019-06-06 Richard Biener <rguenther@suse.de>
6517 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
6518 put equivalences on UNDEFINED ranges.
6519 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
6520 Make sure to drop defs of stmts added during simplification
6523 2019-06-06 Richard Biener <rguenther@suse.de>
6525 * tree-ssa-structalias.c: Include tree-cfg.h.
6526 (make_heapvar): Do not make heap vars artificial.
6527 (find_func_aliases_for_builtin_call): Handle stack allocation
6529 (find_func_aliases): Delay processing of simple enough returns
6531 (set_uids_in_ptset): Adjust.
6532 (find_what_var_points_to): Likewise.
6533 (solve_constraints): Do not dump points-to sets here.
6534 (compute_points_to_sets): Post-process return statements,
6535 amending the escaped solution. Dump points-to sets afterwards.
6536 (ipa_pta_execute): Dump points-to sets.
6538 2019-06-06 Martin Liska <mliska@suse.cz>
6541 * doc/install.texi: Fix HTML headers and
6542 titles for 'Installing GCC' pages.
6544 2019-06-06 Martin Liska <mliska@suse.cz>
6546 * ipa-icf-gimple.h (dump_message_1): Remove.
6547 (dump_message): Likewise.
6548 (return_false_with_message_1): Print also file.
6549 (return_false_with_msg): Likewise.
6550 (return_with_result): Likewise.
6551 (return_with_debug): Likewise.
6552 * ipa-icf.c (sem_function::equals_private): Remove call
6555 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
6557 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
6558 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
6559 memory operand for it.
6560 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
6562 2019-06-05 Martin Sebor <msebor@redhat.com>
6564 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
6565 Adjust quoting and hyphenation.
6566 * convert.c (convert_to_real_1): Same.
6567 * gcc.c (driver_wrong_lang_callback): Same.
6568 (driver::handle_unrecognized_options): Same.
6569 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
6570 * opts-common.c (cmdline_handle_error): Same.
6571 (read_cmdline_option): Same.
6572 * opts-global.c (complain_wrong_lang): Same.
6573 (print_ignored_options): Same.
6574 (handle_common_deferred_options): Same.
6575 * pretty-print.h: Same.
6576 * print-rtl.c (debug_bb_n_slim): Same.
6577 * sched-rgn.c (make_pass_sched_fusion): Same.
6578 * tree-cfg.c (verify_gimple_assign_unary): Same.
6579 (verify_gimple_label): Same.
6580 * tree-ssa-operands.c (verify_ssa_operands): Same.
6581 * varasm.c (do_assemble_alias): Same.
6582 (assemble_alias): Same.
6584 2019-06-05 Richard Henderson <rth@twiddle.net>
6586 * config/alpha/alpha.c (direct_return): Move down after
6587 struct machine_function definition; use saved frame_size;
6589 (struct machine_function): Add sa_mask, sa_size, frame_size.
6590 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
6591 (alpha_compute_frame_layout): ... new function.
6592 (TARGET_COMPUTE_FRAME_LAYOUT): New.
6593 (alpha_initial_elimination_offset): Use saved sa_size.
6594 (alpha_vms_initial_elimination_offset): Likewise.
6595 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
6596 (alpha_expand_prologue): Use saved frame data. Merge integer
6597 and fp register save loops.
6598 (alpha_expand_epilogue): Likewise.
6599 (alpha_start_function): Use saved frame data.
6600 * config/alpha/alpha-protos.h (direct_return): Update.
6601 (alpha_sa_size): Remove.
6603 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
6605 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
6606 multiplication by a power-of-two value.
6607 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
6608 and turn the modulo operation into a masking operation.
6610 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6613 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
6614 with VOIDmode inner operands.
6616 2019-06-05 Richard Biener <rguenther@suse.de>
6619 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
6620 turn an expression graph into a tree.
6622 2019-06-05 Jakub Jelinek <jakub@redhat.com>
6624 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
6626 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
6627 treat it like explicit monotonic schedule modifier.
6628 (expand_omp_for): Initialize has_lastprivate_conditional.
6629 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
6632 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
6633 references, lookup in in hash map MEM_REF operand instead of the
6635 (lower_omp_1): When looking for lastprivate conditional assignments,
6636 handle MEM_REFs with REFERENCE_TYPE operands.
6638 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
6639 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
6640 and references a VLA. Handle references to non-VLAs if is_simd
6641 all privatization clauses like reductions.
6642 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
6643 If omp_is_reference, use always omp simd arrays and set
6644 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
6645 fails, emit reference initialization.
6647 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
6650 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
6651 _mm_mask_fpclass_sd_mask): New intrinsics.
6652 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
6653 * config/i386/i386-builtin.def
6654 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
6656 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
6657 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
6658 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
6659 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
6660 case QI_FTYPE_V2SF_INT): Ditto.
6661 * config/i386/sse.md
6662 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
6663 Extended to insnstructions with mask operands.
6665 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6667 * config/rs6000/constraints.md (define_register_constraint "wp"):
6669 (define_register_constraint "wq"): Delete.
6670 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6671 (rs6000_init_hard_regno_mode_ok): Adjust.
6672 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6673 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
6674 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
6675 (define_mode_attr VSa): Delete.
6676 (define_mode_attr VSisa): New.
6677 (rest of file): Adjust.
6678 * doc/md.texi (Machine Constraints): Adjust.
6680 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6682 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
6683 (define_attr "enabled"): Handle those new isa values.
6685 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6687 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
6688 (define_mode_attr VSr5): Delete.
6689 (define_mode_attr VStype_sqrt): Delete.
6690 (define_mode_iterator VSX_SPDP): Delete.
6691 (define_mode_attr VS_spdp_res): Delete.
6692 (define_mode_attr VS_spdp_insn): Delete.
6693 (define_mode_attr VS_spdp_type): Delete.
6694 (*vsx_sqrt<mode>2): Adjust.
6695 (vsx_<VS_spdp_insn>): Delete, split to...
6696 (vsx_xscvdpsp): ... this. New. And...
6697 (vsx_xvcvspdp): ... this. New. And...
6698 (vsx_xvcvdpsp): ... this. New.
6700 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6702 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
6704 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
6705 (rest of file): Adjust.
6707 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6709 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
6710 (vsx_extract_<mode>_var): Ditto.
6712 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6714 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
6717 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6719 * config/rs6000/constraints.md (define_register_constraint "ww"):
6721 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6722 (rs6000_init_hard_regno_mode_ok): Adjust.
6723 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6724 RS6000_CONSTRAINT_ww.
6725 * config/rs6000/rs6000.md: Adjust.
6726 * config/rs6000/vsx.md: Adjust.
6727 * doc/md.texi (Machine Constraints): Adjust.
6729 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6731 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
6732 (define_mode_attr sd): New.
6733 (define_mode_attr s): New.
6734 (define_mode_attr Ftrad): Delete.
6735 (define_mode_attr Fvsx): Delete.
6736 (define_mode_attr Fs): Delete.
6737 (rest of file): Use the new mode attributes.
6738 * config.rs6000/vsx.md: Use the new mode attributes.
6740 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6742 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
6745 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6747 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
6748 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
6749 used with VSX_B, VSX_D, or VSX_F, with just "wa".
6751 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
6754 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
6755 C++ with strict ANSI requirements.
6757 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
6759 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
6760 computations when step is 1.
6762 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6764 * config/rs6000/constraints.md (define_register_constraint "wf"):
6766 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6767 (rs6000_init_hard_regno_mode_ok): Adjust.
6768 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6769 RS6000_CONSTRAINT_wf.
6770 * config/rs6000/rs6000.md: Adjust.
6771 * config/rs6000/vsx.md: Adjust.
6772 * doc/md.texi (Machine Constraints): Adjust.
6774 2019-06-04 Andrew Pinski <apinski@marvell.com>
6776 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
6779 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6781 * config/rs6000/constraints.md (define_register_constraint "wd"):
6783 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6784 (rs6000_init_hard_regno_mode_ok): Adjust.
6785 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6786 RS6000_CONSTRAINT_wd.
6787 * config/rs6000/rs6000.md: Adjust.
6788 * config/rs6000/vsx.md: Adjust.
6789 * doc/md.texi (Machine Constraints): Adjust.
6791 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6793 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
6794 (rest of file): Adjust.
6796 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6798 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
6799 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
6800 (vsx_splat_<mode>_reg): Adjust.
6802 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6804 * config/rs6000/constraints.md (define_register_constraint "ws"):
6806 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6807 (rs6000_init_hard_regno_mode_ok): Adjust.
6808 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6809 RS6000_CONSTRAINT_ws.
6810 * config/rs6000/rs6000.md: Adjust.
6811 * config/rs6000/vsx.md: Adjust.
6812 * doc/md.texi (Machine Constraints): Adjust.
6814 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6816 * config/rs6000/constraints.md (define_register_constraint "wv"):
6818 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6819 (rs6000_init_hard_regno_mode_ok): Adjust.
6820 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6821 RS6000_CONSTRAINT_wv.
6822 * config/rs6000/rs6000.md: Adjust.
6823 * config/rs6000/vsx.md: Adjust.
6824 * doc/md.texi (Machine Constraints): Adjust.
6826 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
6828 * config/rs6000/constraints.md (define_register_constraint "wi"):
6830 (define_register_constraint "wt"): Delete.
6831 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6832 (rs6000_init_hard_regno_mode_ok): Adjust.
6833 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6834 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
6835 * config/rs6000/rs6000.md: Adjust.
6836 * config/rs6000/vsx.md: Adjust.
6837 * doc/md.texi (Machine Constraints): Adjust.
6839 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
6841 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
6843 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
6844 default_elf_asm_output_external.
6846 2019-06-04 Martin Liska <mliska@suse.cz>
6848 * ipa-icf.c (INCLUDE_LIST): Remove.
6849 (sem_item_optimizer::execute): Remove call to init_wpa.
6850 * ipa-icf.h (init_wpa): Remove.
6852 2019-06-04 Jakub Jelinek <jakub@redhat.com>
6854 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
6855 conditional on combined for simd.
6856 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
6858 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
6859 constructs, don't remove lastprivate_conditional_map, but instead set
6860 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
6861 to parent construct temporaries.
6862 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
6863 like !ctx->lastprivate_conditional_map.
6864 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
6865 use up->outer context instead of up.
6866 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
6867 gimple_omp_for_combined_p.
6868 (expand_omp_for_static_nochunk): Likewise.
6869 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
6870 probably moved over into expand_omp_for_generic rather than being copied
6873 2019-06-04 Martin Liska <mliska@suse.cz>
6875 * value-prof.c (dump_histogram_value): Fix typo.
6876 (gimple_mod_subtract_transform): Likewise.
6878 2019-06-04 Richard Biener <rguenther@suse.de>
6881 * tree-chrec.c (chrec_contains_symbols): Add to visited.
6882 (tree_contains_chrecs): Likewise.
6883 (chrec_contains_symbols_defined_in_loop): Move here and avoid
6884 exponential behaivor from ...
6885 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
6887 (expression_expensive_p): Avoid exponential behavior and compute
6888 expanded size, rejecting any expansion.
6889 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
6890 (idx_contains_abnormal_ssa_name_p): Likewise.
6891 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
6892 (contains_abnormal_ssa_name_p): Simplify and use
6893 walk_tree_without_duplicates.
6895 2019-06-04 Richard Biener <rguenther@suse.de>
6897 PR tree-optimization/90738
6899 2019-06-03 Richard Biener <rguenther@suse.de>
6901 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
6902 full reference tree and record in ref->ref.
6903 (vn_reference_lookup_3): Pass in original ref to
6904 ao_ref_init_from_vn_reference.
6905 (vn_reference_lookup): Likewise.
6906 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
6907 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
6908 Handle non-decl bases in the original reference.
6910 2019-06-04 Martin Liska <mliska@suse.cz>
6912 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
6913 number of references.
6914 (sem_item_optimizer::do_congruence_step):
6915 (sem_item_optimizer::worklist_push): Dump how references
6917 (sem_item_optimizer::worklist_pop): Use heap.
6918 (sem_item_optimizer::process_cong_reduction): Likewise.
6919 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
6921 2019-06-04 Martin Liska <mliska@suse.cz>
6923 * ipa-icf.h (struct sem_usage_pair_hash): New.
6924 (sem_usage_pair_hash::hash): Likewise.
6925 (sem_usage_pair_hash::equal): Likewise.
6926 (struct sem_usage_hash): Likewise.
6927 * ipa-icf.c (sem_item::sem_item): Initialize
6928 referenced_by_count.
6929 (sem_item::add_reference): Register a reference
6930 in ref_map and not in target->usages.
6931 (sem_item::setup): Remove initialization of
6933 (sem_item::~sem_item): Remove usage of dead vectors.
6934 (sem_item::dump): Remove dump of references.
6935 (sem_item_optimizer::sem_item_optimizer): Initialize
6937 (sem_item_optimizer::read_section): Remove useless
6939 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
6940 (sem_item_optimizer::build_graph): Pass m_references
6942 (sem_item_optimizer::verify_classes): Remove usage of dead
6944 (sem_item_optimizer::traverse_congruence_split): Return true
6945 when a class is split.
6946 (sem_item_optimizer::do_congruence_step_for_index): Use
6947 hash_map for look up of (sem_item *, index). That brings
6948 significant speed up.
6949 (sem_item_optimizer::do_congruence_step): Return true
6950 when a split is done.
6951 (congruence_class::is_class_used): Use referenced_by_count.
6953 2019-06-04 Alan Modra <amodra@gmail.com>
6956 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
6959 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
6961 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
6962 * config/rs6000/rs6000.c (direct_move_p): Adjust.
6963 (rs6000_secondary_reload_simple_move): Adjust.
6964 (rs6000_opt_masks): Neuter the "mfpgpr" option.
6965 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
6966 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
6969 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
6970 (floatunssi<mode>2_lfiwzx): Adjust.
6971 (fix_trunc<mode>si2_stfiwx): Adjust.
6972 (fixuns_trunc<mode>si2_stfiwx): Adjust.
6973 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
6974 (mfpgpr): Mark as deprecated.
6975 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
6976 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
6977 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
6979 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
6981 * config/rs6000/constraints.md (define_register_constraint "wg"):
6983 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
6984 RS6000_CONSTRAINT_wg.
6985 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
6986 (rs6000_init_hard_regno_mode_ok): Adjust.
6987 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
6988 Delete "wg" alternatives.
6989 * doc/md.texi (Machine Constraints): Adjust.
6991 2019-06-03 Alan Modra <amodra@gmail.com>
6993 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
6994 (get_uncond_jump_length): Assert length less than INT_MAX and
6997 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
7000 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
7002 (expand_builtin_nonlocal_goto): Likewise.
7004 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
7006 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
7007 (aarch64_asm_output_external): Declare.
7008 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
7009 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
7010 (aarch64_asm_output_alias): New.
7011 (aarch64_asm_output_external): New.
7012 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
7013 (ASM_OUTPUT_EXTERNAL): Define.
7015 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
7016 * tree-vrp.h (value_range_base::nonzero_p): New.
7017 (value_range_base::set_nonnull): Rename to...
7018 (value_range_base::set_nonzero): ...this.
7019 (value_range_base::set_null): Rename to...
7020 (value_range_base::set_zero): ...this.
7021 (value_range::set_nonnull): Remove.
7022 (value_range::set_null): Remove.
7023 * tree-vrp.c (range_is_null): Remove.
7024 (range_is_nonnull): Remove.
7025 (extract_range_from_binary_expr): Use value_range_base::*zero_p
7026 instead of range_is_*null.
7027 (extract_range_from_unary_expr): Same.
7028 (value_range_base::set_nonnull): Rename to...
7029 (value_range_base::set_nonzero): ...this.
7030 (value_range::set_nonnull): Remove.
7031 (value_range_base::set_null): Rename to...
7032 (value_range_base::set_zero): ...this.
7033 (value_range::set_null): Remove.
7034 (extract_range_from_binary_expr): Rename set_*null uses to
7036 (extract_range_from_unary_expr): Same.
7037 (union_helper): Same.
7038 * vr-values.c (get_value_range): Use set_*zero instead of
7040 (vr_values::extract_range_from_binary_expr): Same.
7041 (vr_values::extract_range_basic): Same.
7043 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
7046 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
7048 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7050 * config/aarch64/iterators.md (MAX_OPP): New code attr.
7051 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
7053 (aarch64_<su>abd<mode>_3): ... This.
7054 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
7056 2019-06-03 Richard Biener <rguenther@suse.de>
7058 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
7059 full reference tree and record in ref->ref.
7060 (vn_reference_lookup_3): Pass in original ref to
7061 ao_ref_init_from_vn_reference.
7062 (vn_reference_lookup): Likewise.
7063 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
7064 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
7065 Handle non-decl bases in the original reference.
7067 2019-06-03 Martin Liska <mliska@suse.cz>
7069 * doc/generic.texi: Remove Java Trees.
7071 2019-06-03 Martin Liska <mliska@suse.cz>
7073 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
7074 returns 0 when operands are equal.
7076 2019-06-03 Richard Biener <rguenther@suse.de>
7078 PR tree-optimization/90716
7079 * tree-loop-distribution.c (destroy_loop): Process blocks in
7082 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7085 * vector-builder.h (vector_builder::count_dups): New method.
7086 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
7088 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
7089 (vec_init<mode><Vel>): New pattern.
7090 * config/aarch64/aarch64.c (emit_insr): New function.
7091 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
7092 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
7093 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
7094 (aarch64_sve_expand_vector_init): Define two overloaded functions.
7096 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7098 PR tree-optimization/90681
7099 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
7100 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
7101 special case for SLP, but fail on non-groupped loads.
7103 2019-06-03 Martin Liska <mliska@suse.cz>
7105 * cfg.c (debug): Use TDF_DETAILS for debug and
7106 print edge info only once.
7108 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
7111 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
7113 2019-06-01 Martin Sebor <msebor@redhat.com>
7116 * tree-pretty-print.c (dump_generic_node): Add parentheses.
7118 2019-05-31 Jan Hubicka <jh@suse.cz>
7120 * alias.c: Include ipa-utils.h.
7121 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
7122 * ipa-devirt.c (prevailing_odr_type): New.
7123 * ipa-utils.h (previaling_odr_type): Declare.
7125 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
7126 Hongtao Liu <hongtao.liu@intel.com>
7129 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
7130 NOTE_INSN_DELETED_LABEL check.
7132 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
7133 Robert Suchanek <robert.suchanek@mips.com>
7135 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
7136 and 3rd operands of the fmadd/fmsub/maddv builtin.
7138 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7140 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
7141 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7142 on OMP_SIMD if not nested inside of worksharing loop that also has
7143 lastprivate conditional clause for the same decl.
7144 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
7145 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
7147 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
7149 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
7151 (lower_lastprivate_clauses): Likewise.
7152 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
7153 calling lower_rec_input_clauses.
7154 (lower_omp_for): Likewise.
7155 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
7156 clause on simd construct.
7157 * omp-expand.c (expand_omp_simd): Initialize cond_var if
7158 OMP_CLAUSE__CONDTEMP_ clause is present.
7160 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
7163 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
7166 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
7167 TEX_D32, TEX_D64 or TEX_D128.
7169 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
7171 * match.pd (~(vec?cst1:cst2)): New transformation.
7173 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
7175 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
7176 ((size_t)(A /[ex] B) CMP C): New transformation.
7178 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
7180 * doc/md.texi: Document define_insn_and_rewrite.
7181 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
7182 * gensupport.c (queue_elem): Update comment.
7183 (replace_operands_with_dups): New function.
7184 (gen_rewrite_sequence): Likewise.
7185 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
7186 * read-rtl.c (apply_subst_iterator): Likewise.
7187 (add_condition_to_rtx, named_rtx_p): Likewise.
7188 (rtx_reader::read_rtx_operand): Likewise.
7189 * config/aarch64/aarch64-sve.md
7190 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
7191 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
7192 define_insn_and_rewrite.
7193 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
7194 Remove separate define_split.
7196 2019-05-31 Jan Hubicka <jh@suse.cz>
7198 * tree-ssa-alias.c (type_has_components_p): New function.
7199 (aliasing_component_refs_p): Use it.
7201 2019-05-31 Martin Liska <mliska@suse.cz>
7203 * gdbhooks.py: Add const_tree to TreePrinter.
7205 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
7208 * common.opt (feliminate-unused-debug-symbols): Enable by default.
7209 * doc/invoke.texi (Debugging Options): Document new default of
7210 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
7212 2019-05-31 Jakub Jelinek <jakub@redhat.com>
7214 PR tree-optimization/90671
7215 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
7216 template_block used to be empty on the first call, don't use
7217 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
7218 seq with bb_seq and set it with set_bb_seq.
7220 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
7222 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
7224 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7225 Michael Meissner <meissner@linux.ibm.com>
7227 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
7228 (prefixed_mem_operand): Likewise.
7229 (non_prefixed_mem_operand): Likewise.
7230 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
7232 * config/rs6000/rs6000.c (print_operand_address): Handle
7233 PC-relative addresses.
7234 (mode_supports_prefixed_address_p): New function.
7235 (rs6000_prefixed_address): New function.
7236 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
7237 (SYMBOL_REF_PCREL_P): Likewise.
7239 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7241 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
7242 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
7243 (gimplify_omp_for): If worksharing loop with lastprivate conditional
7244 is nested inside of parallel region, add _condtemp_ clause to both.
7245 * tree-nested.c (convert_nonlocal_omp_clauses,
7246 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
7248 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
7250 * omp-general.c (omp_extract_for_data): Compute it.
7251 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
7252 (lower_rec_input_clauses): Likewise.
7253 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
7254 clause is already present, just add one further one after it.
7255 (lower_lastprivate_clauses): Handle cond_ptr with array type.
7256 (lower_send_shared_vars): Clear _condtemp_ vars.
7257 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
7258 or section or taskgroup.
7259 * omp-expand.c (determine_parallel_type): Disallow combining only if
7260 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
7261 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
7262 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7263 expand_omp_for_static_chunk, expand_omp_for): Use
7264 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
7265 determine if a special set of API routines are needed and if condtemp
7266 needs to be initialized, while always initialize cond_var if
7267 fd->lastprivate_conditional is non-zero.
7269 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7270 Michael Meissner <meissner@linux.ibm.com>
7272 * config/rs6000/constraints.md (eI): New constraint.
7273 * config/rs6000/predicates.md (cint34_operand): New predicate.
7274 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
7275 (SIGNED_34BIT_OFFSET_P): Likewise.
7276 * doc/md.texi (eI): Document constraint.
7278 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
7280 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
7282 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
7283 Michael Meissner <meissner@linux.ibm.com>
7285 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
7286 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
7287 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
7288 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
7289 (OTHER_FUTURE_MASKS): Likewise.
7290 (POWERPC_MASKS): Likewise.
7291 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
7292 specified without -mprefixed-addr or -mcpu=future. Error if
7293 -mprefixed-addr is specified without -mcpu=future.
7294 (rs6000_opt_masks): Add entry for prefixed-addr.
7295 * rs6000.opt (mprefixed-addr): New option.
7297 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
7299 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
7300 cfun->is_thunk check.
7302 2019-05-30 Jakub Jelinek <jakub@redhat.com>
7304 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
7307 2019-05-30 Martin Liska <mliska@suse.cz>
7309 * gdbinit.in: Fix 'ptc' command. Add trt
7310 that prints TREE_TYPE($).
7312 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
7313 Alan Modra <amodra@gmail.com>
7315 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
7317 (rs6000_indirect_call_template_1): ...and here.
7318 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
7319 plt16_ha, plt16_lo, mtctr indirect calls. Use
7321 (rs6000_decl_ok_for_sibcall): New function.
7322 (rs6000_function_ok_for_sibcall): Refactor.
7323 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
7324 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
7325 when pcrel. Reorganize.
7326 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
7327 * rs6000.h (rs6000_pltseq_enum): New enum.
7328 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
7329 (*pltseq_tocsave): Use rs6000_pltseq_enum.
7330 (*pltseq_plt16_ha): Likewise.
7331 (*pltseq_plt16_lo): Likewise.
7332 (*pltseq_mtctr): Likewise.
7333 (*pltseq_plt_pcrel): New insn.
7334 (*call_local_aix): Handle @notoc calls.
7335 (*call_value_local_aix): Likewise.
7336 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
7337 (*call_value_nonlocal_aix): Likewise.
7338 (*call_indirect_pcrel): New insn.
7339 (*call_value_indirect_pcrel): Likewise.
7341 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
7343 * config/i386/sse.md (*save_multiple<mode>): Rename from
7344 save_multiple<mode>.
7345 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
7346 (*restore_multiple_and_return<mode>): Rename from
7347 restore_multiple_and_return<mode>.
7348 (*restore_multiple_leave_return<mode>): Rename from
7349 restore_multiple_leave_return<mode>.
7351 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
7353 * config.gcc (rx-*-linux*): New target.
7354 * config/rx/elf.opt: New file.
7355 * config/rx/linux.h: Likewise.
7356 * config/rx/t-linux: Likewise.
7357 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
7359 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
7360 (ASM_APP_OFF): Likewise.
7361 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
7364 2019-05-29 Jan Hubicka <jh@suse.cz>
7366 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
7367 variants are pointer equivalent.
7369 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7371 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
7372 * config/aarch64/aarch64-sve2.md: New file.
7373 (<u>avg<mode>3_floor): New pattern.
7374 (<u>avg<mode>3_ceil): Likewise.
7375 (*<sur>h<addsub><mode>): Likewise.
7376 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
7377 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
7379 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7382 * optc-save-gen.awk: In cl_optimization_print, use correct condition
7383 for var_opt_string printing. In cl_optimization_print_diff, print
7384 (null) instead of invoking undefined behavior if one of the
7385 var_opt_string pointers is NULL and use && instead of first || in the
7386 guarding condition. For var_target_other options, handle const char *
7387 target variables similarly to const char * optimize node variables.
7389 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
7391 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
7392 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
7393 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
7394 Add autib1716 and pacib1716 initialisation.
7395 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
7396 for autib1716 and pacib1716.
7397 * config/aarch64/aarch64-protos.h (aarch64_key_type,
7398 aarch64_post_cfi_startproc): Define.
7399 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
7400 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
7401 aarch64_handle_pac_ret_protection): Set default sign key to A.
7402 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
7403 aarch64_expand_prologue): Add check for b-key.
7404 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
7405 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
7406 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
7407 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
7408 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
7409 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
7410 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7411 * config/aarch64/aarch64.md (do_return): Add check for b-key.
7412 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
7413 pauth_hint_num_a with pauth_hint_num.
7414 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
7415 pauth_hint_num_a with pauth_hint_num.
7416 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
7417 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
7418 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7419 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
7420 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
7421 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
7422 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
7423 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
7424 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
7425 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
7426 UNSPEC_AUTIA1716 respectively.
7427 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
7428 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
7429 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
7430 * doc/invoke.texi (-mbranch-protection): Add b-key type.
7431 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
7432 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
7434 2019-05-29 Jakub Jelinek <jakub@redhat.com>
7436 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
7437 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
7438 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
7439 explicit clause on combined parallel into implicit shared clause.
7440 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
7441 and firstprivate if the decl has one too from combined parallel to
7442 the worksharing construct.
7444 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
7445 Michael Meissner <meissner@linux.ibm.com>
7447 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
7449 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
7451 * rtl.h (LABEL_REF_P): New #define.
7453 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
7455 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
7457 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
7459 * internal-fn.c: Marked mask_load_direct as vectorizable.
7460 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
7461 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
7462 combined even if masks different with allow_slp_p param.
7463 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
7464 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
7465 dissolve SLP-only vectorizable groups when SLP has been discarded.
7466 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
7467 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
7469 (vect_build_slp_tree_1): Fixed comment typo.
7470 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
7471 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
7473 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
7475 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
7477 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7479 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
7480 Remove obsolete use_thunk reference.
7481 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
7482 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
7483 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
7484 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
7485 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
7486 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7487 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
7488 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
7489 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
7491 2019-05-28 Nathan Sidwell <nathan@acm.org>
7493 * tree.h (IDENTIFIER_ANON_P): New.
7494 (anon_aggrname_format, anon_aggname_p): Don't declare.
7495 (make_anon_name): Declare.
7496 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
7497 (hash_tree): Likewise.
7498 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
7499 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
7500 (anon_cnt, make_anon_name): New.
7502 2019-05-28 Martin Liska <mliska@suse.cz>
7505 * opts-global.c (decode_options): Print help for all
7506 help_option_arguments.
7507 * opts.c (print_help): Add new argument.
7508 (common_handle_option): Remember all values into
7509 help_option_arguments.
7510 * opts.h (print_help): Add new argument.
7512 2019-05-28 Martin Liska <mliska@suse.cz>
7515 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
7516 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
7517 (func_checker::compare_bb): Call compare_loops.
7519 2019-05-27 Jakub Jelinek <jakub@redhat.com>
7521 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
7522 on sections construct.
7523 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
7525 (lower_omp_sections): Handle lastprivate conditional.
7526 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
7527 lastprivate_conditional_map.
7528 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
7530 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
7531 critical, taskgroup and section regions when looking for a region
7532 with non-NULL lastprivate_conditional_map.
7534 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
7536 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
7537 (*ix86_gen_sub3): Ditto.
7538 (*ix86_gen_sub3_carry): Ditto.
7539 (*ix86_gen_one_cmpl2): Ditto.
7540 (*ix86_gen_andsp): Ditto.
7541 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
7542 (gen_and2_insn): New static function.
7543 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
7544 Use gen_add3_insn instead of ix86_gen_add3.
7545 (ix86_expand_split_stack_prologue): Use gen_add2_insn
7546 instead of ix86_gen_add3.
7547 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
7548 Use gen_sub3_insn instead of ix86_gen_sub3.
7549 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
7550 instead of ix86_gen_add3.
7551 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
7552 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
7553 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
7554 * config/i386/i386-options.c (ix86_option_override_internal):
7555 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
7556 ix86_gen_one_cmpl2 and ix86_gen_andsp.
7558 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
7560 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
7561 and DW_OP_GNU_const_index opcodes.
7563 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
7565 * config/i386/i386.h (STACK_SIZE_MODE): Define.
7567 2019-05-27 Richard Biener <rguenther@suse.de>
7569 PR tree-optimization/90637
7570 * tree-ssa-sink.c (statement_sink_location): Honor the
7571 computed sink location for single-uses.
7573 2019-05-27 Richard Biener <rguenther@suse.de>
7576 * match.pd (vec_perm): Avoid clobbering op0 when not generating
7579 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7581 * config/i386/i386.md (@sub<mode>3_carry): Rename
7582 from sub<mode>3_carry.
7583 (@leave_<mode>): New expander.
7584 (*leave): Rename from leave.
7585 (*leave_rex64): Rename from leave_rex64.
7586 (@monitorx_<mode>): Rename from monitorx_<mode>.
7587 (@clzero_<mode>): Rename from clzero_<mode>.
7588 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
7589 from sse3_monitor_<mode>.
7590 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
7591 (*ix86_gen_leave): Ditto.
7592 (*ix86_gen_monitor): Ditto.
7593 (*ix86_gen_monitorx): Ditto.
7594 (*ix86_gen_clzero): Ditto.
7595 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
7596 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
7597 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
7598 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
7599 Use gen_sse3_monitor instead of ix86_gen_monitor.
7600 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
7601 instead of ix86_gen_monitorx.
7602 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
7603 instead of ix86_gen_clzero.
7604 * config/i386/i386-options.c (ix86_option_override_internal):
7605 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
7606 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
7608 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7610 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
7611 Rename from tls_global_dynamic_64_<mode>.
7612 (@tls_local_dynamic_base_64_<mode>): Rename from
7613 tls_local_dynamic_base_64_<mode>.
7614 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
7615 Remove indirect function.
7616 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
7617 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
7618 instead of ix86_gen_tls_global_dynamic_64.
7619 Use gen_tls_local_dynamic_base_64 instead of
7620 ix86_gen_tls_local_dynamic_base_64.
7621 * config/i386/i386-options.c (ix86_option_override_internal):
7622 Do not initialize ix86_gen_tls_global_dynamic_64 and
7623 ix86_gen_tls_local_dynamic_base_64.
7625 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
7627 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
7628 Rename from pro_epilogue_adjust_stack_<mode>_add.
7629 (@pro_epilogue_adjust_stack_sub_<mode>)
7630 Rename from pro_epilogue_adjust_stack_<mode>_sub.
7631 (@allocate_stack_worker_probe_<mode>):
7632 Rename from allocate_stack_worker_probe_<mode>.
7633 (allocate_stack): Use gen_allocate_stack_worker_probe.
7634 (probe_stack): Use gen_probe_stack_1.
7635 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
7636 (@adjust_stack_and_probe_<mode>): Rename from
7637 adjust_stack_and_probe<mode>.
7638 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
7639 (stack_protect_set): Use gen_stack_protect_set_1.
7640 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
7641 (stack_protect_test): Use gen_stack_protect_test_1.
7642 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
7643 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
7644 Remove indirect function.
7645 (*ix86_gen_adjust_stack_and_probe): Ditto.
7646 (*ix86_gen_probe_stack_range): Ditto.
7647 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
7648 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
7649 (ix86_adjust_stack_and_probe_stack_clash): Use
7650 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
7651 (ix86_adjust_stack_and_probe): Ditto.
7652 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
7653 of ix86_gen_probe_stack_range.
7654 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
7655 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
7656 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
7657 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
7658 CODE_FOR_stack_protect_test_{si,di}.
7659 * config/i386/i386-options.c (ix86_option_override_internal):
7660 Do not initialize ix86_gen_allocate_stack_worker,
7661 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
7663 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
7665 * doc/invoke.texi (Link Options): Many editorial changes around
7668 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7670 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
7671 pre-Solaris 11 referene and most Studio compiler details.
7673 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
7676 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
7677 DImode to SImode in floating-point registers on 64-bit target.
7678 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
7679 register_operand in xmpyu patterns.
7681 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7683 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
7684 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
7685 OMP_CLAUSE__REDUCTEMP_.
7686 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7687 OMP_CLAUSE__CONDTEMP_.
7688 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
7689 * tree-pretty-print.c (dump_omp_clause): Likewise.
7690 * tree-nested.c (convert_nonlocal_omp_clauses,
7691 convert_local_omp_clauses): Likewise.
7692 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
7693 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
7694 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
7696 (gimplify_omp_for): Warn and disable conditional modifier from
7697 lastprivate on loop iterators.
7698 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
7700 * omp-general.c (omp_extract_for_data): Initialize it.
7701 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
7703 (delete_omp_context): Delete it.
7704 (lower_lastprivate_conditional_clauses): New function.
7705 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
7706 handle lastprivate conditional clauses.
7707 (lower_reduction_clauses): Add CLIST argument, emit it into
7708 the critical section if any.
7709 (lower_omp_sections): Adjust lower_lastprivate_clauses and
7710 lower_reduction_clauses callers.
7711 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
7712 to lower_lastprivate_clauses.
7713 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
7714 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
7715 clist into a critical section if not emitted there already by
7716 lower_reduction_clauses.
7717 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
7719 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
7720 conditional variables.
7721 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
7723 (expand_omp_for_generic, expand_omp_for_static_nochunk,
7724 expand_omp_for_static_chunk): Handle lastprivate conditional.
7725 (expand_omp_for): Handle fd.lastprivate_conditional like
7728 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
7730 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
7731 kernel does not exit cleanly.
7732 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
7734 2019-05-24 Jason Merrill <jason@redhat.com>
7737 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
7739 2019-05-24 Richard Biener <rguenther@suse.de>
7742 * tree-loop-distribution.c (struct partition): Add location
7744 (partition_alloc): Initialize all fields.
7745 (generate_memset_builtin): Use the location recorded in the
7746 partition for the generated call.
7747 (generate_memcpy_builtin): Likewise.
7748 (classify_partition): Record the location of a single store
7749 as location for the partition.
7751 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
7753 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
7756 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
7759 * common/config/aarch64/aarch64-common.c
7760 (aarch64_rewrite_selected_cpu): Change local temporary variable
7761 type from unsigned long to uint64_t.
7762 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
7763 aarch64_get_extension_string_for_isa_flags): Change declaration to
7764 match new definition by replacing unsigned long with uint64_t.
7766 2019-05-24 Jakub Jelinek <jakub@redhat.com>
7769 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
7770 gen_attr_type just once instead of 4-7 times. Formatting fixes.
7771 Handle stack_protect_test_<mode> codegen similarly to corresponding
7774 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
7776 * config/i386/darwin.h: Reject -mfentry*.
7777 * doc/sourcebuild.texi: Document mfentry target support.
7779 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7781 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
7782 Rename to rs6000_global_entry_point_prologue_needed_p. Return
7783 false for PC-relative functions.
7784 (rs6000_output_function_prologue): Change called function name to
7785 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
7786 name,1" for PC-relative functions.
7787 (rs6000_elf_declare_function_name): Change called function name to
7788 rs6000_global_entry_point_prologue_needed_p.
7790 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
7793 * config/i386/i386.c (gen_rtx_cost):
7794 Use ix86_tune_cost instead of ix86_cost.
7796 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7797 Michael Meissner <meissner@linux.ibm.com>
7798 Segher Boessenkool <segher@kernel.crashing.org>
7800 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
7802 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
7803 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
7804 (rs6000_fndecl_pcrel_p): Likewise.
7805 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
7806 error if -mpcrel is requested without -mcpu=future.
7807 (rs6000_opt_masks): Add entry for pcrel.
7808 (rs6000_fndecl_pcrel_p): New function.
7809 (rs6000_pcrel_p): Likewise.
7810 * config/rs6000/rs6000.opt (mpcrel): New option.
7811 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
7813 2019-05-23 Jan Hubicka <jh@suse.cz>
7814 Martin Liska <mliska@suse.cz>
7816 PR tree-optimization/90576
7817 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
7819 (aliasing_component_refs_p): Fix three way size compare conditional;
7820 give up earlier in case we can not decide on equivalence.
7822 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
7823 Michael Meissner <meissner@linux.ibm.com>
7824 Segher Boessenkool <segher@kernel.crashing.org>
7826 * config.gcc: Add future cpu.
7827 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
7828 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
7830 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
7831 (RS6000_CPU): New instantiation for future cpu.
7832 * config/rs6000/rs6000-opts.h (enum processor_type): Add
7834 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
7835 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
7836 * config/rs6000/rs6000-tables.opt: Regenerate.
7837 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
7838 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
7839 (rs6000_machine_from_flags): Handle future cpu.
7840 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
7841 PROCESSOR_POWER9 for now.
7842 (rs6000_adjust_cost): Likewise.
7843 (rs6000_issue_rate): Likewise.
7844 (rs6000_register_move_cost): Likewise.
7845 (rs6000_opt_masks): Add entry for future.
7846 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
7847 (MASK_FUTURE): New #define.
7848 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
7849 * config/rs6000/rs6000.opt (mfuture): New target option.
7850 * doc/invoke.texi (mcpu): Add future cpu.
7852 2019-05-23 Martin Liska <mliska@suse.cz>
7855 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
7856 operation points to a temporary (pointed via tree_to_wide_ref)
7857 that is out of scope after the &.
7859 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
7862 * doc/extend.texi (Function Names): Add missing word.
7864 2019-05-23 Richard Biener <rguenther@suse.de>
7866 PR tree-optimization/88440
7867 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
7869 * tree-loop-distribution.c (generate_memset_builtin): Fold the
7871 (generate_memcpy_builtin): Likewise.
7872 (distribute_loop): Pass in whether to only distribute patterns.
7873 (prepare_perfect_loop_nest): Also allow size optimization.
7874 (pass_loop_distribution::execute): When optimizing a loop
7875 nest for size allow pattern replacement.
7877 2019-05-23 Jakub Jelinek <jakub@redhat.com>
7880 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
7883 2019-05-23 Martin Liska <mliska@suse.cz>
7886 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
7887 expression similarly to gimplify_decl_expr.
7889 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7891 * cse.c (cse_dump_path): s/dump_file/f.
7893 2019-05-22 David Malcolm <dmalcolm@redhat.com>
7896 * diagnostic-format-json.cc: Include "selftest.h".
7897 (json_from_expanded_location): Only add "file" key for non-NULL
7899 (json_from_location_range): Don't add "start" and "finish"
7900 children if they are UNKNOWN_LOCATION.
7901 (selftest::test_unknown_location): New selftest.
7902 (selftest::test_bad_endpoints): New selftest.
7903 (selftest::diagnostic_format_json_cc_tests): New function.
7904 * json.cc (json::object::get): New function.
7905 (selftest::test_object_get): New selftest.
7906 (selftest::json_cc_tests): Call it.
7907 * json.h (json::object::get): New decl.
7908 * selftest-run-tests.c (selftest::run_tests): Call
7909 selftest::diagnostic_format_json_cc_tests.
7910 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
7913 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
7914 Andrew Stubbs <amd@codesourcery.com>
7916 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
7917 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
7918 (kernel): Rename to...
7919 (main_kernel): ... this.
7920 (load_image): Load _init_array and _fini_array kernels.
7921 (run): Add argument for kernel to run.
7922 (main): Run init_array_kernel before main_kernel, and
7923 fini_array_kernel after.
7924 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
7925 amdgpu_hsa_kernel attribute on functions.
7926 (gcn_disable_constructors): Delete.
7927 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
7928 * config/gcn/crt0.c (size_t): Define.
7929 (_init_array, _fini_array): New.
7930 (__preinit_array_start, __preinit_array_end,
7931 __init_array_start, __init_array_end,
7932 __fini_array_start, __fini_array_end): Declare weak references.
7934 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
7936 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
7938 2019-05-22 Jason Merrill <jason@redhat.com>
7940 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
7942 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
7945 * config/i386/i386-options.c (ix86_init_machine_status): Set
7946 stack_frame_required to true.
7947 * config/i386/i386.c (ix86_get_frame_size): New function.
7948 (ix86_frame_pointer_required): Replace get_frame_size with
7949 ix86_get_frame_size.
7950 (ix86_compute_frame_layout): Likewise.
7951 (ix86_find_max_used_stack_alignment): Changed to void. Set
7952 stack_frame_required.
7953 (ix86_finalize_stack_frame_flags): Always call
7954 ix86_find_max_used_stack_alignment. Replace get_frame_size with
7955 ix86_get_frame_size.
7956 * config/i386/i386.h (machine_function): Add stack_frame_required.
7958 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
7960 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
7962 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
7964 * common/config/aarch64/aarch64-common.c
7965 (struct aarch64_option_extension, struct processor_name_to_arch,
7966 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
7967 aarch64_contains_opt,
7968 aarch64_get_extension_string_for_isa_flags): Change type of
7969 variables storing flags to uint64_t.
7970 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
7971 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
7972 * config/aarch64/aarch64.c (struct processor,
7973 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
7974 aarch64_validate_march, aarch64_override_options,
7975 aarch64_option_print, aarch64_handle_attr_isa_flags,
7976 aarch64_declare_function_name, aarch64_start_file): Make flag
7978 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
7979 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
7980 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
7981 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
7982 * config/aarch64/driver-aarch64.c
7983 (struct aarch64_arch_extension, struct aarch64_core_data,
7984 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
7985 flag variables uint64_t.
7986 * doc/invoke.texi: Add documentation for new arguments.
7988 2019-05-22 Richard Biener <rguenther@suse.de>
7990 * alias.c (ao_ref_from_mem): Move stack-slot sharing
7992 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
7994 2019-05-22 Martin Liska <mliska@suse.cz>
7997 * doc/extend.texi: Document the change.
7999 2019-05-22 Richard Biener <rguenther@suse.de>
8001 PR tree-optimization/90450
8002 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
8003 (mem_ref_hasher::equal): Check it.
8004 (mem_ref_alloc): Initialize it.
8005 (gather_mem_refs_stmt): Set it.
8007 2019-05-22 Richard Biener <rguenther@suse.de>
8009 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
8011 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
8014 2019-05-22 Alan Modra <amodra@gmail.com>
8016 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
8017 (ASM_CPU_SPEC): Conditionally add -many.
8018 * config/rs6000/rs6000.c (rs6000_machine): New static var.
8019 (rs6000_machine_from_flags, emit_asm_machine): New functions..
8020 (rs6000_file_start): ..extracted from here, and modified to
8022 (rs6000_output_function_prologue): Emit .machine as necessary.
8023 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
8025 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
8026 added by check_vect_support_and_set_flags.
8027 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
8028 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
8030 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
8033 * ira-lives.c (process_bb_node_lives): Consider defs
8034 for a call insn to be die before the call, not after.
8036 * function.c (assign_parm_setup_block): Raise alignment of
8037 stacked parameter only for STRICT_ALIGNMENT targets.
8039 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8041 * config/rs6000/constraints.md (define_register_constraint "wz"):
8043 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8044 RS6000_CONSTRAINT_wz.
8045 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8046 (rs6000_init_hard_regno_mode_ok): Adjust.
8047 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
8048 * doc/md.texi (Machine Constraints): Adjust.
8050 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8052 * config/rs6000/constraints.md (define_register_constraint "wl"):
8054 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8055 RS6000_CONSTRAINT_wl.
8056 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8057 (rs6000_init_hard_regno_mode_ok): Adjust.
8058 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
8059 * doc/md.texi (Machine Constraints): Adjust.
8061 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8063 * config/rs6000/constraints.md (define_register_constraint "wm"):
8065 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8066 RS6000_CONSTRAINT_wm.
8067 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8068 (rs6000_init_hard_regno_mode_ok): Adjust.
8069 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
8070 * doc/md.texi (Machine Constraints): Adjust.
8072 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8074 * config/rs6000/constraints.md (define_register_constraint "wk"):
8076 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8077 RS6000_CONSTRAINT_wk.
8078 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8079 (rs6000_init_hard_regno_mode_ok): Adjust.
8080 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
8081 * doc/md.texi (Machine Constraints): Adjust.
8083 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8085 * config/rs6000/constraints.md (define_register_constraint "wj"):
8087 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8088 RS6000_CONSTRAINT_wj.
8089 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8090 (rs6000_init_hard_regno_mode_ok): Adjust.
8091 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
8093 * config/rs6000/vsx.md: Ditto.
8094 * doc/md.texi (Machine Constraints): Adjust.
8096 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
8098 * config/rs6000/constraints.md (define_register_constraint "wh"):
8100 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8101 RS6000_CONSTRAINT_wh.
8102 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8103 (rs6000_init_hard_regno_mode_ok): Adjust.
8104 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
8105 * doc/md.texi (Machine Constraints): Adjust.
8107 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8110 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
8111 Avoid calling gen_lowpart with CONST operand.
8113 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
8115 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
8116 field template_last_to_copy.
8117 (ssa_create_duplicates): Set it, and use it. Attempt to
8118 preserve more debug stmts.
8120 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8122 * config/i386/sse.md (VF1_AVX2): New mode iterator.
8123 (signbit<mode>2): New expander
8125 2019-05-21 James Clarke <jrtc27@jrtc27.com>
8128 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
8129 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
8131 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
8133 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
8134 %ebx and %ecx bafore calling cpuid with leaf 1 or
8135 non-constant leaf argument.
8137 2019-05-21 Alan Modra <amodra@gmail.com>
8140 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
8141 power9 direct move cost.
8142 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
8143 Correct comments and rename functions to suit parameters.
8145 2019-05-21 Richard Biener <rguenther@suse.de>
8148 * fold-const.c (fold_read_from_vector): New function.
8149 * fold-const.h (fold_read_from_vector): Declare.
8150 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
8151 single-element insert permutations. Canonicalize selector
8152 further and fix issue with last commit.
8154 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
8156 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
8157 parameter with default value false to declaration.
8158 (split_edges_for_insertion): New inline function. Wrapper for
8159 split_critical_edges with for_edge_insertion_p = true.
8160 * tree-cfg.c (split_critical_edges): Don't split non-critical
8161 edges if for_edge_insertion_p is false. Fix whitespace.
8162 * tree-ssa-pre.c (pass_pre::execute): Call
8163 split_edges_for_insertion instead of split_critical_edges.
8164 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
8165 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
8166 (pass_data_sink_code): Update function name in the comment.
8168 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
8170 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
8171 around is_value_included_in that knows how to handle BIT_AND_EXPR.
8172 (is_pred_expr_subset_of): Use the new function. Handle more cases where
8173 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
8176 2019-05-21 Martin Liska <mliska@suse.cz>
8178 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
8180 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
8181 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
8183 * config/rs6000/rs6000.c (rs6000_option_override_internal):
8185 (rs6000_function_arg): Likewise.
8186 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
8187 (rs6000_expand_ternop_builtin): Use interval syntax.
8188 (get_element_number): Likewise.
8189 (altivec_expand_builtin): Likewise.
8190 (rs6000_get_function_versions_dispatcher): Quote target_clones.
8192 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8196 * function.h (struct function): Add calls_eh_return member.
8197 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
8198 gimplifying __builtin_eh_return call.
8199 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
8201 (expand_call_inline): Or in src_cfun->calls_eh_return into
8202 dst_cfun->calls_eh_return.
8203 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
8204 cfun->calls_eh_return.
8205 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
8206 * lto-streamer-out.c (output_struct_function_base): Write
8209 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
8211 PR rtl-optimization/43147
8212 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
8213 IX86_BUILTIN_SHUFPD.
8215 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8217 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
8218 (refs_may_alias_p_1): ... here; update stats.
8219 (refs_may_alias_p): Do not update stats here.
8221 2019-05-20 Richard Biener <rguenther@suse.de>
8223 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
8224 doesn't produce pointers.
8225 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
8226 the first operand points to.
8228 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
8230 * tree-ssa-alias.c (compare_sizes): New function.
8231 (sompare_type_sizes): New function
8232 (aliasing_component_refs_p): Use it.
8233 (indirect_ref_may_alias_decl_p): Likewise.
8235 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8237 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
8239 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8241 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
8242 (LIBLSAN_EARLY_SPEC): Likewise.
8243 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
8245 2019-05-20 Martin Liska <mliska@suse.cz>
8247 * config/i386/i386.c (ix86_libc_has_fast_function):
8248 Add ATTRIBUTE_UNUSED for the argument.
8250 2019-05-20 Richard Biener <rguenther@suse.de>
8252 * gimple-match-head.c: Include vec-perm-indices.h.
8253 * generic-match-head.c: Likewise.
8254 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
8256 * fold-const.c (fold_vec_perm): Export.
8257 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
8258 (match.pd): ...here.
8260 2019-05-20 Jakub Jelinek <jakub@redhat.com>
8262 * cfgloop.h (struct loop): Add simdlen member.
8263 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
8264 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
8265 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
8266 as new argument to autovectorize_vector_sizes target hook. If
8267 loop->simdlen, pick up vector size where the vectorization factor
8268 is equal to loop->simd, and if there is none, fall back to the first
8270 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
8272 * omp-low.c (omp_clause_aligned_alignment): Likewise.
8273 * omp-general.c (omp_max_vf): Likewise.
8274 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
8275 * tree-vect-slp.c (vect_slp_bb): Likewise.
8276 * target.def (autovectorize_vector_sizes): Add ALL argument and
8278 * doc/tm.texi: Adjust documentation.
8279 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
8280 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
8281 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
8283 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
8284 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
8285 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
8286 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
8287 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
8288 preferred vector size is not 512-bit or 256-bit, just put those
8289 unpreferred ones last.
8291 2019-05-20 Martin Liska <mliska@suse.cz>
8293 * targhooks.c (default_libc_has_fast_function): New function.
8294 * targhooks.h (default_libc_has_fast_function): Likewise.
8296 2019-05-20 Martin Liska <mliska@suse.cz>
8299 * builtins.c (expand_builtin_memory_copy_args): When having a
8300 target with fast mempcpy implementation do now use memcpy.
8301 * config/i386/i386.c (ix86_libc_has_fast_function): New.
8302 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
8303 * doc/tm.texi: Likewise.
8304 * doc/tm.texi.in: Likewise.
8306 * expr.c (emit_block_move_hints): Add 2 new arguments.
8307 * expr.h (emit_block_move_hints): Bail out when libcall
8308 to memcpy would be used.
8310 2019-05-20 Martin Liska <mliska@suse.cz>
8312 * profile-count.c: Add vertical spacing in order
8313 to separate functions.
8314 * profile-count.h: Likewise.
8316 2019-05-20 Martin Liska <mliska@suse.cz>
8318 * profile-count.h: Do not use full qualified
8320 * profile-count.c (profile_count::to_frequency): Likewise.
8322 2019-05-20 Martin Liska <mliska@suse.cz>
8324 * profile-count.h (enum profile_quality): Use capital letters
8325 for enum value names. Use the adjusted names.
8326 * profile-count.c: Use the adjusted names.
8328 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8330 * config/rs6000/constraints.md (define_register_constraint "wH"):
8332 (define_register_constraint "wI"): Delete.
8333 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8334 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
8335 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8336 (rs6000_init_hard_regno_mode_ok): Adjust.
8337 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
8338 resp. "d", or with "wa" as appropriate, all with "p8v".
8339 * config/rs6000/vsx.md: Ditto.
8340 * doc/md.texi (Machine Constraints): Adjust.
8342 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8344 * config/rs6000/constraints.md (define_register_constraint "wy"):
8346 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8347 RS6000_CONSTRAINT_wy.
8348 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8349 (rs6000_init_hard_regno_mode_ok): Adjust.
8350 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
8351 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
8352 (define_mode_attr Fisa): New.
8353 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
8354 * doc/md.texi (Machine Constraints): Adjust.
8356 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8358 * config/rs6000/constraints.md (define_register_constraint "wu"):
8360 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8361 RS6000_CONSTRAINT_wu.
8362 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8363 (rs6000_init_hard_regno_mode_ok): Adjust.
8364 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
8366 (define_mode_attr Fa): Delete.
8367 * config/rs6000/vsx.md: Ditto.
8368 * doc/md.texi (Machine Constraints): Adjust.
8370 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8372 * config/rs6000/constraints.md (define_register_constraint "wJ"):
8374 (define_register_constraint "wK"): Delete.
8375 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8376 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
8377 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8378 (rs6000_init_hard_regno_mode_ok): Adjust.
8379 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
8380 Replace "wK" constraint by "wH" with "p9v".
8381 * config/rs6000/vsx.md: Ditto.
8382 * doc/md.texi (Machine Constraints): Adjust.
8384 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8386 * config/rs6000/constraints.md (define_register_constraint "wb"):
8388 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8389 RS6000_CONSTRAINT_wb.
8390 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8391 (rs6000_init_hard_regno_mode_ok): Adjust.
8392 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
8393 * config/rs6000/vsx.md: Ditto.
8394 * doc/md.texi (Machine Constraints): Adjust.
8396 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
8398 * config/rs6000/constraints.md (define_register_constraint "wo"):
8400 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
8401 RS6000_CONSTRAINT_wo.
8402 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
8403 (rs6000_init_hard_regno_mode_ok): Adjust.
8404 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
8405 * config/rs6000/altivec.md: Ditto.
8406 * doc/md.texi (Machine Constraints): Adjust.
8408 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
8410 * config/darwin-c.c (darwin_register_objc_includes): Do not
8411 prepend the sysroot when building gnu-runtime header search
8414 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
8416 * config/darwin.c (darwin_file_end): Use switch_to_section ()
8417 instead of direct output of the asm.
8419 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
8421 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
8422 argument to be type bool (was int before).
8423 (rs6000_emit_epilogue): Simplify some code. Declare some variables
8424 at first use. Use type bool for some variables. Fix a theoretical
8425 eh_return bug for svr4.
8427 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
8429 * config/rs6000/rs6000.md (isa): New attribute.
8430 (enabled): New attribute.
8432 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
8434 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
8435 assemble_start_function and assemble_end_function.
8437 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
8440 * omp-general.c (oacc_verify_routine_clauses): Change formal
8441 parameters. Add checking if already marked with an OpenACC
8442 'routine' directive. Adjust all users.
8445 * omp-general.c (oacc_build_routine_dims): Move some of its
8447 (oacc_verify_routine_clauses): ... this new function.
8448 * omp-general.h (oacc_verify_routine_clauses): New prototype.
8450 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
8452 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
8453 formating of picbase labels to match other ports.
8455 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
8457 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
8458 in the generated code.
8460 2019-05-16 Martin Sebor <msebor@redhat.com>
8462 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
8463 identifiers, keywords, operators, and types in diagnostics. Correct
8464 quoting, spelling, and sentence capitalization issues.
8465 (expand_builtin_atomic_is_lock_free): Same.
8466 (fold_builtin_next_arg): Same.
8467 * cfgexpand.c (expand_one_var): Same.
8468 (tree_conflicts_with_clobbers_p): Same.
8469 (expand_asm_stmt): Same.
8470 (verify_loop_structure): Same.
8471 * cgraphunit.c (process_function_and_variable_attributes): Same.
8472 * collect-utils.c (collect_execute): Same.
8473 * collect2.c (maybe_run_lto_and_relink): Same.
8474 (is_lto_object_file): Same.
8475 (scan_prog_file): Same.
8476 * convert.c (convert_to_real_1): Same.
8477 * dwarf2out.c (dwarf2out_begin_prologue): Same.
8478 * except.c (verify_eh_tree): Same.
8479 * gcc.c (execute): Same.
8480 (eval_spec_function): Same.
8481 (run_attempt): Same.
8482 (driver::set_up_specs): Same.
8483 (compare_debug_auxbase_opt_spec_function): Same.
8484 * gcov-tool.c (unlink_gcda_file): Same.
8487 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
8488 * gimplify.c (gimplify_asm_expr): Same.
8489 (gimplify_adjust_omp_clauses): Same.
8490 * hsa-gen.c (gen_hsa_addr_insns): Same.
8491 (gen_hsa_insns_for_load): Same.
8492 (gen_hsa_cmp_insn_from_gimple): Same.
8493 (gen_hsa_insns_for_operation_assignment): Same.
8494 (gen_get_level): Same.
8495 (gen_hsa_alloca): Same.
8496 (omp_simple_builtin::generate): Same.
8497 (gen_hsa_atomic_for_builtin): Same.
8498 (gen_hsa_insns_for_call): Same.
8499 * input.c (dump_location_info): Same.
8500 * ipa-devirt.c (compare_virtual_tables): Same.
8501 * ira.c (ira_setup_eliminable_regset): Same.
8502 * lra-assigns.c (lra_assign): Same.
8503 * lra-constraints.c (lra_constraints): Same.
8504 * lto-streamer-in.c (lto_input_mode_table): Same.
8505 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
8506 (merge_and_complain): Same.
8507 (compile_offload_image): Same.
8508 (compile_images_for_offload_targets): Same.
8509 (debug_objcopy): Same.
8512 * opts.c (print_specific_help): Same.
8513 (parse_no_sanitize_attribute): Same.
8515 (handle_param): Same.
8516 * plugin.c (add_new_plugin): Same.
8517 (parse_plugin_arg_opt): Same.
8518 (try_init_one_plugin): Same.
8519 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
8520 operators, and types in diagnostics. Correct quoting and spelling
8522 * read-rtl-function.c (parse_edge_flag_token): Same.
8523 (function_reader::parse_enum_value): Same.
8524 * reg-stack.c (check_asm_stack_operands): Same.
8525 * regcprop.c (validate_value_data): Same.
8526 * sched-rgn.c (make_pass_sched_fusion): Same.
8527 * stmt.c (check_unique_operand_names): Same.
8528 * targhooks.c (default_target_option_pragma_parse): Same.
8529 * tlink.c (recompile_files): Same.
8530 * toplev.c (process_options): Same.
8532 * trans-mem.c (diagnose_tm_1): Same.
8533 (ipa_tm_scan_irr_block): Same.
8534 (ipa_tm_diagnose_transaction): Same.
8535 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
8536 format a tree code name in a diagnostic.
8537 (verify_types_in_gimple_min_lval): Same.
8538 (verify_types_in_gimple_reference): Same.
8539 (verify_gimple_call): Same.
8540 (verify_gimple_assign_unary): Same.
8541 (verify_gimple_assign_binary): Same.
8542 (verify_gimple_assign_ternary): Same.
8543 (verify_gimple_assign_single): Same.
8544 (verify_gimple_switch): Same.
8545 (verify_gimple_label): Same.
8546 (verify_gimple_phi): Same.
8547 (verify_gimple_in_seq): Same.
8548 (verify_eh_throw_stmt_node): Same.
8549 (collect_subblocks): Same.
8550 (gimple_verify_flow_info): Same.
8551 (do_warn_unused_result): Same.
8552 * tree-inline.c (expand_call_inline): Same.
8553 * tree-into-ssa.c (update_ssa): Same.
8554 * tree.c (tree_int_cst_elt_check_failed): Same.
8555 (tree_vec_elt_check_failed): Same.
8556 (omp_clause_operand_check_failed): Same.
8557 (verify_type_variant): Same.
8558 (verify_type): Same.
8559 * value-prof.c (verify_histograms): Same.
8560 * varasm.c (assemble_start_function): Same.
8562 2019-05-16 Martin Sebor <msebor@redhat.com>
8564 * config/i386/i386-expand.c (get_element_number): Quote keywords
8565 and other internal names in diagnostics. Adjust other diagnostic
8566 formatting issues noted by -Wformat-diag.
8567 * config/i386/i386-features.c
8568 (ix86_mangle_function_version_assembler_name): Same.
8569 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
8570 * config/i386/i386.c (ix86_function_type_abi): Same.
8571 (ix86_function_ms_hook_prologue): Same.
8572 (classify_argument): Same.
8573 (ix86_expand_prologue): Same.
8574 (ix86_md_asm_adjust): Same.
8575 (ix86_memmodel_check): Same.
8577 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8579 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
8580 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
8583 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
8586 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
8587 intrinsics without SSE/SSE2/SSSE3.
8588 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
8590 (*mmx_uavgv8qi3): Likewise.
8592 2019-05-17 Richard Biener <rguenther@suse.de>
8594 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
8595 VEC_PERM_EXPR as __VEC_PERM with -gimple.
8597 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
8599 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
8600 vec_sldw insn pattern.
8602 2019-05-17 Richard Biener <rguenther@suse.de>
8604 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
8606 2019-05-17 Martin Liska <mliska@suse.cz>
8609 * toplev.c (output_stack_usage): With LTO and sanitizer it
8610 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
8611 has no file location.
8613 2019-05-16 Jakub Jelinek <jakub@redhat.com>
8616 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
8617 sz0 is equal to sz1, instead return false in that case.
8619 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
8620 has non-constant expression, force sctx.lane and use two
8621 argument IFN_GOMP_SIMD_LANE instead of single argument.
8622 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
8623 two argument IFN_GOMP_SIMD_LANE without lhs.
8624 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
8626 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
8628 (LOOP_REQUIRES_VERSIONING): Or in
8629 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
8630 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
8632 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
8633 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
8634 from simd if clause if needed.
8636 2019-05-16 Richard Biener <rguenther@suse.de>
8638 * tree-affine.c (expr_to_aff_combination): New function split
8640 (tree_to_aff_combination): ... here.
8641 (aff_combination_expand): Avoid building a GENERIC tree.
8643 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
8645 * cgraphunit.c (cgraph_node::expand_thunk): Remove
8646 assemble_start_function and assemble_end_function calls.
8647 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
8648 assemble_start_function and assemble_end_function.
8649 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
8650 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
8651 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
8652 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
8653 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
8654 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
8655 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
8656 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
8657 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
8658 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
8659 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
8660 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
8662 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
8663 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
8664 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
8665 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
8666 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
8667 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
8668 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
8669 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
8670 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8671 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8672 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
8673 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
8674 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
8675 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
8677 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
8678 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
8679 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
8681 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
8683 * tree-ssa-alias.c (alias_stats): Add
8684 aliasing_component_refs_p_may_alias and
8685 aliasing_component_refs_p_no_alias.
8686 (dump_alias_stats): Print aliasing_component_refs_p stats.
8687 (aliasing_component_refs_p): Update stats.
8689 2019-05-16 Martin Liska <mliska@suse.cz>
8692 * multiple_target.c (expand_target_clones): Do not allow
8693 target_clones being used with a symbol that is an alias.
8695 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
8697 PR tree-optimization/90394
8698 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
8699 positives rather than ICE for cases where (code2 == NE_EXPR
8700 && code1 == BIT_AND_EXPR).
8702 2019-05-16 Jakub Jelinek <jakub@redhat.com>
8705 * tree-core.h (struct tree_decl_common): Document
8706 decl_nonshareable_flag for PARM_DECLs.
8707 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
8708 * calls.c (expand_call): Don't try tail call if caller
8709 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
8710 passed on the stack and callee needs to pass any arguments on the
8712 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
8713 else if instead of series of mutually exclusive ifs. Handle
8714 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
8715 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
8717 * lto-streamer.h (LTO_major_version): Bump to 9.
8719 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
8721 PR tree-optimization/90106
8722 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
8723 new parameter as new internal function call, also move it to new
8725 (use_internal_fn): Pass internal function call to
8726 shrink_wrap_one_built_in_call_with_conds.
8728 2019-05-15 Jakub Jelinek <jakub@redhat.com>
8730 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
8732 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
8733 safelen_int and set loop->dont_vectorize.
8735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8738 * config/i386/i386-builtin.def: Enable MMX intrinsics with
8740 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
8742 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
8743 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
8744 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
8747 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8750 * config/i386/mmx.md (*vec_dupv2sf): Changed to
8751 define_insn_and_split to support SSE emulation.
8752 (*vec_extractv2sf_0): Likewise.
8753 (*vec_extractv2sf_1): Likewise.
8754 (*vec_extractv2si_0): Likewise.
8755 (*vec_extractv2si_1): Likewise.
8756 (*vec_extractv2si_zext_mem): Likewise.
8757 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
8758 (vec_extractv2sf_1 splitter): Likewise.
8759 (vec_extractv2sfsf): Likewise.
8760 (vec_setv2si): Likewise.
8761 (vec_extractv2si_1 splitter): Likewise.
8762 (vec_extractv2sisi): Likewise.
8763 (vec_setv4hi): Likewise.
8764 (vec_extractv4hihi): Likewise.
8765 (vec_setv8qi): Likewise.
8766 (vec_extractv8qiqi): Likewise.
8767 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
8768 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
8769 (vec_extractv2sisi): Likewise.
8770 (vec_extractv4hihi): Likewise.
8771 (vec_extractv8qiqi): Likewise.
8772 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
8773 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
8774 (vec_initv2sisi): Likewise.
8775 (vec_initv4hihi): Likewise.
8776 (vec_initv8qiqi): Likewise.
8777 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
8778 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
8779 (vec_setv4hi): Likewise.
8780 (vec_setv8qi): Likewise.
8782 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8785 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
8786 TARGET_MMX_WITH_SSE.
8787 (MMXMODE:*mov<mode>_internal): Likewise.
8788 (MMXMODE:movmisalign<mode>): Likewise.
8790 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
8793 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
8794 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
8795 (sse2_cvtpd2pi): Ditto.
8796 (sse2_cvttpd2pi): Ditto.
8797 (*vec_concatv2sf_sse4_1): Ditto.
8798 (*vec_concatv2sf_sse): Ditto.
8799 (*vec_concatv2si_sse4_1): Ditto.
8800 (*vec_concatv2si): Ditto.
8801 (*vec_concatv4si_0): Ditto.
8802 (*vec_concatv2di_0): Ditto.
8804 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8807 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
8809 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8812 * config/i386/sse.md (ssse3_palignrdi): Changed to
8813 define_insn_and_split to support SSE emulation.
8815 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8818 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
8820 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8823 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
8824 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
8827 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8830 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
8831 or TARGET_MMX_WITH_SSE.
8832 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
8834 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8837 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
8839 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8842 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
8843 Changed to define_insn_and_split to support SSE emulation.
8845 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8848 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
8849 Changed to define_insn_and_split to support SSE emulation.
8851 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8854 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
8855 (*mmx_<emms>): This.
8856 (mmx_<emms>): New expander.
8858 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8861 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
8863 (*sse2_umulv1siv1di3): Add SSE2 emulation.
8865 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8868 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
8870 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8873 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
8875 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8878 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
8879 TARGET_MMX_WITH_SSE.
8880 (*mmx_uavgv4hi3): Add SSE emulation.
8882 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8885 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
8886 and TARGET_MMX_WITH_SSE.
8887 (*mmx_uavgv8qi3): Add SSE emulation.
8889 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8892 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
8893 maskmovdqu for __MMX_WITH_SSE__.
8895 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8898 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
8899 TARGET_MMX and TARGET_MMX_WITH_SSE.
8900 (*mmx_umulv4hi3_highpart): Add SSE emulation.
8902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8905 * config/i386/mmx.md (mmx_pmovmskb): Changed to
8906 define_insn_and_split to support SSE emulation.
8908 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8911 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
8912 and TARGET_MMX_WITH_SSE.
8913 (mmx_<code>v8qi3): Likewise.
8914 (smaxmin:<code>v4hi3): New.
8915 (umaxmin:<code>v8qi3): Likewise.
8916 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
8917 (umaxmin:*mmx_<code>v8qi3): Likewise.
8919 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8922 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
8923 TARGET_MMX_WITH_SSE.
8924 (*mmx_pinsrw): Add SSE emulation.
8926 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8929 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
8931 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8934 * config/i386/sse.md (sse_cvtpi2ps): Changed to
8935 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
8938 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8941 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
8942 (sse_cvttps2pi): Likewise.
8944 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8947 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
8948 TARGET_MMX_WITH_SSE.
8949 (mmx_pshufw_1): Add SSE emulation.
8950 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
8951 TARGET_MMX_WITH_SSE to support SSE emulation.
8953 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8956 * config/i386/constraints.md (Yw): New constraint.
8957 * config/i386/mmx.md (*vec_dupv2si): Changed to
8958 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
8959 support SSE emulation.
8961 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8964 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
8965 TARGET_MMX_WITH_SSE.
8966 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
8968 (mmx_gt<mode>3): Likewise.
8970 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8973 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
8974 TARGET_MMX_WITH_SSE. Add SSE support.
8976 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8979 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
8980 TARGET_MMX_WITH_SSE.
8981 (any_logic:<code><mode>3): New.
8982 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
8985 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8988 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
8989 TARGET_MMX_WITH_SSE. Add SSE emulation.
8990 (mmx_<shift_insn><mode>3): Likewise.
8992 (<shift_insn><mode>3): Likewise.
8994 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
8997 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
8998 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
9000 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9003 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
9004 TARGET_MMX_WITH_SSE.
9005 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
9008 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9011 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
9012 TARGET_MMX_WITH_SSE.
9014 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
9017 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9020 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
9021 (plusminus:mmx_<plusminus_insn><mode>3): Check
9022 TARGET_MMX_WITH_SSE.
9023 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
9024 (<plusminus_insn><mode>3): New.
9025 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
9026 (*mmx_<plusminus_insn><mode>3): Likewise.
9028 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9031 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
9032 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
9034 * config/i386/mmx.m (mmx_punpckhbw): Changed to
9035 define_insn_and_split to support SSE emulation.
9036 (mmx_punpcklbw): Likewise.
9037 (mmx_punpckhwd): Likewise.
9038 (mmx_punpcklwd): Likewise.
9039 (mmx_punpckhdq): Likewise.
9040 (mmx_punpckldq): Likewise.
9042 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9043 Uros Bizjak <ubizjak@gmail.com>
9046 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
9048 (ix86_split_mmx_pack): Likewise.
9049 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
9051 (ix86_split_mmx_pack): Likewise.
9052 * config/i386/i386.md (mmx_isa): New.
9053 (enabled): Also check mmx_isa.
9054 * config/i386/mmx.md (any_s_truncate): New code iterator.
9055 (s_trunsuffix): New code attr.
9056 (mmx_packsswb): Removed.
9057 (mmx_packssdw): Likewise.
9058 (mmx_packuswb): Likewise.
9059 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
9060 MMX packsswb/packuswb with SSE2.
9061 (mmx_packssdw): Likewise.
9062 * config/i386/predicates.md (register_mmxmem_operand): New.
9064 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
9067 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9068 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
9069 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
9070 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
9071 (ix86_vector_mode_supported_p): Likewise.
9072 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
9074 2019-05-15 Martin Liska <mliska@suse.cz>
9077 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9080 2019-05-15 Richard Biener <rguenther@suse.de>
9082 * tree-into-ssa.c (pass_build_ssa::execute): Run
9083 update_address_taken before going into SSA.
9085 2019-05-15 Richard Biener <rguenther@suse.de>
9087 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
9088 as __BIT_FIELD_REF with type with -gimple.
9090 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
9092 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
9093 semantically equivalent branches (left over after prior refactorings).
9095 2019-05-15 Richard Biener <rguenther@suse.de>
9097 PR tree-optimization/88828
9098 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
9101 2019-05-14 Richard Biener <rguenther@suse.de>
9103 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
9104 as __VIEW_CONVERT with -gimple.
9106 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9109 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
9112 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
9114 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
9115 define_split to become a define_insn_and_split.
9117 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
9119 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
9121 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
9122 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
9123 (sibcall_epilogue): Adjust.
9126 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9128 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
9129 to unsupported ones.
9130 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
9131 * config.host: Likewise.
9132 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
9133 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
9134 __svr4__]: Remove "brand" fallback.
9135 [!KSTAT_DATA_STRING]: Remove.
9136 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
9138 (comdat_group): Likewise.
9139 (set_have_as_tls): Likewise.
9140 (gcc_cv_target_dl_iterate_phdr): Likewise.
9141 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
9142 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
9143 * configure: Regenerate.
9144 * doc/install.texi: Simplify Solaris target triplets.
9145 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
9146 (Specific, *-*-solaris2*): Document Solaris 10 removal.
9147 Remove Solaris 10 references.
9148 Remove obsolete Solaris bug reference.
9149 (Specific, sparc-sun-solaris2.10): Remove.
9151 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
9153 * config/i386/i386.md (any_div): New code iterator.
9154 (paired_mod): New code attribute.
9155 (sgnprefix): Handle DIV and UDIV RTXes.
9157 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
9158 and udivmod<mode>4 patterns using any_div code iterator.
9159 (divmod splitters): Macroize splitters using any_div code iterator.
9160 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
9161 (*udivmodsi4_pow2_zext_2): Ditto.
9162 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
9163 and *udivmod<mode>4_noext patterns using any_div code iterator.
9164 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
9165 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
9166 patterns using any_div code iterator.
9167 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
9168 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
9169 patterns using any_div code iterator.
9170 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
9171 udivmodhiqi3 patterns using any_extend code iterator.
9173 2019-05-14 Richard Biener <rguenther@suse.de>
9174 H.J. Lu <hongjiu.lu@intel.com>
9176 PR tree-optimization/88828
9177 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
9178 permuting in a single non-constant element not extracted
9181 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9183 * internal-fn.def (SIGNBIT): New.
9184 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
9186 (signbitv4sf2): Likewise.
9188 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
9191 * config/mips/mips.c (mips_split_move): Skip forward SRC into
9192 next insn when the SRC reg is dead.
9194 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
9196 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
9197 (alloc_cand_and_find_basis): Ditto.
9198 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
9199 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
9200 (create_add_imm_cand, slsr_process_cast): Ditto.
9201 (slsr_process_copy, replace_mult_candidate): Ditto.
9202 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
9203 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
9204 (pass_strength_reduction::execute): Init the first NULL element.
9206 2019-05-13 Nathan Sidwell <nathan@acm.org>
9208 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
9209 (run_attempt): Reformat line break.
9211 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
9214 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
9215 data registers in sibcall epilogues.
9216 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9218 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
9221 * configure.ac (--enable-frame-pointer):
9222 Disable by default for cygwin and mingw.
9223 * configure: Regenerate.
9225 2019-05-13 Nathan Sidwell <nathan@acm.org>
9227 * dwarf2out.c (breakout_comdat_types): Move comment to correct
9229 (const_ok_for_output_1): Balance parens around #if/#else/#endif
9230 (gen_member_die): Move abstract origin check earlier. Only VARs
9231 can be static_inline_p. Simplify splicing control flow.
9233 2019-05-13 Richard Biener <rguenther@suse.de>
9235 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
9237 (vect_build_slp_tree_1): Likewise.
9239 2019-05-13 Richard Biener <rguenther@suse.de>
9241 PR tree-optimization/90402
9242 * tree-if-conv.c (tree_if_conversion): Value number only
9243 the loop body by making the latch an exit of the region
9245 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
9247 (do_rpo_vn): Deal with multiple edges into the entry block
9248 that are not backedges inside the region by skipping PHIs
9251 2019-05-13 Richard Biener <rguenther@suse.de>
9253 PR tree-optimization/90316
9254 * tree-ssa-pre.c (insert_aux): Fold into ...
9255 (insert): ... this function. Use a RPO walk to reduce the
9256 number of required iterations.
9258 2019-05-13 Martin Liska <mliska@suse.cz>
9260 PR tree-optimization/90416
9261 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
9262 string instead of passing the second part as va_arg argument.
9264 2019-05-13 Martin Liska <mliska@suse.cz>
9266 PR gcov-profile/90380
9267 * gcov.c (handle_cycle): Do not support zero cycle count,
9268 it should not be possible.
9269 (path_contains_zero_cycle_arc): New function.
9270 (circuit): Ignore zero cycle arc counts.
9272 2019-05-13 Martin Liska <mliska@suse.cz>
9274 PR gcov-profile/90380
9275 * gcov.c (enum loop_type): Remove the enum and
9277 (handle_cycle): Assert that we should not reach
9279 (circuit): Use loop_found instead of a tri-state loop_type.
9280 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
9283 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9286 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
9287 (ix86_output_indirect_branch_via_reg): Use output mechanism
9288 accounting for __USER_LABEL_PREFIX__.
9289 (ix86_output_indirect_branch_via_push): Likewise.
9290 (ix86_output_function_return): Likewise.
9291 (ix86_output_indirect_function_return): Likewise.
9293 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
9295 * doc/md.texi: Document use of code attributes in rtx patterns.
9296 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
9297 * read-rtl.c (find_code): Split out search loops into...
9298 (maybe_find_code): ...this new function.
9299 (check_code_iterator): Make the error message more informative.
9300 (check_code_attribute): New function.
9301 (rtx_reader::rtx_alloc_for_name): Likewise.
9302 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
9303 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
9304 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
9305 <max_opp> directly as an rtx code instead of via a match_operator.
9306 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
9307 (<su>abd<mode>_3): Update accordingly.
9309 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
9311 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
9312 is given, print the state of the EH "save world" computation for
9315 2019-05-11 Jakub Jelinek <jakub@redhat.com>
9318 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
9319 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
9321 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
9323 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
9324 Use pinsrd for TARGET_SSE4_1.
9325 * config/i386/sse.md (movdi_to_sse): Ditto.
9327 2019-05-10 Richard Biener <rguenther@suse.de>
9329 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
9330 (do_rpo_vn): Initialize next_value_id.
9332 2019-05-10 Martin Liska <mliska@suse.cz>
9334 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9337 2019-05-10 Jakub Jelinek <jakub@redhat.com>
9339 PR tree-optimization/90385
9340 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
9341 arguments of the exit phis.
9344 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
9345 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
9347 (copy_tree_body_r): Likewise.
9348 (copy_fn): Set id.do_not_fold to true.
9350 2019-05-10 Martin Liska <mliska@suse.cz>
9352 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
9353 Reapply changes from r269790.
9355 2019-05-10 Martin Liska <mliska@suse.cz>
9358 * doc/invoke.texi: New params.
9359 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
9360 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
9361 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
9363 * tree-switch-conversion.h (struct jump_table_cluster):
9366 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
9368 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
9370 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
9372 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
9374 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
9376 PR rtl-optimization/88879
9377 * sel-sched.c (sel_target_adjust_priority): Remove assert.
9379 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
9382 * config/arm/arm.c (callee_saved_reg_p): Move before
9383 thumb_find_work_register.
9384 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
9385 thumb_find_work_register. Only call df_get_live_out once.
9386 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
9387 (thumb_find_work_register): Use
9388 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
9389 algorithms to locate a spare call clobbered reg.
9391 2019-05-09 Martin Liska <mliska@suse.cz>
9393 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
9394 and MAX_EXPR in GIMPLE FE format.
9396 2019-05-09 Martin Liska <mliska@suse.cz>
9398 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
9399 * gimple-pretty-print.c (dump_gimple_bb_header):
9401 (pp_cfg_jump): Dump edge probability.
9402 * profile-count.c (profile_quality_as_string): Simplify
9403 with a static array.
9404 (parse_profile_quality): New function.
9405 (profile_count::dump): Simplify with a static array.
9406 (profile_count::from_gcov_type): Add new argument.
9407 * profile-count.h (parse_profile_quality): Likewise.
9408 * predict.h (set_hot_bb_threshold): New.
9409 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
9411 * predict.c (get_hot_bb_threshold): Set from the new param.
9412 (set_hot_bb_threshold): New.
9414 2019-05-09 Richard Biener <rguenther@suse.de>
9416 PR tree-optimization/90395
9417 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
9418 rewrite vector stores that throw internally.
9420 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
9422 * cif-code.def (CHKP): Remove.
9425 * configure.ac (--enable-frame-pointer): Disable by default for
9427 * configure: Regenerate.
9429 2019-05-09 Alan Modra <amodra@gmail.com>
9432 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
9433 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
9434 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
9435 cost for general <-> vsx when direct moves are available.
9436 Cost union classes at minimal cost for any reg in the class.
9437 Correct calculation for moves between vsx, float, and altivec.
9438 Don't return a low cost for moves between special regs. Don't
9439 use hard coded register numbers.
9440 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
9441 (rs6000_ira_change_pseudo_allocno_class): New function.
9442 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
9443 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
9445 (movsi_internal1): Don't disparage vector alternatives.
9446 (mov<mode>_internal): Likewise, excepting alternative that
9448 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
9449 we <- b alternative.
9451 2019-05-08 Jakub Jelinek <jakub@redhat.com>
9454 PR tree-optimization/89060
9455 * tree-ssa-live.h (live_vars_map): New typedef.
9456 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
9457 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
9458 (struct compute_live_vars_data): New type.
9459 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
9460 live_vars_at_stmt, destroy_live_vars): New functions.
9461 * tree-tailcall.c: Include tree-ssa-live.h.
9462 (live_vars, live_vars_vec): New global variables.
9463 (find_tail_calls): Perform variable life analysis before punting.
9464 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
9465 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
9467 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
9468 Perform variable life analysis to select variables that really need
9470 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
9471 instead set id->eh_landing_pad_dest and assert it is the same.
9472 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
9474 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
9475 Richard Earnshaw <rearnsha@arm.com>
9478 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
9480 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
9481 (thumb1_compute_save_core_reg_mask): Don't force a spare work
9482 register if both the epilogue and prologue can use call-clobbered
9484 (thumb1_unexpanded_epilogue): Use
9485 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
9486 picking temporaries for restoring high regs to match that of the
9487 prologue where possible.
9488 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
9489 the list of work registers. Detect if the return address is still live
9490 at the end of the prologue and avoid using it for a work register if so.
9491 If the return address is not live, add LR to the list of pushable regs
9492 after the first pass.
9494 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
9496 PR tree-optimization/90078
9497 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
9498 (INFTY): Increase the value for infinite cost.
9499 (struct comp_cost): Promote type of members to int64_t.
9500 (infinite_cost): Don't set complexity in initialization.
9501 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
9502 overflows to infinite_cost.
9503 (adjust_setup_cost): Promote type of parameter and cost computation
9505 (struct ainc_cost_data, struct iv_ca): Promote type of member to
9507 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
9508 cost computation to int64_t.
9509 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
9510 int64_t's format specifier in dump.
9512 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
9514 PR tree-optimization/90240
9515 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
9516 with respect to scaling factor pre-computed for each basic block.
9517 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
9518 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
9519 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
9520 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
9521 live range for array of loop's basic blocks. Cleanup aux field of
9522 loop's basic blocks.
9524 2019-05-08 Jakub Jelinek <jakub@redhat.com>
9526 PR tree-optimization/90356
9527 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
9529 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
9531 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
9532 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
9533 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
9534 (ix86_handle_option): Handle -mavx512bf16.
9535 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
9537 * config/i386/avx512bf16vlintrin.h: New.
9538 * config/i386/avx512bf16intrin.h: New.
9539 * config/i386/cpuid.h (bit_AVX512BF16): New.
9540 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
9541 * config/i386/i386-builtin-types.def: Add new types.
9542 * config/i386/i386-builtin.def: Add new builtins.
9543 * config/i386/i386-c.c (ix86_target_macros_internal): Define
9545 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
9546 (ix86_option_override_internal): Handle BF16.
9547 (ix86_valid_target_attribute_inner_p): Ditto.
9548 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
9549 * config/i386/i386-builtin.c (enum processor_features): Add
9551 (static const _isa_names_table isa_names_table): Ditto.
9552 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
9553 (PTA_AVX512BF16): Ditto.
9554 * config/i386/i386.opt: Add -mavx512bf16.
9555 * config/i386/immintrin.h: Include avx512bf16intrin.h
9556 and avx512bf16vlintrin.h.
9557 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
9558 avx512f_cvtneps2bf16_<mode><mask_name>,
9559 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
9560 * config/i386/subst.md (mask_half): Add new subst.
9561 * doc/invoke.texi: Document -mavx512bf16.
9563 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
9565 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
9567 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
9568 (rs6000_debug_legitimize_reload_address): Delete.
9569 (rs6000_legitimize_reload_address_ptr): Delete.
9570 (rs6000_option_override_internal): Adjust.
9571 (mem_operand_gpr): Adjust comment.
9572 (legitimate_lo_sum_address_p): Ditto.
9573 (rs6000_legitimize_reload_address): Delete.
9574 (rs6000_debug_legitimize_reload_address): Delete.
9575 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
9577 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
9580 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9581 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
9582 to compute vector element selector for both constant and variable
9585 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
9587 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
9588 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
9589 ashrdi3_cvt using SWI48 mode iterator.
9591 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9593 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
9594 (aarch64_<su>abd<mode>_3): Likewise.
9595 (*aarch64_<su>abd<mode>_3): New define_insn.
9596 (<sur>sad<vsi2qi>): New define_expand.
9597 * config/aarch64/iterators.md: Added MAX_OPP attribute.
9598 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
9599 (build_vect_cond_expr): Likewise.
9601 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
9603 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
9604 clobbers outside of accessible_reg_set.
9605 * config/i386/i386.c (ix86_conditional_register_usage):
9606 Disable register sets by clearing corresponding bits in
9607 accessible_reg_set. Do not set corresponding bits in fixed_regs,
9608 call_used_regs and don't clear corresponding reg_names array members.
9610 2019-05-07 Richard Biener <rguenther@suse.de>
9612 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
9613 not specified still compute a comp_vectype for invariant
9616 2019-05-07 Richard Biener <rguenther@suse.de>
9618 PR tree-optimization/90316
9619 * tree-ssa-pre.c (translate_vuse_through_block): When
9620 same_valid is NULL do not bother to search for a virtual
9622 (phi_translate_1): When operands changed we cannot keep
9623 the same value-number so do not bother to ask whether
9624 that's possible from translate_vuse_through_block.
9626 2019-05-07 Martin Liska <mliska@suse.cz>
9628 * bitmap.c (bitmap_register): Come up with
9629 alloc_descriptor_max_uid and assign it for
9631 (register_overhead): Use get_descriptor as
9633 (release_overhead): New.
9634 (bitmap_elem_to_freelist): Call it.
9635 (bitmap_elt_clear_from): Likewise.
9636 (bitmap_obstack_free): Likewise.
9637 (bitmap_move): Sensitively release memory.
9638 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
9639 (bitmap_initialize): Initialize alloc_descriptor to zero.
9640 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
9642 2019-05-07 Richard Biener <rguenther@suse.de>
9644 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
9645 we build a SLP node. Remove max_size and limiting.
9646 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
9648 2019-05-07 Richard Biener <rguenther@suse.de>
9650 PR tree-optimization/90316
9651 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
9653 (walk_non_aliased_vuses): Take walking limit argument.
9654 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
9655 walking if it is reached instead of just counting.
9656 (get_continuation_for_phi): Likewise.
9657 (walk_non_aliased_vuses): Likewise, instead of leaving counter
9658 limiting to the callback.
9659 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
9660 (vn_reference_lookup_3): Likewise.
9661 (vn_reference_lookup_pieces): Likewise.
9662 (vn_reference_lookup): Likewise.
9663 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
9664 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
9665 (avail_exprs_stack::lookup_avail_expr): Likewise.
9667 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
9669 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
9670 for comparaible types in the second direction even if first one
9671 hits incomparable type.
9673 2019-05-07 Richard Biener <rguenther@suse.de>
9676 * lto-wrapper.c (debug_objcopy): Use the original filename
9677 including archive offset for the filename used for -save-temps.
9679 2019-05-07 Li Jia He <helijia@linux.ibm.com>
9681 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
9684 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
9685 Hongtao Liu <hongtao.liu@intel.com>
9689 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
9690 Modified, original implementation isn't correct.
9692 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9694 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
9695 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
9696 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
9697 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
9698 (FRAME_POINTER_REGNUM): Change numbering.
9699 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
9700 (alt_reg_names): Adjust.
9701 (rs6000_conditional_register_usage): Don't mark hard register 64 as
9703 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
9704 (DWARF_FRAME_REGISTERS): Delete.
9705 (DWARF2_FRAME_REG_OUT): Fix whitespace.
9706 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9708 (REG_ALLOC_ORDER): Adjust.
9709 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
9710 (REG_CLASS_CONTENTS): Adjust.
9711 (RETURN_ADDR_RTX): Change comment.
9712 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
9714 (REGISTER_NAMES): Adjust.
9715 (ADDITIONAL_REGISTER_NAMES): Adjust.
9716 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
9718 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9720 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
9722 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
9723 (DWARF_FRAME_REGISTERS): Adjust.
9724 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9726 (REG_ALLOC_ORDER): Adjust.
9727 (enum reg_class): Delete SPR_REGS.
9728 (REG_CLASS_NAMES): Delete SPR_REGS.
9729 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
9730 (REGISTER_NAMES): Adjust.
9731 (ADDITIONAL_REGISTER_NAMES): Adjust.
9732 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
9733 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
9734 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
9735 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
9736 (htm_spr_regno): Delete.
9737 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
9739 (rs6000_dbx_register_number): Adjust.
9741 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9743 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
9745 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
9747 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
9748 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
9750 2019-05-06 Jakub Jelinek <jakub@redhat.com>
9752 PR tree-optimization/88709
9753 PR tree-optimization/90271
9754 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
9755 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
9756 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
9758 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
9759 of the store merging group is larger than
9760 PARAM_STORE_MERGING_MAX_SIZE parameter.
9761 (split_group): Add bzero_first argument. If set, always emit first
9762 the first store which must be = {} of the whole area and then for the
9763 rest of the stores consider all zero bytes as paddings.
9764 (imm_store_chain_info::output_merged_store): Check if first store
9765 is = {} of the whole area and if yes, determine which setting of
9766 bzero_first for split_group gives smaller number of stores. Adjust
9767 split_group callers.
9768 (lhs_valid_for_store_merging_p): Allow decls.
9769 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
9771 (pass_store_merging::process_store): Likewise.
9773 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
9776 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9777 handling of V1TImode.
9779 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
9782 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
9783 and enable_frame_pointer ...
9784 * configure.ac: ... here. Update help strings for
9785 --enable-frame-pointer.
9786 * configure: Regenerate.
9787 * config/i386/i386-options.c (ix86_option_override_internal): Remove
9788 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
9789 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
9790 (USE_X86_64_FRAME_POINTER): Ditto.
9792 2019-05-06 Martin Liska <mliska@suse.cz>
9794 * config.gcc: Append to target_gtfiles and fix indentation.
9796 2019-05-06 Richard Biener <rguenther@suse.de>
9798 PR tree-optimization/90358
9799 * tree-vect-stmts.c (get_group_load_store_type): Properly
9800 detect unused upper half of load.
9801 (vectorizable_load): Likewise.
9803 2019-05-06 Richard Biener <rguenther@suse.de>
9805 PR tree-optimization/88828
9806 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
9807 (simplify_vector_constructor): ...here. Handle constants in
9810 2019-05-06 Richard Biener <rguenther@suse.de>
9812 PR tree-optimization/90328
9813 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
9814 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
9815 is valid in the loop nest before using it.
9816 (initialize_data_dependence_relation): Adjust.
9817 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
9818 loop as loop-nest to dr_may_alias_p.
9820 2019-05-06 Richard Biener <rguenther@suse.de>
9822 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
9824 2019-05-06 Richard Biener <rguenther@suse.de>
9826 PR tree-optimization/90316
9827 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
9828 compute target on demand.
9829 (get_continuation_for_phi): Remove code walking stmts to
9830 get to a target virtual operand which could end up being
9833 2019-05-06 Martin Liska <mliska@suse.cz>
9836 * config/i386/i386-options.c (ix86_option_override_internal): Error only
9837 when -mabi is selected to a non-default version.
9839 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
9840 Martin Liska <mliska@suse.cz>
9842 * Makefile.in: Add lto-dump.texi.
9843 * cgraph.h: Add new functions get_visibility_string and
9844 get_symtab_type_string.
9845 * doc/gcc.texi: Include lto-dump section.
9846 * doc/lto-dump.texi: New file.
9847 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
9848 (parse_dump_option): Factor out this function.
9849 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
9850 (parse_dump_option): Export the function.
9851 * symtab.c (symtab_node::get_visibility_string): New function.
9852 (symtab_node::get_symtab_type_string): Likewise.
9854 2019-05-06 Martin Liska <mliska@suse.cz>
9856 * config/i386/i386-builtins.c: New file.
9857 * config/i386/i386-builtins.h: New file.
9858 * config/i386/i386-expand.c: New file.
9859 * config/i386/i386-expand.h: New file.
9860 * config/i386/i386-features.c: New file.
9861 * config/i386/i386-features.h: New file.
9862 * config/i386/i386-options.c: New file.
9863 * config/i386/i386-options.h: New file.
9864 * config.gcc: Add new files into extra_objs and
9866 * config/i386/i386.c: Split content of the file
9867 into newly introduced files.
9868 * config/i386/i386.h: Declare common variables
9870 * config/i386/t-i386: Define dependencies for new files.
9872 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
9875 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
9876 Restrict 'all' variant to 32-bit configurations.
9877 (unaligned_loadhiu): Likewise.
9878 (unaligned_storehi): Likewise.
9879 (unaligned_storesi): Likewise.
9880 (unaligned_loadhis): Disable when compiling for thumb1.
9882 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
9884 PR tree-optimization/90269
9885 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
9888 2019-05-03 Martin Liska <mliska@suse.cz>
9890 * hash-map.h: Add is_empty function.
9891 * hash-set.h: Likewise.
9892 * hash-table.h: Likewise.
9893 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
9894 elements () == 0 (and similar usages).
9895 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
9896 * gimplify.c (gimplify_bind_expr): Likewise.
9897 (gimplify_switch_expr): Likewise.
9898 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
9899 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
9900 * postreload-gcse.c (dump_hash_table): Likewise.
9901 (gcse_after_reload_main): Likewise.
9902 * predict.c (combine_predictions_for_bb): Likewise.
9903 * tree-parloops.c (reduction_phi): Likewise.
9904 (separate_decls_in_region): Likewise.
9905 (transform_to_exit_first_loop): Likewise.
9906 (gen_parallel_loop): Likewise.
9907 (gather_scalar_reductions): Likewise.
9908 (try_create_reduction_list): Likewise.
9909 * var-tracking.c (dump_vars): Likewise.
9910 (emit_notes_for_changes): Likewise.
9911 (vt_emit_notes): Likewise.
9913 2019-05-03 Richard Biener <rguenther@suse.de>
9915 PR tree-optimization/90316
9916 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
9919 2019-05-03 Richard Biener <rguenther@suse.de>
9921 * tree-vect-stmts.c (get_group_load_store_type): Avoid
9922 peeling for gaps by loading only lower halves of vectors
9924 (vectorizable_load): Likewise.
9926 2019-05-03 Richard Biener <rguenther@suse.de>
9929 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
9931 2019-05-03 Richard Biener <rguenther@suse.de>
9934 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
9935 Handle STRING_CST vs DECL or STRING_CST.
9937 2019-05-03 Richard Biener <rguenther@suse.de>
9939 PR tree-optimization/88963
9940 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
9941 vector loads feeding only BIT_FIELD_REFs to component
9942 loads. Rewrite stores fed by CONSTRUCTORs to component
9945 2019-05-03 Jakub Jelinek <jakub@redhat.com>
9947 * opts.h (finish_options): Remove lang_mask argument.
9948 (print_help, help_option_argument): Declare.
9949 * opts.c (print_help): Remove forward declaration, no longer static.
9950 (finish_options): Remove lang_mask argument, don't call print_help
9952 * opts-global.c (decode_options): Adjust finish_option caller, call
9955 PR tree-optimization/90303
9956 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
9957 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
9959 2019-05-03 Richard Biener <rguenther@suse.de>
9961 PR tree-optimization/89698
9962 * gimple-fold.c (canonicalize_constructor_val): Early out
9963 for constants, handle unfolded INTEGER_CSTs as they appear in
9964 C++ virtual table ctors.
9966 2019-05-03 Richard Biener <rguenther@suse.de>
9968 * passes.c (execute_function_todo): Remove dead code.
9970 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
9972 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
9973 the internal register number, for any "real" register.
9975 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
9977 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
9978 correct numbers for TFHAR, TFIAR, TEXASR.
9980 2019-05-02 Richard Biener <rguenther@suse.de>
9982 PR tree-optimization/89653
9983 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
9984 update-address-taken before the pass.
9985 * passes.def (pass_tree_loop_init): Put comment before it.
9987 2019-05-02 Richard Biener <rguenther@suse.de>
9989 PR tree-optimization/89509
9990 * tree-ssa-structalias.c (compute_dependence_clique): Look
9991 at the first subvar when determining whether it is restrict.
9993 2019-05-02 Richard Biener <rguenther@suse.de>
9995 PR tree-optimization/90273
9996 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
9997 useless debug stmts.
9999 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10001 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
10003 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
10005 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
10006 VEC_COND_EXPR be inserted to emulate a conditional internal function.
10007 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
10008 (vectorizable_reduction): Use the functions above to vectorize in a
10009 fully masked loop codes that don't have a conditional internal
10012 2019-05-02 Martin Liska <mliska@suse.cz>
10014 * cgraphclones.c: Call valid_attribute_p with 1 for
10016 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
10017 it's for target attribute.
10018 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
10019 Add new boolean argument.
10020 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
10022 (ix86_valid_target_attribute_tree): Pass target_clone_attr
10023 to ix86_valid_target_attribute_inner_p.
10024 (ix86_valid_target_attribute_p): Pass flags argument to
10025 ix86_valid_target_attribute_inner_p.
10026 (get_builtin_code_for_version): Use 0 as it's target attribute.
10028 2019-05-02 Martin Liska <mliska@suse.cz>
10030 * gcc.c (process_command): Add dummy file only
10032 * opts-global.c (decode_options): Pass lang_mask.
10033 * opts.c (print_help): New function.
10034 (finish_options): Print --help if help_option_argument
10036 (common_handle_option): Factor out content of OPT__help_
10038 * opts.h (finish_options): Add new argument.
10040 2019-05-02 Martin Liska <mliska@suse.cz>
10043 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
10044 With -minline-all-stringops use inline expansion using 4B loop.
10045 * doc/invoke.texi: Document the change of
10046 -minline-all-stringops.
10048 2019-05-01 Jeff Law <law@redhat.com>
10050 PR tree-optimization/88797
10051 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
10052 PHI feeds a conditional on the RHS of an assignment.
10054 2019-04-30 Andrew Waterman <andrew@sifive.com>
10055 Jim Wilson <jimw@sifive.com>
10057 * config/riscv/constraints.md (L): New.
10058 * config/riscv/predicates.md (lui_operand): New.
10059 (sfb_alu_operand): New.
10060 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
10061 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
10062 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
10063 * config/riscv/risc.md (type): Add sfb_alu.
10064 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
10065 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
10066 (branch_zero<mode>): Delete.
10067 (mov<mode>cc): New.
10068 (mov<GPR:mode><X:mode>cc): Likewise.
10069 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
10071 2019-04-30 Nathan Sidwell <nathan@acm.org>
10073 * tree.h (MARK_TS_EXP): New.
10075 2019-04-30 Martin Liska <mliska@suse.cz>
10077 * opts.c (enable_warning_as_error): Provide hints
10078 for unknown options.
10080 2019-04-30 Martin Liska <mliska@suse.cz>
10083 * doc/invoke.texi: Add missing dash for gas-locview-support
10084 and gno-as-locview-support.
10086 2019-04-30 Jakub Jelinek <jakub@redhat.com>
10089 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
10090 whitespace at the start of target attribute string.
10092 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10095 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
10096 Define __ARM_FEATURE_ATOMICS.
10098 2019-04-30 Martin Liska <mliska@suse.cz>
10100 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
10101 into built_in_function enum. Remove code for endp == 2 and
10102 use BUILT_IN_* constants.
10103 (gimple_fold_builtin): Call the function with fcode.
10105 2019-04-30 Martin Liska <mliska@suse.cz>
10107 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
10108 DECL_FUNCTION_CODE into ix86_builtins enum before
10109 the switch statement.
10111 2019-04-30 Jakub Jelinek <jakub@redhat.com>
10113 PR tree-optimization/89475
10114 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
10117 2019-04-30 Martin Liska <mliska@suse.cz>
10119 PR translation/90274
10120 * opts.c (print_filtered_help): Wrap string in _(...).
10122 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
10124 PR tree-optimization/90240
10126 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10128 PR tree-optimization/90078
10129 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10130 checks for infinite_cost overflow.
10132 2019-04-29 Jeff Law <law@redhat.com>
10134 * passes.def: Move -Wrestrict pass after copy propagation.
10136 2019-04-29 Maya Rashish <coypu@sdf.org>
10138 * config.gcc (default_gnu_indirect_function): Default to yes
10139 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
10140 sparc*-*-netbsd*, x86_64-*-netbsd*.
10142 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
10144 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
10145 where cond2 is NE_EXPR.
10146 (is_value_included_in): Update comment.
10148 2019-04-29 Richard Biener <rguenther@suse.de>
10150 PR tree-optimization/90278
10151 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
10152 EH on comparison simplification.
10154 2019-04-29 Jason Merrill <jason@redhat.com>
10156 PR c++/82081 - tail call optimization breaks noexcept
10157 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
10158 nothrow function to a might-throw function into a tail call.
10160 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
10162 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
10163 (DDR_INNER_LOOP): Likewise.
10164 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
10165 (initialize_data_dependence_relation): Likewise.
10166 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
10168 2019-04-29 Jakub Jelinek <jakub@redhat.com>
10170 PR rtl-optimization/90257
10171 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
10175 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
10179 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
10182 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10185 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10187 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10189 2019-04-29 Richard Biener <rguenther@suse.de>
10191 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
10194 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
10196 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
10197 varasm.h, and netbsd-protos.h.
10199 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
10202 * config/i386/i386-protos.h (ix86_data_alignment): Change
10203 the second argument type to unsigned int.
10204 * config/i386/i386.c (ix86_data_alignment): Change "align"
10205 argument type to unsigned int.
10207 2019-04-27 Martin Liska <mliska@suse.cz>
10209 PR middle-end/90258
10210 * opt-suggestions.c (option_proposer::build_option_suggestions):
10211 When get_valid_option_values returns empty values, add the
10212 misspelling candidate.
10214 2019-04-26 Jim Wilson <jimw@sifive.com>
10216 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
10218 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
10219 Pass orig_mode to riscv_build_integer.
10220 (riscv_split_integer): Pass mode to riscv_move_integer.
10221 (riscv_legitimize_const_move): Likewise.
10222 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
10223 promoted_mode. Replace force_reg call with code to load constant into
10224 promoted reg and then subreg it for the store.
10225 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
10226 riscv_move_integer.
10228 2018-04-26 Eugene Sharygin <eush@ispras.ru>
10230 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
10233 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
10235 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
10236 commentary about the encoding of precision.
10238 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
10240 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
10241 * config/i386/t-freebsd64: New file.
10242 * config.gcc: Add the t-freebsd64 for multilib support.
10244 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
10246 * doc/extend.texi (vector_size): Add missing comma after @xref.
10248 2019-04-25 Jakub Jelinek <jakub@redhat.com>
10250 * BASE-VER: Set to 10.0.0.
10252 2019-04-25 Richard Biener <rguenther@suse.de>
10254 PR middle-end/89765
10255 * gimplify.c (gimplify_expr): Avoid turning a lvalue
10256 VIEW_CONVERT_EXPR into one operating on an rvalue.
10258 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
10261 * config/i386/i386.c (feature_priority): Moved to file scope.
10262 (processor_features): Likewise.
10263 (processor_model): Likewise.
10264 (_arch_names_table): Likewise.
10265 (arch_names_table): Likewise.
10266 (_feature_list): Removed.
10267 (feature_list): Likewise.
10268 (_isa_names_table): Moved to file scope. Add priority.
10269 (isa_names_table): Likewise.
10270 (get_builtin_code_for_version): Replace feature_list with
10271 isa_names_table. Update error message for P_ZERO priority.
10273 2019-04-25 Richard Biener <rguenther@suse.de>
10275 * tree-pass.h (make_pass_phi_only_cprop): Remove.
10276 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
10278 2019-04-24 Jeff Law <law@redhat.com>
10280 PR tree-optimization/90037
10281 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
10282 * passes.def: Replace all instance of phi-only cprop with the
10283 lattice propagator. Move propagation pass from after erroneous
10284 path isolation to before erroneous path isolation.
10285 * tree-ssa-phionlycprop.c: Remove.
10287 2019-04-24 Richard Biener <rguenther@suse.de>
10289 PR middle-end/90213
10290 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
10291 by size and BITS_PER_UNIT on poly-wide-ints.
10293 2019-04-25 Richard Biener <rguenther@suse.de>
10295 PR middle-end/90194
10296 * match.pd: Add pattern to simplify view-conversion of an
10299 2019-04-24 Clement Chigot <clement.chigot@atos.net>
10301 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
10302 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
10303 for Go on 32 bit AIX.
10304 * config/rs6000/aix72.h: Likewise.
10306 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10309 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
10310 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
10312 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
10315 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
10316 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
10317 for restored hard frame pointer.
10318 (s390_sched_dependencies_evaluation): Implement new target hook.
10319 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
10321 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
10323 * config/arc/arc-options.def: Fix typos and spelling mistakes.
10324 * config/arc/arc.c (arc_init): Cleanup warning message.
10325 (arc_override_options): Likewise.
10327 2019-04-24 Jakub Jelinek <jakub@redhat.com>
10330 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
10331 a register if both if_true and if_false are MEMs.
10333 PR tree-optimization/90208
10334 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
10335 after labels of new_bb, not before them.
10337 PR tree-optimization/90211
10338 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
10339 which are not SSA_NAMEs.
10341 2018-04-23 Sudakshina Das <sudi.das@arm.com>
10343 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
10345 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
10347 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10349 PR rtl-optimization/87979
10350 * modulo-sched.c (sms_schedule): Start ii value "mii" should
10353 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
10355 PR rtl-optimization/84032
10356 * modulo-sched.c (ps_insn_find_column): Change condition so that
10357 branch will always be the last insn in a row inside partial
10360 2019-04-23 Richard Biener <rguenther@suse.de>
10363 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
10364 dest_single_pred_p argument.
10365 (remove_forwarder_block): Adjust.
10366 (remove_forwarder_block_with_phi): Likewise.
10368 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10369 Bernd Edlinger <bernd.edlinger@hotmail.de>
10370 Jakub Jelinek <jakub@redhat.com>
10373 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
10374 if used with general-regs-only.
10375 (arm_conditional_register_usage): Don't add non-general regs if
10377 (arm_valid_target_attribute_rec): Handle general-regs-only.
10378 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
10380 (TARGET_HARD_FLOAT_SUB): Define.
10381 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
10382 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
10383 (TARGET_REALLY_IWMMXT2): Likewise.
10384 * config/arm/arm.opt: Add -mgeneral-regs-only.
10385 * doc/extend.texi: Document ARM general-regs-only target.
10386 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
10388 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10390 PR tree-optimization/90078
10391 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
10392 checks for infinite_cost overflow.
10394 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
10396 PR tree-optimization/90021
10397 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
10398 and check univariate against it.
10399 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
10400 * tree-data-ref.c (add_other_self_distances): Pass new argument.
10402 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
10406 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
10409 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
10412 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
10414 * lra-spills.c (lra_final_code_change): Remove useless move insns.
10416 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
10418 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
10419 names using operand format, rather than hard-wired.
10420 (speculation_barrier): Likewise.
10422 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
10424 PR tree-optimization/88055
10425 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
10426 (gen_one_condition): Use it if !HONOR_NANS.
10428 2019-04-19 Jakub Jelinek <jakub@redhat.com>
10430 PR middle-end/90139
10431 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
10432 assign_temp instead of gen_reg_rtx.
10434 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
10436 PR translation/90118
10437 * config/aarch64/aarch64.c (aarch64_override_options_internal):
10438 Add missing space before %<.
10440 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
10442 PR rtl-optimization/87871
10443 * ira-lives.c (make_object_dead): Don't add conflicts to
10444 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
10446 2019-04-18 Martin Sebor <msebor@redhat.com>
10448 PR middle-end/89797
10449 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
10450 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
10451 assuming type size fits in SHWI.
10453 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
10456 * ipa-inline.c (flatten_function): New parameter UPDATE.
10457 (ipa_inline, early_inliner): Use it.
10459 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
10461 * fold-const.c (int_const_binop): Return early on failure.
10463 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
10465 PR middle-end/85164
10466 * combine.c (force_int_to_mode): Cast the argument rather than
10467 the result of known_alignment.
10468 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
10470 2019-04-18 Richard Biener <rguenther@suse.de>
10473 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
10475 (remove_forwarder_block): ... here.
10476 (remove_forwarder_block_with_phi): Also move debug stmts here.
10478 2019-04-18 Jakub Jelinek <jakub@redhat.com>
10480 PR translation/79183
10481 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
10482 inform where appropriate.
10484 2019-04-18 Richard Biener <rguenther@suse.de>
10486 * tree.c (get_qualified_type): Put found type variants at the
10487 head of the variant list.
10489 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10491 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
10493 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
10496 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
10497 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
10498 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
10499 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
10500 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
10502 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
10504 * ira-conflicts.c (print_allocno_conflicts): Always print something,
10505 even for allocno's with no conflicts.
10506 (print_conflicts): Print an extra newline.
10508 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10510 * auto-inc-dec.c (attempt_change): Set the alignment of the
10511 temporary memory to that of the original.
10513 2019-04-17 Joao Moreira <jmoreira@suse.de>
10515 * targhooks.c (default_print_patchable_function_entry): Emit
10516 __patchable_function_entries section with writable flags to allow
10517 relocation resolution.
10519 2019-04-17 Jonny Grant <jg@jguk.org>
10521 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
10523 2019-04-17 Jakub Jelinek <jakub@redhat.com>
10525 PR middle-end/90095
10526 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
10527 on lowpart SUBREGs.
10529 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
10531 * config/arc/arc.c (arc_init): Format diagnostic string.
10532 (arc_override_options): Likewise.
10533 (check_if_valid_regno_const): Likewise.
10534 (arc_reorg): Likewise.
10536 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
10539 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
10541 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
10543 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
10544 (*movdi_update1): Use Pmode.
10545 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
10546 (movdi_<mode>_update_stack): Rename to ...
10547 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
10549 (*movsi_update1): Use Pmode.
10550 (*movsi_update2): Use Pmode.
10551 (movsi_update): Rename to ...
10552 (movsi_<mode>_update): ... this. Use Pmode.
10553 (movsi_update_stack): Fix condition.
10554 (*movhi_update1): Use Pmode. Fix argument to
10555 avoiding_indexed_address_p.
10556 (*movhi_update2): Ditto.
10557 (*movhi_update3): Ditto.
10558 (*movhi_update4): Ditto.
10559 (*movqi_update1): Ditto.
10560 (*movqi_update2): Ditto.
10561 (*movqi_update3): Ditto.
10562 (*movsf_update1, *movdf_update1): Merge, rename to...
10563 (*mov<mode>_update1): This. Use Pmode. Fix argument to
10564 avoiding_indexed_address_p. Add "size" attribute.
10565 (*movsf_update2, *movdf_update2): Merge, rename to...
10566 (*mov<mode>_update2): This. Ditto.
10567 (*movsf_update3): Use Pmode. Fix argument to
10568 avoiding_indexed_address_p.
10569 (*movsf_update4): Ditto.
10570 (allocate_stack): Simplify condition. Adjust pattern names.
10572 2019-04-17 Jakub Jelinek <jakub@redhat.com>
10575 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
10576 whitespace at the start of target attribute string.
10578 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
10581 * config/rs6000/power9.md: Add store forwarding bypass.
10583 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
10586 * valtrack.c (dead_debug_insert_temp): Reset debug references
10587 to the return value of a call being removed.
10589 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10591 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
10592 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
10593 implement target hook.
10594 (arc_memory_move_cost): New function.
10595 (TARGET_REGISTER_MOVE_COST): Define.
10596 (TARGET_MEMORY_MOVE_COST): Likewise.
10597 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
10598 (MEMORY_MOVE_COST): Likewise.
10600 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10602 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
10603 (sibcall_value_insn): Likewise.
10604 * config/arc/constraints.md (Rs5): Remove.
10606 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10608 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
10609 for last two fake registers.
10610 (arc_conditional_register_usage): Make sure fake frame and arg
10611 pointer regs are in general regs class.
10612 (FRAME_POINTER_MASK): Remove.
10613 (RETURN_ADDR_MASK): Remove.
10614 (arc_must_save_register): Use hard frame regnum.
10615 (frame_restore_reg): Use hard_frame_pointer_rtx.
10616 (arc_save_callee_saves): Likewise.
10617 (arc_restore_callee_saves): Likewise.
10618 (arc_save_callee_enter): Likewise.
10619 (arc_restore_callee_leave): Likewise.
10620 (arc_save_callee_milli): Likewise.
10621 (arc_eh_return_address_location): Likewise.
10622 (arc_check_multi): Use hard frame regnum.
10623 (arc_can_eliminate): Likewise.
10624 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
10625 for register allocator.
10626 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
10627 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
10628 (FRAME_POINTER_REGNUM): Change it to a fake register.
10629 (HARD_FRAME_POINTER_REGNUM): Defined.
10630 (ARG_POINTER_REGNUM): Change it to a new fake register.
10631 (ELIMINABLE_REGS): Update.
10632 (REGISTER_NAMES): Update names.
10633 * config/arc/arc.md (LP_START): Remove.
10634 (LP_END): Likewise.
10635 (shift_si3_loop): Update pattern.
10637 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
10639 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
10640 to avoid delay slot scheduling.
10641 (arc_must_save_register): Don't save SP.
10642 * config/arc/arc.md (stack_tie): Remove.
10643 (UNSPEC_ARC_STKTIE): Likewise.
10645 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
10646 Shiva Chen <shiva0217@gmail.com>
10648 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
10649 code gen with large shift amount.
10651 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
10653 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
10656 2019-04-16 Jakub Jelinek <jakub@redhat.com>
10659 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
10660 print -m64/-mx32/-m32 if it is true.
10661 (ix86_debug_options, ix86_function_specific_print): Pass true as
10662 ADD_ABI_P to ix86_target_string.
10663 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
10664 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
10665 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
10667 PR rtl-optimization/90082
10668 * dce.c (can_delete_call): New function.
10669 (deletable_insn_p, mark_insn): Use it.
10671 PR tree-optimization/90090
10672 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
10674 (is_division_by_square): Likewise. Formatting fix.
10676 2019-04-16 Richard Biener <rguenther@suse.de>
10678 PR tree-optimization/56049
10679 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
10680 equality check if alias-set zero will prevail.
10682 2019-04-15 Jeff Law <law@redhat.com>
10684 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
10685 size and alignment as unsigned.
10687 2019-04-15 Richard Biener <rguenther@suse.de>
10690 * tree-loop-distribution.c (destroy_loop): Preserve correct
10693 2019-04-15 Richard Biener <rguenther@suse.de>
10695 PR tree-optimization/90071
10696 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
10697 abnormal operands from def stmts.
10699 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
10701 PR rtl-optimization/89794
10702 * combine.c (count_auto_inc): New function.
10703 (try_combine): Count how many auto_inc expressions there were in the
10704 original instructions. Ensure we have the same number in the new
10705 instructions. Remove the code that tried to ensure auto_inc side
10706 effects on i1 and i0 are not lost.
10708 2019-04-15 Richard Biener <rguenther@suse.de>
10711 * tree.h (auto_var_p): Declare.
10712 * tree.c (auto_var_p): New function, split out from ...
10713 (auto_var_in_fn_p): ... here.
10714 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
10716 (new_var_info): Initialize it.
10717 (set_uids_in_ptset): Also set the shadow variable uid if required.
10718 (ipa_pta_execute): Postprocess points-to solutions assigning
10719 shadow variable uids for locals that may reach their containing
10720 function recursively.
10721 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
10722 assert but instead check whether the points-to solution is
10725 2019-04-15 Martin Jambor <mjambor@suse.cz>
10728 * cgraph.c (clone_of_p): Loop over clone chain for each step in
10731 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
10733 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
10735 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
10736 Kito Cheng <kito.cheng@gmail.com>
10737 Shiva Chen <shiva0217@gmail.com>
10739 * config/nds32/nds32-md-auxiliary.c
10740 (nds32_legitimize_pic_address): Use new PIC pattern.
10741 (nds32_legitimize_tls_address): Use new TLS pattern.
10742 (nds32_output_symrel): New.
10743 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
10744 (nds32_alloc_relax_group_id): Ditto.
10745 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
10746 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
10748 (nds32_group_tls_insn): Ditto.
10749 (nds32_group_float_insns): Ditto.
10750 * config/nds32/nds32.md (tls_le): New.
10753 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
10755 * configure: Add nds32 target for dwarf2 debug_line checking.
10756 * configure.ac: Regenerated.
10758 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
10761 * ipa-devirt.c (skip_in_fields_list_p): New.
10762 (odr_types_equivalent_p): Use it.
10764 2019-04-13 Jakub Jelinek <jakub@redhat.com>
10767 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
10768 instead of strncmp when checking for thumb and arm. Formatting fixes.
10770 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
10772 * doc/install.texi: Document --with-target-system-zlib.
10774 2019-04-12 Martin Sebor <msebor@redhat.com>
10780 * targhooks.c (default_vector_alignment): Avoid assuming
10781 argument fits in SHWI.
10782 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
10783 a shift expression.
10784 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
10786 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10788 PR rtl-optimization/89965
10789 * dce.c: Include rtl-iter.h.
10790 (struct check_argument_load_data): New type.
10791 (check_argument_load): New function.
10792 (find_call_stack_args): Check for loads from stack slots still tracked
10793 in sp_bytes and punt if any is found.
10795 * config/mips/loongson-mmiintrin.h: Fix up #error message.
10797 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
10799 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
10800 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
10802 2019-04-12 Martin Liska <mliska@suse.cz>
10804 PR middle-end/89970
10805 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
10807 (separate_attrs): Handle multiple 'default's.
10808 (expand_target_clones): Rework error handling code.
10810 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
10813 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
10814 mode of vector rather than mode of destination for move instruction.
10815 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
10816 Use QI inner mode with V16QI vector mode.
10818 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10821 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
10822 "invalid %%t operand" in output_operand_lossage message.
10824 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
10826 * config/s390/predicates.md (permute_pattern_operand): New
10828 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
10829 operand for the permute pattern.
10830 ("*vec_perm<mode>"): New insn definition.
10831 ("bswap<mode>"): Generate the permute pattern operand in the
10832 expander and perform the operand reloads for pre arch13 level
10834 ("*bswap<mode>_emu"): Rename to ...
10835 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
10836 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
10837 Add the USE operand for the permute pattern.
10838 ("*vec_set_bswap_vec<mode>"): Likewise.
10840 2019-04-12 Jakub Jelinek <jakub@redhat.com>
10843 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
10844 and gcc_unreachable if it fails, just call tree_to_uhwi which
10845 verifies that too. Test TREE_CHAIN instead of list_length > 1.
10846 Start warning message with a lower-case letter. Formatting fixes.
10848 PR rtl-optimization/90026
10849 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
10850 successors, look for BARRIERs inside of the whole BB_FOOTER chain
10851 rather than just at the start of it. If e->src BB_FOOTER is not NULL
10852 in cfglayout mode, use emit_barrier_after_bb.
10854 2018-04-11 Steve Ellcey <sellcey@marvell.com>
10856 PR rtl-optimization/87763
10857 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
10860 2019-04-11 Tom de Vries <tdevries@suse.de>
10862 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
10863 max macro using statement expression.
10865 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
10867 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
10868 * xcoffout.c (xcoff_private_rodata_section_name): Define.
10869 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
10870 read_only_private_data_section using xcoff_private_rodata_section_name.
10871 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
10873 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
10876 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
10878 2019-04-11 Jakub Jelinek <jakub@redhat.com>
10880 PR rtl-optimization/89965
10881 * dce.c (sp_based_mem_offset): New function.
10882 (find_call_stack_args): Use sp_based_mem_offset.
10884 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
10886 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
10888 2019-04-11 Richard Biener <rguenther@suse.de>
10890 PR tree-optimization/90020
10891 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
10892 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
10893 * tree-ssa-pre.c (compute_avail): Use it to not put
10894 possibly trapping references after a call that might not
10895 return into EXP_GEN.
10896 * gcse.c (compute_hash_table_work): Do not elide
10897 marking a block containing a call if the call might not
10900 2019-04-11 Richard Biener <rguenther@suse.de>
10902 PR tree-optimization/90018
10903 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
10904 Test both SLP and interleaving variants.
10906 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
10908 * config/s390/8561.md: New file.
10909 * config/s390/driver-native.c (s390_host_detect_local_cpu):
10910 Add arch13 cpu model.
10911 * config/s390/s390-opts.h (enum processor_type): Likewise.
10912 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
10913 (s390_get_unit_mask): Likewise.
10914 (s390_is_fpd): Likewise.
10915 (s390_is_fxd): Likewise.
10916 * config/s390/s390.h (s390_tune_attr): Likewise.
10917 * config/s390/s390.md: Include arch13 pipeline description.
10918 * config/s390/s390.opt: Add arch13.
10920 2018-04-10 Steve Ellcey <sellcey@marvell.com>
10922 PR rtl-optimization/87763
10923 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
10925 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
10927 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
10929 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
10930 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
10931 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
10932 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
10934 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
10936 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
10937 "Although" in -fipa-icf documentation.
10939 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
10940 of using multiple -g options.
10942 2019-04-10 Martin Liska <mliska@suse.cz>
10944 PR gcov-profile/89959
10945 * doc/gcov.texi: Make documentation of -x option
10948 2019-04-10 Richard Biener <rguenther@suse.de>
10950 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
10952 (DR_GROUP_SAME_DR_STMT): Remove.
10953 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
10954 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
10955 replace with assert.
10956 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
10957 (vect_record_grouped_load_vectors): Remove unreachable code.
10959 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
10962 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
10963 obsolete reference to N.
10965 2019-04-10 Jakub Jelinek <jakub@redhat.com>
10967 PR middle-end/90025
10968 * expr.c (store_expr): Set properly size on the MEM passed to
10972 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
10973 with strlen in between hostsz-3 and hostsz-1 inclusive when no
10974 translation is needed, and when translation is needed, only append
10975 ... if the string length is hostsz or more bytes long. Avoid using
10978 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
10981 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
10982 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
10984 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
10985 differences directly.
10986 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
10988 2019-04-09 Jakub Jelinek <jakub@redhat.com>
10990 PR translation/90011
10991 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
10993 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
10995 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
10996 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
10997 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
10998 trailing space from -gsplit-dwarf diagnostics.
11000 PR tree-optimization/89998
11001 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
11002 instead of integer_type_node if possible, don't add ranges if return
11003 type is not compatible with int.
11004 * gimple-fold.c (gimple_fold_builtin_sprintf,
11005 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
11008 2019-04-09 Martin Liska <mliska@suse.cz>
11010 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
11011 * doc/install.texi: Document the new config.
11013 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
11015 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
11016 use gimple_expr_type for load and store calls. Skip over the
11017 condition argument in a conditional internal function.
11018 Protect use of TREE_INT_CST_LOW.
11020 2019-04-09 Jakub Jelinek <jakub@redhat.com>
11023 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
11024 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
11025 trailing period from it too.
11027 2019-04-08 wu yuan <wuyuan5@huawei.com>
11029 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
11030 * config/aarch64/aarch64.md : Add "tsv110.md"
11031 * config/aarch64/tsv110.md: New file.
11033 2019-04-08 Richard Biener <rguenther@suse.de>
11035 PR tree-optimization/90006
11036 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
11039 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
11042 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
11044 (fma_root_node): Likewise.
11045 (func_fma_steering): Likewise.
11047 2019-04-08 Jakub Jelinek <jakub@redhat.com>
11049 PR rtl-optimization/89865
11050 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
11052 PR rtl-optimization/89865
11053 * config/i386/i386.md
11054 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
11055 numbers not to clash with the additional operands[4].
11056 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
11057 with extra register copy in the middle.
11059 2019-04-08 Martin Liska <mliska@suse.cz>
11061 PR gcov-profile/89961
11062 * doc/gcov.texi: Document data_file.
11063 * gcov.c (generate_results): Add data_info into JSON output.
11065 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
11067 PR tree-optimization/89725
11068 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
11069 loop's chrec as invariant symbol.
11070 * tree-chrec.h (chrec_contains_symbols): New parameter.
11071 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
11072 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
11073 function of loops not in DDR's loop_nest.
11074 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
11076 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
11079 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
11082 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
11085 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11086 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
11088 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
11090 * sched-deps.c (sched_macro_fuse_insns): Check return value of
11091 targetm.fixed_condition_code_regs.
11093 2019-04-05 Richard Biener <rguenther@suse.de>
11097 * tree-cfgcleanup.c (remove_forwarder_block): Always move
11098 debug bind stmts but reset them if they are not valid at the
11101 2019-04-05 Martin Liska <mliska@suse.cz>
11103 PR translation/89936
11104 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
11105 order to wrap keywords or arguments.
11106 * collect2.c (main): Likewise.
11107 (scan_prog_file): Likewise.
11108 (scan_libraries): Likewise.
11109 * common/config/riscv/riscv-common.c
11110 (riscv_subset_list::parsing_subset_version): Likewise.
11111 (riscv_subset_list::parse_std_ext): Likewise.
11112 * config/aarch64/aarch64.c (aarch64_override_options_internal):
11114 * config/arm/arm.c (arm_option_override): Likewise.
11115 * config/cris/cris.c (cris_print_operand): Likewise.
11116 * config/darwin-c.c (darwin_pragma_options): Likewise.
11117 (darwin_pragma_unused): Likewise.
11118 (darwin_pragma_ms_struct): Likewise.
11119 * config/ft32/ft32.c (ft32_print_operand): Likewise.
11120 * config/i386/i386.c (print_reg): Likewise.
11121 (ix86_print_operand): Likewise.
11122 * config/i386/xm-djgpp.h: Likewise.
11123 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
11124 * config/m32c/m32c.c (m32c_option_override): Likewise.
11125 * config/msp430/msp430.c (msp430_option_override): Likewise.
11126 * config/nds32/nds32.c (nds32_option_override): Likewise.
11127 * config/nvptx/mkoffload.c (main): Likewise.
11128 * config/rx/rx.c (rx_print_operand): Likewise.
11129 (valid_psw_flag): Likewise.
11130 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
11131 (vms_pragma_nomember_alignment): Likewise.
11132 (vms_pragma_extern_model): Likewise.
11133 * lto-wrapper.c (compile_offload_image): Likewise.
11134 * omp-offload.c (oacc_parse_default_dims): Likewise.
11135 * symtab.c (symtab_node::verify_base): Likewise.
11136 * tlink.c (recompile_files): Likewise.
11137 (start_tweaking): Likewise.
11138 * tree-profile.c (parse_profile_filter): Likewise.
11140 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
11142 PR tree-optimization/89956
11143 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
11144 multiple negates of the same value.
11146 2019-04-04 Martin Sebor <msebor@redhat.com>
11148 PR middle-end/89957
11149 PR middle-end/89911
11150 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
11151 have the same precision since the function crashes otherwise.
11152 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
11153 has non-zero arguments.
11155 2019-04-04 Martin Sebor <msebor@redhat.com>
11157 PR middle-end/89934
11158 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
11159 out if the number of arguments is less than expected.
11161 2019-04-04 Jeff Law <law@redhat.com>
11163 PR rtl-optimization/89399
11164 * ree.c (combine_set_extension): Use single_set rather than
11165 digging into PATTERN for items on the candidate list.
11166 (combine_reaching_defs): Likewise.
11168 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
11170 PR rtl-optimization/46590
11171 * loop-invariant.c (find_defs): Move df_remove_problem and
11172 df_process_deferred_rescans to move_invariants.
11173 Move df_live_add_problem and df_live_set_all_dirty calls
11174 to move_invariants.
11175 (move_invariants): Likewise.
11176 (move_loop_invariants): Likewise, making the df_live calls
11177 conditional on -O. Remove the problem again if we added it
11180 2019-04-03 qing zhao <qing.zhao@oracle.com>
11182 PR tree-optimization/89730
11183 * ipa-inline.c (can_inline_edge_p): Delete the checking for
11184 -flive-patching=inline-only-static.
11185 (can_inline_edge_by_limits_p): Add the checking for
11186 -flive-patching=inline-only-static and grant always_inline
11187 even when -flive-patching=inline-only-static is specified.
11189 2019-04-03 Jeff Law <law@redhat.com>
11191 PR rtl-optimization/81025
11192 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
11194 2019-04-03 Richard Biener <rguenther@suse.de>
11196 PR tree-optimization/84101
11197 * tree-vect-stmts.c: Include explow.h for hard_function_value,
11198 regs.h for hard_regno_nregs.
11199 (cfun_returns): New helper.
11200 (vect_model_store_cost): When vectorizing a store to a decl
11201 we return and the function ABI returns in a multi-reg location
11202 account for the possible spilling that will happen.
11204 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
11206 * config/s390/s390.c (s390_legitimate_address_p): Reject long
11207 displacement addresses for vector mode operands.
11209 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
11211 * config/arc/arc.c (GMASK_LEN): Define.
11212 (arc_restore_callee_saves): Restore first blink when
11215 2019-04-03 Sudakshina Das <sudi.das@arm.com>
11217 * doc/extend.texi: Add deprecated comment on sign-return-address
11218 function attribute and add mbranch-protection.
11219 * doc/invoke.texi: Add bti to the options for mbranch-protection.
11221 2019-04-03 Richard Biener <rguenther@suse.de>
11224 * lto-wrapper.c (run_gcc): Avoid implicit rules making
11225 the all target phony.
11227 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
11231 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
11232 Return false for variable DImode shifts.
11233 (dimode_scalar_chain::compute_convert_gain): Do not handle
11234 register count operand in variable DImode shifts.
11235 (dimode_scalar_chain::make_vector_copies): Remove support to copy
11236 count argument of a variable shift instruction to a vector register.
11237 (dimode_scalar_chain::convert_reg): Remove support to convert
11238 count argument of a variable shift instruction.
11240 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11242 PR rtl-optimization/84206
11243 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
11244 iterating over loop headers.
11246 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
11248 PR rtl-optimization/85876
11249 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
11250 beyond the original fence.
11252 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
11254 * config.gcc: Mark spu* targets as deprecated/obsolete.
11256 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11258 * config/s390/s390-builtin-types.def: New builtin function type
11259 definitions. Remove unused types.
11260 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
11261 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
11262 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
11263 overloaded builtins.
11264 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
11265 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
11266 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
11267 (vec_double, vec_signed, vec_unsigned): Define to use the new
11268 overloaded builtins.
11269 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
11272 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11274 * config/s390/s390-builtin-types.def: New builtin function type
11276 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
11277 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
11278 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
11279 (s390_vstrszh, s390_vstrszf): New low-level builtins.
11280 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
11281 constant definitions.
11282 * config/s390/vecintrin.h (vec_search_string_cc)
11283 (vec_search_string_until_zero_cc): New builtin name definitions.
11284 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
11286 ("vec_vstrs<mode>"): New insn definition.
11288 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11290 * config/s390/s390-builtin-types.def: Add new builtin function
11292 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
11293 New overloaded builtins.
11294 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
11296 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
11297 (UNSPEC_VEC_SLDBYTE): ... this.
11298 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
11299 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
11301 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
11302 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
11303 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
11305 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11307 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
11308 New insn definition.
11309 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
11310 * config/s390/vector.md (V_HW_HSD): ... here.
11312 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11314 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
11315 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
11316 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
11317 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
11318 New insn definitions.
11320 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11322 * config/s390/s390-builtin-types.def: Add new builtin function type.
11323 * config/s390/s390-builtins.def: Add overloaded builtin
11324 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
11325 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
11326 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
11327 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
11328 ("eltswap<mode>"): New expander.
11329 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
11332 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11334 * config/s390/s390-builtin-types.def: Add new builtin function types.
11335 * config/s390/s390-builtins.def: Add overloaded builtin
11336 s390_vec_revb. Add low-level builtins for vlbr and vstbr
11338 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
11339 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
11340 ("bswap<mode>"): New expander.
11341 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
11343 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11345 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
11346 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
11347 vector builtin version number in __VEC__.
11349 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11351 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
11353 (SFSI): New mode attribute.
11354 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
11355 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
11357 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
11358 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
11359 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
11360 ("floatsi<mode>2"): Add wcefb instruction.
11362 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11364 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
11365 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
11367 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
11368 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
11369 support 32 bit fp-int conversions. Rename to ...
11370 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11371 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
11372 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
11373 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
11376 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11378 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
11379 if-then-else constructs if we can use the select instruction.
11380 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
11382 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11384 * config/s390/s390.md ("*popcountdi_arch13_cc")
11385 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
11387 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
11388 Append _z196 to make it ...
11389 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
11390 ("popcounthi2_z196"): ... this.
11391 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
11392 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
11394 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11396 * config/s390/s390.c (s390_canonicalize_comparison): Convert
11397 certain compares for arch13 in order to make use of the condition
11398 code result produced by the new instructions.
11399 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
11400 nxrk, and nxgrk instruction patterns.
11401 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
11402 (inv_no): Add new code iterator together with some attributes.
11403 ("*andc_split_<mode>"): Disable splitter for arch13.
11404 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
11405 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
11406 ("*<ANDOR:bitops_name>c<GPR:mode>")
11407 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
11408 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
11409 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
11410 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
11412 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
11414 * common/config/s390/s390-common.c (processor_flags_table): New
11416 * config.gcc: Support arch13 with the --with-arch= configure flag.
11417 * config/s390/driver-native.c (s390_host_detect_local_cpu):
11418 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
11419 * config/s390/s390.c (s390_get_sched_attrmask)
11420 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
11421 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
11422 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
11423 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
11424 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
11426 * config/s390/s390.opt: Support arch13 as processor type in
11427 command line options.
11429 2019-04-02 Martin Liska <mliska@suse.cz>
11431 PR translation/89912
11432 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
11433 Fix param description of graphite-max-arrays-per-scop.
11435 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
11437 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
11438 (ASAN_CC1_SPEC): Use it in 64-bit mode.
11439 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
11441 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11443 PR rtl-optimization/85412
11444 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
11445 sel_sched_region_1, not after.
11447 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11449 PR rtl-optimization/86928
11450 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
11451 compute_live if necessary.
11452 (sel_redirect_edge_and_branch): Likewise.
11454 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
11456 PR rtl-optimization/89865
11457 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
11458 register if it is a part of small class.
11460 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
11462 PR rtl-optimization/87273
11463 * sel-sched-ir.c (merge_fences): Remove assert.
11465 2019-04-01 Richard Biener <rguenther@suse.de>
11467 PR tree-optimization/46590
11468 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
11469 (dom_walker::m_reachability): Add in place of...
11470 (dom_walker::m_skip_unreachable_blocks): ...this.
11471 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
11472 Move complex initialization ...
11473 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
11474 lazily and initialize edge flags on each invocation.
11475 (dom_walker::bb_reachable): Use m_reachability.
11477 2019-04-01 Martin Liska <mliska@suse.cz>
11480 * opt-suggestions.c (option_proposer::build_option_suggestions):
11481 Add variant without any argument in order to provide better
11484 2019-04-01 Richard Biener <rguenther@suse.de>
11487 * gimple.c: Include langhooks.h.
11488 (gimple_get_alias_set): Treat enumeral types as the underlying
11491 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
11492 Eric Botcazou <ebotcazou@adacore.com>
11494 PR rtl-optimization/89862
11495 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
11496 that operates on the full registers for WORD_REGISTER_OPERATIONS
11499 2019-03-29 Jim Wilson <jimw@sifive.com>
11501 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
11502 Clear MASK_RVC and then set if C subset supported.
11504 2019-03-29 Jakub Jelinek <jakub@redhat.com>
11507 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
11508 non-addressable complit into its initializer if it is volatile.
11510 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
11512 * opts-common.c (integral_argument): Set errno properly in one case.
11514 2019-03-29 Martin Liska <mliska@suse.cz>
11516 * doc/invoke.texi: Remove -Wchkp from documentation.
11518 2019-03-29 Martin Liska <mliska@suse.cz>
11520 * dbgcnt.c (print_limit_reach): New function.
11523 2019-03-29 Martin Liska <mliska@suse.cz>
11525 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
11526 (dbg_cnt_process_opt): Parse first tokens aas
11527 dbg_cnt_process_single_pair is also using strtok.
11529 2019-03-29 Jakub Jelinek <jakub@redhat.com>
11531 PR rtl-optimization/87485
11532 * function.c (expand_function_end): Move stack_protect_epilogue
11533 before loading of return value into hard register(s).
11535 2019-03-28 Jakub Jelinek <jakub@redhat.com>
11537 PR middle-end/89621
11538 * tree-inline.h (struct copy_body_data): Add
11539 dont_remap_vla_if_no_change flag.
11540 * tree-inline.c (remap_type_3, remap_type_2): New functions.
11541 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
11542 and remap_type_2 returns false.
11543 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
11544 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
11545 only from where it is copied to nested contexts.
11547 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
11550 * config/i386/i386.md (RMW operation with LEA peephole):
11551 Use LEAMODE mode attribute instead of SWI mode iterator for
11554 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
11557 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
11558 Also process XEXP (src, 0) of a shift insn.
11560 2019-03-28 David Malcolm <dmalcolm@redhat.com>
11562 PR middle-end/89725
11563 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
11564 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
11566 2019-03-28 Jakub Jelinek <jakub@redhat.com>
11568 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
11570 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
11571 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
11572 immediately after first one with df_analyze in between, but rather
11573 process all bbs, queueing ones that need second pass in a worklist,
11574 df_analyze, process queued debug insn changes and if second pass is
11575 needed, process bbs from worklist, df_analyze, process queued debug
11578 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
11579 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
11580 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
11582 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
11585 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
11588 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
11591 * config/i386/i386.c (ix86_function_value_1): Call the newly added
11592 function for 32-bit MS_ABI.
11593 (function_value_ms_32): New function.
11595 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
11597 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
11598 (movdi): Call gen_movdi_symbol_save_scc.
11599 (gen_movdi_symbol_save_scc): New insn and split.
11601 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
11603 PR rtl-optimization/89313
11604 * function.c (matching_constraint_num): New static function.
11605 (match_asm_constraints_1): Use it. Fixup white space and comment.
11606 Don't replace inputs with non-matching constraints which conflict
11607 with early clobber outputs.
11609 2019-03-27 Jeff Law <law@redhat.com>
11612 PR rtl-optimization/87761
11613 PR rtl-optimization/89826
11614 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
11616 (pass_cprop_hardreg::execute): Call df_analyze after adding the
11617 note problem to get REG_DEAD/REG_UNUSED notes updated.
11619 2019-03-27 Richard Biener <rguenther@suse.de>
11621 PR tree-optimization/89463
11622 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
11623 queue edges to remove.
11624 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
11625 dead stmts. Delay edge removal until PHIs are removed to
11626 make debug-stmt creation not confused by seemingly degenerate
11629 2019-03-27 Alan Modra <amodra@gmail.com>
11631 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
11633 * config/rs6000/darwin.h: Likewise.
11634 * config/rs6000/rs6000.c: Likewise.
11636 2019-03-27 Alan Modra <amodra@gmail.com>
11638 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
11639 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
11641 2019-03-26 Andrew Waterman <andrew@sifive.com>
11642 Jim Wilson <jimw@sifive.com>
11644 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
11645 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
11646 (generic_idivdi, generic_fmul_single, generic_fmul_double)
11647 (generic_fdiv, generic_fsqrt): Add check for generic tune.
11648 (generic_alu): Add auipc to type list.
11649 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
11650 (riscv_microarchitecture): Declare.
11651 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
11652 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
11654 (riscv_microarchitecture): New.
11655 (sifive_7_tune_info): New.
11656 (riscv_cpu_info_table): Add microarchitecture value for rocket and
11657 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
11659 (riscv_store_data_bypass_p): New.
11660 (riscv_option_override): Set riscv_microarchitecture from
11661 cpu->microarchitecture.
11662 * config/riscv/riscv.md: Include sifive-7.md.
11665 (auipc<mode>): Change type to auipc.
11666 (restore_stack_nonlocal): New.
11667 * config/riscv/sifive-7.md: New.
11668 * doc/invoke.texi (RISC-V Options): Update mtune docs.
11670 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
11673 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
11674 Also process XEXP (src, 0) of a shift insn.
11676 2019-03-26 Richard Biener <rguenther@suse.de>
11678 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
11679 (copy_debug_stmt): Likewise.
11680 (expand_call_inline): Likewise.
11681 (copy_bb): Avoid redundant lookup & set of gimple_block.
11682 * gimple-low.c (lower_gimple_return): Likewise.
11683 (lower_builtin_setjmp): Likewise.
11685 2019-03-26 Jakub Jelinek <jakub@redhat.com>
11687 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
11688 is constant 0, turn into static const data member initialized to false.
11689 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
11690 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
11692 2019-03-26 Jason Merrill <jason@redhat.com>
11693 Jakub Jelinek <jakub@redhat.com>
11695 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
11697 (mem_alloc_description::release_object_overhead): Fix comment typos.
11698 * hash-table.h (hash_table::~hash_table): Call
11699 release_instance_overhead only if m_entries is non-NULL, otherwise
11700 call unregister_descriptor.
11702 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
11704 PR tree-optimization/81740
11705 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11706 In case of outer loop vectorization, check for backward dependence
11707 at the inner loop if outer loop dependence is reversed.
11709 2019-03-26 Alan Modra <amodra@gmail.com>
11711 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
11712 rs6000_vector_mem init. Correct wI and wJ comment.
11714 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
11716 PR rtl-optimization/88347
11717 PR rtl-optimization/88423
11718 * sched-deps.c (sched_analyze_insn): Take into account that for
11719 tablejumps the barrier appears after a label and a jump_table_data.
11721 2019-03-25 Martin Sebor <msebor@redhat.com>
11724 * c-common.c (check_user_alignment): Rename local. Correct maximum
11725 alignment in diagnostic. Avoid assuming argument fits in SHWI,
11726 convert it to UHWI when it fits.
11728 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
11731 * dwarf2out.c (premark_used_variables): New function.
11732 (prune_unused_types_walk): Do not mark not premarked external
11734 (prune_unused_types): Call premark_used_variables.
11736 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
11738 PR rtl-optimization/89676
11739 * lra-constraints.c (curr_insn_transform): Do match reload for
11740 early clobbers when the match was successful only for different
11743 2019-03-25 Martin Sebor <msebor@redhat.com>
11745 * doc/extend.texi (Common Type Attributes): Document vector_size.
11746 (Common Variable Attributes): Mention size constraint. Correct
11748 (Vector Extensions): Use @dfn when defining bas type. Clarify
11749 base type and size constraints.
11751 2019-03-25 Richard Biener <rguenther@suse.de>
11753 PR tree-optimization/89789
11754 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
11755 changes from non-undefined back to undefined.
11757 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
11759 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
11760 heap string and a gc string, but since this variable is unknown to
11761 ggc the gc string might get reused and corrupted. Fixed by always
11762 using a heap string.
11764 2019-03-25 Richard Biener <rguenther@suse.de>
11766 PR tree-optimization/89779
11767 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
11768 to remove IV defs, delay actual removal.
11769 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
11770 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
11771 very end, properly also reset loop control IV information.
11773 2019-03-25 Richard Biener <rguenther@suse.de>
11775 PR tree-optimization/89802
11776 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
11777 move EH data to folded stmt.
11779 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
11781 * config/s390/s390-builtin-types.def: Remove few unused types and
11782 fix sort order for others.
11784 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
11786 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
11787 expected and found types with -mdebug during builtin matching.
11789 2019-03-25 Richard Biener <rguenther@suse.de>
11791 PR middle-end/89790
11792 * fold-const.c (operand_equal_p): Revert last change with
11795 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
11797 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
11798 notes for the result of the __tls_get_addr calls.
11799 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
11801 2019-03-24 Jeff Law <law@redhat.com>
11803 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
11805 PR rtl-optimization/87761
11806 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
11807 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
11809 (pass_cprop_hardreg::execute): Add df note problem and defer insn
11810 rescans. Reprocess blocks as needed, calling df_analyze before
11811 reprocessing. Always call df_analyze before fixing up debug bind
11814 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
11816 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
11819 2019-03-22 Andrew Pinski <apinski@marvell.com>
11821 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
11822 attrribute for uxtw.
11824 2019-03-26 Jeff Law <law@redhat.com>
11826 PR rtl-optimization/87761
11827 * config/mips/mips-protos.h (mips_split_move): Add new argument.
11828 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
11829 (mips_split_move): Accept new INSN argument. Try to forward SRC
11830 into the next instruction.
11831 (mips_split_move_insn): Pass INSN through to mips_split_move.
11833 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
11835 PR rtl-optimization/89676
11836 * lra-constraints.c (curr_insn_transform): Do match reload for
11837 early clobbers even if the match was successful.
11839 2019-03-22 Jakub Jelinek <jakub@redhat.com>
11842 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
11844 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
11846 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
11848 2019-03-22 Jakub Jelinek <jakub@redhat.com>
11850 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
11851 <avx512>_fmsub_<mode>_mask3<round_name>,
11852 <avx512>_fnmadd_<mode>_mask3<round_name>,
11853 <avx512>_fnmsub_<mode>_mask3<round_name>,
11854 avx512f_vmfmadd_<mode>_mask3<round_name>,
11855 avx512f_vmfmsub_<mode>_mask3<round_name>,
11856 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
11857 instead of register_operand and %v instead of v for match_operand 1.
11858 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
11859 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
11860 <round_nimm_predicate> instead of register_operand and %v instead of v
11861 for match_operand 1.
11863 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
11864 <avx512>_fmadd_<mode>_mask3<round_name>,
11865 <avx512>_fmsub_<mode>_mask<round_name>,
11866 <avx512>_fmsub_<mode>_mask3<round_name>,
11867 <avx512>_fnmadd_<mode>_mask<round_name>,
11868 <avx512>_fnmadd_<mode>_mask3<round_name>,
11869 <avx512>_fnmsub_<mode>_mask<round_name>,
11870 <avx512>_fnmsub_<mode>_mask3<round_name>,
11871 <avx512>_fmaddsub_<mode>_mask<round_name>,
11872 <avx512>_fmaddsub_<mode>_mask3<round_name>,
11873 <avx512>_fmsubadd_<mode>_mask<round_name>,
11874 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
11875 <round_nimm_predicate> instead of nonimmediate_operand.
11876 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
11877 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
11878 Use register_operand instead of <round_nimm_predicate> for the
11879 operand that needs to match output.
11880 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
11881 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
11882 Likewise. Formatting fixes.
11885 * config/i386/i386.c (enum ix86_builtins): Remove
11886 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
11887 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
11888 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
11889 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
11890 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
11891 __builtin_ia32_vfmsubss3_mask3): New builtins.
11892 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
11893 avx512f_vmfmadd_<mode>_mask3<round_name>,
11894 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
11895 *avx512f_vmfmsub_<mode>_mask<round_name>,
11896 avx512f_vmfmsub_<mode>_mask3<round_name>,
11897 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
11898 *avx512f_vmfnmadd_<mode>_mask<round_name>,
11899 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
11900 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
11901 *avx512f_vmfnmsub_<mode>_mask<round_name>,
11902 avx512f_vmfnmsub_<mode>_mask3<round_name>,
11903 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
11904 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
11905 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
11906 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
11907 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
11908 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
11909 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
11910 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
11911 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
11912 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
11913 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
11914 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
11915 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
11916 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
11917 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
11918 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
11919 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
11920 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
11921 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
11922 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
11923 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
11924 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
11926 2019-03-21 Martin Sebor <msebor@redhat.com>
11928 PR tree-optimization/89350
11929 * builtins.c (compute_objsize): Also ignore offsets whose upper
11931 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
11932 (builtin_memref::builtin_memref): Initialize new member.
11933 Allow EXPR to be null.
11934 (builtin_memref::extend_offset_range): Replace local with a member.
11935 Avoid assuming pointer offsets are unsigned.
11936 (builtin_memref::set_base_and_offset): Determine base object
11937 before computing offset range.
11938 (builtin_access::builtin_access): Handle memset.
11939 (builtin_access::generic_overlap): Replace local with a member.
11940 (builtin_access::strcat_overlap): Same.
11941 (builtin_access::overlap): Same.
11942 (maybe_diag_overlap): Same.
11943 (maybe_diag_access_bounds): Same.
11944 (wrestrict_dom_walker::check_call): Handle memset.
11945 (check_bounds_or_overlap): Same.
11947 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
11948 Jakub Jelinek <jakub@redhat.com>
11951 * tree.c (fld_type_variant, fld_incomplete_type_of,
11952 fld_process_array_type): Call fld->pset.add and don't call
11953 add_tree_to_fld_list if it returns true.
11954 (free_lang_data_in_type): Similarly with self-recursive call. Purge
11955 non-marked types from TYPE_NEXT_VARIANT list.
11956 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
11958 2019-03-21 Jakub Jelinek <jakub@redhat.com>
11960 * hash-table.h (hash_table): Add Lazy template parameter defaulted
11961 to false, if true, don't alloc_entries during construction, but defer
11962 it to the first method that needs m_entries allocated.
11963 (hash_table::hash_table, hash_table::~hash_table,
11964 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
11965 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
11966 hash_table::clear_slot, hash_table::traverse_noresize,
11967 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
11968 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
11970 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
11971 NO_INSERT instead of find_with_hash.
11972 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
11973 hash_set::m_table): Add Lazy to template params of hash_table.
11974 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
11975 * attribs.c (test_attribute_exclusions): Likewise.
11976 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
11977 hash_set. Add tests for hash_set with Lazy = true.
11979 2019-03-21 Richard Biener <rguenther@suse.de>
11981 PR tree-optimization/89779
11982 * tree.c (tree_nop_conversion): Consolidate and fix defensive
11983 checks with respect to released SSA names now having error_mark_node
11985 * fold-const.c (operand_equal_p): Likewise.
11987 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
11990 * config/s390/s390.c (global_not_special_regno_p): Move to make it
11992 (s390_optimize_register_info): Use global_not_special_regno_p to
11993 check for global regs.
11995 2019-03-20 Jakub Jelinek <jakub@redhat.com>
11998 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
11999 update this_alternative nor this_alternative_set.
12001 2019-03-19 Jim Wilson <jimw@sifive.com>
12004 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
12005 align, size, offset. Use them to handle a BLKmode reference. Update
12007 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
12009 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12011 PR rtl-optimization/89768
12012 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
12013 instead of GEN_INT.
12014 (unroll_loop_runtime_iterations): Likewise.
12016 2019-03-19 Martin Sebor <msebor@redhat.com>
12018 PR tree-optimization/89644
12019 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
12020 rather than endptr as an indicator of nul-termination.
12022 PR tree-optimization/89644
12023 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
12024 arrays in determining sequence sizes in strncpy and stpncpy.
12026 2019-03-19 Martin Liska <mliska@suse.cz>
12028 PR middle-end/89737
12029 * predict.c (combine_predictions_for_bb): Empty likely_edges and
12030 unlikely_edges if there's an edge that belongs to both these sets.
12032 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
12035 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
12036 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
12037 go via a stack temporary.
12039 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12042 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
12043 instead of gen_rtx_SUBREG.
12044 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
12046 2019-03-19 Richard Biener <rguenther@suse.de>
12049 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
12051 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
12055 * tree.c (free_lang_data_in_decl): Do not free context of C++
12058 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12061 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
12062 subs for the first alternative except when operands[3] is 1.
12065 * gimplify.c (gimplify_asm_expr): For output argument with
12066 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
12069 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
12071 PR rtl-optimization/89753
12072 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12073 explicit unrolling factor even more robust.
12075 2019-03-19 Jakub Jelinek <jakub@redhat.com>
12078 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
12079 compensation use x2 += 1 instead of x2 -= -1 and when honoring
12080 signed zeros, do another copysign after the compensation.
12082 2019-03-18 Martin Sebor <msebor@redhat.com>
12084 PR tree-optimization/89720
12085 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
12086 more conservatively, the same as anti-range.
12088 2019-03-18 Richard Biener <rguenther@suse.de>
12090 PR middle-end/88945
12091 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
12092 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
12093 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
12094 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
12096 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
12098 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
12099 Extend queue to 1024 entries.
12100 Add "consumed" field.
12101 (gomp_print_output): Remove print_index parameter.
12102 Add final parameter.
12103 Change limit to unsigned.
12104 Use consumed field to implement circular buffer.
12105 Detect interrupted print in final pass.
12106 Flush output at the end.
12107 (run): Update gomp_print_output usage.
12108 (main): Initialize kernargs->output_data.consumed.
12110 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
12112 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
12113 calculation of the minimum number of scalar iterations for
12114 fully-predicated loops.
12116 2019-03-18 Martin Jambor <mjambor@suse.cz>
12118 PR tree-optimization/89546
12119 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
12120 any propagation to its children took place.
12122 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
12125 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
12126 parameter, and make use of it.
12127 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
12129 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12131 * config/arc/arc.opt (mcode-density-frame): Get the inital value
12132 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
12133 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12134 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
12135 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
12136 match what the ops is doing.
12137 (push_multi_fp_blink): Likewise.
12138 * config/arc/arc.c (arc_override_options): Enable enter/leave when
12139 compiling for size and elf target.
12140 (arc_save_callee_enter): Adjust note to match what enter/leave
12143 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12145 * config/arc/arc.md (tst_movb): Fix constraint.
12147 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12149 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
12151 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
12153 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
12154 * config/arc/arc.c (arc_conditional_register_usage): Remove all
12155 reg_alloc_order references.
12156 (size_alloc_order): Define.
12157 (arc_adjust_reg_alloc_order): New function.
12158 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
12160 (ADJUST_REG_ALLOC_ORDER): Define.
12161 (HONOR_REG_ALLOC_ORDER): Likewise.
12163 2019-03-18 Richard Biener <rguenther@suse.de>
12166 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
12167 loads and stores a bit more.
12169 2019-03-18 Richard Biener <rguenther@suse.de>
12172 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
12173 load pessimization to stores as well.
12175 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
12177 PR middle-end/86979
12178 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
12179 successor, use NULL as its av set.
12181 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
12183 PR rtl-optimization/89721
12184 * lra-constraints (invariant_p): Return false if side_effects_p holds.
12186 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
12189 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
12190 When handling vec_extract, use modular arithmetic to allow
12191 constant selectors greater than vector length.
12192 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
12193 V1TImode vectors to have constant selector values greater than 0.
12194 Use modular arithmetic to compute vector index.
12195 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
12196 index for in-memory vectors. Correct code generation for
12197 in-register vectors.
12198 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
12201 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
12205 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
12208 2019-03-15 Jakub Jelinek <jakub@redhat.com>
12211 * tree.c (inchash::add_expr): Strip any location wrappers.
12212 * fold-const.c (operand_equal_p): Move stripping of location wrapper
12213 after hash verification.
12216 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
12217 SIGN_EXTEND and ZERO_EXTEND.
12219 2019-03-14 Jason Merrill <jason@redhat.com>
12220 Jakub Jelinek <jakub@redhat.com>
12222 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
12223 than if is_empty (*slot).
12224 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
12225 existing elt and for elt removal.
12226 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
12227 of already removed elt.
12229 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
12232 * config/i386/i386.c (remove_partial_avx_dependency): Handle
12233 REG_EH_REGION note.
12235 2019-03-14 Martin Liska <mliska@suse.cz>
12238 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
12240 2019-03-14 Richard Biener <rguenther@suse.de>
12243 * config/i386/i386.c (make_resolver_func): Properly set
12244 DECL_CONTEXT on the RESULT_DECL.
12245 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
12247 2019-03-14 Richard Biener <rguenther@suse.de>
12249 * gimple-pretty-print.c: Include cfgloop.h.
12250 (dump_gimple_phi): Adjust.
12251 (dump_gimple_bb_header): Dump loop header for GIMPLE.
12252 (pp_cfg_jump): Adjust.
12253 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
12254 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
12255 (lower_phi_internal_fn): Remove.
12256 (verify_gimple_call): Remove IFN_PHI special-casing.
12257 (dump_function_to_file): Dump IL state.
12258 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
12259 done to deal with PHI nodes being present in non-SSA state.
12261 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12264 * multiple_target.c (create_dispatcher_calls): Change
12265 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
12266 In the node->iterate_referring loop, push *ref rather than ref, call
12267 ref->remove_reference () and always pass 0 to iterate_referring.
12269 PR rtl-optimization/89679
12270 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
12271 would contain a paradoxical SUBREG.
12273 2019-03-14 Richard Biener <rguenther@suse.de>
12275 PR tree-optimization/89710
12276 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
12279 2019-03-14 Martin Liska <mliska@suse.cz>
12281 * coverage.c (coverage_begin_function): Stream also
12283 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
12284 documentation about function declaration location.
12285 * gcov-dump.c (tag_function): Print whole range
12286 of function declaration.
12287 * gcov.c (struct function_info): Add end_column field.
12288 (function_info::function_info): Initialize it.
12289 (output_json_intermediate_file): Output {start,end}_column
12291 (read_graph_file): Read end_column.
12293 2019-03-14 Richard Biener <rguenther@suse.de>
12295 PR middle-end/89698
12296 * fold-const.c (operand_equal_p): For INDIRECT_REF check
12297 that the access types are similar.
12299 2019-03-14 Jakub Jelinek <jakub@redhat.com>
12301 PR tree-optimization/89703
12302 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
12303 aren't compatible also with builtin_decl_explicit. Check pure
12304 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
12305 and BUILT_IN_STPNCPY{,_CHK}.
12307 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
12310 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
12311 addr32 prefix to VSIB address for X32.
12312 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
12314 (*avx512pf_gatherpf<mode>df_mask): Likewise.
12315 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
12316 (*avx512pf_scatterpf<mode>df_mask): Likewise.
12317 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
12318 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
12319 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
12320 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
12321 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
12322 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
12323 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
12324 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
12325 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
12326 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
12327 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
12328 (*avx512f_scatterdi<mode>): Likewise.
12330 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
12333 * lra-constraints.c (inherit_in_ebb): Update
12334 potential_reload_hard_regs along with live_hard_regs.
12336 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12339 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
12341 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
12343 2019-03-13 Martin Sebor <msebor@redhat.com>
12345 PR tree-optimization/89662
12346 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
12349 2019-03-13 Richard Biener <rguenther@suse.de>
12351 PR middle-end/89677
12352 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
12353 throw FP expressions at tree-affine.
12355 2019-03-14 Richard Biener <rguenther@suse.de>
12357 * tree-pretty-print.c (dump_generic_node): For -gimple properly
12358 dump negative integer constants using _Literal (type) -num.
12360 2019-03-13 Jakub Jelinek <jakub@redhat.com>
12362 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
12363 nonlocal_value member.
12365 PR middle-end/88588
12366 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
12367 (ipa_simd_modify_function_body): Handle PHIs.
12369 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12371 * config/s390/s390.c (s390_option_override_internal): Use more
12372 aggressive inlining parameters.
12374 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12376 * config/s390/3906.md: New file.
12377 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12378 (LONGRUNNING_THRESHOLD): Remove.
12379 (MAX_SCHED_MIX_SCORE): Decrease.
12380 (MAX_SCHED_MIX_DISTANCE): Decrease.
12381 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
12382 (struct s390_sched_state): New struct to hold scheduling state.
12383 (S390_SCHED_STATE_NORMAL): Remove.
12384 (S390_SCHED_STATE_CRACKED): Remove.
12385 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
12386 (s390_get_sched_attrmask): Use new attribute.
12387 (s390_get_unit_mask): Use new units.
12388 (s390_is_fpd): New function.
12389 (s390_is_fxd): New function.
12390 (s390_is_longrunning): New function.
12391 (s390_sched_score): Use new functions.
12392 (s390_sched_reorder): Likewise.
12393 (s390_sched_variable_issue): Rework and use new functions.
12394 (s390_sched_init): Use new functions.
12395 * config/s390/s390.h (s390_tune_attr): Add z14.
12396 * config/s390/s390.md: Add z14.
12398 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
12400 * config/s390/2964.md: Update pipeline description.
12401 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
12402 (LONGRUNNING_THRESHOLD): Remove.
12403 (LATENCY_FACTOR): Remove.
12404 (s390_get_unit_mask): Add unit.
12405 (s390_sched_score): Use fxd/fpd.
12406 (s390_sched_variable_issue): Use fxd/fpd.
12408 2019-03-12 Martin Liska <mliska@suse.cz>
12410 * config/i386/i386.c: Reword an error message.
12412 2019-03-12 Martin Jambor <mjambor@suse.cz>
12414 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
12415 terminate with newline.
12417 2019-03-12 Jakub Jelinek <jakub@redhat.com>
12420 * config/s390/s390.md (tabort): Use %wd instead of
12421 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
12422 letters and periods.
12423 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
12424 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
12427 PR middle-end/89663
12428 * builtins.c (expand_builtin_int_roundingfn,
12429 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
12430 gcc_unreachable if validate_arglist fails.
12432 2019-03-12 Richard Biener <rguenther@suse.de>
12434 PR tree-optimization/89664
12435 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
12436 free the occurance tree after the early out.
12438 2019-03-11 Jakub Jelinek <jakub@redhat.com>
12440 PR middle-end/89655
12442 * vr-values.c (vr_values::update_value_range): If
12443 old_vr->varying_p (), don't update it, make new_vr also VARYING
12446 2019-03-11 Martin Liska <mliska@suse.cz>
12448 * config/aarch64/aarch64.c (aarch64_override_options_internal):
12449 Fix double string quoting.
12451 2019-03-11 Martin Liska <mliska@suse.cz>
12453 * collect-utils.c (collect_wait): Wrap apostrophes
12454 in gcc internal format with %'.
12455 * collect2.c (main): Likewise.
12456 (scan_prog_file): Likewise.
12457 (scan_libraries): Likewise.
12458 * config/i386/i386.c (ix86_expand_call): Likewise.
12459 (ix86_handle_interrupt_attribute): Likewise.
12460 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
12461 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
12462 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
12463 * lto-wrapper.c (find_crtoffloadtable): Likewise.
12464 * symtab.c (symtab_node::verify_base): Likewise.
12465 * tree-cfg.c (verify_gimple_label): Likewise.
12466 * tree.c (verify_type_variant): Likewise.
12468 2019-03-11 Martin Liska <mliska@suse.cz>
12470 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
12471 in a string format message and fix GNU coding style.
12472 (expand_builtin_set_thread_pointer): Likewise.
12473 * common/config/aarch64/aarch64-common.c
12474 (aarch64_rewrite_selected_cpu): Likewise.
12475 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
12476 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
12477 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
12478 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
12479 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
12480 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
12481 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
12482 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
12483 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
12484 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
12486 * common/config/riscv/riscv-common.c
12487 (riscv_subset_list::parsing_subset_version): Likewise.
12488 (riscv_subset_list::parse_std_ext): Likewise.
12489 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
12490 (riscv_subset_list::parse): Likewise.
12491 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
12492 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
12493 (aarch64_override_options_internal): Likewise.
12494 (aarch64_validate_mcpu): Likewise.
12495 (aarch64_validate_march): Likewise.
12496 (aarch64_validate_mtune): Likewise.
12497 (aarch64_override_options): Likewise.
12498 * config/alpha/alpha.c (alpha_option_override): Likewise.
12499 * config/arc/arc.c (arc_init): Likewise.
12500 (parse_mrgf_banked_regs_option): Likewise.
12501 (arc_override_options): Likewise.
12502 (arc_expand_builtin_aligned): Likewise.
12503 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
12504 (arm_expand_builtin): Likewise.
12505 * config/arm/arm.c (arm_option_check_internal): Likewise.
12506 (arm_configure_build_target): Likewise.
12507 (arm_option_override): Likewise.
12508 (arm_options_perform_arch_sanity_checks): Likewise.
12509 (arm_handle_cmse_nonsecure_entry): Likewise.
12510 (arm_handle_cmse_nonsecure_call): Likewise.
12511 (arm_tls_referenced_p): Likewise.
12512 (thumb1_expand_prologue): Likewise.
12513 * config/avr/avr.c (avr_option_override): Likewise.
12514 * config/bfin/bfin.c (bfin_option_override): Likewise.
12515 * config/c6x/c6x.c (c6x_option_override): Likewise.
12516 * config/cr16/cr16.c (cr16_override_options): Likewise.
12517 * config/cris/cris.c (cris_option_override): Likewise.
12518 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
12519 * config/darwin-c.c (macosx_version_as_macro): Likewise.
12520 * config/darwin.c (darwin_override_options): Likewise.
12521 * config/frv/frv.c (frv_expand_builtin): Likewise.
12522 * config/h8300/h8300.c (h8300_option_override): Likewise.
12523 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
12524 (ix86_option_override_internal): Likewise.
12525 (warn_once_call_ms2sysv_xlogues): Likewise.
12526 (ix86_expand_prologue): Likewise.
12527 (split_stack_prologue_scratch_regno): Likewise.
12528 (ix86_warn_parameter_passing_abi): Likewise.
12529 * config/ia64/ia64.c (fix_range): Likewise.
12530 * config/m68k/m68k.c (m68k_option_override): Likewise.
12531 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
12532 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
12533 (mips_set_compression_mode): Likewise.
12534 * config/mmix/mmix.c (mmix_option_override): Likewise.
12535 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
12536 * config/msp430/msp430.c (msp430_option_override): Likewise.
12537 * config/nds32/nds32.c (nds32_option_override): Likewise.
12538 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
12539 (nios2_option_override): Likewise.
12540 (nios2_expand_custom_builtin): Likewise.
12541 * config/nvptx/mkoffload.c (main): Likewise.
12542 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
12543 * config/pa/pa.c (fix_range): Likewise.
12544 (pa_option_override): Likewise.
12545 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
12546 (riscv_option_override): Likewise.
12547 * config/rl78/rl78.c (rl78_option_override): Likewise.
12548 * config/rs6000/aix61.h: Likewise.
12549 * config/rs6000/aix71.h: Likewise.
12550 * config/rs6000/aix72.h: Likewise.
12551 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
12552 * config/rs6000/freebsd64.h: Likewise.
12553 * config/rs6000/linux64.h: Likewise.
12554 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
12555 (rs6000_expand_zeroop_builtin): Likewise.
12556 (rs6000_expand_mtfsb_builtin): Likewise.
12557 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
12558 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
12559 (rs6000_invalid_builtin): Likewise.
12560 (rs6000_expand_split_stack_prologue): Likewise.
12561 * config/rs6000/rtems.h: Likewise.
12562 * config/rx/rx.c (valid_psw_flag): Likewise.
12563 (rx_expand_builtin): Likewise.
12564 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
12565 * config/s390/s390.c (s390_expand_builtin): Likewise.
12566 (s390_function_profiler): Likewise.
12567 (s390_option_override_internal): Likewise.
12568 (s390_option_override): Likewise.
12569 * config/sh/sh.c (sh_option_override): Likewise.
12570 (sh_builtin_saveregs): Likewise.
12571 (sh_fix_range): Likewise.
12572 * config/sh/vxworks.h: Likewise.
12573 * config/sparc/sparc.c (sparc_option_override): Likewise.
12574 * config/spu/spu.c (spu_option_override): Likewise.
12575 (fix_range): Likewise.
12576 * config/visium/visium.c (visium_option_override): Likewise.
12577 (visium_handle_interrupt_attr): Likewise.
12578 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
12579 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
12580 (dbg_cnt_process_opt): Likewise.
12581 * dwarf2out.c (output_dwarf_version): Likewise.
12582 * except.c (expand_eh_return): Likewise.
12583 * gcc.c (defined): Likewise.
12584 (driver_handle_option): Likewise.
12585 (process_command): Likewise.
12586 (compare_files): Likewise.
12587 (driver::prepare_infiles): Likewise.
12588 (driver::do_spec_on_infiles): Likewise.
12589 (driver::maybe_run_linker): Likewise.
12590 * omp-offload.c (oacc_parse_default_dims): Likewise.
12591 * opts-global.c (handle_common_deferred_options): Likewise.
12592 * opts.c (parse_sanitizer_options): Likewise.
12593 (common_handle_option): Likewise.
12594 (enable_warning_as_error): Likewise.
12595 * passes.c (enable_disable_pass): Likewise.
12596 * plugin.c (parse_plugin_arg_opt): Likewise.
12597 (default_plugin_dir_name): Likewise.
12598 * targhooks.c (default_expand_builtin_saveregs): Likewise.
12599 (default_pch_valid_p): Likewise.
12600 * toplev.c (init_asm_output): Likewise.
12601 (process_options): Likewise.
12602 (toplev::run_self_tests): Likewise.
12603 * tree-cfg.c (verify_gimple_call): Likewise.
12604 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
12605 (tree_inlinable_function_p): Likewise.
12606 * var-tracking.c (vt_find_locations): Likewise.
12608 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
12610 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
12611 only on the else branch.
12613 2019-03-11 Martin Liska <mliska@suse.cz>
12615 * gcov.c (output_intermediate_json_line): Print function
12617 (output_json_intermediate_file): Add new argument.
12618 * doc/gcov.texi: Document the change.
12620 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
12622 PR rtl-optimization/89588
12623 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
12624 explicit unrolling factor more robust.
12626 2019-03-11 Richard Biener <rguenther@suse.de>
12628 PR tree-optimization/89649
12629 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
12630 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
12631 on the prolog and epilog loops.
12632 (vect_loop_versioning): Return copy of loop.
12633 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
12634 on the non-vectorized version of the loop.
12636 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
12639 * config/i386/sse.md (*vec_extractv2di_0_sse):
12640 Add (=r,x) alternative and corresponding splitter.
12642 2019-03-10 Martin Jambor <mjambor@suse.cz>
12644 PR tree-optimization/85762
12645 PR tree-optimization/87008
12646 PR tree-optimization/85459
12647 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
12648 it points to if there is a type changing MEM_REF. Adjust all callers.
12649 (build_accesses_from_assign): Disable total scalarization if
12650 contains_vce_or_bfcref_p returns true through the new parameter, for
12653 2019-03-09 Jakub Jelinek <jakub@redhat.com>
12656 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
12657 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
12660 * common.opt (fdiagnostics-show-labels,
12661 fdiagnostics-show-line-numbers, fdiagnostics-format=,
12662 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
12663 gas-locview-support, ginline-points, ginternal-reset-location-views):
12664 Terminate description text with a dot.
12665 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
12666 * config/mcore/mcore.opt (m210, m340): Likewise.
12667 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
12668 mnops=): Start description text with a capital letter.
12669 * config/arc/arc.opt (msize-level=): Likewise.
12670 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
12671 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
12672 mnewlib): Likewise.
12673 * config/ft32/ft32.opt (msim): Likewise.
12674 (mft32b, mcompress): Likewise. Terminate description text with a dot.
12675 (mnodiv, mnopm): Terminate description text with a dot.
12676 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
12678 * config/i386/i386.opt (prefer_vector_width, instrument_return):
12680 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
12683 PR rtl-optimization/89634
12684 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
12685 are modified in BB_END (e->src) instruction.
12687 2019-03-08 David Malcolm <dmalcolm@redhat.com>
12690 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
12691 messages more amenable to translation, and improve wording.
12693 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
12695 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
12696 ud- and du-chains between phases.
12698 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
12701 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
12702 instead of POLY_INT_CST.
12704 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
12706 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
12709 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
12714 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
12715 (_mm_storeu_si64): Ditto.
12717 2019-03-08 Martin Liska <mliska@suse.cz>
12720 * config/i386/i386.c (ix86_option_override_internal): Disable
12721 jump tables when retpolines are used.
12723 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
12726 * ipa-split.c (execute_split_functions): Do not split
12727 'noinline' or 'section' function.
12729 2019-03-08 Jakub Jelinek <jakub@redhat.com>
12732 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
12733 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
12734 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
12737 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
12738 from diagnostics. Formatting fixes.
12741 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
12742 warn_odr diagnostics.
12745 * lra-constraints.c (process_alt_operands): Avoid one space before
12746 " at the end of line and another after " on another line in a string
12748 * attribs.c (handle_dll_attribute): Likewise.
12749 * config/avr/avr-devices.c (avr_texinfo): Likewise.
12751 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
12752 warning_at or inform messages in G_() if there is no ?:.
12754 PR tree-optimization/89550
12755 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
12756 returned true. Formatting fixes.
12757 (expand_builtin_strnlen): Formatting fixes.
12758 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
12759 if warning_at returned true.
12760 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
12762 2019-03-08 Richard Biener <rguenther@suse.de>
12764 PR middle-end/89578
12765 * cfgloop.h (struct loop): Add owned_clique field.
12766 * cfgloopmanip.c (copy_loop_info): Copy it.
12767 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
12769 * tree-inline.c (copy_loops): Remap owned_clique.
12770 * lto-streamer-in.c (input_cfg): Stream owned_clique.
12771 * lto-streamer-out.c (output_cfg): Likewise.
12773 2019-03-08 Jakub Jelinek <jakub@redhat.com>
12776 * config/darwin.c: Include intl.h.
12777 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
12778 composing the message out of two separate parts.
12780 2019-03-07 Jakub Jelinek <jakub@redhat.com>
12783 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
12784 doesn't start with a capital letter and doesn't end with a dot.
12785 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
12786 with a capital letter.
12787 (ix86_mangle_function_version_assembler_name): Likewise.
12788 (ix86_generate_version_dispatcher_body): Likewise.
12789 (fold_builtin_cpu): Likewise.
12790 (get_builtin_code_for_version): Likewise. Remove extraneous space.
12791 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
12792 translators, wrap full type name in %qs.
12794 PR translation/79999
12795 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
12796 depend clause with source (or sink) modifier.
12797 * omp-expand.c (expand_omp_ordered_sink): Likewise.
12800 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
12801 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
12802 (avx512f_load<mode>_mask): New define_expand.
12803 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
12804 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
12805 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
12806 __builtin_ia32_movess_mask): New builtins.
12807 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
12808 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
12809 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
12810 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
12812 2019-03-07 Martin Jambor <mjambor@suse.cz>
12815 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
12816 for extern inline functions.
12818 2019-03-07 Martin Jambor <mjambor@suse.cz>
12821 * cgraph.h (cgraph_node): New inline method former_thunk_p.
12822 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
12823 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
12824 have multiple callees. At the end check if declarations match as
12825 opposed to cgraph_nodes.
12827 2019-03-07 Martin Liska <mliska@suse.cz>
12829 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
12830 which is equivalent to searching for this in clones chain.
12831 * symtab.c (symtab_node::verify_base): Similarly compare ASM
12832 names with a neighbour and special case first node in a chain.
12834 2019-01-25 Jason Merrill <jason@redhat.com>
12836 PR c++/80916 - spurious "static but not defined" warning.
12837 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
12838 for an internal symbol with DECL_EXTERNAL.
12840 2019-04-07 Richard Biener <rguenther@suse.de>
12842 PR middle-end/89618
12843 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
12844 * tree-inline.c (copy_loops): Simplify.
12846 2019-03-07 Martin Liska <mliska@suse.cz>
12848 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
12850 2019-03-07 Richard Biener <rguenther@suse.de>
12852 PR tree-optimization/89595
12853 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
12854 stmt iterator as reference, take boolean output parameter to
12855 indicate whether the stmt was removed and thus the iterator
12857 (dom_opt_dom_walker::before_dom_children): Re-iterate over
12858 stmts created by folding.
12860 2019-03-07 Jakub Jelinek <jakub@redhat.com>
12863 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
12866 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
12868 PR rtl-optimization/88845
12869 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
12871 * lra.c (remove_scratches_1): New function.
12872 (remove_scratches): Use it.
12873 (lra_emit_move): Likewise.
12875 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
12877 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
12878 unaligned_access variable.
12879 * config/arc/arc.c (arc_override_options): Set unaligned access
12880 default on for HS CPUs.
12881 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
12883 2019-03-06 Martin Liska <mliska@suse.cz>
12885 PR gcov-profile/89577
12886 * doc/gcov.texi: Prefer to use --coverage.
12887 * doc/sourcebuild.texi: Likewise.
12889 2019-03-02 Jason Merrill <jason@redhat.com>
12891 PR c++/86485 - -Wmaybe-unused with empty class ?:
12892 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
12894 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12897 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
12900 PR middle-end/89590
12901 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
12902 exactly one argument.
12904 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12905 Richard Sandiford <richard.sandiford@arm.com>
12907 PR tree-optimization/89570
12908 * match.pd (vec_cond into cond_op simplification): Don't use
12909 get_conditional_internal_fn, use as_internal_fn (cond_op).
12911 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
12914 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
12915 to decide when to split off a non-zero offset from a symbol.
12916 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
12917 in function symbols.
12919 2019-03-05 Richard Biener <rguenther@suse.de>
12921 PR tree-optimization/89594
12922 * tree-if-conv.c (pass_if_conversion::execute): Handle
12923 case where .LOOP_VECTORIZED_FUNCTION was removed.
12925 2019-03-05 Jakub Jelinek <jakub@redhat.com>
12928 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
12929 instead alloca it only when needed with the needed size.
12931 PR tree-optimization/89570
12932 * match.pd (vec_cond into cond_op simplification): Guard with
12933 vectorized_internal_fn_supported_p test and #if GIMPLE.
12935 PR tree-optimization/89566
12936 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
12937 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
12938 Punt if get_user_idx_format succeeds, but idx_format argument is
12939 not provided or doesn't have pointer type, or if idx_args is above
12940 number of provided arguments.
12942 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
12944 PR tree-optimization/89437
12945 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
12947 2019-03-04 Richard Biener <rguenther@suse.de>
12949 PR middle-end/89572
12950 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
12953 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
12955 PR tree-optimization/89487
12956 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
12957 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
12958 (distribute_loop): Don't do runtime alias check if there is non-
12959 addressable data reference.
12960 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
12961 is a register variable.
12963 2019-03-02 Jakub Jelinek <jakub@redhat.com>
12966 * config/arm/arm.md (cmpsi2_addneg): Use
12967 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
12968 If operands[2] is 0 or INT_MIN, force use of subs.
12969 (*compare_scc splitter): Use gen_int_mode.
12970 (*negscc): Likewise.
12971 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
12973 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
12974 Monk Chiang <sh.chiang04@gmail.com>
12976 * common/config/riscv/riscv-common.c: Include sstream.
12977 (riscv_subset_list::to_string): New.
12978 (riscv_arch_str): Likewise.
12979 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
12980 * config.in: Regen.
12981 * config/riscv/riscv-protos.h (riscv_arch_str): New.
12982 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
12983 (riscv_emit_attribute): New.
12984 (riscv_file_start): Emit attribute if needed.
12985 (riscv_option_override): Init riscv_emit_attribute_p.
12986 * config/riscv/riscv.opt (mriscv-attribute): New option.
12987 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
12988 * configure: Regen.
12989 * doc/install.texi: Document --with-riscv-attribute.
12990 * doc/invoke.texi: Document -mriscv-attribute.
12992 * common/config/riscv/riscv-common.c:
12993 Include config/riscv/riscv-protos.h.
12994 (INCLUDE_STRING): Defined.
12995 (RISCV_DONT_CARE_VERSION): Defined.
12996 (riscv_subset_t): Declare.
12997 (riscv_subset_t::riscv_subset_t): New.
12998 (riscv_subset_list): Declare.
12999 (riscv_subset_list::riscv_subset_list): New.
13000 (riscv_subset_list::~riscv_subset_list): Likewise.
13001 (riscv_subset_list::parsing_subset_version): Likewise.
13002 (riscv_subset_list::parse_std_ext): Likewise.
13003 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
13004 (riscv_subset_list::add): Likewise.
13005 (riscv_subset_list::lookup): Likewise.
13006 (riscv_subset_list::xlen): Likewise.
13007 (riscv_subset_list::parse): Likewise.
13008 (riscv_supported_std_ext): Likewise.
13009 (current_subset_list): Likewise.
13010 (riscv_parse_arch_string): Using riscv_subset_list::parse to
13013 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
13015 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
13016 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
13017 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
13019 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
13021 PR rtl-optimization/85899
13022 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
13023 fallthru edges leading to the exit block.
13025 2019-03-01 Tamar Christina <tamar.christina@arm.com>
13028 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
13029 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
13031 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
13033 PR tree-optimization/89535
13034 * tree-vect-stmts.c (vectorizable_call): Record the vector types
13035 for each operand. Calculate the fallback choice for mask operands
13036 and pass it to vect_get_vec_def_for_operand.
13038 2019-03-01 Richard Biener <rguenther@suse.de>
13040 PR middle-end/89541
13041 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
13042 get virtual operands.
13043 (get_expr_operands): Handle CONST_DECL like other decls.
13045 2019-03-01 Jakub Jelinek <jakub@redhat.com>
13047 PR middle-end/89503
13048 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
13049 on DECL_P and EXPR_P.
13051 2019-03-01 Richard Biener <rguenther@suse.de>
13053 PR middle-end/89497
13054 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
13055 argument, defaulted to zero.
13056 * passes.c (execute_function_todo): Pass down SSA update flags
13057 to cleanup_tree_cfg.
13058 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
13059 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
13061 (cleanup_tree_cfg): Get and pass down SSA update flags.
13063 2019-03-01 Jakub Jelinek <jakub@redhat.com>
13066 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
13067 early_lto_debug argument.
13069 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
13071 PR tree-optimization/89536
13072 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
13073 only whether bit #0 of the value is 0 instead of the entire value.
13075 2019-02-28 Marek Polacek <polacek@redhat.com>
13077 PR c++/87068 - missing diagnostic with fallthrough statement.
13078 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
13079 at the end of a seq, save its location to walk_stmt_info.
13080 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
13083 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
13086 * tree.c (find_atomic_core_type): Move ahead in file.
13087 (check_base_type): Correctly compare alignments of atomic types.
13089 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
13092 * config/i386/i386.c (get_builtin_code_for_version): Identify
13093 Westmere from PCLMUL, instead of AES.
13095 2019-02-28 Jakub Jelinek <jakub@redhat.com>
13098 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
13099 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
13102 2019-02-28 Tamar Christina <tamar.christina@arm.com>
13105 * config/aarch64/aarch64-option-extensions.def: Document it.
13106 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
13109 2019-02-28 Jakub Jelinek <jakub@redhat.com>
13112 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
13113 builtins if they don't have a single scalar floating point argument.
13116 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
13118 PR rtl-optimization/89490
13119 * varasm.c (get_block_for_section): Bail out for mergeable sections.
13120 (default_use_anchors_for_symbol_p, output_object_block): Assert the
13121 block section is not mergeable.
13123 2019-02-27 Jakub Jelinek <jakub@redhat.com>
13126 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
13127 old define_insn to ...
13128 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
13129 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
13130 Rename old define_insn to ...
13131 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
13132 (thumb2_casesi_internal_pic): New define_expand. Rename old
13134 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
13135 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
13136 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
13138 2019-02-27 Richard Biener <rguenther@suse.de>
13141 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
13143 2019-02-27 Richard Biener <rguenther@suse.de>
13145 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
13148 2019-02-27 Richard Biener <rguenther@suse.de>
13151 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
13152 parameter, prefix section name with .gnu.debuglto_ if true.
13153 (dwarf2out_finish): Pass false to output_comdat_type_unit.
13154 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
13156 2019-02-27 Richard Biener <rguenther@suse.de>
13159 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
13160 rather than on use_debug_types, doing what output_die does.
13161 (value_format): Likewise.
13163 2019-02-27 Martin Jambor <mjambor@suse.cz>
13164 Martin Sebor <msebor@redhat.com>
13166 * doc/invoke.texi (Warning Options): Reword description of
13167 -Wno-absolute-value.
13169 2019-02-27 Jakub Jelinek <jakub@redhat.com>
13171 PR tree-optimization/89280
13172 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
13173 builtin_setjmp_setup_bb): New functions.
13174 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
13175 When visiting __builtin_setjmp_setup block, queue in special
13176 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
13177 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
13178 from visited after the loop if they don't have any visited successor
13181 2018-02-26 Steve Ellcey <sellcey@marvell.com>
13183 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
13185 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
13187 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13190 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
13191 with types other than sizetype/ssizetype.
13193 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13195 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
13196 (enum sparc_processor_type): ...this.
13197 (enum sparc_code_model_type): New enumeration type.
13198 (enum sparc_memory_model_type): Tweak comments.
13199 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
13201 (mcmodel): Use sparc_code_model enumeration and variable.
13202 (sparc_code_model): New enumeration.
13203 (mdebug): Add Undocumented marker.
13204 * config/sparc/sparc.h (enum cmodel): Delete.
13205 (sparc_cmodel): Likewise.
13206 (TARGET_CM_MEDLOW): Adjust to above renaming.
13207 (TARGET_CM_MEDMID): Likewise.
13208 (TARGET_CM_MEDANY): Likewise.
13209 (TARGET_CM_EMBMEDANY): Likewise.
13210 * config/sparc/sparc.c (sparc_cmodel): Delete.
13211 (sparc_option_override): Remove string/value mapping support for the
13212 code model. Move code and memory model support to after the handling
13213 of target flags. Do private machine setup last.
13214 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
13215 (sparc_legitimize_reload_address): Likewise.
13216 (sparc_output_mi_thunk): Likewise.
13217 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
13219 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13221 PR tree-optimization/89500
13222 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
13223 (handle_builtin_strlen): Remove noncst_bound variable. Always
13224 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
13225 cst if the first cst bytes starting at x are known to be non-zero,
13226 even if the string is not zero terminated. Don't try to modify
13227 *si for strnlen. Update strlen_to_stridx only for strlen or if
13228 we can prove strnlen returns the same value as strlen would.
13230 2019-02-26 Martin Liska <mliska@suse.cz>
13232 * alloc-pool.h (struct pool_usage): Remove extra
13234 * bitmap.h (struct bitmap_usage): Likewise.
13235 * ggc-common.c (struct ggc_usage): Likewise.
13236 * mem-stats.h (struct mem_usage): Likewise.
13237 (mem_alloc_description::dump): Print dash lines
13238 here and repeat header at the end of a table report.
13239 It's then more readable.
13240 * tree-phinodes.c (phinodes_print_statistics): Make
13241 horizontal alignment.
13242 * tree-ssanames.c (ssanames_print_statistics): Likewise.
13243 * vec.c (struct vec_usage): Remove extra print_dash_line.
13244 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
13246 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
13248 * doc/extend.texi (__builtin_object_size):
13249 Use @pxref instead of @xref inside parenthesis.
13250 (__builtin_has_attribute): Add missing comma after @xref.
13251 (__builtin_object_size): Ditto.
13252 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
13253 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
13256 2019-02-26 Jeff Law <law@redhat.com>
13258 PR rtl-optimization/87761
13259 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
13260 detect obviously dead insns and delete them.
13262 2019-02-26 Richard Biener <rguenther@suse.de>
13264 PR tree-optimization/89505
13265 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
13266 to handle restrict pointed-to vars with multiple subvars
13269 2019-02-26 Richard Biener <rguenther@suse.de>
13271 PR tree-optimization/89489
13272 * tree-parloops.c (create_loop_fn): Copy over last_clique.
13274 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
13276 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
13277 and move around comment.
13278 <BIT_AND_EXPR>: Likewise.
13279 <BIT_NOT_EXPR>: Add specific handling for boolean types.
13281 2019-02-26 Jakub Jelinek <jakub@redhat.com>
13284 * config/i386/i386.c (remove_partial_avx_dependency): Call
13285 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
13286 after changing possibly many instructions to use that pseudo. Fix up
13287 insertion of v4sf_const0 setter at the start of bb.
13289 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13292 * doc/extend.texi (Variadic Pointer Args): New section.
13294 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
13295 Martin Sebor <msebor@gmail.com>
13297 * common.opt (Wattribute-alias): Likewise.
13298 * doc/invoke.texi (Option Summary): List general form of
13299 -Wattribute-alias=. List positive form of -Wmissing-attributes.
13300 (-Wmissing-attributes): Invert entry, rewrite and correct default.
13301 Add cross-references.
13302 (-Wattribute-alias): Rewrite and correct default. Mention
13303 considered attributes (same as for -Wmissing-attributes).
13305 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
13307 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
13308 (_mm_cvtpd_ps): Likewise.
13309 (_mm_cvttpd_epi32): Likewise.
13312 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
13313 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
13316 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
13318 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13321 * common/config/aarch64/aarch64-common.c
13322 (struct aarch64_option_extension): Add is_synthetic.
13323 (all_extensions): Use it.
13324 (TARGET_OPTION_INIT_STRUCT): Define hook.
13325 (struct gcc_targetm_common): Moved to end.
13326 (all_extensions_by_on): New.
13327 (opt_ext_cmp, typedef opt_ext): New.
13328 (aarch64_option_init_struct): New.
13329 (aarch64_contains_opt): New.
13330 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
13331 * config/aarch64/aarch64-option-extensions.def
13332 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
13333 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
13334 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
13335 Set is_synthetic to false.
13336 (crypto): Set is_synthetic to true.
13337 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
13340 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13342 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13343 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
13344 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13345 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
13346 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
13347 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
13348 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
13349 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
13351 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
13352 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13353 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
13354 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
13355 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
13356 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
13357 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
13358 vfmlsl_laneq_high_f16): ... To this.
13359 * config/arm/neon.md: Update comments.
13361 2019-02-25 Tamar Christina <tamar.christina@arm.com>
13363 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
13364 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
13365 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
13366 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
13367 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
13368 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
13369 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
13370 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
13372 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
13373 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
13374 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
13375 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
13376 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
13377 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
13378 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
13379 vfmlslq_laneq_high_f16): ... To this.
13381 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
13383 PR rtl-optimization/86096
13384 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
13385 comparing mw_order values.
13387 2019-02-25 Jakub Jelinek <jakub@redhat.com>
13390 * config/arm/arm.md (*subsi3_carryin_const): Use
13391 arm_neg_immediate_operand predicate instead of
13392 arm_not_immediate_operand, "L" constraint instead of "K" and
13393 print it using %n2 instead of %B2.
13394 (*subsi3_carryin_const0): New define_insn.
13395 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
13396 instead of arm_not_operand and "I" constraint instead of "K" and
13397 print it using %n3 instead of %B2. Instead of using match_dup 2 add
13398 another match_operand and in the condition check that it is negation
13400 (*subsi3_carryin_compare_const0): New define_ins.
13401 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
13402 *subsi3_carryin_const.
13403 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
13404 split into *subsi3_carryin_compare_const0 if the highpart is zero.
13407 * config/arm.vfp.md (*negdf2_vfp): Use
13408 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
13409 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
13411 2019-02-24 Jakub Jelinek <jakub@redhat.com>
13413 PR rtl-optimization/89445
13414 * simplify-rtx.c (simplify_ternary_operation): Don't use
13415 simplify_merge_mask on operands that may trap.
13416 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
13417 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
13418 second operand is CONST_VECTOR, check if any element could be zero.
13419 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
13420 their operands can trap.
13422 2019-02-23 Martin Sebor <msebor@redhat.com>
13424 * gimple-ssa-sprintf.c (target_strtol): Rename...
13425 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
13426 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
13427 check for range error.
13429 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
13432 * opts-common.c (prune_options): Also prune joined switches
13433 with Negative and RejectNegative.
13434 * config/i386/i386.opt (march=): Add Negative(march=).
13435 (mtune=): Add Negative(mtune=).
13436 * doc/options.texi: Document Negative used together with Joined
13437 and RejectNegative.
13439 2019-02-22 Martin Sebor <msebor@redhat.com>
13441 * doc/extend.texi (Other Builtins): Add
13442 __builtin_is_constant_evaluated.
13444 2019-02-22 Richard Biener <rguenther@suse.de>
13446 PR tree-optimization/87609
13447 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
13449 2019-02-22 Jeff Law <law@redhat.com>
13451 PR rtl-optimization/87761
13452 * config/mips/mips.md: Add new combiner pattern to recognize
13453 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
13455 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
13458 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
13459 destination register in peepholes generating patterns for ADDS/SUBS.
13460 (add<mode>3_compare0,
13461 *addsi3_compare0_uxtw, add<mode>3_compareC,
13462 add<mode>3_compareV_imm, add<mode>3_compareV,
13463 *adds_<optab><ALLX:mode>_<GPI:mode>,
13464 *subs_<optab><ALLX:mode>_<GPI:mode>,
13465 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
13466 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
13467 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
13468 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
13469 sub<mode>3_compare1): Allow stack pointer for source register.
13470 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
13472 2019-02-22 Martin Sebor <msebor@redhat.com>
13474 PR tree-optimization/88993
13475 PR tree-optimization/88853
13476 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
13478 (sprintf_dom_walker::call_info::is_string_func): New helper.
13479 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
13480 for formatted string functions.
13481 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
13483 2019-02-22 Martin Sebor <msebor@redhat.com>
13486 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
13487 unreachable subexpressions.
13489 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
13490 Hongtao Liu <hongtao.liu@intel.com>
13491 Sunil K Pandey <sunil.k.pandey@intel.com>
13494 * config/i386/i386-passes.def: Add
13495 pass_remove_partial_avx_dependency.
13496 * config/i386/i386-protos.h
13497 (make_pass_remove_partial_avx_dependency): New.
13498 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
13500 (pass_data_remove_partial_avx_dependency): New.
13501 (pass_remove_partial_avx_dependency): Likewise.
13502 (make_pass_remove_partial_avx_dependency): Likewise.
13503 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
13504 (*extendsfdf2): Add avx_partial_xmm_update.
13505 (truncdfsf2): Likewise.
13506 (*float<SWI48:mode><MODEF:mode>2): Likewise.
13507 (SF/DF conversion splitters): Disabled for TARGET_AVX.
13509 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
13511 PR middle-end/85598
13512 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
13515 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
13518 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
13519 (PTA_SKYLAKE): Add PTA_AES.
13520 (PTA_GOLDMONT): Likewise.
13522 2019-02-22 Sudakshina Das <sudi.das@arm.com>
13524 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
13525 instruction if enabled.
13526 (aarch64_override_options): Remove reference to return address key.
13528 2019-02-22 Richard Biener <rguenther@suse.de>
13530 PR tree-optimization/89440
13531 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
13532 not necessary assert.
13534 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
13537 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
13538 (oacc_replace_fn_attrib_attr): ... this new function.
13539 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
13540 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
13542 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13544 * config/arm/arm-cpus.in (ares): Rename to...
13545 (neoverse-n1): ... This. Add ares as alias.
13546 * config/arm/arm-tables.opt: Regenerate.
13547 * config/arm/arm-tune.md: Likewise.
13548 * doc/invoke.txt (ARM Options): Document neoverse-n1.
13550 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13552 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
13553 * config/aarch64/aarch64-tune.md: Regenerate.
13554 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
13556 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13558 * config/aarch64/aarch64.c (ares_tunings): Rename to...
13559 (neoversen1_tunings): ... This.
13560 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
13561 (neoverse-n1): New CPU.
13562 * config/aarch64/aarch64-tune.md: Regenerate.
13563 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
13565 2019-02-22 Richard Biener <rguenther@suse.de>
13567 PR middle-end/87609
13568 * cfghooks.h (dependence_hash): New typedef.
13569 (struct copy_bb_data): New type.
13570 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
13571 (duplicate_block): Likewise.
13572 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
13573 (copy_bbs): Create and pass down copy_bb_data.
13574 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
13575 (rtl_duplicate_bb): Likewise.
13576 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
13577 remap dependence info.
13579 2019-02-22 Richard Biener <rguenther@suse.de>
13581 PR tree-optimization/87609
13582 * tree-core.h (tree_base): Document special clique values.
13583 * tree-inline.c (remap_dependence_clique): Do not use the
13584 special clique value of one.
13585 (maybe_set_dependence_info): Use clique one.
13586 (clear_dependence_clique): New callback.
13587 (compute_dependence_clique): Clear clique one from all refs
13588 before assigning it (again).
13590 2019-02-21 Martin Sebor <msebor@redhat.com>
13592 * doc/extend.texi (__clear_cache): Correct signature.
13594 2019-02-21 Ian Lance Taylor <iant@golang.org>
13597 * varasm.c (decode_addr_const): Call lookup_constant_def rather
13598 than output_constant_def.
13599 (add_constant_to_table): New static function.
13600 (output_constant_def): Call add_constant_to_table.
13601 (tree_output_constant_def): Likewise.
13603 2019-02-21 Jakub Jelinek <jakub@redhat.com>
13606 * builtins.c (fold_builtin_arith_overflow): If first two args are
13607 INTEGER_CSTs, set intres and ovfres to constants rather than calls
13610 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
13613 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
13614 error for -mindirect-branch/-mfunction-return with incompatible
13617 2019-02-21 Jakub Jelinek <jakub@redhat.com>
13620 * constraints.md (q): Remove.
13621 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
13624 2019-02-21 Martin Jambor <mjambor@suse.cz>
13627 * omp-general.c (omp_extract_for_data): Removed a duplicate call
13628 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
13629 (omp_adjust_for_condition): ...here. Added necessary parameters.
13630 * omp-general.h (omp_adjust_for_condition): Updated declaration.
13631 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
13632 proper values to new parameters of omp_adjust_for_condition.
13634 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13636 PR middle-end/89412
13637 * expr.c (expand_assignment): If result is a MEM, use change_address
13638 instead of simplify_gen_subreg.
13640 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13641 David Malcolm <dmalcolm@redhat.com>
13643 PR middle-end/89091
13644 * fold-const.c (decode_field_reference): Return NULL_TREE if
13645 lang_hooks.types.type_for_size returns NULL. Check it before
13646 overwriting *exp_. Use return NULL_TREE instead of return 0.
13648 2019-02-20 Jakub Jelinek <jakub@redhat.com>
13650 PR middle-end/88074
13651 PR middle-end/89415
13652 * toplev.c (do_compile): Double the emin/emax exponents to workaround
13655 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
13658 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
13659 TARGET_SSE in addition to TARGET_SSE_MATH.
13661 (ix86_excess_precision): Ditto.
13662 (ix86_float_exceptions_rounding_supported_p): Ditto.
13663 (use_rsqrt_p): Ditto.
13664 * config/i386/sse.md (rsqrt<mode>2): Ditto.
13666 2019-02-20 David Malcolm <dmalcolm@redhat.com>
13669 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
13670 linenum_arith_t when determining if two adjacent line spans are
13671 close enough to merge.
13672 (diagnostic_show_locus): Use linenum_arith_t when iterating over
13673 lines within each line_span.
13675 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
13678 * lra-constraints.c(uses_hard_regs_p): Fix handling of
13679 paradoxical SUBREGS.
13681 2019-02-20 Li Jia He <helijia@linux.ibm.com>
13684 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
13685 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
13686 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
13689 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
13691 * config/gcn/gcn.c (print_operand): Fix typo.
13693 2019-02-19 Richard Biener <rguenther@suse.de>
13695 PR middle-end/88074
13696 * toplev.c (do_compile): Initialize mpfr's exponent range
13697 based on available float modes.
13699 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
13701 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
13702 as long as the epilogue isn't completed.
13704 2019-02-18 Martin Sebor <msebor@redhat.com>
13706 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
13707 __has_cpp_attribute, and __has_include.
13709 2019-02-18 Martin Sebor <msebor@redhat.com>
13711 * doc/invoke.texi (-Wreturn-type): Correct and expand.
13713 2019-02-18 Martin Sebor <msebor@redhat.com>
13715 PR middle-end/89294
13716 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
13718 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
13720 2019-02-18 Richard Biener <rguenther@suse.de>
13722 PR tree-optimization/89296
13723 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
13724 of no-warning flag to cases that might emit the bogus warning.
13726 2019-02-18 Jakub Jelinek <jakub@redhat.com>
13729 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
13731 * config/arm/vfp.md (*movdi_vfp): Likewise.
13732 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
13733 "q" constraint for operands[0].
13736 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
13737 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
13738 pattern in a temporary buffer.
13739 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
13740 than 64-operands[2].
13743 * config/s390/s390.c (s390_indirect_branch_attrvalue,
13744 s390_indirect_branch_settings): Define unconditionally.
13745 (s390_set_current_function): Likewise, but guard the whole body except
13746 the s390_indirect_branch_settings call with
13747 #if S390_USE_TARGET_ATTRIBUTE.
13748 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
13750 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
13751 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
13752 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
13753 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
13754 HOST_WIDE_INT_1U instead of 1ULL.
13755 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
13756 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
13757 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
13758 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
13760 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
13763 2019-02-18 Martin Jambor <mjambor@suse.cz>
13765 PR tree-optimization/89209
13766 * tree-sra.c (create_access_replacement): New optional parameter
13767 reg_tree. Use it as a type if non-NULL and access type is not of
13769 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
13770 to create_access_replacement.
13771 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
13772 Check lacc is non-NULL before attempting to re-create it on the RHS.
13774 2019-02-18 Martin Liska <mliska@suse.cz>
13777 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
13779 (symbol_table::free_edge): Recycle m_summary_id.
13780 * cgraph.h (get_summary_id): New.
13781 (symbol_table::release_symbol): Set m_summary_id to -1
13783 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
13784 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
13785 function_summary to fast_function_summary.
13786 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
13787 * ipa-pure-const.c (class funct_state_summary_t):
13788 Switch from function_summary to fast_function_summary.
13789 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
13790 (class ipa_ref_opt_summary_t): Switch from function_summary
13791 to fast_function_summary.
13792 * symbol-summary.h (class function_summary_base): New class
13793 that is created from base of former function_summary.
13794 (function_summary_base::unregister_hooks): New.
13795 (class function_summary): Inherit from function_summary_base.
13796 (class call_summary_base): New class
13797 that is created from base of former call_summary.
13798 (class call_summary): Inherit from call_summary_base.
13799 (struct is_same): New.
13800 (class fast_function_summary): New summary class.
13801 (class fast_call_summary): New summary class.
13802 * vec.h (vec_safe_grow_cleared): New function.
13804 2019-02-18 Martin Liska <mliska@suse.cz>
13806 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
13807 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
13808 * doc/tm.texi: Document new target hook.
13809 * doc/tm.texi.in: Likewise.
13810 * target.def: Add new target macro.
13811 * gcc.c (find_fortran_preinclude_file): Do not search multilib
13814 2019-02-17 Alan Modra <amodra@gmail.com>
13817 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
13818 output reg on add insn.
13819 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
13821 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
13824 * config/i386/sse.md (ssedoublemode): Remove V4HI.
13825 (PMULHRSW): Likewise.
13826 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
13828 (ssse3_pmulhrswv4hi3): New expander.
13830 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
13832 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
13833 MMX. Add isa attribute.
13835 2019-02-16 Jakub Jelinek <jakub@redhat.com>
13837 PR rtl-optimization/66152
13838 * builtins.h (c_readstr): Declare.
13839 * builtins.c (c_readstr): Remove forward declaration. Add
13840 null_terminated_p argument, if false, read all bytes from the
13841 string instead of stopping after '\0'.
13842 * expr.c (string_cst_read_str): New function.
13843 (store_expr): Use string_cst_read_str instead of
13844 builtin_strncpy_read_str. Try to store by pieces the whole
13845 exp_len first, and only if that fails, split it up into
13846 store by pieces followed by clear_storage. Formatting fix.
13848 * config/i386/i386.md (*movqi_internal): Remove static from
13849 buf variable. Use output_asm_insn (buf, operands); return "";
13850 instead of return buf;.
13851 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
13852 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
13853 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
13855 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13857 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
13858 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
13859 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
13860 (CC1_SPEC): Likewise.
13861 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
13863 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13865 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
13866 the base address on 64-bit strict-alignment platforms.
13868 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
13870 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
13872 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
13874 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
13876 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
13878 PR rtl-optimization/88308
13879 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
13880 on copied instruction.
13882 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
13884 * final.c (insn_current_reference_address): Replace test on JUMP_P
13885 with test on jump_to_label_p.
13886 * config/visium/visium-passes.def: New file.
13887 * config/visium/t-visium (PASSES_EXTRA): Define.
13888 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
13889 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
13890 (TRAMPOLINE_ALIGNMENT): Define.
13891 * config/visium/visium.c (visium_option_override): Do not register
13892 the machine-specific reorg pass here.
13893 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
13895 (output_branch): Adjust threshold for long branch instruction.
13896 * config/visium/visium.md (cpu): Move around.
13897 (length): Adjust for the GR6.
13899 2019-02-15 Richard Biener <rguenther@suse.de>
13900 Jakub Jelinek <jakub@redhat.com>
13902 PR tree-optimization/89278
13903 * tree-loop-distribution.c: Include tree-eh.h.
13904 (generate_memset_builtin, generate_memcpy_builtin): Call
13905 rewrite_to_non_trapping_overflow on builtin->size before passing it
13906 to force_gimple_operand_gsi.
13908 2019-02-15 Jakub Jelinek <jakub@redhat.com>
13911 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
13913 * opth-gen.awk: Likewise.
13915 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
13917 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
13918 Enable MMX, SSE and SSE2 by default.
13919 * config/i386/i386.c (ix86_option_override_internal): Do not
13920 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
13922 2019-02-14 Jakub Jelinek <jakub@redhat.com>
13924 PR rtl-optimization/89354
13925 * combine.c (make_extraction): Punt if extraction_mode is narrower
13928 2019-02-14 Maya Rashish <coypu@sdf.org>
13930 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
13931 * config/netbsd-d.c: New file.
13932 * config/t-netbsd: Add netbsd-d.o
13934 2018-02-14 Steve Ellcey <sellcey@marvell.com>
13936 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
13937 affects_type_identity to true for aarch64_vector_pcs.
13938 (aarch64_comp_type_attributes): New function.
13939 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
13941 2019-02-14 Tamar Christina <tamar.christina@arm.com>
13944 * config/arm/iterators.md (ANY64): Add V4HF.
13946 2019-02-14 Martin Liska <mliska@suse.cz>
13948 PR rtl-optimization/89242
13949 * dce.c (delete_unmarked_insns): Call free_dominance_info we
13950 process a transformation.
13952 2019-02-14 Jakub Jelinek <jakub@redhat.com>
13954 PR tree-optimization/89314
13955 * fold-const.c (fold_binary_loc): Cast strlen argument to
13956 const char * before dereferencing it. Formatting fixes.
13958 PR middle-end/89284
13959 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
13961 2019-02-13 Ian Lance Taylor <iant@golang.org>
13963 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
13964 and set current index for other optimizations.
13966 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
13968 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
13969 nonimmediate_operand as operand 2 predicate.
13970 (vec_set<VF2_512_256:mode>_0): Ditto.
13971 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
13972 (*vec_concatv2si): Remove alternative 2.
13973 (*vec_concatv4si_0): Use vm constraint for alternative 0.
13974 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
13975 (vec_concatv2di): Split alternatives 4,5,6 to ...
13976 (*vec_concatv2di_0) ... new pattern.
13978 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
13981 * config/arm/arm.c (ldm_stm_operation_p) Set
13982 addr_reg_in_reglist correctly for first register.
13983 (load_multiple_sequence): Remove dead base check.
13984 (gen_ldm_seq): Correctly set write_back for Thumb-1.
13986 2019-02-13 Tamar Christina <tamar.christina@arm.com>
13989 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
13990 Expose as @aarch64_pred_mov.
13991 * config/aarch64/aarch64.c (aarch64_classify_address):
13992 Use expand_insn which legitimizes operands.
13994 2019-02-13 Martin Liska <mliska@suse.cz>
13996 * builtins.h (expand_builtin_with_bounds): Remove declaration.
13997 * calls.c (struct arg_data): Remove special_slot, pointer_arg
13998 and pointer_offset fields.
13999 (initialize_argument_information): Remove usage of dead
14001 * cgraph.h (struct cgraph_thunk_info): Remove
14002 add_pointer_bounds_args.
14003 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
14005 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
14007 * config/i386/i386.c (ix86_function_arg_advance): Remove
14009 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
14010 (def_builtin): Remove usage of dead
14012 (ix86_add_new_builtins): Likewise.
14013 * ipa-fnsummary.c (compute_fn_summary): Likewise.
14014 * ipa-icf.c (sem_function::equals_wpa): Likewise.
14015 (sem_function::init): Likewise.
14016 (sem_variable::merge): Likewise.
14017 * ipa-visibility.c (function_and_variable_visibility): Likewise.
14018 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
14019 * lto-cgraph.c (lto_output_node): Likewise.
14020 (lto_output_varpool_node): Likewise.
14021 (input_node): Likewise.
14022 (input_varpool_node): Likewise.
14023 * lto-streamer-out.c (lto_output): Likewise.
14024 * tree-inline.c (expand_call_inline): Remove usage of
14026 * tree-inline.h (struct copy_body_data): Likewise.
14027 * varpool.c (varpool_node::dump): Likewise.
14029 2019-02-13 Jakub Jelinek <jakub@redhat.com>
14031 PR middle-end/89303
14032 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
14033 into pt->vars_contains_escaped_heap instead of setting
14034 pt->vars_contains_escaped_heap to it.
14036 PR middle-end/89281
14037 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
14038 INTVAL (size), compare it to GET_MODE_MASK instead of
14039 1 << GET_MODE_BITSIZE.
14042 * config/i386/predicates.md (x86_64_immediate_operand): Allow
14043 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
14046 2019-02-13 Martin Liska <mliska@suse.cz>
14049 * cfgrtl.c (remove_barriers_from_footer): New function.
14050 (try_redirect_by_replacing_jump): Use it.
14051 (cfg_layout_redirect_edge_and_branch): Likewise.
14053 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
14055 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
14056 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
14057 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
14058 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
14059 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
14060 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
14062 * config/rs6000/rs6000.c (builtin_function_type)
14063 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
14064 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
14065 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
14066 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
14067 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
14069 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
14071 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
14072 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
14074 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
14077 * config/i386/i386.md (*movoi_internal_avx): Revert revision
14078 268678 and revision 268657.
14079 (*movti_internal): Likewise.
14081 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
14084 * config/s390/s390.c (s390_decompose_address): Update comment.
14085 (s390_check_qrst_address): Reject invalid address forms after
14088 2019-02-12 Martin Liska <mliska@suse.cz>
14091 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
14092 we need default values of funct_state for a function that
14095 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
14097 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
14098 the object to pick the size of stores on strict-alignment platforms.
14100 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
14101 (*movdi_insn_sp32): Likewise.
14102 (*movdi_insn_sp64): Likewise.
14104 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
14107 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
14108 types that needs constructiong.
14109 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
14111 2019-02-12 Richard Biener <rguenther@suse.de>
14113 PR tree-optimization/89253
14114 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
14115 duplicate the loop.
14117 2019-02-11 David Malcolm <dmalcolm@redhat.com>
14120 * input.c (selftest::test_line_offset_overflow): New selftest.
14121 (selftest::input_c_tests): Call it.
14123 2019-02-11 Martin Sebor <msebor@redhat.com>
14125 PR tree-optimization/88771
14126 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
14127 when -Wstringop-overflow is set.
14128 (builtin_memref::builtin_memref): Adjust excessive upper bound
14129 only when lower bound is not excessive.
14130 (maybe_diag_overlap): Detect and diagnose excessive bounds via
14131 -Wstringop-ovefflow.
14132 (maybe_diag_offset_bounds): Rename...
14133 (maybe_diag_access_bounds): ...to this.
14134 (check_bounds_or_overlap): Adjust for name change above.
14136 2019-02-11 Martin Sebor <msebor@redhat.com>
14139 * builtins.c (max_object_size): Move from here...
14140 * builtins.h (max_object_size): ...and here...
14141 * tree.c (max_object_size): ...to here...
14142 * tree.h (max_object_size): ...and here.
14144 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
14146 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
14147 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
14148 for correct semantics.
14150 2019-02-11 Alan Modra <amodra@gmail.com>
14152 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
14153 -mlongcall and -mpltseq.
14154 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
14155 (RS/6000 and PowerPC Options <-mpltseq>): Document.
14156 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
14157 * config/rs6000/sysv4.opt (mpltseq): New option.
14158 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
14159 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
14160 support is lacking. Don't allow -mpltseq with -mbss-plt.
14161 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
14162 -mpltseq given for ELFv1.
14163 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
14164 Only use UNSPEC_PLTSEQ for inline PLT calls.
14165 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
14166 use UNSPEC_PLTSEQ for inline PLT calls.
14167 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
14168 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
14169 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
14170 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14171 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14172 (pltseq_mtctr_<mode>): Likewise.
14174 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14176 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
14178 * configure: Regenerate.
14180 2019-02-11 Jakub Jelinek <jakub@redhat.com>
14183 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
14186 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14188 * function.c (assign_parm_setup_block): Use the stored
14189 size, not the passed size, when allocating stack-space,
14190 also for a parameter with alignment larger than
14191 MAX_SUPPORTED_STACK_ALIGNMENT.
14193 2019-02-11 Martin Liska <mliska@suse.cz>
14196 * ipa-cp.c (build_toporder_info): Remove usage of a param.
14197 * ipa-inline.c (inline_small_functions): Likewise.
14198 * ipa-pure-const.c (propagate_pure_const): Likewise.
14199 (propagate_nothrow): Likewise.
14200 * ipa-reference.c (propagate): Likewise.
14201 * ipa-utils.c (struct searchc_env): Remove unused field.
14202 (searchc): Always search across AVAIL_INTERPOSABLE.
14203 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
14204 the only called IPA pure const can properly not propagate
14205 across interposable boundary.
14206 * ipa-utils.h (ipa_reduced_postorder): Remove param.
14208 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
14210 * config/nds32/nds32.md (call_internal, call_value_internal,
14211 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
14213 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
14215 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
14218 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
14220 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
14223 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14225 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
14227 2019-02-10 Jakub Jelinek <jakub@redhat.com>
14229 PR tree-optimization/89268
14230 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
14231 if preds is non-NULL.
14233 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14236 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
14239 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14241 * config/nds32/nds32.md (trap): New pattern.
14243 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
14245 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
14248 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
14250 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
14253 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14255 * ipa-visibility.c (localize_node): Also do not localize
14256 LDPR_PREVAILING_DEF_IRONLY_EXP.
14258 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14261 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
14262 instead of type_with_linkage.
14264 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
14267 * params.def (uninlined-function-insns, uninlined-function-time,
14268 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
14269 bound so we don't get overflows.
14271 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
14273 * config/rs6000/rs6000-string.c (expand_compare_loop,
14274 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
14277 2019-02-09 Jakub Jelinek <jakub@redhat.com>
14279 PR middle-end/89246
14280 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14281 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
14282 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
14284 2019-02-09 Alan Modra <amodra@gmail.com>
14287 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
14288 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
14291 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
14293 PR middle-end/88560
14294 * lra-constraints.c (process_alt_operands): Don't increase reject
14295 for memory when offset memory is required.
14297 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
14299 * config/s390/vector.md: Implement vector copysign.
14301 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14303 * expr.c (expand_constructor): Correct indentations.
14305 2019-02-08 Richard Biener <rguenther@suse.de>
14307 PR tree-optimization/89247
14308 * tree-if-conv.c: Include tree-cfgcleanup.h.
14309 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
14310 (tree_if_conversion): Pass through predicate vector.
14311 (pass_if_conversion::execute): Do CFG cleanup and SSA update
14312 inline, see if any if-converted loops we refrece in
14313 LOOP_VECTORIZED calls vanished and fixup.
14314 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
14316 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
14318 * config/s390/constraints.md (jdd): New constraint.
14320 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
14323 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
14324 upper 16 vector registers without TARGET_AVX512VL.
14325 (*movti_internal): Likewise.
14327 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14329 PR rtl-optimization/89234
14330 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
14331 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
14332 (copy_reg_eh_region_note_backward): Likewise.
14334 2019-02-08 Richard Biener <rguenther@suse.de>
14336 PR middle-end/89223
14337 * tree-data-ref.c (initialize_matrix_A): Fail if constant
14338 doesn't fit in HWI.
14339 (analyze_subscript_affine_affine): Handle failure from
14340 initialize_matrix_A.
14342 2019-02-08 Jakub Jelinek <jakub@redhat.com>
14344 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
14347 2019-02-07 David Malcolm <dmalcolm@redhat.com>
14349 PR tree-optimization/86637
14350 PR tree-optimization/89235
14351 * tree-vect-loop.c (optimize_mask_stores): Add an
14352 auto_purge_vect_location sentinel to ensure that vect_location is
14354 * tree-vectorizer.c
14355 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
14356 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
14357 to ensure that vect_location is purged on exit.
14358 (pass_slp_vectorize::execute): Likewise, replacing the manual
14360 * tree-vectorizer.h (class auto_purge_vect_location): New class.
14362 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14364 * config/aarch64/iterators.md (max_opp): New code_attr.
14365 (USMAX): New code iterator.
14366 * config/aarch64/predicates.md (aarch64_smin): New predicate.
14367 (aarch64_smax): Likewise.
14368 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
14369 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
14372 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
14375 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
14376 for TARGET_AVX512VL.
14377 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
14379 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
14381 * config/s390/s390-builtin-types.def: Add new types.
14382 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
14383 (s390_vec_xlw4): Make the memory operand into a const pointer.
14384 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
14386 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
14387 a new vector type with the alignment of the scalar memory operand.
14389 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
14390 Jakub Jelinek <jakub@redhat.com>
14393 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
14394 arm_count_ldrdstrd_insns): New declarations.
14395 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
14397 (valid_operands_ldrd_strd): New function.
14398 (arm_count_ldrdstrd_insns): New function.
14399 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
14400 sets instead of single DImode set and define new insns to match this.
14402 2019-02-07 Tamar Christina <tamar.christina@arm.com>
14404 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
14405 Make it a C initializer.
14407 2019-02-07 Tamar Christina <tamar.christina@arm.com>
14410 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
14412 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14414 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
14415 Use neon_dot<q> for type.
14416 (neon_<sup>dot_lane<vsi2qi>): Likewise.
14418 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14420 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
14421 Use neon_dot<q> for type.
14422 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
14423 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
14425 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
14427 PR rtl-optimization/89225
14428 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
14431 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
14433 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
14434 after restoring registers saved to allocate the frame on Windows.
14436 2019-02-06 Richard Biener <rguenther@suse.de>
14438 PR tree-optimization/89182
14439 * graphite.h (cached_scalar_evolution_in_region): Declare.
14440 * graphite.c (struct seir_cache_key): New.
14441 (struct sese_scev_hash): Likewise.
14442 (seir_cache): New global.
14443 (cached_scalar_evolution_in_region): New function.
14444 (graphite_transform_loops): Allocate and release seir_cache.
14445 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
14446 cached_scalar_evolution_in_region.
14447 * graphite-scop-detection.c (scop_detection::can_represent_loop):
14449 (scop_detection::graphite_can_represent_expr: Use
14450 cached_scalar_evolution_in_region.
14451 (scop_detection::stmt_simple_for_scop_p): Likewise.
14452 (find_params_in_bb): Likewise.
14453 (gather_bbs::before_dom_children): Likewise.
14454 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
14455 (add_loop_constraints): Likewise.
14457 2019-02-06 Jakub Jelinek <jakub@redhat.com>
14459 PR middle-end/89210
14460 * fold-const-call.c (fold_const_vec_convert): Pass true as last
14461 operand to new_unary_operation only if both element types are integral
14462 and it isn't a widening conversion. Return NULL_TREE if
14463 new_unary_operation failed.
14465 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
14468 * config/s390/s390.md: Remove load and test FP splitter.
14470 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
14473 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
14474 expand_compare_loop, expand_block_compare_gpr,
14475 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
14476 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
14477 #include "profile-count.h" and "predict.h" for types and functions
14478 needed to work with REG_BR_PROB notes.
14480 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
14483 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
14484 for the long branch case.
14486 2019-02-05 Jakub Jelinek <jakub@redhat.com>
14489 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
14490 can throw, non-call exceptions are enabled and we can't delete
14491 dead exceptions or alter cfg. Set must_clean if
14492 delete_insn_and_edges returns true, don't set it blindly for calls.
14493 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
14495 PR rtl-optimization/89195
14496 * combine.c (make_extraction): For MEMs, don't extract bytes outside
14497 of the original MEM.
14499 2019-02-05 Martin Liska <mliska@suse.cz>
14501 PR gcov-profile/89000
14502 * gcov.c (function_summary): Remove argument.
14503 (file_summary): New function.
14504 (print_usage): Replace tabs with spaces.
14505 (generate_results): Use new function file_summary.
14507 2019-02-05 Jakub Jelinek <jakub@redhat.com>
14510 * optabs.c (prepare_cmp_insn): Pass x and y to
14511 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
14513 2019-02-05 Richard Biener <rguenther@suse.de>
14515 PR middle-end/89150
14516 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
14517 (struct bitmap_element): Drop chain_prev so we properly recurse on
14518 the prev member, supporting tree views.
14519 (struct bitmap_head): GTY skip the obstack member.
14521 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
14524 * doc/extend.texi (Vector Extensions): Add an example of using vector
14525 types together with x86 intrinsics.
14527 2019-02-04 Alan Modra <amodra@gmail.com>
14529 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
14530 str[] size to 160, and comment.
14532 2019-02-04 Alan Modra <amodra@gmail.com>
14534 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
14535 (rs6000_pltseq_template): Guard output of TLS markers with
14536 TARGET_TLS_MARKERS.
14537 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
14538 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
14539 to use inline PLT sequences.
14540 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
14541 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
14542 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
14544 2019-02-04 Martin Liska <mliska@suse.cz>
14547 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
14548 out when ipa_fn_summaries does not contain entry for callee.
14550 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
14552 * config/sparc/sparc.h: Remove superfluous blank lines.
14553 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
14554 (got_register_rtx): ...this.
14555 (sparc_got): Adjust to above renaming.
14556 (sparc_tls_got): Likewise.
14557 (sparc_delegitimize_address): Likewise.
14558 (sparc_output_mi_thunk): Likewise.
14559 (sparc_init_pic_reg): Likewise.
14560 (save_local_or_in_reg_p): Fix test on the GOT register.
14561 (USE_HIDDEN_LINKONCE): Move around.
14562 (get_pc_thunk_name): Likewise.
14563 (gen_load_pcrel_sym): Likewise.
14564 (load_got_register): Likewise.
14566 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
14568 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
14569 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
14571 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
14573 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
14574 into consideration.
14576 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
14578 * config.gcc (with_nds32_lib, glibc):
14579 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
14580 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
14581 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
14583 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
14586 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
14587 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
14588 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
14589 (*rcpsf2_sse): Ditto.
14590 (*rsqrtsf2_sse): Ditto.
14591 (sse4_1_round<mode<2): Ditto.
14593 2019-02-03 Richard Biener <rguenther@suse.de>
14596 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
14599 2019-02-02 Jakub Jelinek <jakub@redhat.com>
14601 PR middle-end/87887
14602 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
14603 Punt with warning on aggregate return or argument types. Ignore
14604 type/mode checking for uniform arguments.
14606 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
14608 * combine.c (try_combine): Do not print "Can't combine" messages unless
14609 printing failed combination attempts.
14611 2019-02-01 Martin Jambor <mjambor@suse.cz>
14614 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
14615 segment and global segment variables before making them static.
14617 2019-02-01 Martin Jambor <mjambor@suse.cz>
14619 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
14620 missed optimization dump with dump_enabled_p.
14622 2019-02-01 Richard Biener <rguenther@suse.de>
14624 PR middle-end/88597
14625 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
14626 the instantiate cache.
14627 (instantiate_scev_binary): Elide second operand procesing
14628 if equal to the first.
14629 * tree-chrec.c (chrec_contains_symbols): Add visited set.
14630 (chrec_contains_undetermined): Likewise.
14631 (tree_contains_chrecs): Likewise.
14633 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
14635 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
14637 2019-02-01 Jakub Jelinek <jakub@redhat.com>
14639 PR tree-optimization/89143
14640 * wide-int-range.h (wide_int_range_absu): Declare.
14641 * wide-int-range.cc (wide_int_range_absu): New function.
14642 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
14644 PR tree-optimization/88107
14645 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
14646 instead of assertion that eh_region_outermost is non-NULL, if it
14647 is NULL, set *ALL to true and return NULL.
14648 (move_sese_region_to_fn): Adjust caller, if all is set, call
14649 duplicate_eh_regions with NULL region.
14651 2019-02-01 Richard Biener <rguenth@suse.de>
14653 PR rtl-optimization/88593
14654 * mode-switching.c (optimize_mode_switching): Free dominators before
14655 calling cleanup_cfg.
14657 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14659 PR tree-optimization/88932
14660 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
14662 2019-01-31 Jakub Jelinek <jakub@redhat.com>
14664 PR middle-end/89137
14665 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
14666 bogus clang warning.
14668 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
14671 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
14672 alternative to avoid partial SSE register stall for TARGET_AVX.
14673 (truncdfsf2): Ditto.
14674 (sse4_1_round<mode>2): Ditto.
14676 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
14678 PR tree-optimization/89008
14679 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
14680 process anything of the form X * 0.
14682 2019-01-31 Richard Biener <rguenther@suse.de>
14684 PR tree-optimization/89135
14685 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
14686 with abnormal preds.
14688 2019-01-31 Jakub Jelinek <jakub@redhat.com>
14691 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
14692 always_inline callees into no_sanitize_address callers.
14694 2019-01-31 Richard Biener <rguenther@suse.de>
14696 PR rtl-optimization/89115
14697 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
14699 2019-01-30 Martin Sebor <msebor@redhat.com>
14702 * doc/extend.texi (cast to a union): Correct and expand.
14704 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
14706 PR rtl-optimization/87246
14707 * lra-constraints.c (simplify_operand_subreg): Reload memory
14708 in subreg if the address became invalid.
14710 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
14713 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
14714 Disable for little-endian.
14716 2019-01-30 Richard Biener <rguenther@suse.de>
14718 PR rtl-optimization/89115
14719 * opts.c (default_options_optimization): Reduce
14720 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
14721 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
14724 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
14726 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
14727 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
14728 type of vector element when vec_extract is implemented by direct
14731 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
14733 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
14735 2019-01-30 Richard Biener <rguenther@suse.de>
14737 PR tree-optimization/89111
14738 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
14739 canonicalization to appropriately sized access types.
14741 2019-01-30 Jakub Jelinek <jakub@redhat.com>
14744 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
14745 for arguments to functions that are TU-local and shouldn't be
14746 referenced by assembly.
14748 2019-01-30 Ulrich Drepper <drepper@redhat.com>
14750 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
14753 2019-01-29 Martin Sebor <msebor@redhat.com>
14756 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
14758 2019-01-29 Jakub Jelinek <jakub@redhat.com>
14762 * omp-simd-clone.c (simd_clone_clauses_extract)
14763 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
14764 OMP_CLAUSE_ALIGNED_ALIGNMENT.
14766 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
14768 * config.gcc: Force .init_array for ARC.
14770 2019-01-29 Richard Biener <rguenther@suse.de>
14773 * dwarf2out.c (collect_skeleton_dies): New helper.
14774 (copy_decls_for_unworthy_types): Call it.
14775 (build_abbrev_table): Assert we do not try to replace
14776 DW_AT_signature refs with local refs.
14778 2019-01-28 Jakub Jelinek <jakub@redhat.com>
14780 PR middle-end/89002
14781 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
14782 for lastprivate/linear IV, push gimplify context around gimplify_assign
14783 and, if it needed any temporaries, pop it into a gimple bind around the
14786 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
14788 * common.opt (-Wattribute-alias): Remove "no-" from name.
14789 Make -Wattribute-alias command line option and
14790 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
14792 2019-01-28 Jakub Jelinek <jakub@redhat.com>
14795 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
14796 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
14798 (bmi2): Add missing @opindex.
14799 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
14800 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
14801 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
14802 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
14803 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
14804 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
14805 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
14806 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
14807 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
14808 xsavec, xsaveopt and xsaves options.
14810 2019-01-28 Richard Biener <rguenther@suse.de>
14813 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
14816 2019-01-28 Richard Biener <rguenther@suse.de>
14818 PR tree-optimization/88739
14819 * tree-cfg.c (verify_types_in_gimple_reference): Verify
14820 BIT_FIELD_REFs only are applied to mode-precision operands
14821 when they are integral.
14822 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
14823 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
14824 BIT_FIELD_REFs of non-mode-precision integral operands.
14826 2019-01-27 Jakub Jelinek <jakub@redhat.com>
14829 * config/i386/sse.md
14830 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
14831 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
14832 first constants in pairs are multiples of 2. Formatting fixes.
14833 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
14834 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
14835 first constants in each quadruple are multiples of 4. Formatting fixes.
14837 2019-01-26 Martin Jambor <mjambor@suse.cz>
14840 * tree-inline.c: Include tree-cfgcleanup.h.
14841 (delete_unreachable_blocks_update_callgraph): Move...
14842 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
14843 ...here, make externally visible, make second argument bool, adjust
14845 * tree-cfgcleanup.c: Include cgraph.h.
14846 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
14848 * ipa-prop.c: Include tree-cfgcleanup.h.
14849 (ipcp_transform_function): Call
14850 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
14852 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
14854 PR rtl-optimization/88846
14855 * ira.c (process_set_for_memref_referenced_p): New.
14856 (memref_referenced_p): Add new param. Use
14857 process_set_for_memref_referenced_p. Add new switch cases.
14858 (memref_used_between_p): Pass new arg to memref_referenced_p.
14860 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
14863 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
14864 argument ABI_BREAK. Set to true if the calculated alignment has
14865 changed in gcc-9. Check bit-fields for their base type alignment.
14866 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
14867 (aarch64_function_arg_boundary): Likewise.
14868 (aarch64_gimplify_va_arg_expr): Likewise.
14870 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
14872 PR middle-end/89037
14873 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
14874 instead of accessing TREE_INT_CST_ELT directly.
14876 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
14878 * doc/sourcebuild.texi (Environment attributes): Add fenv and
14879 fenv_exceptions description.
14881 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
14883 PR rtl-optimization/87763
14884 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
14885 Allow SUBREG when matching CC_NZmode compare.
14887 2019-01-25 Richard Biener <rguenther@suse.de>
14889 PR tree-optimization/89049
14890 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
14891 Look at the pattern stmt to determine if the stmt is vectorized.
14893 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
14895 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
14896 (pred_mov<mode>): Handle all-register forms using both a new
14897 alternative and a split.
14899 2019-01-25 Richard Biener <rguenther@suse.de>
14901 PR tree-optimization/86865
14902 * graphite-scop-detection.c (scop_detection::can_represent_loop):
14903 Reject non-do-while loops.
14905 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
14907 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
14908 * config/rs6000/constraints.md (Q constraint): Use REG_P.
14909 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
14910 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
14911 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
14912 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14913 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
14914 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
14915 vlogical_operand, gpc_reg_operand, int_reg_operand,
14916 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
14917 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
14918 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
14919 (save_world_operation, restore_world_operation, lmw_operation,
14920 stmw_operation): Use MEM_P and REG_P.
14921 (tie_operand): Use MEM_P.
14922 (vrsave_operation, crsave_operation): Use REG_P.
14923 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
14924 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
14925 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
14926 (call_operand): Use HARD_REGISTER_P.
14927 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
14929 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
14930 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
14931 quad_aligned_load_p, replace_swapped_aligned_store,
14932 recombine_lvx_pattern, replace_swapped_aligned_load,
14933 recombine_stvx_pattern): Use MEM_P.
14934 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
14935 Use MEM_P and SYMBOL_REF_P.
14936 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
14937 (insn_is_swappable_p): Use REG_P and MEM_P.
14938 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
14939 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
14941 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
14942 Use CONST_DOUBLE_P.
14943 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
14945 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
14946 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
14947 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
14948 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
14950 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
14951 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
14952 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
14953 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
14954 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
14955 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
14956 rs6000_split_logical_di): Use CONST_INT_P.
14957 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
14958 REG_P and SYMBOL_REF_P.
14959 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
14960 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
14961 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
14962 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
14963 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
14964 (small_data_operand, print_operand_address): Use CONST_INT_P and
14966 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
14967 (rs6000_init_hard_regno_mode_ok, direct_move_p):
14968 Use HARD_REGISTER_NUM_P.
14969 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
14970 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
14971 SUBREG_P and SYMBOL_REF_P.
14972 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
14973 and HARD_REGISTER_NUM_P.
14974 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
14976 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
14977 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
14979 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
14980 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
14981 find_addr_reg): Use REG_P.
14982 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
14983 (rs6000_emit_le_vsx_move): Use SUBREG_P.
14984 (offsettable_ok_by_alignment, constant_pool_expr_p,
14985 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
14986 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
14987 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
14988 rs6000_assemble_integer, create_TOC_reference,
14989 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
14990 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
14991 (rs6000_split_vec_extract_var): Use reg_or_subregno.
14992 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
14993 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
14994 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14995 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
14996 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
14997 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
14998 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
14999 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
15000 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
15001 and cbranch<mode>4): Use CONST_INT_P.
15002 (multiple define_splits): Use REG_P and SUBREG_P.
15003 (define_expands call, call_value): Use MEM_P.
15004 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
15005 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
15006 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
15007 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
15008 and HARD_REGISTER_NUM_P.
15009 (multiple define_splits): Use HARD_REGISTER_NUM_P.
15011 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
15013 PR rtl-optimization/88948
15014 * rtl.h (prepare_copy_insn): New prototype.
15015 * gcse.c (prepare_copy_insn): New function, split out from
15016 process_insert_insn.
15017 (process_insert_insn): Use prepare_copy_insn.
15018 * store-motion.c (replace_store_insn): Use prepare_copy_insn
15019 instead of gen_move_insn.
15021 2019-01-24 Jakub Jelinek <jakub@redhat.com>
15024 * config/i386/i386.c (ix86_pic_register_p): Return true for
15025 UNSPEC_SET_GOT too.
15027 PR tree-optimization/88964
15028 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
15029 punt if HONOR_SNANS (chrec).
15031 PR middle-end/89015
15032 * tree-nested.c (convert_nonlocal_reference_stmt,
15033 convert_local_reference_stmt, convert_tramp_reference_stmt,
15034 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
15035 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
15036 or GIMPLE_OMP_TASK.
15038 PR tree-optimization/89027
15039 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
15040 for "omp simd array" variables.
15042 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
15045 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
15046 force the alignment of m_val.
15048 2019-01-24 Richard Biener <rguenther@suse.de>
15051 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
15052 When in "legacy" debug mode make sure to reset self-origins.
15054 2019-01-24 Martin Liska <mliska@suse.cz>
15056 PR gcov-profile/88994
15057 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
15058 result will be always smaller or equal to the original.
15059 * gcov.c (mangle_name): Fix else branch where we should
15060 also copy to PTR and shift the pointer.
15062 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
15064 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
15065 * vr-values.c (find_case_label_ranges): Fix a comment typo.
15067 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
15069 * common/config/i386/i386-common.c
15070 (OPTION_MASK_ISA_ENQCMD_SET,
15071 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
15072 (ix86_handle_option): Handle -menqcmd.
15073 * config.gcc (enqcmdintrin.h): New header file.
15074 * config/i386/cpuid.h (bit_ENQCMD): New bit.
15075 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
15077 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
15079 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
15080 __builtin_ia32_enqcmds): New builtins.
15081 * config/i386/i386-c.c (__ENQCMD__): New macro.
15082 * config/i386/i386-option.c (ix86_target_string): Add
15084 (ix86_valid_target_attribute_inner_p): Likewise.
15085 * config/i386/i386-expand.c
15086 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
15087 IX86_BUILTIN_ENQCMDS.
15088 * config/i386/i386.h (TARGET_ENQCMD): New.
15089 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
15090 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
15091 (movdir64b_<mode>): Parameterize to enable share expansion code
15092 with ENQCMD in function ix86_expand_builtin.
15093 * config/i386/i386.opt: Add -menqcmd.
15094 * config/i386/immintrin.h: Include enqcmdintrin.h.
15095 * config/i386/enqcmdintrin.h: New intrinsic file.
15096 * doc/invoke.texi: Add -menqcmd.
15098 2019-01-23 Bin Cheng <bin.cheng@arm.com>
15099 Steve Ellcey <sellcey@marvell.com>
15102 * recog.c (address_operand): Return false on wrong mode for address.
15103 (constrain_operands): Check for mode with 'p' constraint.
15105 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
15108 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
15109 Disparage MMX alternative.
15110 (sse2_cvtpd2pi): Ditto.
15111 (sse2_cvttpd2pi): Ditto.
15113 2019-01-23 David Malcolm <dmalcolm@redhat.com>
15116 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
15117 use-after-free of the result of
15118 aarch64_get_extension_string_for_isa_flags.
15120 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15123 * doc/extend.texi: Document break and continue behavior in
15124 statement expressions.
15126 2019-01-23 Richard Biener <rguenther@suse.de>
15128 PR tree-optimization/89008
15129 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
15130 not leave another stray operand.
15132 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15134 * BASE-VER: Bump to 9.0.1.
15136 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
15138 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
15139 thunk that returns by reference, use the type of the return object
15140 of the thunk instead of that of the alias to build the dereference.
15142 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
15144 * config/arc/atomic.md: Add operand to DMB instruction.
15146 2019-01-23 Jakub Jelinek <jakub@redhat.com>
15148 PR tree-optimization/88964
15149 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
15150 build_zero_cst instead of build_int_cst. Return false for loop
15151 invariants which honor signed zeros.
15153 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
15155 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
15157 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15160 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
15161 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
15162 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
15164 PR middle-end/88968
15165 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
15166 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
15169 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
15170 Disable for little endian.
15172 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15175 * config/arm/arm.c (arm_needs_double_word_align): Check
15176 DECL_BIT_FIELD_TYPE.
15178 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
15179 H.J. Lu <hongjiu.lu@intel.com>
15182 * config/i386/i386-builtin.def: Add mask2 to all builtin
15183 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
15185 * config/i386/i386.c (BDESC): Add mask2 to the definition.
15186 (BDESC_FIRST): Likewise.
15187 (define_builtin): Add an argument for mask2. Updated to handle
15188 both ix86_isa_flags and ix86_isa_flags2.
15189 (define_builtin_const): Likewise.
15190 (define_builtin_pure): Likewise.
15191 (define_builtin2): Deleted.
15192 (define_builtin_const2): Likewise.
15193 (builtin_description): Add a member, mask2.
15194 (bdesc_*): Add mask2 to builtin initializations.
15195 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
15196 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
15198 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
15200 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
15203 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
15206 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
15209 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
15210 alignment is dominated by a bitfield with 64-bit aligned base type.
15211 (arm_function_arg): Emit a warning if the alignment has changed since
15212 earlier GCC releases.
15213 (arm_function_arg_boundary): Likewise.
15214 (arm_setup_incoming_varargs): Likewise.
15216 2019-01-22 Richard Biener <rguenther@suse.de>
15218 PR tree-optimization/88862
15219 * graphite-scop-detection.c
15220 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
15222 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
15224 * doc/extend.tex (AMD GCN Function Attributes): New section.
15225 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
15226 * doc/invoke.texi (AMD GCN Options): New section.
15227 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
15229 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
15231 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
15232 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
15234 2019-01-22 Jakub Jelinek <jakub@redhat.com>
15236 PR tree-optimization/88044
15237 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
15238 is false in the first iteration, but !every_iteration, return false
15239 instead of true with niter->niter zero.
15241 PR rtl-optimization/88904
15242 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
15243 any nonequal registers before processing BB_END (b).
15246 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
15248 (expand_binop_directly, expand_doubleword_clz,
15249 expand_doubleword_popcount, expand_ctz, expand_ffs,
15250 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
15252 PR rtl-optimization/49429
15254 PR rtl-optimization/86334
15256 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
15257 addressable from here...
15258 (emit_block_op_via_libcall): ... to here.
15260 2019-01-22 Richard Biener <rguenther@suse.de>
15262 * tree-vect-loop.c (vect_analyze_loop_operations): Use
15263 auto_vec for cost vector to fix memleak.
15264 (vectorize_fold_left_reduction): Properly gather SLP defs.
15265 (vectorizable_comparison): Do not swap operands to properly
15268 2019-01-22 Alan Modra <amodra@gmail.com>
15271 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
15272 stays a reg. Allow a const_int.
15273 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
15274 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
15275 (IS_NOMARK_TLSGETADDR): Define.
15276 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
15277 (rs6000_output_tlsargs): New function.
15278 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
15279 __tls_get_addr call takes an arg.
15280 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
15281 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
15283 (call_value_nonlocal_sysv): ..or here, delete split.
15284 (tls_gdld_nomark): Delete.
15285 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
15286 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
15287 (call_value_nonlocal_sysv): Likewise.
15288 (call_value_nonlocal_sysv_secure): Likewise.
15289 (call_value_nonlocal_aix): Likewise.
15290 (call_value_indirect_aix): Likewise.
15291 (call_value_indirect_elfv2): Likewise.
15292 (call_value_local32, call_value_local64): Disable for no-mark tls.
15293 (call_value_local_aix): Likewise.
15295 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
15298 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
15299 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
15301 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
15303 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
15304 string contents as hash_map keys.
15306 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
15309 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
15310 for rvalue context. Handle rvalues correctly. Use min_align_of_type
15311 instead of TYPE_ALIGN.
15312 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
15313 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
15314 pointer from TYPE_STUB_DECL.
15316 2019-01-21 Richard Biener <rguenther@suse.de>
15318 PR tree-optimization/88934
15319 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
15320 at the possibly non-constant operand.
15321 (vect_get_constant_vectors): Adjust.
15323 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
15326 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
15327 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
15328 instead of _X86INTRIN_H_INCLUDED.
15329 * onfig/i386/clwbintrin.h: Likewise.
15330 * config/i386/pkuintrin.h: Likewise.
15331 * config/i386/prfchwintrin.h: Likewise.
15332 * config/i386/rdseedintrin.h: Likewise.
15333 * config/i386/wbnoinvdintrin.h: Likewise.
15334 * config/i386/xsavecintrin.h: Likewise.
15335 * config/i386/xsavesintrin.h: Likewise.
15336 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
15337 * config/i386/xsaveintrin.h: Likewise.
15338 * config/i386/xsaveoptintrin.h: Likewise.
15339 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
15340 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
15341 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
15342 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
15343 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
15344 * config/i386/immintrin.h: Here.
15346 2019-01-20 Martin Jambor <mjambor@suse.cz>
15349 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
15350 with aa_walk_budget.
15351 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
15352 aa_walk_budget_p parameter.
15353 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
15354 walk. Updated all callers.
15355 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
15356 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
15358 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
15359 parameter info. Extract info from fbi. Pass fbi to recursive calls
15360 and to unmodified_parm.
15361 (phi_result_unknown_predicate): New parameter fbi, removed parameter
15362 info, updated call to will_be_nonconstant_expr_predicate.
15363 (param_change_prob): New parameter fbi, limit AA walking.
15364 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
15365 calls to various above functions.
15366 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
15367 parameter. Use it to limit AA walking.
15368 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
15369 fbi, limit AA walk.
15370 (detect_type_change): New parameter fbi, pass it on to
15371 detect_type_change_from_memory_writes.
15372 (detect_type_change_ssa): Likewise.
15373 (aa_overwalked): Removed.
15374 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
15375 accordingly, adjust to the neew AA limiting scheme.
15376 (parm_ref_data_preserved_p): Likewise.
15377 (ipa_compute_jump_functions_for_edge): Adjust call to
15379 (ipa_analyze_call_uses): Likewise.
15380 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
15381 (ipa_analyze_node): Initialize aa_walk_budget.
15382 (ipcp_transform_function): Likewise.
15383 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
15384 to get_dynamic_type.
15386 2019-01-19 Jakub Jelinek <jakub@redhat.com>
15388 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
15389 outside of #if CHECKING_P code.
15391 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
15393 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
15394 New function, split out from...
15395 (loop_versioning::analyze_stride): ...here.
15396 (loop_versioning::find_per_loop_multiplication): Use gassign.
15397 (loop_versioning::analyze_term_using_scevs): Return a success code.
15398 (loop_versioning::analyze_arbitrary_term): New function.
15399 (loop_versioning::analyze_address_fragment): Use
15400 analyze_arbitrary_term if all else fails.
15402 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
15405 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
15408 2019-01-18 Richard Biener <rguenther@suse.de>
15410 PR tree-optimization/88903
15411 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
15412 scalar stmts a SLP shift amount is composed of when detecting
15415 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
15418 * config/arm/arm-cpus.in (mp): New feature.
15419 (sec): New feature.
15420 (fgroup ARMv7ve): Add mp and sec features.
15421 (arch armv7-a): Add options to allow mp and sec extensions.
15422 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
15423 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
15424 extenstions to the base architecture.
15425 (cpu cortex-a8): Add sec extension to the base architecture.
15426 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
15427 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
15428 variants down to the base v7-a varaint.
15429 * config/arm/t-multilib (v7_a_arch_variants): New variable.
15430 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
15431 of permitted extensions for -march=armv7-a and for
15432 -mcpu=generic-armv7-a.
15434 2019-01-18 Martin Liska <mliska@suse.cz>
15436 * params.def: Fix comment.
15437 * tree-profile.c (gimple_init_gcov_profiler): Bump function
15439 (gimple_gen_ic_func_profiler): Likewise.
15441 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15443 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
15444 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
15445 and put in error checks for stack protector guard options.
15446 (aarch64_stack_protect_guard): New.
15447 (TARGET_STACK_PROTECT_GUARD): Define.
15448 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
15449 (reg_stack_protect_address<mode>): New.
15450 (stack_protect_set): Adjust for SSP_GLOBAL.
15451 (stack_protect_test): Likewise.
15452 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
15453 (-mstack-protector-guard): Likewise.
15454 (-mstack-protector-guard-offset): Likewise.
15456 2019-01-18 Jakub Jelinek <jakub@redhat.com>
15458 PR tree-optimization/86214
15459 * tree-inline.h (struct copy_body_data): Add
15460 add_clobbers_to_eh_landing_pads member.
15461 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
15462 (copy_edges_for_bb): Call it if EH edge destination is <
15463 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
15464 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
15465 if flag_stack_reuse != SR_NONE and clear it afterwards.
15467 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
15470 * doc/install.texi (with-multilib-list): Document for aarch64.
15472 2019-01-18 Jakub Jelinek <jakub@redhat.com>
15475 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
15476 (("..."))) with ("...").
15478 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
15480 * doc/extend.texi (Built-in Functions for Memory Model Aware
15481 Atomic Operations): Document atomic fetch and nand.
15483 2019-01-18 Martin Liska <mliska@suse.cz>
15484 Richard Biener <rguenther@suse.de>
15486 PR middle-end/88587
15487 * cgraph.h (create_version_clone_with_body): Add new argument
15489 * cgraphclones.c (cgraph_node::create_version_clone): Add
15490 DECL_ATTRIBUTES to a newly created decl. And call
15491 valid_attribute_p so that proper cl_target_optimization_node
15492 is set for the newly created declaration.
15493 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
15495 (expand_target_clones): Do not call valid_attribute_p, it must
15497 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
15500 2019-01-17 Jakub Jelinek <jakub@redhat.com>
15503 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
15504 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
15505 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
15507 2019-01-17 Martin Sebor <msebor@redhat.com>
15509 PR middle-end/88273
15510 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
15511 Handle anti-ranges the same as no range at all.
15513 2018-01-17 Steve Ellcey <sellcey@cavium.com>
15515 * config/aarch64/aarch64.c (cgraph.h): New include.
15516 (intl.h): New include.
15517 (supported_simd_type): New function.
15518 (currently_supported_simd_type): Ditto.
15519 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
15520 (aarch64_simd_clone_adjust): Ditto.
15521 (aarch64_simd_clone_usable): Ditto.
15522 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
15523 (TARGET_SIMD_CLONE_ADJUST): Ditto.
15524 (TARGET_SIMD_CLONE_USABLE): Ditto.
15525 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
15526 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
15529 2019-01-17 Martin Sebor <msebor@redhat.com>
15531 PR tree-optimization/88800
15532 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
15533 NO_WARNING bit here. Avoid folding out-of-bounds calls.
15534 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
15535 redundant argument. Add new argument and issue diagnostics under
15536 its control. Detect out-of-bounds access even with warnings
15538 (check_bounds_or_overlap): Change return type. Add argument.
15539 (wrestrict_dom_walker::check_call): Adjust.
15540 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
15541 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
15542 check_bounds_or_overlap's return value.
15543 (handle_builtin_stxncpy): Same.
15544 (handle_builtin_strcat): Same.
15546 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15547 Kwok Cheung Yeung <kcy@codesourcery.com>
15548 Julian Brown <julian@codesourcery.com>
15549 Tom de Vries <tom@codesourcery.com>
15551 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
15553 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15555 * doc/sourcebuild.texi: Document dg-require-effective-target
15556 llvm_binutils and offload_gcn.
15558 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15559 Kwok Cheung Yeung <kcy@codesourcery.com>
15560 Julian Brown <julian@codesourcery.com>
15561 Tom de Vries <tom@codesourcery.com>
15563 * doc/sourcebuild.texi: Document dg-required-effective-target
15566 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15567 Kwok Cheung Yeung <kcy@codesourcery.com>
15568 Julian Brown <julian@codesourcery.com>
15569 Tom de Vries <tom@codesourcery.com>
15570 Jan Hubicka <hubicka@ucw.cz>
15571 Martin Jambor <mjambor@suse.cz>
15573 * config.gcc: Add amdgcn*-*-amdhsa configuration.
15574 * configure.ac: Check for dlopen.
15575 * configure: Regenerate.
15577 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15578 Kwok Cheung Yeung <kcy@codesourcery.com>
15579 Julian Brown <julian@codesourcery.com>
15580 Tom de Vries <tom@codesourcery.com>
15581 Jan Hubicka <hubicka@ucw.cz>
15582 Martin Jambor <mjambor@suse.cz>
15584 * common/config/gcn/gcn-common.c: New file.
15585 * config/gcn/driver-gcn.c: New file.
15586 * config/gcn/gcn-builtins.def: New file.
15587 * config/gcn/gcn-hsa.h: New file.
15588 * config/gcn/gcn-modes.def: New file.
15589 * config/gcn/gcn-opts.h: New file.
15590 * config/gcn/gcn-passes.def: New file.
15591 * config/gcn/gcn-protos.h: New file.
15592 * config/gcn/gcn-run.c: New file.
15593 * config/gcn/gcn-tree.c: New file.
15594 * config/gcn/gcn.c: New file.
15595 * config/gcn/gcn.h: New file.
15596 * config/gcn/gcn.opt: New file.
15597 * config/gcn/t-gcn-hsa: New file.
15599 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
15600 Kwok Cheung Yeung <kcy@codesourcery.com>
15601 Julian Brown <julian@codesourcery.com>
15602 Tom de Vries <tom@codesourcery.com>
15603 Jan Hubicka <hubicka@ucw.cz>
15604 Martin Jambor <mjambor@suse.cz>
15606 * config/gcn/constraints.md: New file.
15607 * config/gcn/gcn-valu.md: New file.
15608 * config/gcn/gcn.md: New file.
15609 * config/gcn/predicates.md: New file.
15611 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
15613 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
15614 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
15615 (stmt_uses_0_or_null_in_undefined_way): Likewise.
15616 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
15618 2019-01-17 Tamar Christina <tamar.christina@arm.com>
15621 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
15622 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
15623 it and document registers.
15625 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15627 * config/aarch64/aarch64.c (ares_tunings): Define.
15628 * config/aarch64/aarch64-cores.def (ares): Use the above.
15630 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15634 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
15636 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
15637 (_mm512_fixupimm_round_pd): Update parameters and builtin.
15638 (_mm512_maskz_fixupimm_round_pd): Ditto.
15639 (_mm512_fixupimm_round_ps): Ditto.
15640 (_mm512_maskz_fixupimm_round_ps): Ditto.
15641 (_mm_fixupimm_round_sd): Ditto.
15642 (_mm_maskz_fixupimm_round_sd): Ditto.
15643 (_mm_fixupimm_round_ss): Ditto.
15644 (_mm_maskz_fixupimm_round_ss): Ditto.
15645 (_mm512_fixupimm_pd): Ditto.
15646 (_mm512_maskz_fixupimm_pd): Ditto.
15647 (_mm512_fixupimm_ps): Ditto.
15648 (_mm512_maskz_fixupimm_ps): Ditto.
15649 (_mm_fixupimm_sd): Ditto.
15650 (_mm_maskz_fixupimm_sd): Ditto.
15651 (_mm_fixupimm_ss): Ditto.
15652 (_mm_maskz_fixupimm_ss): Ditto.
15653 (_mm512_mask_fixupimm_round_pd): Update builtin.
15654 (_mm512_mask_fixupimm_round_ps): Ditto.
15655 (_mm_mask_fixupimm_round_sd): Ditto.
15656 (_mm_mask_fixupimm_round_ss): Ditto.
15657 (_mm512_mask_fixupimm_pd): Ditto.
15658 (_mm512_mask_fixupimm_ps): Ditto.
15659 (_mm_mask_fixupimm_sd): Ditto.
15660 (_mm_mask_fixupimm_ss): Ditto.
15661 * config/i386/avx512vlintrin.h:
15662 (_mm256_fixupimm_pd): Update parameters and builtin.
15663 (_mm256_maskz_fixupimm_pd): Ditto.
15664 (_mm256_fixupimm_ps): Ditto.
15665 (_mm256_maskz_fixupimm_ps): Ditto.
15666 (_mm_fixupimm_pd): Ditto.
15667 (_mm_maskz_fixupimm_pd): Ditto.
15668 (_mm_fixupimm_ps): Ditto.
15669 (_mm_maskz_fixupimm_ps): Ditto.
15670 (_mm256_mask_fixupimm_pd): Update builtin.
15671 (_mm256_mask_fixupimm_ps): Ditto.
15672 (_mm_mask_fixupimm_pd): Ditto.
15673 (_mm_mask_fixupimm_ps): Ditto.
15674 * config/i386/i386-builtin-types.def: Add new types and remove
15676 * config/i386/i386-builtin.def: Update builtin definitions.
15677 * config/i386/i386.c: Handle new builtin types and remove useless ones.
15678 * config/i386/sse.md: Update VFIXUPIMM* patterns.
15679 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15680 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15681 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
15682 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15683 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15684 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
15685 * config/i386/subst.md:
15686 (round_saeonly_sd_mask_operand4): Add new subst_attr.
15687 (round_saeonly_sd_mask_op4): Ditto.
15688 (round_saeonly_expand_operand5): Ditto.
15689 (round_saeonly_expand): Update.
15691 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15695 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
15697 * config/i386/sse.md: Combine VFIXUPIMM* patterns
15698 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15699 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15700 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
15701 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
15702 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
15703 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
15705 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
15709 2018-12-15 Jakub Jelinek <jakub@redhat.com>
15712 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
15713 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
15714 instead of UNSPEC_FIXUPIMM.
15716 2019-01-17 Richard Biener <rguenther@suse.de>
15719 * dwarf2out.c (want_pubnames): Never generate pubnames sections
15720 and friends for the LTO part of debug info.
15722 2019-01-17 Jakub Jelinek <jakub@redhat.com>
15724 PR tree-optimization/86214
15725 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
15728 PR rtl-optimization/88870
15729 * dce.c (deletable_insn_p): Never delete const/pure calls that can
15730 throw if we can't alter the cfg or delete dead exceptions.
15731 (mark_insn): Don't call find_call_stack_args for such calls.
15733 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
15735 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
15736 prototypes for vec_st.
15737 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
15738 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
15739 mainly on signed/unsigned long long and double.
15741 2019-01-16 David Malcolm <dmalcolm@redhat.com>
15744 * combine.c (delete_noop_moves): Convert to "bool" return,
15745 returning true if any edges are eliminated.
15746 (combine_instructions): Also return true if delete_noop_moves
15749 2019-01-16 Tamar Christina <tamar.christina@arm.com>
15751 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
15752 correct max nunits for endian swap.
15753 (aarch64_expand_fcmla_builtin): Correct subreg code.
15754 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
15755 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
15758 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
15760 * config/alpha/alpha.c (alpha_gimplify_va_arg):
15761 Handle split indirect COMPLEX_TYPE arguments.
15763 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
15766 * config/aarch64/aarch64-modes.def: Add comment about how the carry
15767 bit is set by add and compare.
15768 (CC_ADC): New CC_MODE.
15769 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
15770 to cache the code and mode of X. Adjust the shape of a CC_Cmode
15771 comparison. Add detection for CC_ADCmode.
15772 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
15774 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
15775 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
15776 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
15777 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
15778 to eliminate the need for zero-extending the operands.
15779 (add<mode>3_compareC_imm): Delete. Merge into ...
15780 (add<mode>3_compareC): ... this. Restructure the comparison to
15781 eliminate the need for zero-extending the operands.
15782 (add<mode>3_carryin): Use LTU for the overflow detection.
15783 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
15784 Reexpress comparison for overflow.
15785 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
15786 (add<mode>3_carryinC): Likewise.
15787 (add<mode>3_carryinV): Use LTU for carry between partials.
15788 * config/aarch64/predicates.md (aarch64_carry_operation): Update
15789 handling of CC_Cmode and add CC_ADCmode.
15790 (aarch64_borrow_operation): Likewise.
15792 2019-01-16 Tamar Christina <tamar.christina@arm.com>
15794 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
15795 Remove patternmode.
15796 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
15797 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
15798 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
15799 Remove endianness conversion.
15801 2019-01-16 Martin Liska <mliska@suse.cz>
15803 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
15805 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
15807 * gcc.c (add_sysrooted_hdrs_prefix): New function.
15808 (path_prefix_reset): Move up in the source file.
15809 (find_fortran_preinclude_file): Make complex search for the
15810 fortran header files.
15812 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
15814 * godump.c (go_output_typedef): When outputting a typedef, refer
15815 to the underlying type by its name and not its structure.
15817 2019-01-15 David Malcolm <dmalcolm@redhat.com>
15820 * tree.c (build_function_type): Assert that arg_types is not
15823 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
15825 PR inline-asm/52813
15826 * doc/extend.texi: Document that listing the stack pointer in the
15827 clobber list of an asm is a deprecated feature.
15828 * common.opt (Wdeprecated): Moved from c-family/c.opt.
15829 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
15830 warning instead of an error for clobbers of the stack pointer.
15831 Add a note explaining why.
15833 2019-01-15 Richard Biener <rguenther@suse.de>
15836 * dwarf2out.c (gen_member_die): Do not generate inheritance
15839 2019-01-15 Richard Biener <rguenther@suse.de>
15841 PR tree-optimization/88855
15842 * tree-if-conv.c (combine_blocks): Collect
15843 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
15845 2019-01-15 Tom de Vries <tdevries@suse.de>
15848 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
15849 lhs == NULL_TREE for gang-level reduction.
15851 2019-01-15 Richard Biener <rguenther@suse.de>
15852 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15855 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
15856 return true if SSA_NAME is already marked in visited bitmap.
15857 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
15859 2019-01-15 Jakub Jelinek <jakub@redhat.com>
15861 PR tree-optimization/88775
15862 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
15863 equal == 0 equality pointer comparisons some more if compared in
15864 integral types and either one points to an automatic var and the
15865 other to a global, or we can prove at least one points to the middle
15866 or both point to start or both point to end.
15868 2019-01-14 Andi Kleen <ak@linux.intel.com>
15870 * Makefile.in: Lower autofdo sampling rate by 10x.
15871 * Makefile.tpl: Dito.
15873 2019-01-14 Tom Honermann <tom@honermann.net>
15875 * defaults.h: Define CHAR8_TYPE.
15877 2019-01-14 Martin Sebor <msebor@redhat.com>
15880 * doc/extend.texi (Darwin Format Checks): Clarify.
15882 2019-01-14 Richard Biener <rguenther@suse.de>
15884 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
15885 whether we are in (simplify ...) or (match ...) context.
15887 2019-01-14 Jakub Jelinek <jakub@redhat.com>
15889 PR rtl-optimization/88796
15890 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
15891 * cfgexpand.c (stack_protect_prologue): Initialize
15892 crtl->stack_protect_guard_decl.
15893 * function.c (stack_protect_epilogue): Use it instead of calling
15894 targetm.stack_protect_guard again.
15895 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
15896 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
15897 crtl->stack_protect_guard_decl.
15898 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
15899 on the returned MEM_EXPR.
15901 2019-01-12 Tom de Vries <tdevries@suse.de>
15903 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
15904 vector length using -fopenacc-dim.
15906 2019-01-12 Tom de Vries <tdevries@suse.de>
15908 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
15909 lengths into account.
15911 2019-01-12 Svante Signell <svante.signell@gmail.com>
15913 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
15914 (TARGET_CAN_SPLIT_STACK): Define.
15915 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
15917 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
15919 * params.def (inline-unit-growth): Set to 40.
15921 2019-01-12 Jakub Jelinek <jakub@redhat.com>
15923 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
15925 2019-01-12 Tom de Vries <tdevries@suse.de>
15927 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
15928 region calling vector-partitionable routine, set default_vector_length
15931 2019-01-12 Tom de Vries <tdevries@suse.de>
15933 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
15934 variable default_vector_length.
15936 2019-01-12 Tom de Vries <tdevries@suse.de>
15938 PR middle-end/88703
15939 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
15940 from oacc_default_dims, as oacc_validate_dims would do it, and apply
15943 2019-01-12 Tom de Vries <tdevries@suse.de>
15945 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
15946 (nvptx_goacc_validate_dims): Add used parameter.
15947 * doc/tm.texi: Regenerate.
15948 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
15949 argument to call to targetm.goacc.validate_dims.
15950 (default_goacc_validate_dims): Add used
15952 * target.def (validate_dims): Add used parameter in DEFHOOK.
15953 * targhooks.h (default_goacc_validate_dims): Add used parameter.
15955 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15957 PR middle-end/85956
15959 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
15961 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
15962 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
15963 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
15964 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
15966 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
15968 PR rtl-optimization/87305
15970 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
15971 for little endian pseudos used as paradoxical subreg.
15973 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15975 PR tree-optimization/88693
15976 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
15977 for STRING_CSTs that don't contain any NUL characters in the first
15978 TREE_STRING_LENGTH bytes.
15980 2019-01-11 Alan Modra <amodra@gmail.com>
15984 * genattrtab.c (min_fn): Don't translate values.
15985 (min_attr_value): Return INT_MAX when the value can't be calculated.
15986 Return minimum among any values that can be calculated.
15987 (max_attr_value): Adjust.
15989 2019-01-11 Jakub Jelinek <jakub@redhat.com>
15991 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
15993 2019-01-11 Steve Ellcey <sellcey@marvell.com>
15995 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
15996 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
15997 (aarch64_return_call_with_max_clobbers): New function.
15998 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
15999 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
16001 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
16002 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
16003 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
16004 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
16005 * cselib.c (cselib_process_insn): Add argument to
16006 targetm.hard_regno_call_part_clobbered call.
16007 * ira-conflicts.c (ira_build_conflicts): Ditto.
16008 * ira-costs.c (ira_tune_allocno_costs): Ditto.
16009 * lra-constraints.c (inherit_reload_reg): Ditto.
16010 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
16011 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
16012 argument. Call targetm.return_call_with_max_clobbers.
16013 Add argument to targetm.hard_regno_call_part_clobbered call.
16014 (calls_have_same_clobbers_p): New function.
16015 (process_bb_lives): Add call_insn and last_call_insn variables.
16016 Pass call_insn to check_pseudos_live_through_calls.
16017 Modify if stmt to check targetm.return_call_with_max_clobbers.
16018 Update setting of flush variable.
16019 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
16021 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
16022 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
16023 targetm.hard_regno_call_part_clobbered call.
16024 * reginfo.c (choose_hard_reg_mode): Ditto.
16025 * regrename.c (check_new_reg_p): Ditto.
16026 * reload.c (find_equiv_reg): Ditto.
16027 * reload1.c (emit_reload_insns): Ditto.
16028 * sched-deps.c (deps_analyze_insn): Ditto.
16029 * sel-sched.c (init_regs_for_mode): Ditto.
16030 (mark_unavailable_hard_regs): Ditto.
16031 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
16032 * target.def (hard_regno_call_part_clobbered): Add insn argument.
16033 (return_call_with_max_clobbers): New target function.
16034 * doc/tm.texi: Regenerate.
16035 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
16036 * hooks.c (hook_bool_uint_mode_false): Change to
16037 hook_bool_insn_uint_mode_false.
16038 * hooks.h (hook_bool_uint_mode_false): Ditto.
16040 2019-01-11 Steve Ellcey <sellcey@marvell.com>
16042 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
16043 (aarch64_remove_extra_call_preserved_regs): New function.
16044 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
16045 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
16046 * doc/tm.texi: Regenerate.
16047 * final.c (get_call_reg_set_usage): Call new hook.
16048 * target.def (remove_extra_call_preserved_regs): New hook.
16049 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
16050 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
16052 2019-01-11 Jakub Jelinek <jakub@redhat.com>
16055 * passes.c (finish_optimization_passes): Call print_combine_total_stats
16056 inside of pass_combine_1 dump rather than pass_profile_1.
16058 2019-01-11 Tom de Vries <tdevries@suse.de>
16060 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
16061 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
16062 (PTX_NUM_PER_WORKER_BARRIERS): Define.
16063 (nvptx_apply_dim_limits): Prevent vector_length 64 and
16066 2019-01-11 Tom de Vries <tdevries@suse.de>
16068 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
16070 2019-01-11 Jan Beulich <jbeulich@suse.com>
16072 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
16073 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
16074 sse2_cvtsi2sd): Add {l}.
16075 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
16078 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16081 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
16083 (*float<floatunssuffix>v2div2sf2): New define_insn.
16084 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
16085 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
16086 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
16087 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
16088 match_operands with "const0_operand" "C".
16090 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16092 * config/aarch64/aarch64-builtins.c
16093 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
16094 (aarch64_init_simd_builtins): ...Here
16096 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
16098 PR rtl-optimization/87305
16100 (setup_live_pseudos_and_spill_after_risky_transforms): Check
16101 allocation for big endian pseudos used as paradoxical subregs and
16102 spill them if it is wrong.
16103 * lra-constraints.c (lra_constraints): Add a comment.
16105 2019-01-10 Richard Biener <rguenther@suse.de>
16107 PR tree-optimization/88792
16108 * tree-ssa-pre.c (get_representative_for): Do not return a
16111 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16113 PR middle-end/84877
16115 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
16116 (assign_parm_setup_block): Do the argument slot realignment here
16119 2019-01-10 Stefan Agner <stefan@agner.ch>
16122 * config/arm/arm.c (arm_option_override_internal): Force
16123 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
16125 2019-01-10 Jakub Jelinek <jakub@redhat.com>
16128 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
16131 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16133 * config/arm/arm-builtins.c
16134 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
16135 (MAC_LANE_PAIR_QUALIFIERS): New.
16136 (arm_expand_builtin_args): Use it.
16137 (arm_expand_builtin_1): Likewise.
16138 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
16139 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
16140 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
16141 * config/arm/arm_neon.h:
16142 (vcadd_rot90_f16): New.
16143 (vcaddq_rot90_f16): New.
16144 (vcadd_rot270_f16): New.
16145 (vcaddq_rot270_f16): New.
16148 (vcmla_lane_f16): New.
16149 (vcmla_laneq_f16): New.
16150 (vcmlaq_lane_f16): New.
16151 (vcmlaq_laneq_f16): New.
16152 (vcmla_rot90_f16): New.
16153 (vcmlaq_rot90_f16): New.
16154 (vcmla_rot90_lane_f16): New.
16155 (vcmla_rot90_laneq_f16): New.
16156 (vcmlaq_rot90_lane_f16): New.
16157 (vcmlaq_rot90_laneq_f16): New.
16158 (vcmla_rot180_f16): New.
16159 (vcmlaq_rot180_f16): New.
16160 (vcmla_rot180_lane_f16): New.
16161 (vcmla_rot180_laneq_f16): New.
16162 (vcmlaq_rot180_lane_f16): New.
16163 (vcmlaq_rot180_laneq_f16): New.
16164 (vcmla_rot270_f16): New.
16165 (vcmlaq_rot270_f16): New.
16166 (vcmla_rot270_lane_f16): New.
16167 (vcmla_rot270_laneq_f16): New.
16168 (vcmlaq_rot270_lane_f16): New.
16169 (vcmlaq_rot270_laneq_f16): New.
16170 (vcadd_rot90_f32): New.
16171 (vcaddq_rot90_f32): New.
16172 (vcadd_rot270_f32): New.
16173 (vcaddq_rot270_f32): New.
16176 (vcmla_lane_f32): New.
16177 (vcmla_laneq_f32): New.
16178 (vcmlaq_lane_f32): New.
16179 (vcmlaq_laneq_f32): New.
16180 (vcmla_rot90_f32): New.
16181 (vcmlaq_rot90_f32): New.
16182 (vcmla_rot90_lane_f32): New.
16183 (vcmla_rot90_laneq_f32): New.
16184 (vcmlaq_rot90_lane_f32): New.
16185 (vcmlaq_rot90_laneq_f32): New.
16186 (vcmla_rot180_f32): New.
16187 (vcmlaq_rot180_f32): New.
16188 (vcmla_rot180_lane_f32): New.
16189 (vcmla_rot180_laneq_f32): New.
16190 (vcmlaq_rot180_lane_f32): New.
16191 (vcmlaq_rot180_laneq_f32): New.
16192 (vcmla_rot270_f32): New.
16193 (vcmlaq_rot270_f32): New.
16194 (vcmla_rot270_lane_f32): New.
16195 (vcmla_rot270_laneq_f32): New.
16196 (vcmlaq_rot270_lane_f32): New.
16197 (vcmlaq_rot270_laneq_f32): New.
16198 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
16199 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
16200 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
16201 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
16202 vcmlaq_lane270): New.
16203 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
16204 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
16205 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
16206 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
16207 (arm_option_reconfigure_globals): Use them.
16208 * config/arm/iterators.md (VDF, VQ_HSF): New.
16209 (VCADD, VCMLA): New.
16210 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
16211 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
16213 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
16214 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
16216 2019-01-10 Tamar Christina <tamar.christina@arm.com>
16218 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16219 Add qualifier_lane_pair_index.
16220 (emit-rtl.h): Include.
16221 (TYPES_QUADOP_LANE_PAIR): New.
16222 (aarch64_simd_expand_args): Use it.
16223 (aarch64_simd_expand_builtin): Likewise.
16224 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
16226 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
16227 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
16228 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
16229 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
16230 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
16231 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
16232 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
16233 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
16234 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
16235 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
16236 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
16237 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
16238 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
16239 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
16240 Add __ARM_FEATURE_COMPLEX.
16241 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
16242 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
16243 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
16244 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
16245 fcmlaq_lane270): New.
16246 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
16247 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
16248 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
16249 * config/aarch64/arm_neon.h:
16250 (vcadd_rot90_f16): New.
16251 (vcaddq_rot90_f16): New.
16252 (vcadd_rot270_f16): New.
16253 (vcaddq_rot270_f16): New.
16256 (vcmla_lane_f16): New.
16257 (vcmla_laneq_f16): New.
16258 (vcmlaq_lane_f16): New.
16259 (vcmlaq_rot90_lane_f16): New.
16260 (vcmla_rot90_laneq_f16): New.
16261 (vcmla_rot90_lane_f16): New.
16262 (vcmlaq_rot90_f16): New.
16263 (vcmla_rot90_f16): New.
16264 (vcmlaq_laneq_f16): New.
16265 (vcmla_rot180_laneq_f16): New.
16266 (vcmla_rot180_lane_f16): New.
16267 (vcmlaq_rot180_f16): New.
16268 (vcmla_rot180_f16): New.
16269 (vcmlaq_rot90_laneq_f16): New.
16270 (vcmlaq_rot270_laneq_f16): New.
16271 (vcmlaq_rot270_lane_f16): New.
16272 (vcmla_rot270_laneq_f16): New.
16273 (vcmlaq_rot270_f16): New.
16274 (vcmla_rot270_f16): New.
16275 (vcmlaq_rot180_laneq_f16): New.
16276 (vcmlaq_rot180_lane_f16): New.
16277 (vcmla_rot270_lane_f16): New.
16278 (vcadd_rot90_f32): New.
16279 (vcaddq_rot90_f32): New.
16280 (vcaddq_rot90_f64): New.
16281 (vcadd_rot270_f32): New.
16282 (vcaddq_rot270_f32): New.
16283 (vcaddq_rot270_f64): New.
16287 (vcmla_lane_f32): New.
16288 (vcmla_laneq_f32): New.
16289 (vcmlaq_lane_f32): New.
16290 (vcmlaq_laneq_f32): New.
16291 (vcmla_rot90_f32): New.
16292 (vcmlaq_rot90_f32): New.
16293 (vcmlaq_rot90_f64): New.
16294 (vcmla_rot90_lane_f32): New.
16295 (vcmla_rot90_laneq_f32): New.
16296 (vcmlaq_rot90_lane_f32): New.
16297 (vcmlaq_rot90_laneq_f32): New.
16298 (vcmla_rot180_f32): New.
16299 (vcmlaq_rot180_f32): New.
16300 (vcmlaq_rot180_f64): New.
16301 (vcmla_rot180_lane_f32): New.
16302 (vcmla_rot180_laneq_f32): New.
16303 (vcmlaq_rot180_lane_f32): New.
16304 (vcmlaq_rot180_laneq_f32): New.
16305 (vcmla_rot270_f32): New.
16306 (vcmlaq_rot270_f32): New.
16307 (vcmlaq_rot270_f64): New.
16308 (vcmla_rot270_lane_f32): New.
16309 (vcmla_rot270_laneq_f32): New.
16310 (vcmlaq_rot270_lane_f32): New.
16311 (vcmlaq_rot270_laneq_f32): New.
16312 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
16313 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
16314 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
16315 (FCADD, FCMLA): New.
16317 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
16319 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16323 * config/pa/pa.c: Change "can not" to "cannot".
16324 * gimple-ssa-evrp-analyze.c: Likewise.
16325 * ipa-icf.c: Likewise.
16326 * ipa-polymorphic-call.c: Likewise.
16327 * ipa-pure-const.c: Likewise.
16328 * lra-constraints.c: Likewise.
16329 * lra-remat.c: Likewise.
16330 * reload1.c: Likewise.
16331 * reorg.c: Likewise.
16332 * tree-ssa-uninit.c: Likewise.
16334 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
16338 * Makefile.in: Mechanically replace "can not" with "cannot".
16339 * alias.c: Likewise.
16340 * builtins.c: Likewise.
16341 * calls.c: Likewise.
16342 * cgraph.c: Likewise.
16343 * cgraph.h: Likewise.
16344 * cgraphclones.c: Likewise.
16345 * cgraphunit.c: Likewise.
16346 * combine-stack-adj.c: Likewise.
16347 * combine.c: Likewise.
16348 * common/config/i386/i386-common.c: Likewise.
16349 * config/aarch64/aarch64.c: Likewise.
16350 * config/alpha/sync.md: Likewise.
16351 * config/arc/arc.c: Likewise.
16352 * config/arc/predicates.md: Likewise.
16353 * config/arm/arm-c.c: Likewise.
16354 * config/arm/arm.c: Likewise.
16355 * config/arm/arm.h: Likewise.
16356 * config/arm/arm.md: Likewise.
16357 * config/arm/cortex-r4f.md: Likewise.
16358 * config/csky/csky.c: Likewise.
16359 * config/csky/csky.h: Likewise.
16360 * config/darwin-f.c: Likewise.
16361 * config/epiphany/epiphany.md: Likewise.
16362 * config/i386/i386.c: Likewise.
16363 * config/i386/sol2.h: Likewise.
16364 * config/m68k/m68k.c: Likewise.
16365 * config/mcore/mcore.h: Likewise.
16366 * config/microblaze/microblaze.md: Likewise.
16367 * config/mips/20kc.md: Likewise.
16368 * config/mips/sb1.md: Likewise.
16369 * config/nds32/nds32.c: Likewise.
16370 * config/nds32/predicates.md: Likewise.
16371 * config/pa/pa.c: Likewise.
16372 * config/rs6000/e300c2c3.md: Likewise.
16373 * config/rs6000/rs6000.c: Likewise.
16374 * config/s390/s390.h: Likewise.
16375 * config/sh/sh.c: Likewise.
16376 * config/sh/sh.md: Likewise.
16377 * config/spu/vmx2spu.h: Likewise.
16378 * cprop.c: Likewise.
16379 * dbxout.c: Likewise.
16380 * df-scan.c: Likewise.
16381 * doc/cfg.texi: Likewise.
16382 * doc/extend.texi: Likewise.
16383 * doc/fragments.texi: Likewise.
16384 * doc/gty.texi: Likewise.
16385 * doc/invoke.texi: Likewise.
16386 * doc/lto.texi: Likewise.
16387 * doc/md.texi: Likewise.
16388 * doc/objc.texi: Likewise.
16389 * doc/rtl.texi: Likewise.
16390 * doc/tm.texi: Likewise.
16392 * emit-rtl.c: Likewise.
16393 * emit-rtl.h: Likewise.
16394 * except.c: Likewise.
16395 * expmed.c: Likewise.
16396 * expr.c: Likewise.
16397 * fold-const.c: Likewise.
16398 * genautomata.c: Likewise.
16399 * gimple-fold.c: Likewise.
16400 * hard-reg-set.h: Likewise.
16401 * ifcvt.c: Likewise.
16402 * ipa-comdats.c: Likewise.
16403 * ipa-cp.c: Likewise.
16404 * ipa-devirt.c: Likewise.
16405 * ipa-fnsummary.c: Likewise.
16406 * ipa-icf.c: Likewise.
16407 * ipa-inline-transform.c: Likewise.
16408 * ipa-inline.c: Likewise.
16409 * ipa-polymorphic-call.c: Likewise.
16410 * ipa-profile.c: Likewise.
16411 * ipa-prop.c: Likewise.
16412 * ipa-pure-const.c: Likewise.
16413 * ipa-reference.c: Likewise.
16414 * ipa-split.c: Likewise.
16415 * ipa-visibility.c: Likewise.
16417 * ira-build.c: Likewise.
16418 * ira-color.c: Likewise.
16419 * ira-conflicts.c: Likewise.
16420 * ira-costs.c: Likewise.
16421 * ira-int.h: Likewise.
16422 * ira-lives.c: Likewise.
16425 * loop-invariant.c: Likewise.
16426 * loop-unroll.c: Likewise.
16427 * lower-subreg.c: Likewise.
16428 * lra-assigns.c: Likewise.
16429 * lra-constraints.c: Likewise.
16430 * lra-eliminations.c: Likewise.
16431 * lra-lives.c: Likewise.
16432 * lra-remat.c: Likewise.
16433 * lra-spills.c: Likewise.
16435 * lto-cgraph.c: Likewise.
16436 * lto-streamer-out.c: Likewise.
16437 * postreload-gcse.c: Likewise.
16438 * predict.c: Likewise.
16439 * profile-count.h: Likewise.
16440 * profile.c: Likewise.
16441 * recog.c: Likewise.
16443 * reload.c: Likewise.
16444 * reload1.c: Likewise.
16445 * reorg.c: Likewise.
16446 * resource.c: Likewise.
16447 * rtl.def: Likewise.
16449 * rtlanal.c: Likewise.
16450 * sched-deps.c: Likewise.
16451 * sched-ebb.c: Likewise.
16452 * sched-rgn.c: Likewise.
16453 * sel-sched-ir.c: Likewise.
16454 * sel-sched.c: Likewise.
16455 * shrink-wrap.c: Likewise.
16456 * simplify-rtx.c: Likewise.
16457 * symtab.c: Likewise.
16458 * target.def: Likewise.
16459 * toplev.c: Likewise.
16460 * tree-call-cdce.c: Likewise.
16461 * tree-cfg.c: Likewise.
16462 * tree-complex.c: Likewise.
16463 * tree-core.h: Likewise.
16464 * tree-eh.c: Likewise.
16465 * tree-inline.c: Likewise.
16466 * tree-loop-distribution.c: Likewise.
16467 * tree-nrv.c: Likewise.
16468 * tree-profile.c: Likewise.
16469 * tree-sra.c: Likewise.
16470 * tree-ssa-alias.c: Likewise.
16471 * tree-ssa-dce.c: Likewise.
16472 * tree-ssa-dom.c: Likewise.
16473 * tree-ssa-forwprop.c: Likewise.
16474 * tree-ssa-loop-im.c: Likewise.
16475 * tree-ssa-loop-ivcanon.c: Likewise.
16476 * tree-ssa-loop-ivopts.c: Likewise.
16477 * tree-ssa-loop-niter.c: Likewise.
16478 * tree-ssa-phionlycprop.c: Likewise.
16479 * tree-ssa-phiopt.c: Likewise.
16480 * tree-ssa-propagate.c: Likewise.
16481 * tree-ssa-threadedge.c: Likewise.
16482 * tree-ssa-threadupdate.c: Likewise.
16483 * tree-ssa-uninit.c: Likewise.
16484 * tree-ssanames.c: Likewise.
16485 * tree-streamer-out.c: Likewise.
16486 * tree.c: Likewise.
16487 * tree.h: Likewise.
16488 * vr-values.c: Likewise.
16490 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
16492 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
16493 (ix86_split_xorsign): Ditto.
16494 * config/i386/i386.c (ix86_expand_xorsign): New function.
16495 (ix86_split_xorsign): Ditto.
16496 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
16497 (xorsign<mode>3): New expander.
16498 (xorsign<mode>3_1): New insn_and_split pattern.
16499 * config/i386/sse.md (xorsign<mode>3): New expander.
16501 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16503 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
16504 (*tablejump_sp64): Likewise.
16505 (*tablejump<P:mode>): ...this.
16506 (*call_address_sp32): Merge into...
16507 (*call_address_sp64): Likewise.
16508 (*call_address<P:mode>): ...this.
16509 (*call_symbolic_sp32): Merge into...
16510 (*call_symbolic_sp64): Likewise.
16511 (*call_symbolic<P:mode>): ...this.
16512 (call_value): Remove constraint and add predicate.
16513 (*call_value_address_sp32): Merge into...
16514 (*call_value_address_sp64): Likewise.
16515 (*call_value_address<P:mode>): ...this.
16516 (*call_value_symbolic_sp32): Merge into...
16517 (*call_value_symbolic_sp64): Likewise.
16518 (*call_value_symbolic<P:mode>): ...this.
16519 (*sibcall_symbolic_sp32): Merge into...
16520 (*sibcall_symbolic_sp64): Likewise.
16521 (*sibcall_symbolic<P:mode>): ...this.
16522 (sibcall_value): Remove constraint and add predicate.
16523 (*sibcall_value_symbolic_sp32): Merge into...
16524 (*sibcall_value_symbolic_sp64): Likewise.
16525 (*sibcall_value_symbolic<P:mode>): ...this.
16526 (window_save): Minor tweak.
16527 (*branch_sp32): Merge into...
16528 (*branch_sp64): Likewise.
16529 (*branch<P:mode>): ...this.
16531 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16532 James Clarke <jrtc27@jrtc27.com>
16535 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
16536 consistently in TLS address generation and adjust code to the renaming
16537 of patterns. Mark calls to __tls_get_addr as const.
16538 * config/sparc/sparc.md (tgd_hi22): Turn into...
16539 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
16540 (tgd_lo10): Turn into...
16541 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
16542 (tgd_add32): Merge into...
16543 (tgd_add64): Likewise.
16544 (tgd_add<P:mode>): ...this and use Pmode throughout.
16545 (tldm_hi22): Turn into...
16546 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
16547 (tldm_lo10): Turn into...
16548 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
16549 (tldm_add32): Merge into...
16550 (tldm_add64): Likewise.
16551 (tldm_add<P:mode>): ...this and use Pmode throughout.
16552 (tldm_call32): Merge into...
16553 (tldm_call64): Likewise.
16554 (tldm_call<P:mode>): ...this and use Pmode throughout.
16555 (tldo_hix22): Turn into...
16556 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
16557 (tldo_lox10): Turn into...
16558 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
16559 (tldo_add32): Merge into...
16560 (tldo_add64): Likewise.
16561 (tldo_add<P:mode>): ...this and use Pmode throughout.
16562 (tie_hi22): Turn into...
16563 (tie_hi22<P:mode>): ...this and use Pmode throughout.
16564 (tie_lo10): Turn into...
16565 (tie_lo10<P:mode>): ...this and use Pmode throughout.
16566 (tie_ld64): Use DImode throughout.
16567 (tie_add32): Merge into...
16568 (tie_add64): Likewise.
16569 (tie_add<P:mode>): ...this and use Pmode throughout.
16570 (tle_hix22_sp32): Merge into...
16571 (tle_hix22_sp64): Likewise.
16572 (tle_hix22<P:mode>): ...this and use Pmode throughout.
16573 (tle_lox22_sp32): Merge into...
16574 (tle_lox22_sp64): Likewise.
16575 (tle_lox22<P:mode>): ...this and use Pmode throughout.
16576 (*tldo_ldub_sp32): Merge into...
16577 (*tldo_ldub_sp64): Likewise.
16578 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
16579 (*tldo_ldub1_sp32): Merge into...
16580 (*tldo_ldub1_sp64): Likewise.
16581 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
16582 (*tldo_ldub2_sp32): Merge into...
16583 (*tldo_ldub2_sp64): Likewise.
16584 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
16585 (*tldo_ldsb1_sp32): Merge into...
16586 (*tldo_ldsb1_sp64): Likewise.
16587 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
16588 (*tldo_ldsb2_sp32): Merge into...
16589 (*tldo_ldsb2_sp64): Likewise.
16590 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
16591 (*tldo_ldub3_sp64): Use DImode throughout.
16592 (*tldo_ldsb3_sp64): Likewise.
16593 (*tldo_lduh_sp32): Merge into...
16594 (*tldo_lduh_sp64): Likewise.
16595 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
16596 (*tldo_lduh1_sp32): Merge into...
16597 (*tldo_lduh1_sp64): Likewise.
16598 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
16599 (*tldo_ldsh1_sp32): Merge into...
16600 (*tldo_ldsh1_sp64): Likewise.
16601 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
16602 (*tldo_lduh2_sp64): Use DImode throughout.
16603 (*tldo_ldsh2_sp64): Likewise.
16604 (*tldo_lduw_sp32): Merge into...
16605 (*tldo_lduw_sp64): Likewise.
16606 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
16607 (*tldo_lduw1_sp64): Use DImode throughout.
16608 (*tldo_ldsw1_sp64): Likewise.
16609 (*tldo_ldx_sp64): Likewise.
16610 (*tldo_stb_sp32): Merge into...
16611 (*tldo_stb_sp64): Likewise.
16612 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
16613 (*tldo_sth_sp32): Merge into...
16614 (*tldo_sth_sp64): Likewise.
16615 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
16616 (*tldo_stw_sp32): Merge into...
16617 (*tldo_stw_sp64): Likewise.
16618 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
16619 (*tldo_stx_sp64): Use DImode throughout.
16621 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16623 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
16624 check configure option to set BTI and Return Address Signing.
16625 * configure.ac: Add --enable-standard-branch-protection and
16626 --disable-standard-branch-protection.
16627 * configure: Regenerated.
16628 * doc/install.texi: Document the same.
16630 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16631 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16633 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
16634 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
16635 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
16637 * config/aarch64/aarch64-bti-insert.c: New file.
16638 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
16640 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
16642 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
16643 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
16644 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
16645 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
16647 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16649 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
16650 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
16651 Disable bti for -mbranch-protection=none.
16652 (aarch64_handle_standard_branch_protection): Enable bti for
16653 -mbranch-protection=standard.
16654 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
16655 -mbranch-protection.
16656 (aarch64_bti_enabled): Check if bti is enabled.
16657 * config/aarch64/aarch64.opt: Declare target variable.
16658 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
16660 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16662 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
16663 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
16664 (aarch64_expand_epilogue): Likewise.
16665 (aarch64_output_mi_thunk): Likewise
16666 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
16667 TAILCALL_ADDR_REGS to x16 and x17.
16668 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
16670 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16672 * config/aarch64/aarch64-option-extensions.def: Define
16673 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
16674 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
16675 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
16676 (AARCH64_FL_PREDRES): New.
16677 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
16678 AARCH64_FL_PREDRES by default.
16679 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
16681 2018-01-09 Sudakshina Das <sudi.das@arm.com>
16683 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
16685 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
16686 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
16687 * doc/invoke.texi: Document ARMv8.5-A.
16689 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16691 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
16692 (xorsign<mode>3): Likewise.
16694 2019-01-09 Jelinek <jakub@redhat.com>
16696 PR middle-end/88758
16697 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
16698 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
16700 PR rtl-optimization/88331
16701 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
16702 not currently_expanding_to_rtl.
16704 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
16706 * doc/invoke.texi (-Os): Remove trailing spaces.
16707 (-finline-functions): Remove reference to -O2.
16709 2019-01-08 Jakub Jelinek <jakub@redhat.com>
16711 PR rtl-optimization/79593
16712 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
16714 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
16715 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
16717 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
16720 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
16724 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
16725 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
16727 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
16730 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
16731 ix86_avx_u128_mode_entry.
16733 2019-01-08 Martin Liska <mliska@suse.cz>
16735 PR tree-optimization/88753
16736 * tree-switch-conversion.c (switch_conversion::build_one_array):
16737 Come up with local variable constructor. Convert first to
16738 type of constructor values.
16740 2019-01-08 Richard Biener <rguenther@suse.de>
16742 PR tree-optimization/86554
16743 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
16744 rpo_avail): Move earlier.
16745 (visit_nary_op): When value-numbering to expressions
16746 with different overflow behavior make sure there's an
16747 available expression on the path.
16749 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
16751 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
16752 aarch64_parse_branch_protection,
16753 struct aarch64_branch_protect_type,
16754 aarch64_handle_no_branch_protection,
16755 aarch64_handle_standard_branch_protection,
16756 aarch64_validate_mbranch_protection,
16757 aarch64_handle_pac_ret_protection,
16758 aarch64_handle_attr_branch_protection,
16759 accepted_branch_protection_string,
16760 aarch64_pac_ret_subtypes,
16761 aarch64_branch_protect_types,
16762 aarch64_handle_pac_ret_leaf): Define.
16763 (aarch64_override_options_after_change_1, aarch64_override_options):
16764 Add check for accepted_branch_protection_string.
16765 (aarch64_option_save): Save accepted_branch_protection_string.
16766 (aarch64_option_restore): Save accepted_branch_protection_string.
16767 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
16768 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
16769 msign-return-address.
16770 * doc/invoke.texi: Add mbranch-protection.
16772 2019-01-08 Alan Modra <amodra@gmail.com>
16775 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
16776 Delete "unknownp" parameter. Adjust callers. Handle
16777 CONST_INT, PLUS, MINUS, and MULT.
16778 (attr_value_aligned): Renamed from or_attr_value.
16779 (min_attr_value): Return INT_MIN for unhandled rtl case..
16780 (min_fn): ..and translate to INT_MAX here.
16781 (write_length_unit_log): Modify to cope without "unknown".
16782 (write_attr_value): Handle IF_THEN_ELSE.
16784 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16786 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
16787 optimization for masked stores.
16789 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16791 PR middle-end/88567
16792 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
16793 output vector directly to duplicate_and_interleave instead of
16794 going through a temporary. Postpone insertion of ctor_seq to
16795 the end of the loop.
16797 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
16800 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
16801 unsigned_p. Handle signed and unsigned overflow correction as
16803 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
16805 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
16807 (add<mode>3_compareV_imm): Make this callable for expanding.
16808 (subv<GPI:mode>4): Use register_operand for operand 1. Use
16809 aarch64_plus_operand for operand 2.
16810 (subv<GPI:mode>_insn): New insn pattern.
16811 (subv<GPI:mode>_imm): Likewise.
16812 (negv<GPI:mode>3): New expand pattern.
16813 (negv<GPI:mode>_insn): New insn pattern.
16814 (negv<GPI:mode>_cmp_only): Likewise.
16815 (cmpv<GPI:mode>_insn): Likewise.
16816 (subvti4): Use register_operand for operand 1. Update call to
16817 aarch64_expand_subvti.
16818 (usubvti4): Likewise.
16819 (negvti3): New expand pattern.
16820 (negdi_carryout): New insn pattern.
16821 (negvdi_carryinV): New insn pattern.
16822 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
16823 version the named version.
16824 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
16826 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
16828 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
16830 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
16831 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
16832 (sub<mode>3_carryinCV): Delete.
16833 (sub<GPI:mode>3_carryinV): New expand pattern.
16834 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
16836 2019-01-07 Richard Biener <rguenther@suse.de>
16838 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
16839 of tree_operand_hash.
16841 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16843 PR tree-optimization/88598
16844 * tree.h (single_nonzero_element): Declare.
16845 * tree.c (single_nonzero_element): New function.
16846 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
16847 if I is the only nonzero element of CST.
16849 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
16851 PR tree-optimization/88598
16852 * tree.h (initializer_each_zero_or_onep): Declare.
16853 * tree.c (initializer_each_zero_or_onep): New function.
16854 (signed_or_unsigned_type_for): Handle float types too.
16855 (unsigned_type_for, signed_type_for): Update comments accordingly.
16856 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
16857 x & { 0 or -1, 0 or -1, ... }.
16859 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
16861 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
16862 with x86_64-pc-linux-gnu.
16864 2019-01-07 Tom de Vries <tdevries@suse.de>
16867 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
16869 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
16872 2019-01-07 Jakub Jelinek <jakub@redhat.com>
16874 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
16875 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
16876 TARGET_AVX512F as condition.
16879 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
16880 const_not_ok_for_debug_p target hook.
16881 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
16882 on UNSPEC and subexpressions thereof if all subexpressions of the
16883 UNSPEC are CONSTANT_P.
16885 PR tree-optimization/88676
16886 * tree-ssa-phiopt.c (two_value_replacement): New function.
16887 (tree_ssa_phiopt_worker): Call it.
16890 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
16891 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
16894 * tree-vect-generic.c: Include insn-config.h and recog.h.
16895 (expand_vector_piecewise): Add defaulted ret_type argument,
16896 if non-NULL, use that in preference to type for the result type.
16897 (expand_vector_parallel): Formatting fix.
16898 (do_vec_conversion, do_vec_narrowing_conversion,
16899 expand_vector_conversion): New functions.
16900 (expand_vector_operations_1): Call expand_vector_conversion
16901 for VEC_CONVERT ifn calls.
16902 * internal-fn.def (VEC_CONVERT): New internal function.
16903 * internal-fn.c (expand_VEC_CONVERT): New function.
16904 * fold-const-call.c (fold_const_vec_convert): New function.
16905 (fold_const_call): Use it for CFN_VEC_CONVERT.
16906 * doc/extend.texi (__builtin_convertvector): Document.
16908 2019-01-07 Tom de Vries <tdevries@suse.de>
16910 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
16911 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
16912 vector_red_partition, vector_red_sym): New global variables.
16913 (nvptx_option_override): Initialize vector_red_sym.
16914 (nvptx_declare_function_name): Restore red_partition register.
16915 (nvptx_file_end): Emit code to declare the vector reduction variables.
16916 (nvptx_output_red_partition): New function.
16917 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
16918 large vector reductions.
16919 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
16920 (nvptx_init_builtins): Add VECTOR_ADDR.
16921 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
16922 Handle nvptx_expand_shared_addr.
16923 (nvptx_get_shared_red_addr): Add vector argument and handle large
16925 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
16927 (nvptx_goacc_reduction_init): Likewise.
16928 (nvptx_goacc_reduction_fini): Likewise.
16929 (nvptx_goacc_reduction_teardown): Likewise.
16930 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
16931 init,fini,teardown}.
16932 (nvptx_init_axis_predicate): Initialize vector_red_partition.
16933 (nvptx_set_current_function): Init vector_red_partition.
16934 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
16935 (nvptx_red_partition): New insn.
16936 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
16938 2019-01-07 Tom de Vries <tdevries@suse.de>
16941 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
16944 2019-01-07 Tom de Vries <tdevries@suse.de>
16946 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
16947 (nvptx_option_override): Init oacc_bcast_partition.
16948 (nvptx_init_oacc_workers): New function.
16949 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
16950 (nvptx_needs_shared_bcast): New function.
16951 (nvptx_find_par): Generalize to enable vectors to use shared-memory
16952 to propagate state.
16953 (nvptx_shared_propagate): Initialize vector bcast partition and
16954 synchronization state.
16955 (nvptx_single): Generalize to enable vectors to use shared-memory
16956 to propagate state.
16957 (nvptx_process_pars): Likewise.
16958 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
16959 * config/nvptx/nvptx.h (struct machine_function): Add
16960 bcast_partition and sync_bar members.
16962 2019-01-07 Tom de Vries <tdevries@suse.de>
16964 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
16965 (nvptx_apply_dim_limits): New function.
16966 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
16969 2019-01-07 Tom de Vries <tdevries@suse.de>
16971 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
16972 as late as possible.
16974 2019-01-07 Tom de Vries <tdevries@suse.de>
16976 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
16977 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
16978 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
16979 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
16980 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
16982 2019-01-07 Tom de Vries <tdevries@suse.de>
16984 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
16986 2019-01-07 Tom de Vries <tdevries@suse.de>
16988 * omp-offload.c (oacc_get_min_dim): New function.
16989 * omp-offload.h (oacc_get_min_dim): Declare.
16991 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
16994 * config/i386/i386.c (function_value_ms_64): Return small sturct in
16995 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
16997 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17001 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
17003 * ipa-inline.c (edge_badness): Use inlined_time instead of
17004 inline_summaries->get.
17006 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17008 * opts.c (enable_fdo_optimizations): Enable
17009 version-loops-for-strides, loop-interchange, unrol-and-jam
17010 and tree-loop-distribution.
17011 * invoke.texi: Document newly enabled options.
17013 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17015 * doc/invoke.texi (max-inline-insns-small): New parameters.
17016 * ipa-inline.c (want_early_inline_function_p): simplify.
17017 (want_inline_small_function_p): Fix pasto from previous patch;
17018 use max-inline-insns-small bound.
17019 * params.def (max-inline-insns-small): New param.
17020 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
17021 variables correctly.
17023 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17025 * doc/invoke.texi: Document max-inline-insns-size,
17026 uninlined-function-insns, uninlined-function-time,
17027 uninlined-thunk-insns and uninlined-thunk-time.
17028 * params.def: Add max-inline-insns-size,
17029 uninlined-function-insns, uninlined-function-time,
17030 uninlined-thunk-insns and uninlined-thunk-time.
17031 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
17033 * ipa-inline.c (can_inline_edge_by_limits_p,
17034 want_inline_small_function_p): Use new parameters.
17036 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
17038 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
17040 2019-01-05 Jakub Jelinek <jakub@redhat.com>
17042 PR middle-end/82564
17044 * expr.c (expand_assignment): For calls returning VLA structures
17045 if to_rtx is not a MEM, force it into a stack temporary.
17048 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
17049 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
17050 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
17051 subexpressions of both operands.
17052 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
17053 subrtxes are CONSTANT_P.
17054 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
17055 2018-11-09 changes.
17057 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
17059 * params.def (hot-bb-count-ws-permille): Set to 990.
17061 2019-01-04 Martin Sebor <msebor@redhat.com>
17064 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
17067 2019-01-04 Martin Sebor <msebor@redhat.com>
17070 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
17072 2019-01-04 Jakub Jelinek <jakub@redhat.com>
17074 * gdbinit.in: Turn off pagination for the skip commands, restore
17075 it to previous state afterwards.
17077 2019-01-04 Jakub Jelinek <jakub@redhat.com>
17080 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
17081 of GET_MODE (opN) as modes of the libcall arguments.
17083 2019-01-04 Jan Beulich <jbeulich@suse.com>
17085 * config/i386/sse.md
17086 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
17087 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
17088 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17089 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
17090 avx512f_vmcmp<mode>3<round_saeonly_name>,
17091 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
17092 avx512f_maskcmp<mode>3,
17093 <avx512>_cvt<ssemodesuffix>2mask<mode>,
17094 <avx512>_cvt<ssemodesuffix>2mask<mode>,
17095 *<avx512>_cvtmask2<ssemodesuffix><mode>,
17096 *<avx512>_cvtmask2<ssemodesuffix><mode>,
17097 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17098 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
17099 <avx512>_gt<mode>3<mask_scalar_merge_name>,
17100 <avx512>_gt<mode>3<mask_scalar_merge_name>,
17101 <avx512>_testm<mode>3<mask_scalar_merge_name>,
17102 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
17103 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
17104 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
17105 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
17106 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
17107 avx512cd_maskb_vec_dup<mode>,
17108 avx512cd_maskw_vec_dup<mode>,
17109 avx512dq_fpclass<mode><mask_scalar_merge_name>,
17110 avx512dq_vmfpclass<mode>,
17111 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
17114 2019-01-03 Martin Sebor <msebor@redhat.com>
17116 PR tree-optimization/88659
17117 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
17119 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
17121 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
17122 unaligned vsx and avoid lxvd2x/stxvd2x.
17123 (gen_lvx_v4si_move): New function.
17125 2019-01-03 Tom de Vries <tdevries@suse.de>
17127 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
17128 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
17130 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
17132 2019-01-03 Tom de Vries <tdevries@suse.de>
17134 * config/nvptx/nvptx.c (struct offload_attrs): New.
17135 (populate_offload_attrs): New function. Factor mask extraction out of
17136 nvptx_reorg. Add extraction of dimensions.
17137 (nvptx_reorg): Use populate_offload_attrs.
17139 2019-01-03 Tom de Vries <tdevries@suse.de>
17141 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
17142 cases for oacc_min_dims_p and routine_p. Add asserts for
17143 oacc_default_dims_p and offload_region_p.
17145 2019-01-03 Tom de Vries <tdevries@suse.de>
17147 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
17148 factored out of ...
17149 (nvptx_goacc_validate_dims): ... here.
17151 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
17153 PR tree-optimization/85574
17154 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
17156 (struct ssa_equip_hash_traits): Declare.
17157 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
17159 2019-01-03 Jakub Jelinek <jakub@redhat.com>
17162 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
17163 change it to qualified_type.
17165 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
17167 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
17168 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
17170 2019-01-02 Martin Sebor <msebor@redhat.com>
17171 Jeff Law <law@redhat.com>
17173 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
17174 (get_range_strlen_tree): Update appropriately.
17176 * gimple-fold.h (get_range_strlen): Drop unused last argument.
17178 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
17179 rather than set_range_info.
17180 * tree-ssa-strlen.c (set_strlen_range): Extracted from
17181 maybe_set_strlen_range. Handle potentially boundary crossing
17182 cases more conservatively.
17183 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
17184 Call set_strlen_range.
17185 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
17187 PR middle-end/88663
17188 * gimple-fold.c (get_range_strlen): Update prototype to no longer
17189 need the flexp argument.
17190 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
17191 from calls to get_range_strlen. Update comments. Just update
17192 VAL for an unterminated const char array and let the reset of the
17193 code handle it normally. No longer try to set *flexp. Adjust
17195 (get_range_strlen): Update for the new get_range_strlen API.
17196 (get_maxval_strlen): Similarly.
17197 (gimple_fold_builtin_strlen): Handle update meaning of return value
17198 from get_range_strlen.
17199 * gimple-ssa-sprintf.c (get_string_length): Update for the new
17200 get_range_strlen API.
17202 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
17205 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
17206 false at WPA time when body was removed.
17208 2019-01-02 Martin Liska <mliska@suse.cz>
17210 PR tree-optimization/88650
17211 * predict.c (set_even_probabilities): Calculate probability
17212 remainer only when really used.
17214 2019-01-02 Richard Biener <rguenther@suse.de>
17216 PR middle-end/88651
17217 * tree-data-ref.c (analyze_subscript_affine_affine): Use
17218 widest_ints when mangling max_stmt_execution results.
17220 2019-01-02 Richard Biener <rguenther@suse.de>
17222 PR tree-optimization/88621
17223 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
17224 bitfields when canoncalizing.
17226 2019-01-02 Richard Biener <rguenther@suse.de>
17229 * config/i386/x86-tune-costs.h (intel_cost): Adjust
17230 cost of cheap SSE instruction.
17232 2019-01-02 Richard Biener <rguenther@suse.de>
17235 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
17236 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
17238 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
17239 set after UIDs before splitting them.
17241 2019-01-01 Martin Sebor <msebor@redhat.com>
17242 Jeff Law <law@redhat.com>
17244 * gimple-fold.c (get_range_strlen_tree): Record if the computed
17245 length is optimistic. If it is, then arrange to compute the
17246 conservative length as well.
17248 * gimple-fold.h (get_range_strlen): Update prototype.
17249 * builtins.c (check_access): Update call to get_range_strlen to use
17250 c_strlen_data pointer. Change various variable accesses to instead
17251 pull data from the c_strlen_data structure.
17252 (check_strncat_sizes, expand_builtin_strncat): Likewise.
17253 * calls.c (maybe_warn_nonstring_arg): Likewise.
17254 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
17255 minimum length if maximum lengh is unknown.
17256 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
17257 that used c_strlen, it's no longer needed. Restructure slightly.
17258 (format_string): Set unlikely range appropriately.
17259 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
17261 (get_range_strlen): Accept c_strlen_data pointer for external
17262 call sites as well. Pass through to call to internal get_range_strlen.
17263 Adjust minlen, maxlen and maxbound as needed.
17264 (get_maxval_strlen): Update comments.
17265 (gimple_fold_builtin_strlen): Update call to get_range_strlen
17266 to use c_strlen_data pointer. Change variable accesses to instead
17267 use c_strlen_data data members.
17269 * gimple-fold.c (get_range_strlen): Update prototype.
17270 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
17271 local variables. Use pdata to return information to caller.
17272 Update calls to get_range_strlen. Update pdata->maxbound.
17273 (get_range_strlen -- static version): Similarly.
17274 (get_range_strlen -- extern version): Update for internal
17275 get_range_strlen API change. Convert to external data format.
17276 (get_maxval_strlen): Similarly.
17278 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
17280 * coverage.c (get_coverage_counts): Use current_function_decl.
17281 * profile.c (read_thunk_profile): New function.
17282 (branch_prob): Add THUNK parameter.
17283 * tree-profile.c (tree_profiling): Handle thunks.
17284 * value-prof.c (init_node_map): Handle thunks.
17285 * value-prof.h (branch_prob): Upate prototype.
17286 (read_thunk_profile): Declare.
17288 2019-01-01 Jakub Jelinek <jakub@redhat.com>
17290 Update copyright years.
17292 * gcc.c (process_command): Update copyright notice dates.
17293 * gcov-dump.c (print_version): Ditto.
17294 * gcov.c (print_version): Ditto.
17295 * gcov-tool.c (print_version): Ditto.
17296 * gengtype.c (create_file): Ditto.
17297 * doc/cpp.texi: Bump @copying's copyright year.
17298 * doc/cppinternals.texi: Ditto.
17299 * doc/gcc.texi: Ditto.
17300 * doc/gccint.texi: Ditto.
17301 * doc/gcov.texi: Ditto.
17302 * doc/install.texi: Ditto.
17303 * doc/invoke.texi: Ditto.
17305 Copyright (C) 2019 Free Software Foundation, Inc.
17307 Copying and distribution of this file, with or without modification,
17308 are permitted in any medium without royalty provided the copyright
17309 notice and this notice are preserved.