1 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
2 Michael Meissner <meissner@linux.ibm.com>
4 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
6 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
8 * rtl.h (LABEL_REF_P): New #define.
10 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
12 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
14 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
16 * internal-fn.c: Marked mask_load_direct as vectorizable.
17 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
18 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
19 combined even if masks different with allow_slp_p param.
20 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
21 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
22 dissolve SLP-only vectorizable groups when SLP has been discarded.
23 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
24 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
26 (vect_build_slp_tree_1): Fixed comment typo.
27 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
28 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
30 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
32 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
34 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
37 Remove obsolete use_thunk reference.
38 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
39 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
40 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
41 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
42 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
43 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
44 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
45 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
46 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
48 2019-05-28 Nathan Sidwell <nathan@acm.org>
50 * tree.h (IDENTIFIER_ANON_P): New.
51 (anon_aggrname_format, anon_aggname_p): Don't declare.
52 (make_anon_name): Declare.
53 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
54 (hash_tree): Likewise.
55 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
56 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
57 (anon_cnt, make_anon_name): New.
59 2019-05-28 Martin Liska <mliska@suse.cz>
62 * opts-global.c (decode_options): Print help for all
63 help_option_arguments.
64 * opts.c (print_help): Add new argument.
65 (common_handle_option): Remember all values into
66 help_option_arguments.
67 * opts.h (print_help): Add new argument.
69 2019-05-28 Martin Liska <mliska@suse.cz>
72 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
73 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
74 (func_checker::compare_bb): Call compare_loops.
76 2019-05-27 Jakub Jelinek <jakub@redhat.com>
78 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
79 on sections construct.
80 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
82 (lower_omp_sections): Handle lastprivate conditional.
83 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
84 lastprivate_conditional_map.
85 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
87 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
88 critical, taskgroup and section regions when looking for a region
89 with non-NULL lastprivate_conditional_map.
91 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
93 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
94 (*ix86_gen_sub3): Ditto.
95 (*ix86_gen_sub3_carry): Ditto.
96 (*ix86_gen_one_cmpl2): Ditto.
97 (*ix86_gen_andsp): Ditto.
98 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
99 (gen_and2_insn): New static function.
100 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
101 Use gen_add3_insn instead of ix86_gen_add3.
102 (ix86_expand_split_stack_prologue): Use gen_add2_insn
103 instead of ix86_gen_add3.
104 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
105 Use gen_sub3_insn instead of ix86_gen_sub3.
106 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
107 instead of ix86_gen_add3.
108 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
109 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
110 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
111 * config/i386/i386-options.c (ix86_option_override_internal):
112 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
113 ix86_gen_one_cmpl2 and ix86_gen_andsp.
115 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
117 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
118 and DW_OP_GNU_const_index opcodes.
120 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
122 * config/i386/i386.h (STACK_SIZE_MODE): Define.
124 2019-05-27 Richard Biener <rguenther@suse.de>
126 PR tree-optimization/90637
127 * tree-ssa-sink.c (statement_sink_location): Honor the
128 computed sink location for single-uses.
130 2019-05-27 Richard Biener <rguenther@suse.de>
133 * match.pd (vec_perm): Avoid clobbering op0 when not generating
136 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
138 * config/i386/i386.md (@sub<mode>3_carry): Rename
139 from sub<mode>3_carry.
140 (@leave_<mode>): New expander.
141 (*leave): Rename from leave.
142 (*leave_rex64): Rename from leave_rex64.
143 (@monitorx_<mode>): Rename from monitorx_<mode>.
144 (@clzero_<mode>): Rename from clzero_<mode>.
145 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
146 from sse3_monitor_<mode>.
147 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
148 (*ix86_gen_leave): Ditto.
149 (*ix86_gen_monitor): Ditto.
150 (*ix86_gen_monitorx): Ditto.
151 (*ix86_gen_clzero): Ditto.
152 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
153 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
154 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
155 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
156 Use gen_sse3_monitor instead of ix86_gen_monitor.
157 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
158 instead of ix86_gen_monitorx.
159 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
160 instead of ix86_gen_clzero.
161 * config/i386/i386-options.c (ix86_option_override_internal):
162 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
163 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
165 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
167 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
168 Rename from tls_global_dynamic_64_<mode>.
169 (@tls_local_dynamic_base_64_<mode>): Rename from
170 tls_local_dynamic_base_64_<mode>.
171 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
172 Remove indirect function.
173 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
174 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
175 instead of ix86_gen_tls_global_dynamic_64.
176 Use gen_tls_local_dynamic_base_64 instead of
177 ix86_gen_tls_local_dynamic_base_64.
178 * config/i386/i386-options.c (ix86_option_override_internal):
179 Do not initialize ix86_gen_tls_global_dynamic_64 and
180 ix86_gen_tls_local_dynamic_base_64.
182 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
184 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
185 Rename from pro_epilogue_adjust_stack_<mode>_add.
186 (@pro_epilogue_adjust_stack_sub_<mode>)
187 Rename from pro_epilogue_adjust_stack_<mode>_sub.
188 (@allocate_stack_worker_probe_<mode>):
189 Rename from allocate_stack_worker_probe_<mode>.
190 (allocate_stack): Use gen_allocate_stack_worker_probe.
191 (probe_stack): Use gen_probe_stack_1.
192 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
193 (@adjust_stack_and_probe_<mode>): Rename from
194 adjust_stack_and_probe<mode>.
195 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
196 (stack_protect_set): Use gen_stack_protect_set_1.
197 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
198 (stack_protect_test): Use gen_stack_protect_test_1.
199 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
200 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
201 Remove indirect function.
202 (*ix86_gen_adjust_stack_and_probe): Ditto.
203 (*ix86_gen_probe_stack_range): Ditto.
204 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
205 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
206 (ix86_adjust_stack_and_probe_stack_clash): Use
207 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
208 (ix86_adjust_stack_and_probe): Ditto.
209 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
210 of ix86_gen_probe_stack_range.
211 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
212 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
213 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
214 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
215 CODE_FOR_stack_protect_test_{si,di}.
216 * config/i386/i386-options.c (ix86_option_override_internal):
217 Do not initialize ix86_gen_allocate_stack_worker,
218 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
220 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
222 * doc/invoke.texi (Link Options): Many editorial changes around
225 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
227 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
228 pre-Solaris 11 referene and most Studio compiler details.
230 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
233 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
234 DImode to SImode in floating-point registers on 64-bit target.
235 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
236 register_operand in xmpyu patterns.
238 2019-05-24 Jakub Jelinek <jakub@redhat.com>
240 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
241 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
242 OMP_CLAUSE__REDUCTEMP_.
243 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
244 OMP_CLAUSE__CONDTEMP_.
245 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
246 * tree-pretty-print.c (dump_omp_clause): Likewise.
247 * tree-nested.c (convert_nonlocal_omp_clauses,
248 convert_local_omp_clauses): Likewise.
249 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
250 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
251 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
253 (gimplify_omp_for): Warn and disable conditional modifier from
254 lastprivate on loop iterators.
255 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
257 * omp-general.c (omp_extract_for_data): Initialize it.
258 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
260 (delete_omp_context): Delete it.
261 (lower_lastprivate_conditional_clauses): New function.
262 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
263 handle lastprivate conditional clauses.
264 (lower_reduction_clauses): Add CLIST argument, emit it into
265 the critical section if any.
266 (lower_omp_sections): Adjust lower_lastprivate_clauses and
267 lower_reduction_clauses callers.
268 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
269 to lower_lastprivate_clauses.
270 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
271 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
272 clist into a critical section if not emitted there already by
273 lower_reduction_clauses.
274 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
276 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
277 conditional variables.
278 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
280 (expand_omp_for_generic, expand_omp_for_static_nochunk,
281 expand_omp_for_static_chunk): Handle lastprivate conditional.
282 (expand_omp_for): Handle fd.lastprivate_conditional like
285 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
287 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
288 kernel does not exit cleanly.
289 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
291 2019-05-24 Jason Merrill <jason@redhat.com>
294 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
296 2019-05-24 Richard Biener <rguenther@suse.de>
299 * tree-loop-distribution.c (struct partition): Add location
301 (partition_alloc): Initialize all fields.
302 (generate_memset_builtin): Use the location recorded in the
303 partition for the generated call.
304 (generate_memcpy_builtin): Likewise.
305 (classify_partition): Record the location of a single store
306 as location for the partition.
308 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
310 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
313 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
316 * common/config/aarch64/aarch64-common.c
317 (aarch64_rewrite_selected_cpu): Change local temporary variable
318 type from unsigned long to uint64_t.
319 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
320 aarch64_get_extension_string_for_isa_flags): Change declaration to
321 match new definition by replacing unsigned long with uint64_t.
323 2019-05-24 Jakub Jelinek <jakub@redhat.com>
326 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
327 gen_attr_type just once instead of 4-7 times. Formatting fixes.
328 Handle stack_protect_test_<mode> codegen similarly to corresponding
331 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
333 * config/i386/darwin.h: Reject -mfentry*.
334 * doc/sourcebuild.texi: Document mfentry target support.
336 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
338 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
339 Rename to rs6000_global_entry_point_prologue_needed_p. Return
340 false for PC-relative functions.
341 (rs6000_output_function_prologue): Change called function name to
342 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
343 name,1" for PC-relative functions.
344 (rs6000_elf_declare_function_name): Change called function name to
345 rs6000_global_entry_point_prologue_needed_p.
347 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
350 * config/i386/i386.c (gen_rtx_cost):
351 Use ix86_tune_cost instead of ix86_cost.
353 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
354 Michael Meissner <meissner@linux.ibm.com>
355 Segher Boessenkool <segher@kernel.crashing.org>
357 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
359 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
360 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
361 (rs6000_fndecl_pcrel_p): Likewise.
362 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
363 error if -mpcrel is requested without -mcpu=future.
364 (rs6000_opt_masks): Add entry for pcrel.
365 (rs6000_fndecl_pcrel_p): New function.
366 (rs6000_pcrel_p): Likewise.
367 * config/rs6000/rs6000.opt (mpcrel): New option.
368 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
370 2019-05-23 Jan Hubicka <jh@suse.cz>
371 Martin Liska <mliska@suse.cz>
373 PR tree-optimization/90576
374 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
376 (aliasing_component_refs_p): Fix three way size compare conditional;
377 give up earlier in case we can not decide on equivalence.
379 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
380 Michael Meissner <meissner@linux.ibm.com>
381 Segher Boessenkool <segher@kernel.crashing.org>
383 * config.gcc: Add future cpu.
384 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
385 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
387 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
388 (RS6000_CPU): New instantiation for future cpu.
389 * config/rs6000/rs6000-opts.h (enum processor_type): Add
391 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
392 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
393 * config/rs6000/rs6000-tables.opt: Regenerate.
394 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
395 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
396 (rs6000_machine_from_flags): Handle future cpu.
397 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
398 PROCESSOR_POWER9 for now.
399 (rs6000_adjust_cost): Likewise.
400 (rs6000_issue_rate): Likewise.
401 (rs6000_register_move_cost): Likewise.
402 (rs6000_opt_masks): Add entry for future.
403 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
404 (MASK_FUTURE): New #define.
405 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
406 * config/rs6000/rs6000.opt (mfuture): New target option.
407 * doc/invoke.texi (mcpu): Add future cpu.
409 2019-05-23 Martin Liska <mliska@suse.cz>
412 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
413 operation points to a temporary (pointed via tree_to_wide_ref)
414 that is out of scope after the &.
416 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
419 * doc/extend.texi (Function Names): Add missing word.
421 2019-05-23 Richard Biener <rguenther@suse.de>
423 PR tree-optimization/88440
424 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
426 * tree-loop-distribution.c (generate_memset_builtin): Fold the
428 (generate_memcpy_builtin): Likewise.
429 (distribute_loop): Pass in whether to only distribute patterns.
430 (prepare_perfect_loop_nest): Also allow size optimization.
431 (pass_loop_distribution::execute): When optimizing a loop
432 nest for size allow pattern replacement.
434 2019-05-23 Jakub Jelinek <jakub@redhat.com>
437 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
440 2019-05-23 Martin Liska <mliska@suse.cz>
443 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
444 expression similarly to gimplify_decl_expr.
446 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
448 * cse.c (cse_dump_path): s/dump_file/f.
450 2019-05-22 David Malcolm <dmalcolm@redhat.com>
453 * diagnostic-format-json.cc: Include "selftest.h".
454 (json_from_expanded_location): Only add "file" key for non-NULL
456 (json_from_location_range): Don't add "start" and "finish"
457 children if they are UNKNOWN_LOCATION.
458 (selftest::test_unknown_location): New selftest.
459 (selftest::test_bad_endpoints): New selftest.
460 (selftest::diagnostic_format_json_cc_tests): New function.
461 * json.cc (json::object::get): New function.
462 (selftest::test_object_get): New selftest.
463 (selftest::json_cc_tests): Call it.
464 * json.h (json::object::get): New decl.
465 * selftest-run-tests.c (selftest::run_tests): Call
466 selftest::diagnostic_format_json_cc_tests.
467 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
470 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
471 Andrew Stubbs <amd@codesourcery.com>
473 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
474 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
475 (kernel): Rename to...
476 (main_kernel): ... this.
477 (load_image): Load _init_array and _fini_array kernels.
478 (run): Add argument for kernel to run.
479 (main): Run init_array_kernel before main_kernel, and
480 fini_array_kernel after.
481 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
482 amdgpu_hsa_kernel attribute on functions.
483 (gcn_disable_constructors): Delete.
484 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
485 * config/gcn/crt0.c (size_t): Define.
486 (_init_array, _fini_array): New.
487 (__preinit_array_start, __preinit_array_end,
488 __init_array_start, __init_array_end,
489 __fini_array_start, __fini_array_end): Declare weak references.
491 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
493 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
495 2019-05-22 Jason Merrill <jason@redhat.com>
497 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
499 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
502 * config/i386/i386-options.c (ix86_init_machine_status): Set
503 stack_frame_required to true.
504 * config/i386/i386.c (ix86_get_frame_size): New function.
505 (ix86_frame_pointer_required): Replace get_frame_size with
507 (ix86_compute_frame_layout): Likewise.
508 (ix86_find_max_used_stack_alignment): Changed to void. Set
509 stack_frame_required.
510 (ix86_finalize_stack_frame_flags): Always call
511 ix86_find_max_used_stack_alignment. Replace get_frame_size with
513 * config/i386/i386.h (machine_function): Add stack_frame_required.
515 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
517 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
519 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
521 * common/config/aarch64/aarch64-common.c
522 (struct aarch64_option_extension, struct processor_name_to_arch,
523 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
524 aarch64_contains_opt,
525 aarch64_get_extension_string_for_isa_flags): Change type of
526 variables storing flags to uint64_t.
527 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
528 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
529 * config/aarch64/aarch64.c (struct processor,
530 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
531 aarch64_validate_march, aarch64_override_options,
532 aarch64_option_print, aarch64_handle_attr_isa_flags,
533 aarch64_declare_function_name, aarch64_start_file): Make flag
535 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
536 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
537 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
538 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
539 * config/aarch64/driver-aarch64.c
540 (struct aarch64_arch_extension, struct aarch64_core_data,
541 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
542 flag variables uint64_t.
543 * doc/invoke.texi: Add documentation for new arguments.
545 2019-05-22 Richard Biener <rguenther@suse.de>
547 * alias.c (ao_ref_from_mem): Move stack-slot sharing
549 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
551 2019-05-22 Martin Liska <mliska@suse.cz>
554 * doc/extend.texi: Document the change.
556 2019-05-22 Richard Biener <rguenther@suse.de>
558 PR tree-optimization/90450
559 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
560 (mem_ref_hasher::equal): Check it.
561 (mem_ref_alloc): Initialize it.
562 (gather_mem_refs_stmt): Set it.
564 2019-05-22 Richard Biener <rguenther@suse.de>
566 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
568 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
571 2019-05-22 Alan Modra <amodra@gmail.com>
573 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
574 (ASM_CPU_SPEC): Conditionally add -many.
575 * config/rs6000/rs6000.c (rs6000_machine): New static var.
576 (rs6000_machine_from_flags, emit_asm_machine): New functions..
577 (rs6000_file_start): ..extracted from here, and modified to
579 (rs6000_output_function_prologue): Emit .machine as necessary.
580 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
582 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
583 added by check_vect_support_and_set_flags.
584 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
585 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
587 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
590 * ira-lives.c (process_bb_node_lives): Consider defs
591 for a call insn to be die before the call, not after.
593 * function.c (assign_parm_setup_block): Raise alignment of
594 stacked parameter only for STRICT_ALIGNMENT targets.
596 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
598 * config/rs6000/constraints.md (define_register_constraint "wz"):
600 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
601 RS6000_CONSTRAINT_wz.
602 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
603 (rs6000_init_hard_regno_mode_ok): Adjust.
604 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
605 * doc/md.texi (Machine Constraints): Adjust.
607 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
609 * config/rs6000/constraints.md (define_register_constraint "wl"):
611 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
612 RS6000_CONSTRAINT_wl.
613 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
614 (rs6000_init_hard_regno_mode_ok): Adjust.
615 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
616 * doc/md.texi (Machine Constraints): Adjust.
618 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
620 * config/rs6000/constraints.md (define_register_constraint "wm"):
622 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
623 RS6000_CONSTRAINT_wm.
624 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
625 (rs6000_init_hard_regno_mode_ok): Adjust.
626 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
627 * doc/md.texi (Machine Constraints): Adjust.
629 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
631 * config/rs6000/constraints.md (define_register_constraint "wk"):
633 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
634 RS6000_CONSTRAINT_wk.
635 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
636 (rs6000_init_hard_regno_mode_ok): Adjust.
637 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
638 * doc/md.texi (Machine Constraints): Adjust.
640 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
642 * config/rs6000/constraints.md (define_register_constraint "wj"):
644 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
645 RS6000_CONSTRAINT_wj.
646 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
647 (rs6000_init_hard_regno_mode_ok): Adjust.
648 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
650 * config/rs6000/vsx.md: Ditto.
651 * doc/md.texi (Machine Constraints): Adjust.
653 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
655 * config/rs6000/constraints.md (define_register_constraint "wh"):
657 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
658 RS6000_CONSTRAINT_wh.
659 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
660 (rs6000_init_hard_regno_mode_ok): Adjust.
661 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
662 * doc/md.texi (Machine Constraints): Adjust.
664 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
667 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
668 Avoid calling gen_lowpart with CONST operand.
670 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
672 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
673 field template_last_to_copy.
674 (ssa_create_duplicates): Set it, and use it. Attempt to
675 preserve more debug stmts.
677 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
679 * config/i386/sse.md (VF1_AVX2): New mode iterator.
680 (signbit<mode>2): New expander
682 2019-05-21 James Clarke <jrtc27@jrtc27.com>
685 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
686 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
688 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
690 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
691 %ebx and %ecx bafore calling cpuid with leaf 1 or
692 non-constant leaf argument.
694 2019-05-21 Alan Modra <amodra@gmail.com>
697 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
698 power9 direct move cost.
699 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
700 Correct comments and rename functions to suit parameters.
702 2019-05-21 Richard Biener <rguenther@suse.de>
705 * fold-const.c (fold_read_from_vector): New function.
706 * fold-const.h (fold_read_from_vector): Declare.
707 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
708 single-element insert permutations. Canonicalize selector
709 further and fix issue with last commit.
711 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
713 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
714 parameter with default value false to declaration.
715 (split_edges_for_insertion): New inline function. Wrapper for
716 split_critical_edges with for_edge_insertion_p = true.
717 * tree-cfg.c (split_critical_edges): Don't split non-critical
718 edges if for_edge_insertion_p is false. Fix whitespace.
719 * tree-ssa-pre.c (pass_pre::execute): Call
720 split_edges_for_insertion instead of split_critical_edges.
721 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
722 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
723 (pass_data_sink_code): Update function name in the comment.
725 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
727 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
728 around is_value_included_in that knows how to handle BIT_AND_EXPR.
729 (is_pred_expr_subset_of): Use the new function. Handle more cases where
730 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
733 2019-05-21 Martin Liska <mliska@suse.cz>
735 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
737 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
738 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
740 * config/rs6000/rs6000.c (rs6000_option_override_internal):
742 (rs6000_function_arg): Likewise.
743 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
744 (rs6000_expand_ternop_builtin): Use interval syntax.
745 (get_element_number): Likewise.
746 (altivec_expand_builtin): Likewise.
747 (rs6000_get_function_versions_dispatcher): Quote target_clones.
751 2019-05-20 Jakub Jelinek <jakub@redhat.com>
755 * function.h (struct function): Add calls_eh_return member.
756 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
757 gimplifying __builtin_eh_return call.
758 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
760 (expand_call_inline): Or in src_cfun->calls_eh_return into
761 dst_cfun->calls_eh_return.
762 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
763 cfun->calls_eh_return.
764 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
765 * lto-streamer-out.c (output_struct_function_base): Write
768 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
770 PR rtl-optimization/43147
771 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
774 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
776 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
777 (refs_may_alias_p_1): ... here; update stats.
778 (refs_may_alias_p): Do not update stats here.
780 2019-05-20 Richard Biener <rguenther@suse.de>
782 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
783 doesn't produce pointers.
784 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
785 the first operand points to.
787 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
789 * tree-ssa-alias.c (compare_sizes): New function.
790 (sompare_type_sizes): New function
791 (aliasing_component_refs_p): Use it.
792 (indirect_ref_may_alias_decl_p): Likewise.
794 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
796 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
798 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
800 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
801 (LIBLSAN_EARLY_SPEC): Likewise.
802 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
804 2019-05-20 Martin Liska <mliska@suse.cz>
806 * config/i386/i386.c (ix86_libc_has_fast_function):
807 Add ATTRIBUTE_UNUSED for the argument.
809 2019-05-20 Richard Biener <rguenther@suse.de>
811 * gimple-match-head.c: Include vec-perm-indices.h.
812 * generic-match-head.c: Likewise.
813 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
815 * fold-const.c (fold_vec_perm): Export.
816 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
819 2019-05-20 Jakub Jelinek <jakub@redhat.com>
821 * cfgloop.h (struct loop): Add simdlen member.
822 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
823 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
824 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
825 as new argument to autovectorize_vector_sizes target hook. If
826 loop->simdlen, pick up vector size where the vectorization factor
827 is equal to loop->simd, and if there is none, fall back to the first
829 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
831 * omp-low.c (omp_clause_aligned_alignment): Likewise.
832 * omp-general.c (omp_max_vf): Likewise.
833 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
834 * tree-vect-slp.c (vect_slp_bb): Likewise.
835 * target.def (autovectorize_vector_sizes): Add ALL argument and
837 * doc/tm.texi: Adjust documentation.
838 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
839 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
840 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
842 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
843 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
844 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
845 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
846 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
847 preferred vector size is not 512-bit or 256-bit, just put those
848 unpreferred ones last.
850 2019-05-20 Martin Liska <mliska@suse.cz>
852 * targhooks.c (default_libc_has_fast_function): New function.
853 * targhooks.h (default_libc_has_fast_function): Likewise.
855 2019-05-20 Martin Liska <mliska@suse.cz>
858 * builtins.c (expand_builtin_memory_copy_args): When having a
859 target with fast mempcpy implementation do now use memcpy.
860 * config/i386/i386.c (ix86_libc_has_fast_function): New.
861 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
862 * doc/tm.texi: Likewise.
863 * doc/tm.texi.in: Likewise.
865 * expr.c (emit_block_move_hints): Add 2 new arguments.
866 * expr.h (emit_block_move_hints): Bail out when libcall
867 to memcpy would be used.
869 2019-05-20 Martin Liska <mliska@suse.cz>
871 * profile-count.c: Add vertical spacing in order
872 to separate functions.
873 * profile-count.h: Likewise.
875 2019-05-20 Martin Liska <mliska@suse.cz>
877 * profile-count.h: Do not use full qualified
879 * profile-count.c (profile_count::to_frequency): Likewise.
881 2019-05-20 Martin Liska <mliska@suse.cz>
883 * profile-count.h (enum profile_quality): Use capital letters
884 for enum value names. Use the adjusted names.
885 * profile-count.c: Use the adjusted names.
887 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
889 * config/rs6000/constraints.md (define_register_constraint "wH"):
891 (define_register_constraint "wI"): Delete.
892 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
893 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
894 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
895 (rs6000_init_hard_regno_mode_ok): Adjust.
896 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
897 resp. "d", or with "wa" as appropriate, all with "p8v".
898 * config/rs6000/vsx.md: Ditto.
899 * doc/md.texi (Machine Constraints): Adjust.
901 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
903 * config/rs6000/constraints.md (define_register_constraint "wy"):
905 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
906 RS6000_CONSTRAINT_wy.
907 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
908 (rs6000_init_hard_regno_mode_ok): Adjust.
909 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
910 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
911 (define_mode_attr Fisa): New.
912 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
913 * doc/md.texi (Machine Constraints): Adjust.
915 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
917 * config/rs6000/constraints.md (define_register_constraint "wu"):
919 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
920 RS6000_CONSTRAINT_wu.
921 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
922 (rs6000_init_hard_regno_mode_ok): Adjust.
923 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
925 (define_mode_attr Fa): Delete.
926 * config/rs6000/vsx.md: Ditto.
927 * doc/md.texi (Machine Constraints): Adjust.
929 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
931 * config/rs6000/constraints.md (define_register_constraint "wJ"):
933 (define_register_constraint "wK"): Delete.
934 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
935 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
936 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
937 (rs6000_init_hard_regno_mode_ok): Adjust.
938 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
939 Replace "wK" constraint by "wH" with "p9v".
940 * config/rs6000/vsx.md: Ditto.
941 * doc/md.texi (Machine Constraints): Adjust.
943 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
945 * config/rs6000/constraints.md (define_register_constraint "wb"):
947 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
948 RS6000_CONSTRAINT_wb.
949 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
950 (rs6000_init_hard_regno_mode_ok): Adjust.
951 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
952 * config/rs6000/vsx.md: Ditto.
953 * doc/md.texi (Machine Constraints): Adjust.
955 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
957 * config/rs6000/constraints.md (define_register_constraint "wo"):
959 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
960 RS6000_CONSTRAINT_wo.
961 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
962 (rs6000_init_hard_regno_mode_ok): Adjust.
963 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
964 * config/rs6000/altivec.md: Ditto.
965 * doc/md.texi (Machine Constraints): Adjust.
967 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
969 * config/darwin-c.c (darwin_register_objc_includes): Do not
970 prepend the sysroot when building gnu-runtime header search
973 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
975 * config/darwin.c (darwin_file_end): Use switch_to_section ()
976 instead of direct output of the asm.
978 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
980 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
981 argument to be type bool (was int before).
982 (rs6000_emit_epilogue): Simplify some code. Declare some variables
983 at first use. Use type bool for some variables. Fix a theoretical
984 eh_return bug for svr4.
986 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
988 * config/rs6000/rs6000.md (isa): New attribute.
989 (enabled): New attribute.
991 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
993 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
994 assemble_start_function and assemble_end_function.
996 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
999 * omp-general.c (oacc_verify_routine_clauses): Change formal
1000 parameters. Add checking if already marked with an OpenACC
1001 'routine' directive. Adjust all users.
1004 * omp-general.c (oacc_build_routine_dims): Move some of its
1006 (oacc_verify_routine_clauses): ... this new function.
1007 * omp-general.h (oacc_verify_routine_clauses): New prototype.
1009 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1011 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
1012 formating of picbase labels to match other ports.
1014 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1016 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
1017 in the generated code.
1019 2019-05-16 Martin Sebor <msebor@redhat.com>
1021 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
1022 identifiers, keywords, operators, and types in diagnostics. Correct
1023 quoting, spelling, and sentence capitalization issues.
1024 (expand_builtin_atomic_is_lock_free): Same.
1025 (fold_builtin_next_arg): Same.
1026 * cfgexpand.c (expand_one_var): Same.
1027 (tree_conflicts_with_clobbers_p): Same.
1028 (expand_asm_stmt): Same.
1029 (verify_loop_structure): Same.
1030 * cgraphunit.c (process_function_and_variable_attributes): Same.
1031 * collect-utils.c (collect_execute): Same.
1032 * collect2.c (maybe_run_lto_and_relink): Same.
1033 (is_lto_object_file): Same.
1034 (scan_prog_file): Same.
1035 * convert.c (convert_to_real_1): Same.
1036 * dwarf2out.c (dwarf2out_begin_prologue): Same.
1037 * except.c (verify_eh_tree): Same.
1038 * gcc.c (execute): Same.
1039 (eval_spec_function): Same.
1040 (run_attempt): Same.
1041 (driver::set_up_specs): Same.
1042 (compare_debug_auxbase_opt_spec_function): Same.
1043 * gcov-tool.c (unlink_gcda_file): Same.
1046 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
1047 * gimplify.c (gimplify_asm_expr): Same.
1048 (gimplify_adjust_omp_clauses): Same.
1049 * hsa-gen.c (gen_hsa_addr_insns): Same.
1050 (gen_hsa_insns_for_load): Same.
1051 (gen_hsa_cmp_insn_from_gimple): Same.
1052 (gen_hsa_insns_for_operation_assignment): Same.
1053 (gen_get_level): Same.
1054 (gen_hsa_alloca): Same.
1055 (omp_simple_builtin::generate): Same.
1056 (gen_hsa_atomic_for_builtin): Same.
1057 (gen_hsa_insns_for_call): Same.
1058 * input.c (dump_location_info): Same.
1059 * ipa-devirt.c (compare_virtual_tables): Same.
1060 * ira.c (ira_setup_eliminable_regset): Same.
1061 * lra-assigns.c (lra_assign): Same.
1062 * lra-constraints.c (lra_constraints): Same.
1063 * lto-streamer-in.c (lto_input_mode_table): Same.
1064 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
1065 (merge_and_complain): Same.
1066 (compile_offload_image): Same.
1067 (compile_images_for_offload_targets): Same.
1068 (debug_objcopy): Same.
1071 * opts.c (print_specific_help): Same.
1072 (parse_no_sanitize_attribute): Same.
1074 (handle_param): Same.
1075 * plugin.c (add_new_plugin): Same.
1076 (parse_plugin_arg_opt): Same.
1077 (try_init_one_plugin): Same.
1078 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
1079 operators, and types in diagnostics. Correct quoting and spelling
1081 * read-rtl-function.c (parse_edge_flag_token): Same.
1082 (function_reader::parse_enum_value): Same.
1083 * reg-stack.c (check_asm_stack_operands): Same.
1084 * regcprop.c (validate_value_data): Same.
1085 * sched-rgn.c (make_pass_sched_fusion): Same.
1086 * stmt.c (check_unique_operand_names): Same.
1087 * targhooks.c (default_target_option_pragma_parse): Same.
1088 * tlink.c (recompile_files): Same.
1089 * toplev.c (process_options): Same.
1091 * trans-mem.c (diagnose_tm_1): Same.
1092 (ipa_tm_scan_irr_block): Same.
1093 (ipa_tm_diagnose_transaction): Same.
1094 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
1095 format a tree code name in a diagnostic.
1096 (verify_types_in_gimple_min_lval): Same.
1097 (verify_types_in_gimple_reference): Same.
1098 (verify_gimple_call): Same.
1099 (verify_gimple_assign_unary): Same.
1100 (verify_gimple_assign_binary): Same.
1101 (verify_gimple_assign_ternary): Same.
1102 (verify_gimple_assign_single): Same.
1103 (verify_gimple_switch): Same.
1104 (verify_gimple_label): Same.
1105 (verify_gimple_phi): Same.
1106 (verify_gimple_in_seq): Same.
1107 (verify_eh_throw_stmt_node): Same.
1108 (collect_subblocks): Same.
1109 (gimple_verify_flow_info): Same.
1110 (do_warn_unused_result): Same.
1111 * tree-inline.c (expand_call_inline): Same.
1112 * tree-into-ssa.c (update_ssa): Same.
1113 * tree.c (tree_int_cst_elt_check_failed): Same.
1114 (tree_vec_elt_check_failed): Same.
1115 (omp_clause_operand_check_failed): Same.
1116 (verify_type_variant): Same.
1117 (verify_type): Same.
1118 * value-prof.c (verify_histograms): Same.
1119 * varasm.c (assemble_start_function): Same.
1121 2019-05-16 Martin Sebor <msebor@redhat.com>
1123 * config/i386/i386-expand.c (get_element_number): Quote keywords
1124 and other internal names in diagnostics. Adjust other diagnostic
1125 formatting issues noted by -Wformat-diag.
1126 * config/i386/i386-features.c
1127 (ix86_mangle_function_version_assembler_name): Same.
1128 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
1129 * config/i386/i386.c (ix86_function_type_abi): Same.
1130 (ix86_function_ms_hook_prologue): Same.
1131 (classify_argument): Same.
1132 (ix86_expand_prologue): Same.
1133 (ix86_md_asm_adjust): Same.
1134 (ix86_memmodel_check): Same.
1136 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1138 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
1139 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
1142 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
1145 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
1146 intrinsics without SSE/SSE2/SSSE3.
1147 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
1149 (*mmx_uavgv8qi3): Likewise.
1151 2019-05-17 Richard Biener <rguenther@suse.de>
1153 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
1154 VEC_PERM_EXPR as __VEC_PERM with -gimple.
1156 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
1158 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
1159 vec_sldw insn pattern.
1161 2019-05-17 Richard Biener <rguenther@suse.de>
1163 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
1165 2019-05-17 Martin Liska <mliska@suse.cz>
1168 * toplev.c (output_stack_usage): With LTO and sanitizer it
1169 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
1170 has no file location.
1172 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1175 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
1176 sz0 is equal to sz1, instead return false in that case.
1178 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
1179 has non-constant expression, force sctx.lane and use two
1180 argument IFN_GOMP_SIMD_LANE instead of single argument.
1181 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
1182 two argument IFN_GOMP_SIMD_LANE without lhs.
1183 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
1185 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
1187 (LOOP_REQUIRES_VERSIONING): Or in
1188 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
1189 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
1191 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
1192 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
1193 from simd if clause if needed.
1195 2019-05-16 Richard Biener <rguenther@suse.de>
1197 * tree-affine.c (expr_to_aff_combination): New function split
1199 (tree_to_aff_combination): ... here.
1200 (aff_combination_expand): Avoid building a GENERIC tree.
1202 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
1204 * cgraphunit.c (cgraph_node::expand_thunk): Remove
1205 assemble_start_function and assemble_end_function calls.
1206 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
1207 assemble_start_function and assemble_end_function.
1208 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
1209 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
1210 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
1211 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
1212 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
1213 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
1214 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
1215 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
1216 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
1217 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1218 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1219 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
1221 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
1222 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
1223 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
1224 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
1225 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
1226 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
1227 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
1228 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
1229 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1230 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1231 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1232 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1233 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
1234 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
1236 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
1237 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
1238 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
1240 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
1242 * tree-ssa-alias.c (alias_stats): Add
1243 aliasing_component_refs_p_may_alias and
1244 aliasing_component_refs_p_no_alias.
1245 (dump_alias_stats): Print aliasing_component_refs_p stats.
1246 (aliasing_component_refs_p): Update stats.
1248 2019-05-16 Martin Liska <mliska@suse.cz>
1251 * multiple_target.c (expand_target_clones): Do not allow
1252 target_clones being used with a symbol that is an alias.
1254 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
1256 PR tree-optimization/90394
1257 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
1258 positives rather than ICE for cases where (code2 == NE_EXPR
1259 && code1 == BIT_AND_EXPR).
1261 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1264 * tree-core.h (struct tree_decl_common): Document
1265 decl_nonshareable_flag for PARM_DECLs.
1266 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
1267 * calls.c (expand_call): Don't try tail call if caller
1268 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
1269 passed on the stack and callee needs to pass any arguments on the
1271 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1272 else if instead of series of mutually exclusive ifs. Handle
1273 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
1274 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1276 * lto-streamer.h (LTO_major_version): Bump to 9.
1278 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
1280 PR tree-optimization/90106
1281 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
1282 new parameter as new internal function call, also move it to new
1284 (use_internal_fn): Pass internal function call to
1285 shrink_wrap_one_built_in_call_with_conds.
1287 2019-05-15 Jakub Jelinek <jakub@redhat.com>
1289 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
1291 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
1292 safelen_int and set loop->dont_vectorize.
1294 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1297 * config/i386/i386-builtin.def: Enable MMX intrinsics with
1299 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
1301 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
1302 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
1303 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
1306 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1309 * config/i386/mmx.md (*vec_dupv2sf): Changed to
1310 define_insn_and_split to support SSE emulation.
1311 (*vec_extractv2sf_0): Likewise.
1312 (*vec_extractv2sf_1): Likewise.
1313 (*vec_extractv2si_0): Likewise.
1314 (*vec_extractv2si_1): Likewise.
1315 (*vec_extractv2si_zext_mem): Likewise.
1316 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
1317 (vec_extractv2sf_1 splitter): Likewise.
1318 (vec_extractv2sfsf): Likewise.
1319 (vec_setv2si): Likewise.
1320 (vec_extractv2si_1 splitter): Likewise.
1321 (vec_extractv2sisi): Likewise.
1322 (vec_setv4hi): Likewise.
1323 (vec_extractv4hihi): Likewise.
1324 (vec_setv8qi): Likewise.
1325 (vec_extractv8qiqi): Likewise.
1326 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1327 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
1328 (vec_extractv2sisi): Likewise.
1329 (vec_extractv4hihi): Likewise.
1330 (vec_extractv8qiqi): Likewise.
1331 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
1332 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
1333 (vec_initv2sisi): Likewise.
1334 (vec_initv4hihi): Likewise.
1335 (vec_initv8qiqi): Likewise.
1336 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
1337 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
1338 (vec_setv4hi): Likewise.
1339 (vec_setv8qi): Likewise.
1341 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1344 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
1345 TARGET_MMX_WITH_SSE.
1346 (MMXMODE:*mov<mode>_internal): Likewise.
1347 (MMXMODE:movmisalign<mode>): Likewise.
1349 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
1352 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
1353 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
1354 (sse2_cvtpd2pi): Ditto.
1355 (sse2_cvttpd2pi): Ditto.
1356 (*vec_concatv2sf_sse4_1): Ditto.
1357 (*vec_concatv2sf_sse): Ditto.
1358 (*vec_concatv2si_sse4_1): Ditto.
1359 (*vec_concatv2si): Ditto.
1360 (*vec_concatv4si_0): Ditto.
1361 (*vec_concatv2di_0): Ditto.
1363 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1366 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
1368 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1371 * config/i386/sse.md (ssse3_palignrdi): Changed to
1372 define_insn_and_split to support SSE emulation.
1374 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1377 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
1379 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1382 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
1383 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1386 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1389 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
1390 or TARGET_MMX_WITH_SSE.
1391 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
1393 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1396 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
1398 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1401 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
1402 Changed to define_insn_and_split to support SSE emulation.
1404 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1407 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
1408 Changed to define_insn_and_split to support SSE emulation.
1410 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1413 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
1414 (*mmx_<emms>): This.
1415 (mmx_<emms>): New expander.
1417 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1420 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
1422 (*sse2_umulv1siv1di3): Add SSE2 emulation.
1424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1427 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
1429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1432 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
1434 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1437 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
1438 TARGET_MMX_WITH_SSE.
1439 (*mmx_uavgv4hi3): Add SSE emulation.
1441 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1444 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
1445 and TARGET_MMX_WITH_SSE.
1446 (*mmx_uavgv8qi3): Add SSE emulation.
1448 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1451 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
1452 maskmovdqu for __MMX_WITH_SSE__.
1454 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1457 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
1458 TARGET_MMX and TARGET_MMX_WITH_SSE.
1459 (*mmx_umulv4hi3_highpart): Add SSE emulation.
1461 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1464 * config/i386/mmx.md (mmx_pmovmskb): Changed to
1465 define_insn_and_split to support SSE emulation.
1467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1470 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
1471 and TARGET_MMX_WITH_SSE.
1472 (mmx_<code>v8qi3): Likewise.
1473 (smaxmin:<code>v4hi3): New.
1474 (umaxmin:<code>v8qi3): Likewise.
1475 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
1476 (umaxmin:*mmx_<code>v8qi3): Likewise.
1478 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1481 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
1482 TARGET_MMX_WITH_SSE.
1483 (*mmx_pinsrw): Add SSE emulation.
1485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1488 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
1490 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1493 * config/i386/sse.md (sse_cvtpi2ps): Changed to
1494 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
1497 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1500 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
1501 (sse_cvttps2pi): Likewise.
1503 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1506 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
1507 TARGET_MMX_WITH_SSE.
1508 (mmx_pshufw_1): Add SSE emulation.
1509 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
1510 TARGET_MMX_WITH_SSE to support SSE emulation.
1512 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1515 * config/i386/constraints.md (Yw): New constraint.
1516 * config/i386/mmx.md (*vec_dupv2si): Changed to
1517 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
1518 support SSE emulation.
1520 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1523 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
1524 TARGET_MMX_WITH_SSE.
1525 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1527 (mmx_gt<mode>3): Likewise.
1529 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1532 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
1533 TARGET_MMX_WITH_SSE. Add SSE support.
1535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1538 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
1539 TARGET_MMX_WITH_SSE.
1540 (any_logic:<code><mode>3): New.
1541 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
1544 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1547 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
1548 TARGET_MMX_WITH_SSE. Add SSE emulation.
1549 (mmx_<shift_insn><mode>3): Likewise.
1551 (<shift_insn><mode>3): Likewise.
1553 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1556 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
1557 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
1559 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1562 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
1563 TARGET_MMX_WITH_SSE.
1564 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
1567 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1570 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
1571 TARGET_MMX_WITH_SSE.
1573 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
1576 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1579 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
1580 (plusminus:mmx_<plusminus_insn><mode>3): Check
1581 TARGET_MMX_WITH_SSE.
1582 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
1583 (<plusminus_insn><mode>3): New.
1584 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
1585 (*mmx_<plusminus_insn><mode>3): Likewise.
1587 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1590 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
1591 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
1593 * config/i386/mmx.m (mmx_punpckhbw): Changed to
1594 define_insn_and_split to support SSE emulation.
1595 (mmx_punpcklbw): Likewise.
1596 (mmx_punpckhwd): Likewise.
1597 (mmx_punpcklwd): Likewise.
1598 (mmx_punpckhdq): Likewise.
1599 (mmx_punpckldq): Likewise.
1601 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1602 Uros Bizjak <ubizjak@gmail.com>
1605 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
1607 (ix86_split_mmx_pack): Likewise.
1608 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
1610 (ix86_split_mmx_pack): Likewise.
1611 * config/i386/i386.md (mmx_isa): New.
1612 (enabled): Also check mmx_isa.
1613 * config/i386/mmx.md (any_s_truncate): New code iterator.
1614 (s_trunsuffix): New code attr.
1615 (mmx_packsswb): Removed.
1616 (mmx_packssdw): Likewise.
1617 (mmx_packuswb): Likewise.
1618 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
1619 MMX packsswb/packuswb with SSE2.
1620 (mmx_packssdw): Likewise.
1621 * config/i386/predicates.md (register_mmxmem_operand): New.
1623 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
1626 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1627 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
1628 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
1629 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
1630 (ix86_vector_mode_supported_p): Likewise.
1631 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
1633 2019-05-15 Martin Liska <mliska@suse.cz>
1636 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1639 2019-05-15 Richard Biener <rguenther@suse.de>
1641 * tree-into-ssa.c (pass_build_ssa::execute): Run
1642 update_address_taken before going into SSA.
1644 2019-05-15 Richard Biener <rguenther@suse.de>
1646 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
1647 as __BIT_FIELD_REF with type with -gimple.
1649 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
1651 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
1652 semantically equivalent branches (left over after prior refactorings).
1654 2019-05-15 Richard Biener <rguenther@suse.de>
1656 PR tree-optimization/88828
1657 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
1660 2019-05-14 Richard Biener <rguenther@suse.de>
1662 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
1663 as __VIEW_CONVERT with -gimple.
1665 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1668 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
1671 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1673 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
1674 define_split to become a define_insn_and_split.
1676 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
1678 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
1680 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
1681 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
1682 (sibcall_epilogue): Adjust.
1685 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1687 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
1688 to unsupported ones.
1689 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
1690 * config.host: Likewise.
1691 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
1692 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
1693 __svr4__]: Remove "brand" fallback.
1694 [!KSTAT_DATA_STRING]: Remove.
1695 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
1697 (comdat_group): Likewise.
1698 (set_have_as_tls): Likewise.
1699 (gcc_cv_target_dl_iterate_phdr): Likewise.
1700 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
1701 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
1702 * configure: Regenerate.
1703 * doc/install.texi: Simplify Solaris target triplets.
1704 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
1705 (Specific, *-*-solaris2*): Document Solaris 10 removal.
1706 Remove Solaris 10 references.
1707 Remove obsolete Solaris bug reference.
1708 (Specific, sparc-sun-solaris2.10): Remove.
1710 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
1712 * config/i386/i386.md (any_div): New code iterator.
1713 (paired_mod): New code attribute.
1714 (sgnprefix): Handle DIV and UDIV RTXes.
1716 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
1717 and udivmod<mode>4 patterns using any_div code iterator.
1718 (divmod splitters): Macroize splitters using any_div code iterator.
1719 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
1720 (*udivmodsi4_pow2_zext_2): Ditto.
1721 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
1722 and *udivmod<mode>4_noext patterns using any_div code iterator.
1723 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
1724 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
1725 patterns using any_div code iterator.
1726 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
1727 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
1728 patterns using any_div code iterator.
1729 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
1730 udivmodhiqi3 patterns using any_extend code iterator.
1732 2019-05-14 Richard Biener <rguenther@suse.de>
1733 H.J. Lu <hongjiu.lu@intel.com>
1735 PR tree-optimization/88828
1736 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1737 permuting in a single non-constant element not extracted
1740 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
1742 * internal-fn.def (SIGNBIT): New.
1743 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
1745 (signbitv4sf2): Likewise.
1747 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
1750 * config/mips/mips.c (mips_split_move): Skip forward SRC into
1751 next insn when the SRC reg is dead.
1753 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
1755 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
1756 (alloc_cand_and_find_basis): Ditto.
1757 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
1758 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
1759 (create_add_imm_cand, slsr_process_cast): Ditto.
1760 (slsr_process_copy, replace_mult_candidate): Ditto.
1761 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
1762 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
1763 (pass_strength_reduction::execute): Init the first NULL element.
1765 2019-05-13 Nathan Sidwell <nathan@acm.org>
1767 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
1768 (run_attempt): Reformat line break.
1770 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
1773 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
1774 data registers in sibcall epilogues.
1775 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1777 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
1780 * configure.ac (--enable-frame-pointer):
1781 Disable by default for cygwin and mingw.
1782 * configure: Regenerate.
1784 2019-05-13 Nathan Sidwell <nathan@acm.org>
1786 * dwarf2out.c (breakout_comdat_types): Move comment to correct
1788 (const_ok_for_output_1): Balance parens around #if/#else/#endif
1789 (gen_member_die): Move abstract origin check earlier. Only VARs
1790 can be static_inline_p. Simplify splicing control flow.
1792 2019-05-13 Richard Biener <rguenther@suse.de>
1794 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
1796 (vect_build_slp_tree_1): Likewise.
1798 2019-05-13 Richard Biener <rguenther@suse.de>
1800 PR tree-optimization/90402
1801 * tree-if-conv.c (tree_if_conversion): Value number only
1802 the loop body by making the latch an exit of the region
1804 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
1806 (do_rpo_vn): Deal with multiple edges into the entry block
1807 that are not backedges inside the region by skipping PHIs
1810 2019-05-13 Richard Biener <rguenther@suse.de>
1812 PR tree-optimization/90316
1813 * tree-ssa-pre.c (insert_aux): Fold into ...
1814 (insert): ... this function. Use a RPO walk to reduce the
1815 number of required iterations.
1817 2019-05-13 Martin Liska <mliska@suse.cz>
1819 PR tree-optimization/90416
1820 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
1821 string instead of passing the second part as va_arg argument.
1823 2019-05-13 Martin Liska <mliska@suse.cz>
1825 PR gcov-profile/90380
1826 * gcov.c (handle_cycle): Do not support zero cycle count,
1827 it should not be possible.
1828 (path_contains_zero_cycle_arc): New function.
1829 (circuit): Ignore zero cycle arc counts.
1831 2019-05-13 Martin Liska <mliska@suse.cz>
1833 PR gcov-profile/90380
1834 * gcov.c (enum loop_type): Remove the enum and
1836 (handle_cycle): Assert that we should not reach
1838 (circuit): Use loop_found instead of a tri-state loop_type.
1839 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
1842 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1845 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
1846 (ix86_output_indirect_branch_via_reg): Use output mechanism
1847 accounting for __USER_LABEL_PREFIX__.
1848 (ix86_output_indirect_branch_via_push): Likewise.
1849 (ix86_output_function_return): Likewise.
1850 (ix86_output_indirect_function_return): Likewise.
1852 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
1854 * doc/md.texi: Document use of code attributes in rtx patterns.
1855 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
1856 * read-rtl.c (find_code): Split out search loops into...
1857 (maybe_find_code): ...this new function.
1858 (check_code_iterator): Make the error message more informative.
1859 (check_code_attribute): New function.
1860 (rtx_reader::rtx_alloc_for_name): Likewise.
1861 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
1862 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
1863 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
1864 <max_opp> directly as an rtx code instead of via a match_operator.
1865 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
1866 (<su>abd<mode>_3): Update accordingly.
1868 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
1870 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
1871 is given, print the state of the EH "save world" computation for
1874 2019-05-11 Jakub Jelinek <jakub@redhat.com>
1877 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
1878 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
1880 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
1882 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
1883 Use pinsrd for TARGET_SSE4_1.
1884 * config/i386/sse.md (movdi_to_sse): Ditto.
1886 2019-05-10 Richard Biener <rguenther@suse.de>
1888 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
1889 (do_rpo_vn): Initialize next_value_id.
1891 2019-05-10 Martin Liska <mliska@suse.cz>
1893 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1896 2019-05-10 Jakub Jelinek <jakub@redhat.com>
1898 PR tree-optimization/90385
1899 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
1900 arguments of the exit phis.
1903 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
1904 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
1906 (copy_tree_body_r): Likewise.
1907 (copy_fn): Set id.do_not_fold to true.
1909 2019-05-10 Martin Liska <mliska@suse.cz>
1911 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
1912 Reapply changes from r269790.
1914 2019-05-10 Martin Liska <mliska@suse.cz>
1917 * doc/invoke.texi: New params.
1918 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
1919 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
1920 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
1922 * tree-switch-conversion.h (struct jump_table_cluster):
1925 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
1927 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
1929 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
1931 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
1933 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
1935 PR rtl-optimization/88879
1936 * sel-sched.c (sel_target_adjust_priority): Remove assert.
1938 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
1941 * config/arm/arm.c (callee_saved_reg_p): Move before
1942 thumb_find_work_register.
1943 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
1944 thumb_find_work_register. Only call df_get_live_out once.
1945 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
1946 (thumb_find_work_register): Use
1947 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
1948 algorithms to locate a spare call clobbered reg.
1950 2019-05-09 Martin Liska <mliska@suse.cz>
1952 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
1953 and MAX_EXPR in GIMPLE FE format.
1955 2019-05-09 Martin Liska <mliska@suse.cz>
1957 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
1958 * gimple-pretty-print.c (dump_gimple_bb_header):
1960 (pp_cfg_jump): Dump edge probability.
1961 * profile-count.c (profile_quality_as_string): Simplify
1962 with a static array.
1963 (parse_profile_quality): New function.
1964 (profile_count::dump): Simplify with a static array.
1965 (profile_count::from_gcov_type): Add new argument.
1966 * profile-count.h (parse_profile_quality): Likewise.
1967 * predict.h (set_hot_bb_threshold): New.
1968 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
1970 * predict.c (get_hot_bb_threshold): Set from the new param.
1971 (set_hot_bb_threshold): New.
1973 2019-05-09 Richard Biener <rguenther@suse.de>
1975 PR tree-optimization/90395
1976 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
1977 rewrite vector stores that throw internally.
1979 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
1981 * cif-code.def (CHKP): Remove.
1984 * configure.ac (--enable-frame-pointer): Disable by default for
1986 * configure: Regenerate.
1988 2019-05-09 Alan Modra <amodra@gmail.com>
1991 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
1992 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
1993 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
1994 cost for general <-> vsx when direct moves are available.
1995 Cost union classes at minimal cost for any reg in the class.
1996 Correct calculation for moves between vsx, float, and altivec.
1997 Don't return a low cost for moves between special regs. Don't
1998 use hard coded register numbers.
1999 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
2000 (rs6000_ira_change_pseudo_allocno_class): New function.
2001 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
2002 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
2004 (movsi_internal1): Don't disparage vector alternatives.
2005 (mov<mode>_internal): Likewise, excepting alternative that
2007 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
2008 we <- b alternative.
2010 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2013 PR tree-optimization/89060
2014 * tree-ssa-live.h (live_vars_map): New typedef.
2015 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
2016 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
2017 (struct compute_live_vars_data): New type.
2018 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
2019 live_vars_at_stmt, destroy_live_vars): New functions.
2020 * tree-tailcall.c: Include tree-ssa-live.h.
2021 (live_vars, live_vars_vec): New global variables.
2022 (find_tail_calls): Perform variable life analysis before punting.
2023 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
2024 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
2026 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
2027 Perform variable life analysis to select variables that really need
2029 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
2030 instead set id->eh_landing_pad_dest and assert it is the same.
2031 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
2033 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
2034 Richard Earnshaw <rearnsha@arm.com>
2037 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
2039 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
2040 (thumb1_compute_save_core_reg_mask): Don't force a spare work
2041 register if both the epilogue and prologue can use call-clobbered
2043 (thumb1_unexpanded_epilogue): Use
2044 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
2045 picking temporaries for restoring high regs to match that of the
2046 prologue where possible.
2047 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
2048 the list of work registers. Detect if the return address is still live
2049 at the end of the prologue and avoid using it for a work register if so.
2050 If the return address is not live, add LR to the list of pushable regs
2051 after the first pass.
2053 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2055 PR tree-optimization/90078
2056 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
2057 (INFTY): Increase the value for infinite cost.
2058 (struct comp_cost): Promote type of members to int64_t.
2059 (infinite_cost): Don't set complexity in initialization.
2060 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
2061 overflows to infinite_cost.
2062 (adjust_setup_cost): Promote type of parameter and cost computation
2064 (struct ainc_cost_data, struct iv_ca): Promote type of member to
2066 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
2067 cost computation to int64_t.
2068 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
2069 int64_t's format specifier in dump.
2071 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2073 PR tree-optimization/90240
2074 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
2075 with respect to scaling factor pre-computed for each basic block.
2076 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
2077 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
2078 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
2079 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
2080 live range for array of loop's basic blocks. Cleanup aux field of
2081 loop's basic blocks.
2083 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2085 PR tree-optimization/90356
2086 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
2088 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
2090 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
2091 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
2092 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
2093 (ix86_handle_option): Handle -mavx512bf16.
2094 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
2096 * config/i386/avx512bf16vlintrin.h: New.
2097 * config/i386/avx512bf16intrin.h: New.
2098 * config/i386/cpuid.h (bit_AVX512BF16): New.
2099 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
2100 * config/i386/i386-builtin-types.def: Add new types.
2101 * config/i386/i386-builtin.def: Add new builtins.
2102 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2104 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
2105 (ix86_option_override_internal): Handle BF16.
2106 (ix86_valid_target_attribute_inner_p): Ditto.
2107 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
2108 * config/i386/i386-builtin.c (enum processor_features): Add
2110 (static const _isa_names_table isa_names_table): Ditto.
2111 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
2112 (PTA_AVX512BF16): Ditto.
2113 * config/i386/i386.opt: Add -mavx512bf16.
2114 * config/i386/immintrin.h: Include avx512bf16intrin.h
2115 and avx512bf16vlintrin.h.
2116 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
2117 avx512f_cvtneps2bf16_<mode><mask_name>,
2118 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
2119 * config/i386/subst.md (mask_half): Add new subst.
2120 * doc/invoke.texi: Document -mavx512bf16.
2122 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
2124 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
2126 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
2127 (rs6000_debug_legitimize_reload_address): Delete.
2128 (rs6000_legitimize_reload_address_ptr): Delete.
2129 (rs6000_option_override_internal): Adjust.
2130 (mem_operand_gpr): Adjust comment.
2131 (legitimate_lo_sum_address_p): Ditto.
2132 (rs6000_legitimize_reload_address): Delete.
2133 (rs6000_debug_legitimize_reload_address): Delete.
2134 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
2136 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
2139 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2140 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
2141 to compute vector element selector for both constant and variable
2144 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2146 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
2147 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
2148 ashrdi3_cvt using SWI48 mode iterator.
2150 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2152 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
2153 (aarch64_<su>abd<mode>_3): Likewise.
2154 (*aarch64_<su>abd<mode>_3): New define_insn.
2155 (<sur>sad<vsi2qi>): New define_expand.
2156 * config/aarch64/iterators.md: Added MAX_OPP attribute.
2157 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
2158 (build_vect_cond_expr): Likewise.
2160 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2162 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
2163 clobbers outside of accessible_reg_set.
2164 * config/i386/i386.c (ix86_conditional_register_usage):
2165 Disable register sets by clearing corresponding bits in
2166 accessible_reg_set. Do not set corresponding bits in fixed_regs,
2167 call_used_regs and don't clear corresponding reg_names array members.
2169 2019-05-07 Richard Biener <rguenther@suse.de>
2171 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
2172 not specified still compute a comp_vectype for invariant
2175 2019-05-07 Richard Biener <rguenther@suse.de>
2177 PR tree-optimization/90316
2178 * tree-ssa-pre.c (translate_vuse_through_block): When
2179 same_valid is NULL do not bother to search for a virtual
2181 (phi_translate_1): When operands changed we cannot keep
2182 the same value-number so do not bother to ask whether
2183 that's possible from translate_vuse_through_block.
2185 2019-05-07 Martin Liska <mliska@suse.cz>
2187 * bitmap.c (bitmap_register): Come up with
2188 alloc_descriptor_max_uid and assign it for
2190 (register_overhead): Use get_descriptor as
2192 (release_overhead): New.
2193 (bitmap_elem_to_freelist): Call it.
2194 (bitmap_elt_clear_from): Likewise.
2195 (bitmap_obstack_free): Likewise.
2196 (bitmap_move): Sensitively release memory.
2197 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
2198 (bitmap_initialize): Initialize alloc_descriptor to zero.
2199 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
2201 2019-05-07 Richard Biener <rguenther@suse.de>
2203 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
2204 we build a SLP node. Remove max_size and limiting.
2205 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
2207 2019-05-07 Richard Biener <rguenther@suse.de>
2209 PR tree-optimization/90316
2210 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
2212 (walk_non_aliased_vuses): Take walking limit argument.
2213 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
2214 walking if it is reached instead of just counting.
2215 (get_continuation_for_phi): Likewise.
2216 (walk_non_aliased_vuses): Likewise, instead of leaving counter
2217 limiting to the callback.
2218 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
2219 (vn_reference_lookup_3): Likewise.
2220 (vn_reference_lookup_pieces): Likewise.
2221 (vn_reference_lookup): Likewise.
2222 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
2223 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
2224 (avail_exprs_stack::lookup_avail_expr): Likewise.
2226 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
2228 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
2229 for comparaible types in the second direction even if first one
2230 hits incomparable type.
2232 2019-05-07 Richard Biener <rguenther@suse.de>
2235 * lto-wrapper.c (debug_objcopy): Use the original filename
2236 including archive offset for the filename used for -save-temps.
2238 2019-05-07 Li Jia He <helijia@linux.ibm.com>
2240 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
2243 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2245 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
2246 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
2247 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
2248 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
2249 (FRAME_POINTER_REGNUM): Change numbering.
2250 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
2251 (alt_reg_names): Adjust.
2252 (rs6000_conditional_register_usage): Don't mark hard register 64 as
2254 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
2255 (DWARF_FRAME_REGISTERS): Delete.
2256 (DWARF2_FRAME_REG_OUT): Fix whitespace.
2257 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2259 (REG_ALLOC_ORDER): Adjust.
2260 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
2261 (REG_CLASS_CONTENTS): Adjust.
2262 (RETURN_ADDR_RTX): Change comment.
2263 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
2265 (REGISTER_NAMES): Adjust.
2266 (ADDITIONAL_REGISTER_NAMES): Adjust.
2267 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
2269 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2271 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
2273 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
2274 (DWARF_FRAME_REGISTERS): Adjust.
2275 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2277 (REG_ALLOC_ORDER): Adjust.
2278 (enum reg_class): Delete SPR_REGS.
2279 (REG_CLASS_NAMES): Delete SPR_REGS.
2280 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
2281 (REGISTER_NAMES): Adjust.
2282 (ADDITIONAL_REGISTER_NAMES): Adjust.
2283 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
2284 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
2285 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
2286 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
2287 (htm_spr_regno): Delete.
2288 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
2290 (rs6000_dbx_register_number): Adjust.
2292 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2294 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
2296 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2298 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
2299 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
2301 2019-05-06 Jakub Jelinek <jakub@redhat.com>
2303 PR tree-optimization/88709
2304 PR tree-optimization/90271
2305 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
2306 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
2307 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
2309 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
2310 of the store merging group is larger than
2311 PARAM_STORE_MERGING_MAX_SIZE parameter.
2312 (split_group): Add bzero_first argument. If set, always emit first
2313 the first store which must be = {} of the whole area and then for the
2314 rest of the stores consider all zero bytes as paddings.
2315 (imm_store_chain_info::output_merged_store): Check if first store
2316 is = {} of the whole area and if yes, determine which setting of
2317 bzero_first for split_group gives smaller number of stores. Adjust
2318 split_group callers.
2319 (lhs_valid_for_store_merging_p): Allow decls.
2320 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
2322 (pass_store_merging::process_store): Likewise.
2324 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2327 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2328 handling of V1TImode.
2330 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
2333 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
2334 and enable_frame_pointer ...
2335 * configure.ac: ... here. Update help strings for
2336 --enable-frame-pointer.
2337 * configure: Regenerate.
2338 * config/i386/i386-options.c (ix86_option_override_internal): Remove
2339 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
2340 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
2341 (USE_X86_64_FRAME_POINTER): Ditto.
2343 2019-05-06 Martin Liska <mliska@suse.cz>
2345 * config.gcc: Append to target_gtfiles and fix indentation.
2347 2019-05-06 Richard Biener <rguenther@suse.de>
2349 PR tree-optimization/90358
2350 * tree-vect-stmts.c (get_group_load_store_type): Properly
2351 detect unused upper half of load.
2352 (vectorizable_load): Likewise.
2354 2019-05-06 Richard Biener <rguenther@suse.de>
2356 PR tree-optimization/88828
2357 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
2358 (simplify_vector_constructor): ...here. Handle constants in
2361 2019-05-06 Richard Biener <rguenther@suse.de>
2363 PR tree-optimization/90328
2364 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
2365 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
2366 is valid in the loop nest before using it.
2367 (initialize_data_dependence_relation): Adjust.
2368 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
2369 loop as loop-nest to dr_may_alias_p.
2371 2019-05-06 Richard Biener <rguenther@suse.de>
2373 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
2375 2019-05-06 Richard Biener <rguenther@suse.de>
2377 PR tree-optimization/90316
2378 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
2379 compute target on demand.
2380 (get_continuation_for_phi): Remove code walking stmts to
2381 get to a target virtual operand which could end up being
2384 2019-05-06 Martin Liska <mliska@suse.cz>
2387 * config/i386/i386-options.c (ix86_option_override_internal): Error only
2388 when -mabi is selected to a non-default version.
2390 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
2391 Martin Liska <mliska@suse.cz>
2393 * Makefile.in: Add lto-dump.texi.
2394 * cgraph.h: Add new functions get_visibility_string and
2395 get_symtab_type_string.
2396 * doc/gcc.texi: Include lto-dump section.
2397 * doc/lto-dump.texi: New file.
2398 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
2399 (parse_dump_option): Factor out this function.
2400 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
2401 (parse_dump_option): Export the function.
2402 * symtab.c (symtab_node::get_visibility_string): New function.
2403 (symtab_node::get_symtab_type_string): Likewise.
2405 2019-05-06 Martin Liska <mliska@suse.cz>
2407 * config/i386/i386-builtins.c: New file.
2408 * config/i386/i386-builtins.h: New file.
2409 * config/i386/i386-expand.c: New file.
2410 * config/i386/i386-expand.h: New file.
2411 * config/i386/i386-features.c: New file.
2412 * config/i386/i386-features.h: New file.
2413 * config/i386/i386-options.c: New file.
2414 * config/i386/i386-options.h: New file.
2415 * config.gcc: Add new files into extra_objs and
2417 * config/i386/i386.c: Split content of the file
2418 into newly introduced files.
2419 * config/i386/i386.h: Declare common variables
2421 * config/i386/t-i386: Define dependencies for new files.
2423 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
2426 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
2427 Restrict 'all' variant to 32-bit configurations.
2428 (unaligned_loadhiu): Likewise.
2429 (unaligned_storehi): Likewise.
2430 (unaligned_storesi): Likewise.
2431 (unaligned_loadhis): Disable when compiling for thumb1.
2433 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
2435 PR tree-optimization/90269
2436 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
2439 2019-05-03 Martin Liska <mliska@suse.cz>
2441 * hash-map.h: Add is_empty function.
2442 * hash-set.h: Likewise.
2443 * hash-table.h: Likewise.
2444 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
2445 elements () == 0 (and similar usages).
2446 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
2447 * gimplify.c (gimplify_bind_expr): Likewise.
2448 (gimplify_switch_expr): Likewise.
2449 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
2450 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
2451 * postreload-gcse.c (dump_hash_table): Likewise.
2452 (gcse_after_reload_main): Likewise.
2453 * predict.c (combine_predictions_for_bb): Likewise.
2454 * tree-parloops.c (reduction_phi): Likewise.
2455 (separate_decls_in_region): Likewise.
2456 (transform_to_exit_first_loop): Likewise.
2457 (gen_parallel_loop): Likewise.
2458 (gather_scalar_reductions): Likewise.
2459 (try_create_reduction_list): Likewise.
2460 * var-tracking.c (dump_vars): Likewise.
2461 (emit_notes_for_changes): Likewise.
2462 (vt_emit_notes): Likewise.
2464 2019-05-03 Richard Biener <rguenther@suse.de>
2466 PR tree-optimization/90316
2467 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
2470 2019-05-03 Richard Biener <rguenther@suse.de>
2472 * tree-vect-stmts.c (get_group_load_store_type): Avoid
2473 peeling for gaps by loading only lower halves of vectors
2475 (vectorizable_load): Likewise.
2477 2019-05-03 Richard Biener <rguenther@suse.de>
2480 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
2482 2019-05-03 Richard Biener <rguenther@suse.de>
2485 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
2486 Handle STRING_CST vs DECL or STRING_CST.
2488 2019-05-03 Richard Biener <rguenther@suse.de>
2490 PR tree-optimization/88963
2491 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
2492 vector loads feeding only BIT_FIELD_REFs to component
2493 loads. Rewrite stores fed by CONSTRUCTORs to component
2496 2019-05-03 Jakub Jelinek <jakub@redhat.com>
2498 * opts.h (finish_options): Remove lang_mask argument.
2499 (print_help, help_option_argument): Declare.
2500 * opts.c (print_help): Remove forward declaration, no longer static.
2501 (finish_options): Remove lang_mask argument, don't call print_help
2503 * opts-global.c (decode_options): Adjust finish_option caller, call
2506 PR tree-optimization/90303
2507 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
2508 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
2510 2019-05-03 Richard Biener <rguenther@suse.de>
2512 PR tree-optimization/89698
2513 * gimple-fold.c (canonicalize_constructor_val): Early out
2514 for constants, handle unfolded INTEGER_CSTs as they appear in
2515 C++ virtual table ctors.
2517 2019-05-03 Richard Biener <rguenther@suse.de>
2519 * passes.c (execute_function_todo): Remove dead code.
2521 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2523 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
2524 the internal register number, for any "real" register.
2526 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
2528 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
2529 correct numbers for TFHAR, TFIAR, TEXASR.
2531 2019-05-02 Richard Biener <rguenther@suse.de>
2533 PR tree-optimization/89653
2534 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
2535 update-address-taken before the pass.
2536 * passes.def (pass_tree_loop_init): Put comment before it.
2538 2019-05-02 Richard Biener <rguenther@suse.de>
2540 PR tree-optimization/89509
2541 * tree-ssa-structalias.c (compute_dependence_clique): Look
2542 at the first subvar when determining whether it is restrict.
2544 2019-05-02 Richard Biener <rguenther@suse.de>
2546 PR tree-optimization/90273
2547 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
2548 useless debug stmts.
2550 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2552 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
2554 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
2556 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
2557 VEC_COND_EXPR be inserted to emulate a conditional internal function.
2558 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
2559 (vectorizable_reduction): Use the functions above to vectorize in a
2560 fully masked loop codes that don't have a conditional internal
2563 2019-05-02 Martin Liska <mliska@suse.cz>
2565 * cgraphclones.c: Call valid_attribute_p with 1 for
2567 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
2568 it's for target attribute.
2569 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
2570 Add new boolean argument.
2571 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2573 (ix86_valid_target_attribute_tree): Pass target_clone_attr
2574 to ix86_valid_target_attribute_inner_p.
2575 (ix86_valid_target_attribute_p): Pass flags argument to
2576 ix86_valid_target_attribute_inner_p.
2577 (get_builtin_code_for_version): Use 0 as it's target attribute.
2579 2019-05-02 Martin Liska <mliska@suse.cz>
2581 * gcc.c (process_command): Add dummy file only
2583 * opts-global.c (decode_options): Pass lang_mask.
2584 * opts.c (print_help): New function.
2585 (finish_options): Print --help if help_option_argument
2587 (common_handle_option): Factor out content of OPT__help_
2589 * opts.h (finish_options): Add new argument.
2591 2019-05-02 Martin Liska <mliska@suse.cz>
2594 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
2595 With -minline-all-stringops use inline expansion using 4B loop.
2596 * doc/invoke.texi: Document the change of
2597 -minline-all-stringops.
2599 2019-05-01 Jeff Law <law@redhat.com>
2601 PR tree-optimization/88797
2602 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
2603 PHI feeds a conditional on the RHS of an assignment.
2605 2019-04-30 Andrew Waterman <andrew@sifive.com>
2606 Jim Wilson <jimw@sifive.com>
2608 * config/riscv/constraints.md (L): New.
2609 * config/riscv/predicates.md (lui_operand): New.
2610 (sfb_alu_operand): New.
2611 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
2612 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
2613 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
2614 * config/riscv/risc.md (type): Add sfb_alu.
2615 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
2616 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
2617 (branch_zero<mode>): Delete.
2619 (mov<GPR:mode><X:mode>cc): Likewise.
2620 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
2622 2019-04-30 Nathan Sidwell <nathan@acm.org>
2624 * tree.h (MARK_TS_EXP): New.
2626 2019-04-30 Martin Liska <mliska@suse.cz>
2628 * opts.c (enable_warning_as_error): Provide hints
2629 for unknown options.
2631 2019-04-30 Martin Liska <mliska@suse.cz>
2634 * doc/invoke.texi: Add missing dash for gas-locview-support
2635 and gno-as-locview-support.
2637 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2640 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
2641 whitespace at the start of target attribute string.
2643 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2646 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
2647 Define __ARM_FEATURE_ATOMICS.
2649 2019-04-30 Martin Liska <mliska@suse.cz>
2651 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
2652 into built_in_function enum. Remove code for endp == 2 and
2653 use BUILT_IN_* constants.
2654 (gimple_fold_builtin): Call the function with fcode.
2656 2019-04-30 Martin Liska <mliska@suse.cz>
2658 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
2659 DECL_FUNCTION_CODE into ix86_builtins enum before
2660 the switch statement.
2662 2019-04-30 Jakub Jelinek <jakub@redhat.com>
2664 PR tree-optimization/89475
2665 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
2668 2019-04-30 Martin Liska <mliska@suse.cz>
2670 PR translation/90274
2671 * opts.c (print_filtered_help): Wrap string in _(...).
2673 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
2675 PR tree-optimization/90240
2677 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2679 PR tree-optimization/90078
2680 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2681 checks for infinite_cost overflow.
2683 2019-04-29 Jeff Law <law@redhat.com>
2685 * passes.def: Move -Wrestrict pass after copy propagation.
2687 2019-04-29 Maya Rashish <coypu@sdf.org>
2689 * config.gcc (default_gnu_indirect_function): Default to yes
2690 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
2691 sparc*-*-netbsd*, x86_64-*-netbsd*.
2693 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
2695 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
2696 where cond2 is NE_EXPR.
2697 (is_value_included_in): Update comment.
2699 2019-04-29 Richard Biener <rguenther@suse.de>
2701 PR tree-optimization/90278
2702 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
2703 EH on comparison simplification.
2705 2019-04-29 Jason Merrill <jason@redhat.com>
2707 PR c++/82081 - tail call optimization breaks noexcept
2708 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
2709 nothrow function to a might-throw function into a tail call.
2711 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
2713 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
2714 (DDR_INNER_LOOP): Likewise.
2715 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
2716 (initialize_data_dependence_relation): Likewise.
2717 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
2719 2019-04-29 Jakub Jelinek <jakub@redhat.com>
2721 PR rtl-optimization/90257
2722 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
2726 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2730 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2733 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2736 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2738 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2740 2019-04-29 Richard Biener <rguenther@suse.de>
2742 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
2745 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
2747 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
2748 varasm.h, and netbsd-protos.h.
2750 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
2753 * config/i386/i386-protos.h (ix86_data_alignment): Change
2754 the second argument type to unsigned int.
2755 * config/i386/i386.c (ix86_data_alignment): Change "align"
2756 argument type to unsigned int.
2758 2019-04-27 Martin Liska <mliska@suse.cz>
2761 * opt-suggestions.c (option_proposer::build_option_suggestions):
2762 When get_valid_option_values returns empty values, add the
2763 misspelling candidate.
2765 2019-04-26 Jim Wilson <jimw@sifive.com>
2767 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
2769 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
2770 Pass orig_mode to riscv_build_integer.
2771 (riscv_split_integer): Pass mode to riscv_move_integer.
2772 (riscv_legitimize_const_move): Likewise.
2773 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
2774 promoted_mode. Replace force_reg call with code to load constant into
2775 promoted reg and then subreg it for the store.
2776 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
2779 2018-04-26 Eugene Sharygin <eush@ispras.ru>
2781 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
2784 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
2786 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
2787 commentary about the encoding of precision.
2789 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
2791 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
2792 * config/i386/t-freebsd64: New file.
2793 * config.gcc: Add the t-freebsd64 for multilib support.
2795 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
2797 * doc/extend.texi (vector_size): Add missing comma after @xref.
2799 2019-04-25 Jakub Jelinek <jakub@redhat.com>
2801 * BASE-VER: Set to 10.0.0.
2803 2019-04-25 Richard Biener <rguenther@suse.de>
2806 * gimplify.c (gimplify_expr): Avoid turning a lvalue
2807 VIEW_CONVERT_EXPR into one operating on an rvalue.
2809 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
2812 * config/i386/i386.c (feature_priority): Moved to file scope.
2813 (processor_features): Likewise.
2814 (processor_model): Likewise.
2815 (_arch_names_table): Likewise.
2816 (arch_names_table): Likewise.
2817 (_feature_list): Removed.
2818 (feature_list): Likewise.
2819 (_isa_names_table): Moved to file scope. Add priority.
2820 (isa_names_table): Likewise.
2821 (get_builtin_code_for_version): Replace feature_list with
2822 isa_names_table. Update error message for P_ZERO priority.
2824 2019-04-25 Richard Biener <rguenther@suse.de>
2826 * tree-pass.h (make_pass_phi_only_cprop): Remove.
2827 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
2829 2019-04-24 Jeff Law <law@redhat.com>
2831 PR tree-optimization/90037
2832 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
2833 * passes.def: Replace all instance of phi-only cprop with the
2834 lattice propagator. Move propagation pass from after erroneous
2835 path isolation to before erroneous path isolation.
2836 * tree-ssa-phionlycprop.c: Remove.
2838 2019-04-24 Richard Biener <rguenther@suse.de>
2841 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
2842 by size and BITS_PER_UNIT on poly-wide-ints.
2844 2019-04-25 Richard Biener <rguenther@suse.de>
2847 * match.pd: Add pattern to simplify view-conversion of an
2850 2019-04-24 Clement Chigot <clement.chigot@atos.net>
2852 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
2853 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
2854 for Go on 32 bit AIX.
2855 * config/rs6000/aix72.h: Likewise.
2857 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2860 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
2861 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
2863 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
2866 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
2867 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
2868 for restored hard frame pointer.
2869 (s390_sched_dependencies_evaluation): Implement new target hook.
2870 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
2872 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
2874 * config/arc/arc-options.def: Fix typos and spelling mistakes.
2875 * config/arc/arc.c (arc_init): Cleanup warning message.
2876 (arc_override_options): Likewise.
2878 2019-04-24 Jakub Jelinek <jakub@redhat.com>
2881 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
2882 a register if both if_true and if_false are MEMs.
2884 PR tree-optimization/90208
2885 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
2886 after labels of new_bb, not before them.
2888 PR tree-optimization/90211
2889 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
2890 which are not SSA_NAMEs.
2892 2018-04-23 Sudakshina Das <sudi.das@arm.com>
2894 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
2896 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
2898 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2900 PR rtl-optimization/87979
2901 * modulo-sched.c (sms_schedule): Start ii value "mii" should
2904 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
2906 PR rtl-optimization/84032
2907 * modulo-sched.c (ps_insn_find_column): Change condition so that
2908 branch will always be the last insn in a row inside partial
2911 2019-04-23 Richard Biener <rguenther@suse.de>
2914 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
2915 dest_single_pred_p argument.
2916 (remove_forwarder_block): Adjust.
2917 (remove_forwarder_block_with_phi): Likewise.
2919 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2920 Bernd Edlinger <bernd.edlinger@hotmail.de>
2921 Jakub Jelinek <jakub@redhat.com>
2924 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
2925 if used with general-regs-only.
2926 (arm_conditional_register_usage): Don't add non-general regs if
2928 (arm_valid_target_attribute_rec): Handle general-regs-only.
2929 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
2931 (TARGET_HARD_FLOAT_SUB): Define.
2932 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
2933 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
2934 (TARGET_REALLY_IWMMXT2): Likewise.
2935 * config/arm/arm.opt: Add -mgeneral-regs-only.
2936 * doc/extend.texi: Document ARM general-regs-only target.
2937 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
2939 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2941 PR tree-optimization/90078
2942 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
2943 checks for infinite_cost overflow.
2945 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
2947 PR tree-optimization/90021
2948 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
2949 and check univariate against it.
2950 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
2951 * tree-data-ref.c (add_other_self_distances): Pass new argument.
2953 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
2957 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
2960 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
2963 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
2965 * lra-spills.c (lra_final_code_change): Remove useless move insns.
2967 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
2969 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
2970 names using operand format, rather than hard-wired.
2971 (speculation_barrier): Likewise.
2973 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
2975 PR tree-optimization/88055
2976 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
2977 (gen_one_condition): Use it if !HONOR_NANS.
2979 2019-04-19 Jakub Jelinek <jakub@redhat.com>
2982 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
2983 assign_temp instead of gen_reg_rtx.
2985 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
2987 PR translation/90118
2988 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2989 Add missing space before %<.
2991 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
2993 PR rtl-optimization/87871
2994 * ira-lives.c (make_object_dead): Don't add conflicts to
2995 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
2997 2019-04-18 Martin Sebor <msebor@redhat.com>
3000 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
3001 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
3002 assuming type size fits in SHWI.
3004 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
3007 * ipa-inline.c (flatten_function): New parameter UPDATE.
3008 (ipa_inline, early_inliner): Use it.
3010 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3012 * fold-const.c (int_const_binop): Return early on failure.
3014 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3017 * combine.c (force_int_to_mode): Cast the argument rather than
3018 the result of known_alignment.
3019 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
3021 2019-04-18 Richard Biener <rguenther@suse.de>
3024 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
3026 (remove_forwarder_block): ... here.
3027 (remove_forwarder_block_with_phi): Also move debug stmts here.
3029 2019-04-18 Jakub Jelinek <jakub@redhat.com>
3031 PR translation/79183
3032 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
3033 inform where appropriate.
3035 2019-04-18 Richard Biener <rguenther@suse.de>
3037 * tree.c (get_qualified_type): Put found type variants at the
3038 head of the variant list.
3040 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3042 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
3044 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
3047 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
3048 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
3049 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
3050 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
3051 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
3053 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
3055 * ira-conflicts.c (print_allocno_conflicts): Always print something,
3056 even for allocno's with no conflicts.
3057 (print_conflicts): Print an extra newline.
3059 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3061 * auto-inc-dec.c (attempt_change): Set the alignment of the
3062 temporary memory to that of the original.
3064 2019-04-17 Joao Moreira <jmoreira@suse.de>
3066 * targhooks.c (default_print_patchable_function_entry): Emit
3067 __patchable_function_entries section with writable flags to allow
3068 relocation resolution.
3070 2019-04-17 Jonny Grant <jg@jguk.org>
3072 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
3074 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3077 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
3080 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
3082 * config/arc/arc.c (arc_init): Format diagnostic string.
3083 (arc_override_options): Likewise.
3084 (check_if_valid_regno_const): Likewise.
3085 (arc_reorg): Likewise.
3087 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3090 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
3092 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
3094 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
3095 (*movdi_update1): Use Pmode.
3096 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
3097 (movdi_<mode>_update_stack): Rename to ...
3098 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
3100 (*movsi_update1): Use Pmode.
3101 (*movsi_update2): Use Pmode.
3102 (movsi_update): Rename to ...
3103 (movsi_<mode>_update): ... this. Use Pmode.
3104 (movsi_update_stack): Fix condition.
3105 (*movhi_update1): Use Pmode. Fix argument to
3106 avoiding_indexed_address_p.
3107 (*movhi_update2): Ditto.
3108 (*movhi_update3): Ditto.
3109 (*movhi_update4): Ditto.
3110 (*movqi_update1): Ditto.
3111 (*movqi_update2): Ditto.
3112 (*movqi_update3): Ditto.
3113 (*movsf_update1, *movdf_update1): Merge, rename to...
3114 (*mov<mode>_update1): This. Use Pmode. Fix argument to
3115 avoiding_indexed_address_p. Add "size" attribute.
3116 (*movsf_update2, *movdf_update2): Merge, rename to...
3117 (*mov<mode>_update2): This. Ditto.
3118 (*movsf_update3): Use Pmode. Fix argument to
3119 avoiding_indexed_address_p.
3120 (*movsf_update4): Ditto.
3121 (allocate_stack): Simplify condition. Adjust pattern names.
3123 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3126 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
3127 whitespace at the start of target attribute string.
3129 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
3132 * config/rs6000/power9.md: Add store forwarding bypass.
3134 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
3137 * valtrack.c (dead_debug_insert_temp): Reset debug references
3138 to the return value of a call being removed.
3140 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3142 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
3143 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
3144 implement target hook.
3145 (arc_memory_move_cost): New function.
3146 (TARGET_REGISTER_MOVE_COST): Define.
3147 (TARGET_MEMORY_MOVE_COST): Likewise.
3148 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
3149 (MEMORY_MOVE_COST): Likewise.
3151 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3153 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
3154 (sibcall_value_insn): Likewise.
3155 * config/arc/constraints.md (Rs5): Remove.
3157 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3159 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
3160 for last two fake registers.
3161 (arc_conditional_register_usage): Make sure fake frame and arg
3162 pointer regs are in general regs class.
3163 (FRAME_POINTER_MASK): Remove.
3164 (RETURN_ADDR_MASK): Remove.
3165 (arc_must_save_register): Use hard frame regnum.
3166 (frame_restore_reg): Use hard_frame_pointer_rtx.
3167 (arc_save_callee_saves): Likewise.
3168 (arc_restore_callee_saves): Likewise.
3169 (arc_save_callee_enter): Likewise.
3170 (arc_restore_callee_leave): Likewise.
3171 (arc_save_callee_milli): Likewise.
3172 (arc_eh_return_address_location): Likewise.
3173 (arc_check_multi): Use hard frame regnum.
3174 (arc_can_eliminate): Likewise.
3175 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
3176 for register allocator.
3177 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
3178 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
3179 (FRAME_POINTER_REGNUM): Change it to a fake register.
3180 (HARD_FRAME_POINTER_REGNUM): Defined.
3181 (ARG_POINTER_REGNUM): Change it to a new fake register.
3182 (ELIMINABLE_REGS): Update.
3183 (REGISTER_NAMES): Update names.
3184 * config/arc/arc.md (LP_START): Remove.
3186 (shift_si3_loop): Update pattern.
3188 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3190 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
3191 to avoid delay slot scheduling.
3192 (arc_must_save_register): Don't save SP.
3193 * config/arc/arc.md (stack_tie): Remove.
3194 (UNSPEC_ARC_STKTIE): Likewise.
3196 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
3197 Shiva Chen <shiva0217@gmail.com>
3199 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
3200 code gen with large shift amount.
3202 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
3204 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
3207 2019-04-16 Jakub Jelinek <jakub@redhat.com>
3210 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
3211 print -m64/-mx32/-m32 if it is true.
3212 (ix86_debug_options, ix86_function_specific_print): Pass true as
3213 ADD_ABI_P to ix86_target_string.
3214 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
3215 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
3216 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
3218 PR rtl-optimization/90082
3219 * dce.c (can_delete_call): New function.
3220 (deletable_insn_p, mark_insn): Use it.
3222 PR tree-optimization/90090
3223 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
3225 (is_division_by_square): Likewise. Formatting fix.
3227 2019-04-16 Richard Biener <rguenther@suse.de>
3229 PR tree-optimization/56049
3230 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
3231 equality check if alias-set zero will prevail.
3233 2019-04-15 Jeff Law <law@redhat.com>
3235 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
3236 size and alignment as unsigned.
3238 2019-04-15 Richard Biener <rguenther@suse.de>
3241 * tree-loop-distribution.c (destroy_loop): Preserve correct
3244 2019-04-15 Richard Biener <rguenther@suse.de>
3246 PR tree-optimization/90071
3247 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
3248 abnormal operands from def stmts.
3250 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
3252 PR rtl-optimization/89794
3253 * combine.c (count_auto_inc): New function.
3254 (try_combine): Count how many auto_inc expressions there were in the
3255 original instructions. Ensure we have the same number in the new
3256 instructions. Remove the code that tried to ensure auto_inc side
3257 effects on i1 and i0 are not lost.
3259 2019-04-15 Richard Biener <rguenther@suse.de>
3262 * tree.h (auto_var_p): Declare.
3263 * tree.c (auto_var_p): New function, split out from ...
3264 (auto_var_in_fn_p): ... here.
3265 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
3267 (new_var_info): Initialize it.
3268 (set_uids_in_ptset): Also set the shadow variable uid if required.
3269 (ipa_pta_execute): Postprocess points-to solutions assigning
3270 shadow variable uids for locals that may reach their containing
3271 function recursively.
3272 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
3273 assert but instead check whether the points-to solution is
3276 2019-04-15 Martin Jambor <mjambor@suse.cz>
3279 * cgraph.c (clone_of_p): Loop over clone chain for each step in
3282 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
3284 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
3286 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
3287 Kito Cheng <kito.cheng@gmail.com>
3288 Shiva Chen <shiva0217@gmail.com>
3290 * config/nds32/nds32-md-auxiliary.c
3291 (nds32_legitimize_pic_address): Use new PIC pattern.
3292 (nds32_legitimize_tls_address): Use new TLS pattern.
3293 (nds32_output_symrel): New.
3294 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
3295 (nds32_alloc_relax_group_id): Ditto.
3296 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
3297 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
3299 (nds32_group_tls_insn): Ditto.
3300 (nds32_group_float_insns): Ditto.
3301 * config/nds32/nds32.md (tls_le): New.
3304 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
3306 * configure: Add nds32 target for dwarf2 debug_line checking.
3307 * configure.ac: Regenerated.
3309 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
3312 * ipa-devirt.c (skip_in_fields_list_p): New.
3313 (odr_types_equivalent_p): Use it.
3315 2019-04-13 Jakub Jelinek <jakub@redhat.com>
3318 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
3319 instead of strncmp when checking for thumb and arm. Formatting fixes.
3321 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
3323 * doc/install.texi: Document --with-target-system-zlib.
3325 2019-04-12 Martin Sebor <msebor@redhat.com>
3331 * targhooks.c (default_vector_alignment): Avoid assuming
3332 argument fits in SHWI.
3333 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
3335 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
3337 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3339 PR rtl-optimization/89965
3340 * dce.c: Include rtl-iter.h.
3341 (struct check_argument_load_data): New type.
3342 (check_argument_load): New function.
3343 (find_call_stack_args): Check for loads from stack slots still tracked
3344 in sp_bytes and punt if any is found.
3346 * config/mips/loongson-mmiintrin.h: Fix up #error message.
3348 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
3350 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
3351 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
3353 2019-04-12 Martin Liska <mliska@suse.cz>
3356 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
3358 (separate_attrs): Handle multiple 'default's.
3359 (expand_target_clones): Rework error handling code.
3361 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
3364 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
3365 mode of vector rather than mode of destination for move instruction.
3366 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
3367 Use QI inner mode with V16QI vector mode.
3369 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3372 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
3373 "invalid %%t operand" in output_operand_lossage message.
3375 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
3377 * config/s390/predicates.md (permute_pattern_operand): New
3379 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
3380 operand for the permute pattern.
3381 ("*vec_perm<mode>"): New insn definition.
3382 ("bswap<mode>"): Generate the permute pattern operand in the
3383 expander and perform the operand reloads for pre arch13 level
3385 ("*bswap<mode>_emu"): Rename to ...
3386 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
3387 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
3388 Add the USE operand for the permute pattern.
3389 ("*vec_set_bswap_vec<mode>"): Likewise.
3391 2019-04-12 Jakub Jelinek <jakub@redhat.com>
3394 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
3395 and gcc_unreachable if it fails, just call tree_to_uhwi which
3396 verifies that too. Test TREE_CHAIN instead of list_length > 1.
3397 Start warning message with a lower-case letter. Formatting fixes.
3399 PR rtl-optimization/90026
3400 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
3401 successors, look for BARRIERs inside of the whole BB_FOOTER chain
3402 rather than just at the start of it. If e->src BB_FOOTER is not NULL
3403 in cfglayout mode, use emit_barrier_after_bb.
3405 2018-04-11 Steve Ellcey <sellcey@marvell.com>
3407 PR rtl-optimization/87763
3408 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
3411 2019-04-11 Tom de Vries <tdevries@suse.de>
3413 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
3414 max macro using statement expression.
3416 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
3418 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
3419 * xcoffout.c (xcoff_private_rodata_section_name): Define.
3420 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
3421 read_only_private_data_section using xcoff_private_rodata_section_name.
3422 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
3424 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
3427 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
3429 2019-04-11 Jakub Jelinek <jakub@redhat.com>
3431 PR rtl-optimization/89965
3432 * dce.c (sp_based_mem_offset): New function.
3433 (find_call_stack_args): Use sp_based_mem_offset.
3435 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
3437 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
3439 2019-04-11 Richard Biener <rguenther@suse.de>
3441 PR tree-optimization/90020
3442 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
3443 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
3444 * tree-ssa-pre.c (compute_avail): Use it to not put
3445 possibly trapping references after a call that might not
3446 return into EXP_GEN.
3447 * gcse.c (compute_hash_table_work): Do not elide
3448 marking a block containing a call if the call might not
3451 2019-04-11 Richard Biener <rguenther@suse.de>
3453 PR tree-optimization/90018
3454 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
3455 Test both SLP and interleaving variants.
3457 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
3459 * config/s390/8561.md: New file.
3460 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3461 Add arch13 cpu model.
3462 * config/s390/s390-opts.h (enum processor_type): Likewise.
3463 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
3464 (s390_get_unit_mask): Likewise.
3465 (s390_is_fpd): Likewise.
3466 (s390_is_fxd): Likewise.
3467 * config/s390/s390.h (s390_tune_attr): Likewise.
3468 * config/s390/s390.md: Include arch13 pipeline description.
3469 * config/s390/s390.opt: Add arch13.
3471 2018-04-10 Steve Ellcey <sellcey@marvell.com>
3473 PR rtl-optimization/87763
3474 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
3476 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
3478 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
3480 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
3481 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
3482 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
3483 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
3485 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
3487 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
3488 "Although" in -fipa-icf documentation.
3490 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
3491 of using multiple -g options.
3493 2019-04-10 Martin Liska <mliska@suse.cz>
3495 PR gcov-profile/89959
3496 * doc/gcov.texi: Make documentation of -x option
3499 2019-04-10 Richard Biener <rguenther@suse.de>
3501 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
3503 (DR_GROUP_SAME_DR_STMT): Remove.
3504 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
3505 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
3506 replace with assert.
3507 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
3508 (vect_record_grouped_load_vectors): Remove unreachable code.
3510 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
3513 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
3514 obsolete reference to N.
3516 2019-04-10 Jakub Jelinek <jakub@redhat.com>
3519 * expr.c (store_expr): Set properly size on the MEM passed to
3523 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
3524 with strlen in between hostsz-3 and hostsz-1 inclusive when no
3525 translation is needed, and when translation is needed, only append
3526 ... if the string length is hostsz or more bytes long. Avoid using
3529 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
3532 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
3533 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
3535 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
3536 differences directly.
3537 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
3539 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3541 PR translation/90011
3542 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
3544 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
3546 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
3547 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
3548 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
3549 trailing space from -gsplit-dwarf diagnostics.
3551 PR tree-optimization/89998
3552 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
3553 instead of integer_type_node if possible, don't add ranges if return
3554 type is not compatible with int.
3555 * gimple-fold.c (gimple_fold_builtin_sprintf,
3556 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
3559 2019-04-09 Martin Liska <mliska@suse.cz>
3561 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
3562 * doc/install.texi: Document the new config.
3564 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
3566 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
3567 use gimple_expr_type for load and store calls. Skip over the
3568 condition argument in a conditional internal function.
3569 Protect use of TREE_INT_CST_LOW.
3571 2019-04-09 Jakub Jelinek <jakub@redhat.com>
3574 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
3575 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
3576 trailing period from it too.
3578 2019-04-08 wu yuan <wuyuan5@huawei.com>
3580 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
3581 * config/aarch64/aarch64.md : Add "tsv110.md"
3582 * config/aarch64/tsv110.md: New file.
3584 2019-04-08 Richard Biener <rguenther@suse.de>
3586 PR tree-optimization/90006
3587 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
3590 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
3593 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
3595 (fma_root_node): Likewise.
3596 (func_fma_steering): Likewise.
3598 2019-04-08 Jakub Jelinek <jakub@redhat.com>
3600 PR rtl-optimization/89865
3601 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
3603 PR rtl-optimization/89865
3604 * config/i386/i386.md
3605 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
3606 numbers not to clash with the additional operands[4].
3607 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
3608 with extra register copy in the middle.
3610 2019-04-08 Martin Liska <mliska@suse.cz>
3612 PR gcov-profile/89961
3613 * doc/gcov.texi: Document data_file.
3614 * gcov.c (generate_results): Add data_info into JSON output.
3616 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
3618 PR tree-optimization/89725
3619 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
3620 loop's chrec as invariant symbol.
3621 * tree-chrec.h (chrec_contains_symbols): New parameter.
3622 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
3623 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
3624 function of loops not in DDR's loop_nest.
3625 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
3627 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
3630 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
3633 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
3636 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
3637 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
3639 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
3641 * sched-deps.c (sched_macro_fuse_insns): Check return value of
3642 targetm.fixed_condition_code_regs.
3644 2019-04-05 Richard Biener <rguenther@suse.de>
3648 * tree-cfgcleanup.c (remove_forwarder_block): Always move
3649 debug bind stmts but reset them if they are not valid at the
3652 2019-04-05 Martin Liska <mliska@suse.cz>
3654 PR translation/89936
3655 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
3656 order to wrap keywords or arguments.
3657 * collect2.c (main): Likewise.
3658 (scan_prog_file): Likewise.
3659 (scan_libraries): Likewise.
3660 * common/config/riscv/riscv-common.c
3661 (riscv_subset_list::parsing_subset_version): Likewise.
3662 (riscv_subset_list::parse_std_ext): Likewise.
3663 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3665 * config/arm/arm.c (arm_option_override): Likewise.
3666 * config/cris/cris.c (cris_print_operand): Likewise.
3667 * config/darwin-c.c (darwin_pragma_options): Likewise.
3668 (darwin_pragma_unused): Likewise.
3669 (darwin_pragma_ms_struct): Likewise.
3670 * config/ft32/ft32.c (ft32_print_operand): Likewise.
3671 * config/i386/i386.c (print_reg): Likewise.
3672 (ix86_print_operand): Likewise.
3673 * config/i386/xm-djgpp.h: Likewise.
3674 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
3675 * config/m32c/m32c.c (m32c_option_override): Likewise.
3676 * config/msp430/msp430.c (msp430_option_override): Likewise.
3677 * config/nds32/nds32.c (nds32_option_override): Likewise.
3678 * config/nvptx/mkoffload.c (main): Likewise.
3679 * config/rx/rx.c (rx_print_operand): Likewise.
3680 (valid_psw_flag): Likewise.
3681 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
3682 (vms_pragma_nomember_alignment): Likewise.
3683 (vms_pragma_extern_model): Likewise.
3684 * lto-wrapper.c (compile_offload_image): Likewise.
3685 * omp-offload.c (oacc_parse_default_dims): Likewise.
3686 * symtab.c (symtab_node::verify_base): Likewise.
3687 * tlink.c (recompile_files): Likewise.
3688 (start_tweaking): Likewise.
3689 * tree-profile.c (parse_profile_filter): Likewise.
3691 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
3693 PR tree-optimization/89956
3694 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
3695 multiple negates of the same value.
3697 2019-04-04 Martin Sebor <msebor@redhat.com>
3701 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
3702 have the same precision since the function crashes otherwise.
3703 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
3704 has non-zero arguments.
3706 2019-04-04 Martin Sebor <msebor@redhat.com>
3709 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
3710 out if the number of arguments is less than expected.
3712 2019-04-04 Jeff Law <law@redhat.com>
3714 PR rtl-optimization/89399
3715 * ree.c (combine_set_extension): Use single_set rather than
3716 digging into PATTERN for items on the candidate list.
3717 (combine_reaching_defs): Likewise.
3719 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
3721 PR rtl-optimization/46590
3722 * loop-invariant.c (find_defs): Move df_remove_problem and
3723 df_process_deferred_rescans to move_invariants.
3724 Move df_live_add_problem and df_live_set_all_dirty calls
3726 (move_invariants): Likewise.
3727 (move_loop_invariants): Likewise, making the df_live calls
3728 conditional on -O. Remove the problem again if we added it
3731 2019-04-03 qing zhao <qing.zhao@oracle.com>
3733 PR tree-optimization/89730
3734 * ipa-inline.c (can_inline_edge_p): Delete the checking for
3735 -flive-patching=inline-only-static.
3736 (can_inline_edge_by_limits_p): Add the checking for
3737 -flive-patching=inline-only-static and grant always_inline
3738 even when -flive-patching=inline-only-static is specified.
3740 2019-04-03 Jeff Law <law@redhat.com>
3742 PR rtl-optimization/81025
3743 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
3745 2019-04-03 Richard Biener <rguenther@suse.de>
3747 PR tree-optimization/84101
3748 * tree-vect-stmts.c: Include explow.h for hard_function_value,
3749 regs.h for hard_regno_nregs.
3750 (cfun_returns): New helper.
3751 (vect_model_store_cost): When vectorizing a store to a decl
3752 we return and the function ABI returns in a multi-reg location
3753 account for the possible spilling that will happen.
3755 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
3757 * config/s390/s390.c (s390_legitimate_address_p): Reject long
3758 displacement addresses for vector mode operands.
3760 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
3762 * config/arc/arc.c (GMASK_LEN): Define.
3763 (arc_restore_callee_saves): Restore first blink when
3766 2019-04-03 Sudakshina Das <sudi.das@arm.com>
3768 * doc/extend.texi: Add deprecated comment on sign-return-address
3769 function attribute and add mbranch-protection.
3770 * doc/invoke.texi: Add bti to the options for mbranch-protection.
3772 2019-04-03 Richard Biener <rguenther@suse.de>
3775 * lto-wrapper.c (run_gcc): Avoid implicit rules making
3776 the all target phony.
3778 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
3782 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
3783 Return false for variable DImode shifts.
3784 (dimode_scalar_chain::compute_convert_gain): Do not handle
3785 register count operand in variable DImode shifts.
3786 (dimode_scalar_chain::make_vector_copies): Remove support to copy
3787 count argument of a variable shift instruction to a vector register.
3788 (dimode_scalar_chain::convert_reg): Remove support to convert
3789 count argument of a variable shift instruction.
3791 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3793 PR rtl-optimization/84206
3794 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
3795 iterating over loop headers.
3797 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
3799 PR rtl-optimization/85876
3800 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
3801 beyond the original fence.
3803 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
3805 * config.gcc: Mark spu* targets as deprecated/obsolete.
3807 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3809 * config/s390/s390-builtin-types.def: New builtin function type
3810 definitions. Remove unused types.
3811 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
3812 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
3813 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
3814 overloaded builtins.
3815 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
3816 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
3817 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
3818 (vec_double, vec_signed, vec_unsigned): Define to use the new
3819 overloaded builtins.
3820 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
3823 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3825 * config/s390/s390-builtin-types.def: New builtin function type
3827 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
3828 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
3829 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
3830 (s390_vstrszh, s390_vstrszf): New low-level builtins.
3831 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
3832 constant definitions.
3833 * config/s390/vecintrin.h (vec_search_string_cc)
3834 (vec_search_string_until_zero_cc): New builtin name definitions.
3835 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
3837 ("vec_vstrs<mode>"): New insn definition.
3839 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3841 * config/s390/s390-builtin-types.def: Add new builtin function
3843 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
3844 New overloaded builtins.
3845 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
3847 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
3848 (UNSPEC_VEC_SLDBYTE): ... this.
3849 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
3850 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
3852 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
3853 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
3854 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
3856 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3858 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
3859 New insn definition.
3860 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
3861 * config/s390/vector.md (V_HW_HSD): ... here.
3863 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3865 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
3866 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
3867 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
3868 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
3869 New insn definitions.
3871 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3873 * config/s390/s390-builtin-types.def: Add new builtin function type.
3874 * config/s390/s390-builtins.def: Add overloaded builtin
3875 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
3876 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
3877 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
3878 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
3879 ("eltswap<mode>"): New expander.
3880 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
3883 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3885 * config/s390/s390-builtin-types.def: Add new builtin function types.
3886 * config/s390/s390-builtins.def: Add overloaded builtin
3887 s390_vec_revb. Add low-level builtins for vlbr and vstbr
3889 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
3890 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
3891 ("bswap<mode>"): New expander.
3892 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
3894 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3896 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
3897 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
3898 vector builtin version number in __VEC__.
3900 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3902 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
3904 (SFSI): New mode attribute.
3905 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
3906 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
3908 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
3909 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
3910 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
3911 ("floatsi<mode>2"): Add wcefb instruction.
3913 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3915 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
3916 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
3918 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
3919 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
3920 support 32 bit fp-int conversions. Rename to ...
3921 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3922 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
3923 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
3924 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
3927 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3929 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
3930 if-then-else constructs if we can use the select instruction.
3931 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
3933 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3935 * config/s390/s390.md ("*popcountdi_arch13_cc")
3936 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
3938 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
3939 Append _z196 to make it ...
3940 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
3941 ("popcounthi2_z196"): ... this.
3942 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
3943 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
3945 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3947 * config/s390/s390.c (s390_canonicalize_comparison): Convert
3948 certain compares for arch13 in order to make use of the condition
3949 code result produced by the new instructions.
3950 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
3951 nxrk, and nxgrk instruction patterns.
3952 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
3953 (inv_no): Add new code iterator together with some attributes.
3954 ("*andc_split_<mode>"): Disable splitter for arch13.
3955 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
3956 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
3957 ("*<ANDOR:bitops_name>c<GPR:mode>")
3958 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
3959 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
3960 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
3961 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
3963 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
3965 * common/config/s390/s390-common.c (processor_flags_table): New
3967 * config.gcc: Support arch13 with the --with-arch= configure flag.
3968 * config/s390/driver-native.c (s390_host_detect_local_cpu):
3969 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
3970 * config/s390/s390.c (s390_get_sched_attrmask)
3971 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
3972 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
3973 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
3974 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
3975 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
3977 * config/s390/s390.opt: Support arch13 as processor type in
3978 command line options.
3980 2019-04-02 Martin Liska <mliska@suse.cz>
3982 PR translation/89912
3983 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
3984 Fix param description of graphite-max-arrays-per-scop.
3986 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
3988 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
3989 (ASAN_CC1_SPEC): Use it in 64-bit mode.
3990 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
3992 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
3994 PR rtl-optimization/85412
3995 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
3996 sel_sched_region_1, not after.
3998 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4000 PR rtl-optimization/86928
4001 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
4002 compute_live if necessary.
4003 (sel_redirect_edge_and_branch): Likewise.
4005 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
4007 PR rtl-optimization/89865
4008 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
4009 register if it is a part of small class.
4011 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4013 PR rtl-optimization/87273
4014 * sel-sched-ir.c (merge_fences): Remove assert.
4016 2019-04-01 Richard Biener <rguenther@suse.de>
4018 PR tree-optimization/46590
4019 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
4020 (dom_walker::m_reachability): Add in place of...
4021 (dom_walker::m_skip_unreachable_blocks): ...this.
4022 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
4023 Move complex initialization ...
4024 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
4025 lazily and initialize edge flags on each invocation.
4026 (dom_walker::bb_reachable): Use m_reachability.
4028 2019-04-01 Martin Liska <mliska@suse.cz>
4031 * opt-suggestions.c (option_proposer::build_option_suggestions):
4032 Add variant without any argument in order to provide better
4035 2019-04-01 Richard Biener <rguenther@suse.de>
4038 * gimple.c: Include langhooks.h.
4039 (gimple_get_alias_set): Treat enumeral types as the underlying
4042 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4043 Eric Botcazou <ebotcazou@adacore.com>
4045 PR rtl-optimization/89862
4046 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
4047 that operates on the full registers for WORD_REGISTER_OPERATIONS
4050 2019-03-29 Jim Wilson <jimw@sifive.com>
4052 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
4053 Clear MASK_RVC and then set if C subset supported.
4055 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4058 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
4059 non-addressable complit into its initializer if it is volatile.
4061 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
4063 * opts-common.c (integral_argument): Set errno properly in one case.
4065 2019-03-29 Martin Liska <mliska@suse.cz>
4067 * doc/invoke.texi: Remove -Wchkp from documentation.
4069 2019-03-29 Martin Liska <mliska@suse.cz>
4071 * dbgcnt.c (print_limit_reach): New function.
4074 2019-03-29 Martin Liska <mliska@suse.cz>
4076 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
4077 (dbg_cnt_process_opt): Parse first tokens aas
4078 dbg_cnt_process_single_pair is also using strtok.
4080 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4082 PR rtl-optimization/87485
4083 * function.c (expand_function_end): Move stack_protect_epilogue
4084 before loading of return value into hard register(s).
4086 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4089 * tree-inline.h (struct copy_body_data): Add
4090 dont_remap_vla_if_no_change flag.
4091 * tree-inline.c (remap_type_3, remap_type_2): New functions.
4092 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
4093 and remap_type_2 returns false.
4094 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
4095 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
4096 only from where it is copied to nested contexts.
4098 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4101 * config/i386/i386.md (RMW operation with LEA peephole):
4102 Use LEAMODE mode attribute instead of SWI mode iterator for
4105 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4108 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
4109 Also process XEXP (src, 0) of a shift insn.
4111 2019-03-28 David Malcolm <dmalcolm@redhat.com>
4114 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
4115 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
4117 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4119 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
4121 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
4122 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
4123 immediately after first one with df_analyze in between, but rather
4124 process all bbs, queueing ones that need second pass in a worklist,
4125 df_analyze, process queued debug insn changes and if second pass is
4126 needed, process bbs from worklist, df_analyze, process queued debug
4129 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
4130 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
4131 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
4133 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
4136 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
4139 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
4142 * config/i386/i386.c (ix86_function_value_1): Call the newly added
4143 function for 32-bit MS_ABI.
4144 (function_value_ms_32): New function.
4146 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
4148 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
4149 (movdi): Call gen_movdi_symbol_save_scc.
4150 (gen_movdi_symbol_save_scc): New insn and split.
4152 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
4154 PR rtl-optimization/89313
4155 * function.c (matching_constraint_num): New static function.
4156 (match_asm_constraints_1): Use it. Fixup white space and comment.
4157 Don't replace inputs with non-matching constraints which conflict
4158 with early clobber outputs.
4160 2019-03-27 Jeff Law <law@redhat.com>
4163 PR rtl-optimization/87761
4164 PR rtl-optimization/89826
4165 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
4167 (pass_cprop_hardreg::execute): Call df_analyze after adding the
4168 note problem to get REG_DEAD/REG_UNUSED notes updated.
4170 2019-03-27 Richard Biener <rguenther@suse.de>
4172 PR tree-optimization/89463
4173 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
4174 queue edges to remove.
4175 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
4176 dead stmts. Delay edge removal until PHIs are removed to
4177 make debug-stmt creation not confused by seemingly degenerate
4180 2019-03-27 Alan Modra <amodra@gmail.com>
4182 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
4184 * config/rs6000/darwin.h: Likewise.
4185 * config/rs6000/rs6000.c: Likewise.
4187 2019-03-27 Alan Modra <amodra@gmail.com>
4189 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
4190 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
4192 2019-03-26 Andrew Waterman <andrew@sifive.com>
4193 Jim Wilson <jimw@sifive.com>
4195 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
4196 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
4197 (generic_idivdi, generic_fmul_single, generic_fmul_double)
4198 (generic_fdiv, generic_fsqrt): Add check for generic tune.
4199 (generic_alu): Add auipc to type list.
4200 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
4201 (riscv_microarchitecture): Declare.
4202 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
4203 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
4205 (riscv_microarchitecture): New.
4206 (sifive_7_tune_info): New.
4207 (riscv_cpu_info_table): Add microarchitecture value for rocket and
4208 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
4210 (riscv_store_data_bypass_p): New.
4211 (riscv_option_override): Set riscv_microarchitecture from
4212 cpu->microarchitecture.
4213 * config/riscv/riscv.md: Include sifive-7.md.
4216 (auipc<mode>): Change type to auipc.
4217 (restore_stack_nonlocal): New.
4218 * config/riscv/sifive-7.md: New.
4219 * doc/invoke.texi (RISC-V Options): Update mtune docs.
4221 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
4224 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4225 Also process XEXP (src, 0) of a shift insn.
4227 2019-03-26 Richard Biener <rguenther@suse.de>
4229 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
4230 (copy_debug_stmt): Likewise.
4231 (expand_call_inline): Likewise.
4232 (copy_bb): Avoid redundant lookup & set of gimple_block.
4233 * gimple-low.c (lower_gimple_return): Likewise.
4234 (lower_builtin_setjmp): Likewise.
4236 2019-03-26 Jakub Jelinek <jakub@redhat.com>
4238 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
4239 is constant 0, turn into static const data member initialized to false.
4240 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
4241 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
4243 2019-03-26 Jason Merrill <jason@redhat.com>
4244 Jakub Jelinek <jakub@redhat.com>
4246 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
4248 (mem_alloc_description::release_object_overhead): Fix comment typos.
4249 * hash-table.h (hash_table::~hash_table): Call
4250 release_instance_overhead only if m_entries is non-NULL, otherwise
4251 call unregister_descriptor.
4253 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
4255 PR tree-optimization/81740
4256 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4257 In case of outer loop vectorization, check for backward dependence
4258 at the inner loop if outer loop dependence is reversed.
4260 2019-03-26 Alan Modra <amodra@gmail.com>
4262 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
4263 rs6000_vector_mem init. Correct wI and wJ comment.
4265 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
4267 PR rtl-optimization/88347
4268 PR rtl-optimization/88423
4269 * sched-deps.c (sched_analyze_insn): Take into account that for
4270 tablejumps the barrier appears after a label and a jump_table_data.
4272 2019-03-25 Martin Sebor <msebor@redhat.com>
4275 * c-common.c (check_user_alignment): Rename local. Correct maximum
4276 alignment in diagnostic. Avoid assuming argument fits in SHWI,
4277 convert it to UHWI when it fits.
4279 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
4282 * dwarf2out.c (premark_used_variables): New function.
4283 (prune_unused_types_walk): Do not mark not premarked external
4285 (prune_unused_types): Call premark_used_variables.
4287 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
4289 PR rtl-optimization/89676
4290 * lra-constraints.c (curr_insn_transform): Do match reload for
4291 early clobbers when the match was successful only for different
4294 2019-03-25 Martin Sebor <msebor@redhat.com>
4296 * doc/extend.texi (Common Type Attributes): Document vector_size.
4297 (Common Variable Attributes): Mention size constraint. Correct
4299 (Vector Extensions): Use @dfn when defining bas type. Clarify
4300 base type and size constraints.
4302 2019-03-25 Richard Biener <rguenther@suse.de>
4304 PR tree-optimization/89789
4305 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
4306 changes from non-undefined back to undefined.
4308 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
4310 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
4311 heap string and a gc string, but since this variable is unknown to
4312 ggc the gc string might get reused and corrupted. Fixed by always
4313 using a heap string.
4315 2019-03-25 Richard Biener <rguenther@suse.de>
4317 PR tree-optimization/89779
4318 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
4319 to remove IV defs, delay actual removal.
4320 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
4321 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
4322 very end, properly also reset loop control IV information.
4324 2019-03-25 Richard Biener <rguenther@suse.de>
4326 PR tree-optimization/89802
4327 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
4328 move EH data to folded stmt.
4330 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4332 * config/s390/s390-builtin-types.def: Remove few unused types and
4333 fix sort order for others.
4335 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
4337 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
4338 expected and found types with -mdebug during builtin matching.
4340 2019-03-25 Richard Biener <rguenther@suse.de>
4343 * fold-const.c (operand_equal_p): Revert last change with
4346 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
4348 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
4349 notes for the result of the __tls_get_addr calls.
4350 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
4352 2019-03-24 Jeff Law <law@redhat.com>
4354 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
4356 PR rtl-optimization/87761
4357 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
4358 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
4360 (pass_cprop_hardreg::execute): Add df note problem and defer insn
4361 rescans. Reprocess blocks as needed, calling df_analyze before
4362 reprocessing. Always call df_analyze before fixing up debug bind
4365 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
4367 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
4370 2019-03-22 Andrew Pinski <apinski@marvell.com>
4372 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
4373 attrribute for uxtw.
4375 2019-03-26 Jeff Law <law@redhat.com>
4377 PR rtl-optimization/87761
4378 * config/mips/mips-protos.h (mips_split_move): Add new argument.
4379 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
4380 (mips_split_move): Accept new INSN argument. Try to forward SRC
4381 into the next instruction.
4382 (mips_split_move_insn): Pass INSN through to mips_split_move.
4384 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
4386 PR rtl-optimization/89676
4387 * lra-constraints.c (curr_insn_transform): Do match reload for
4388 early clobbers even if the match was successful.
4390 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4393 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
4395 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
4397 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
4399 2019-03-22 Jakub Jelinek <jakub@redhat.com>
4401 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
4402 <avx512>_fmsub_<mode>_mask3<round_name>,
4403 <avx512>_fnmadd_<mode>_mask3<round_name>,
4404 <avx512>_fnmsub_<mode>_mask3<round_name>,
4405 avx512f_vmfmadd_<mode>_mask3<round_name>,
4406 avx512f_vmfmsub_<mode>_mask3<round_name>,
4407 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
4408 instead of register_operand and %v instead of v for match_operand 1.
4409 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
4410 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
4411 <round_nimm_predicate> instead of register_operand and %v instead of v
4412 for match_operand 1.
4414 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
4415 <avx512>_fmadd_<mode>_mask3<round_name>,
4416 <avx512>_fmsub_<mode>_mask<round_name>,
4417 <avx512>_fmsub_<mode>_mask3<round_name>,
4418 <avx512>_fnmadd_<mode>_mask<round_name>,
4419 <avx512>_fnmadd_<mode>_mask3<round_name>,
4420 <avx512>_fnmsub_<mode>_mask<round_name>,
4421 <avx512>_fnmsub_<mode>_mask3<round_name>,
4422 <avx512>_fmaddsub_<mode>_mask<round_name>,
4423 <avx512>_fmaddsub_<mode>_mask3<round_name>,
4424 <avx512>_fmsubadd_<mode>_mask<round_name>,
4425 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
4426 <round_nimm_predicate> instead of nonimmediate_operand.
4427 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4428 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
4429 Use register_operand instead of <round_nimm_predicate> for the
4430 operand that needs to match output.
4431 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4432 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
4433 Likewise. Formatting fixes.
4436 * config/i386/i386.c (enum ix86_builtins): Remove
4437 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
4438 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
4439 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
4440 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
4441 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
4442 __builtin_ia32_vfmsubss3_mask3): New builtins.
4443 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
4444 avx512f_vmfmadd_<mode>_mask3<round_name>,
4445 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4446 *avx512f_vmfmsub_<mode>_mask<round_name>,
4447 avx512f_vmfmsub_<mode>_mask3<round_name>,
4448 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
4449 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4450 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4451 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4452 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4453 avx512f_vmfnmsub_<mode>_mask3<round_name>,
4454 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
4455 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
4456 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
4457 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
4458 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
4459 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
4460 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
4461 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
4462 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
4463 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
4464 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
4465 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
4466 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
4467 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
4468 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
4469 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
4470 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
4471 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
4472 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
4473 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
4474 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
4475 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
4477 2019-03-21 Martin Sebor <msebor@redhat.com>
4479 PR tree-optimization/89350
4480 * builtins.c (compute_objsize): Also ignore offsets whose upper
4482 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
4483 (builtin_memref::builtin_memref): Initialize new member.
4484 Allow EXPR to be null.
4485 (builtin_memref::extend_offset_range): Replace local with a member.
4486 Avoid assuming pointer offsets are unsigned.
4487 (builtin_memref::set_base_and_offset): Determine base object
4488 before computing offset range.
4489 (builtin_access::builtin_access): Handle memset.
4490 (builtin_access::generic_overlap): Replace local with a member.
4491 (builtin_access::strcat_overlap): Same.
4492 (builtin_access::overlap): Same.
4493 (maybe_diag_overlap): Same.
4494 (maybe_diag_access_bounds): Same.
4495 (wrestrict_dom_walker::check_call): Handle memset.
4496 (check_bounds_or_overlap): Same.
4498 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
4499 Jakub Jelinek <jakub@redhat.com>
4502 * tree.c (fld_type_variant, fld_incomplete_type_of,
4503 fld_process_array_type): Call fld->pset.add and don't call
4504 add_tree_to_fld_list if it returns true.
4505 (free_lang_data_in_type): Similarly with self-recursive call. Purge
4506 non-marked types from TYPE_NEXT_VARIANT list.
4507 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
4509 2019-03-21 Jakub Jelinek <jakub@redhat.com>
4511 * hash-table.h (hash_table): Add Lazy template parameter defaulted
4512 to false, if true, don't alloc_entries during construction, but defer
4513 it to the first method that needs m_entries allocated.
4514 (hash_table::hash_table, hash_table::~hash_table,
4515 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
4516 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
4517 hash_table::clear_slot, hash_table::traverse_noresize,
4518 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
4519 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
4521 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
4522 NO_INSERT instead of find_with_hash.
4523 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
4524 hash_set::m_table): Add Lazy to template params of hash_table.
4525 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
4526 * attribs.c (test_attribute_exclusions): Likewise.
4527 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
4528 hash_set. Add tests for hash_set with Lazy = true.
4530 2019-03-21 Richard Biener <rguenther@suse.de>
4532 PR tree-optimization/89779
4533 * tree.c (tree_nop_conversion): Consolidate and fix defensive
4534 checks with respect to released SSA names now having error_mark_node
4536 * fold-const.c (operand_equal_p): Likewise.
4538 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
4541 * config/s390/s390.c (global_not_special_regno_p): Move to make it
4543 (s390_optimize_register_info): Use global_not_special_regno_p to
4544 check for global regs.
4546 2019-03-20 Jakub Jelinek <jakub@redhat.com>
4549 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
4550 update this_alternative nor this_alternative_set.
4552 2019-03-19 Jim Wilson <jimw@sifive.com>
4555 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
4556 align, size, offset. Use them to handle a BLKmode reference. Update
4558 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
4560 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4562 PR rtl-optimization/89768
4563 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
4565 (unroll_loop_runtime_iterations): Likewise.
4567 2019-03-19 Martin Sebor <msebor@redhat.com>
4569 PR tree-optimization/89644
4570 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
4571 rather than endptr as an indicator of nul-termination.
4573 PR tree-optimization/89644
4574 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
4575 arrays in determining sequence sizes in strncpy and stpncpy.
4577 2019-03-19 Martin Liska <mliska@suse.cz>
4580 * predict.c (combine_predictions_for_bb): Empty likely_edges and
4581 unlikely_edges if there's an edge that belongs to both these sets.
4583 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
4586 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
4587 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
4588 go via a stack temporary.
4590 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4593 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
4594 instead of gen_rtx_SUBREG.
4595 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
4597 2019-03-19 Richard Biener <rguenther@suse.de>
4600 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
4602 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
4606 * tree.c (free_lang_data_in_decl): Do not free context of C++
4609 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4612 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
4613 subs for the first alternative except when operands[3] is 1.
4616 * gimplify.c (gimplify_asm_expr): For output argument with
4617 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
4620 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
4622 PR rtl-optimization/89753
4623 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4624 explicit unrolling factor even more robust.
4626 2019-03-19 Jakub Jelinek <jakub@redhat.com>
4629 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
4630 compensation use x2 += 1 instead of x2 -= -1 and when honoring
4631 signed zeros, do another copysign after the compensation.
4633 2019-03-18 Martin Sebor <msebor@redhat.com>
4635 PR tree-optimization/89720
4636 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
4637 more conservatively, the same as anti-range.
4639 2019-03-18 Richard Biener <rguenther@suse.de>
4642 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
4643 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
4644 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
4645 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
4647 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
4649 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
4650 Extend queue to 1024 entries.
4651 Add "consumed" field.
4652 (gomp_print_output): Remove print_index parameter.
4653 Add final parameter.
4654 Change limit to unsigned.
4655 Use consumed field to implement circular buffer.
4656 Detect interrupted print in final pass.
4657 Flush output at the end.
4658 (run): Update gomp_print_output usage.
4659 (main): Initialize kernargs->output_data.consumed.
4661 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
4663 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
4664 calculation of the minimum number of scalar iterations for
4665 fully-predicated loops.
4667 2019-03-18 Martin Jambor <mjambor@suse.cz>
4669 PR tree-optimization/89546
4670 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
4671 any propagation to its children took place.
4673 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
4676 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
4677 parameter, and make use of it.
4678 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
4680 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4682 * config/arc/arc.opt (mcode-density-frame): Get the inital value
4683 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
4684 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4685 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
4686 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
4687 match what the ops is doing.
4688 (push_multi_fp_blink): Likewise.
4689 * config/arc/arc.c (arc_override_options): Enable enter/leave when
4690 compiling for size and elf target.
4691 (arc_save_callee_enter): Adjust note to match what enter/leave
4694 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4696 * config/arc/arc.md (tst_movb): Fix constraint.
4698 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4700 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
4702 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
4704 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
4705 * config/arc/arc.c (arc_conditional_register_usage): Remove all
4706 reg_alloc_order references.
4707 (size_alloc_order): Define.
4708 (arc_adjust_reg_alloc_order): New function.
4709 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
4711 (ADJUST_REG_ALLOC_ORDER): Define.
4712 (HONOR_REG_ALLOC_ORDER): Likewise.
4714 2019-03-18 Richard Biener <rguenther@suse.de>
4717 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
4718 loads and stores a bit more.
4720 2019-03-18 Richard Biener <rguenther@suse.de>
4723 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
4724 load pessimization to stores as well.
4726 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
4729 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
4730 successor, use NULL as its av set.
4732 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
4734 PR rtl-optimization/89721
4735 * lra-constraints (invariant_p): Return false if side_effects_p holds.
4737 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
4740 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4741 When handling vec_extract, use modular arithmetic to allow
4742 constant selectors greater than vector length.
4743 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
4744 V1TImode vectors to have constant selector values greater than 0.
4745 Use modular arithmetic to compute vector index.
4746 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
4747 index for in-memory vectors. Correct code generation for
4748 in-register vectors.
4749 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
4752 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
4756 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
4759 2019-03-15 Jakub Jelinek <jakub@redhat.com>
4762 * tree.c (inchash::add_expr): Strip any location wrappers.
4763 * fold-const.c (operand_equal_p): Move stripping of location wrapper
4764 after hash verification.
4767 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
4768 SIGN_EXTEND and ZERO_EXTEND.
4770 2019-03-14 Jason Merrill <jason@redhat.com>
4771 Jakub Jelinek <jakub@redhat.com>
4773 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
4774 than if is_empty (*slot).
4775 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
4776 existing elt and for elt removal.
4777 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
4778 of already removed elt.
4780 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
4783 * config/i386/i386.c (remove_partial_avx_dependency): Handle
4786 2019-03-14 Martin Liska <mliska@suse.cz>
4789 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
4791 2019-03-14 Richard Biener <rguenther@suse.de>
4794 * config/i386/i386.c (make_resolver_func): Properly set
4795 DECL_CONTEXT on the RESULT_DECL.
4796 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
4798 2019-03-14 Richard Biener <rguenther@suse.de>
4800 * gimple-pretty-print.c: Include cfgloop.h.
4801 (dump_gimple_phi): Adjust.
4802 (dump_gimple_bb_header): Dump loop header for GIMPLE.
4803 (pp_cfg_jump): Adjust.
4804 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
4805 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
4806 (lower_phi_internal_fn): Remove.
4807 (verify_gimple_call): Remove IFN_PHI special-casing.
4808 (dump_function_to_file): Dump IL state.
4809 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
4810 done to deal with PHI nodes being present in non-SSA state.
4812 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4815 * multiple_target.c (create_dispatcher_calls): Change
4816 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
4817 In the node->iterate_referring loop, push *ref rather than ref, call
4818 ref->remove_reference () and always pass 0 to iterate_referring.
4820 PR rtl-optimization/89679
4821 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
4822 would contain a paradoxical SUBREG.
4824 2019-03-14 Richard Biener <rguenther@suse.de>
4826 PR tree-optimization/89710
4827 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
4830 2019-03-14 Martin Liska <mliska@suse.cz>
4832 * coverage.c (coverage_begin_function): Stream also
4834 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
4835 documentation about function declaration location.
4836 * gcov-dump.c (tag_function): Print whole range
4837 of function declaration.
4838 * gcov.c (struct function_info): Add end_column field.
4839 (function_info::function_info): Initialize it.
4840 (output_json_intermediate_file): Output {start,end}_column
4842 (read_graph_file): Read end_column.
4844 2019-03-14 Richard Biener <rguenther@suse.de>
4847 * fold-const.c (operand_equal_p): For INDIRECT_REF check
4848 that the access types are similar.
4850 2019-03-14 Jakub Jelinek <jakub@redhat.com>
4852 PR tree-optimization/89703
4853 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
4854 aren't compatible also with builtin_decl_explicit. Check pure
4855 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
4856 and BUILT_IN_STPNCPY{,_CHK}.
4858 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
4861 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
4862 addr32 prefix to VSIB address for X32.
4863 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
4865 (*avx512pf_gatherpf<mode>df_mask): Likewise.
4866 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
4867 (*avx512pf_scatterpf<mode>df_mask): Likewise.
4868 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
4869 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
4870 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
4871 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
4872 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
4873 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
4874 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
4875 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
4876 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
4877 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
4878 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
4879 (*avx512f_scatterdi<mode>): Likewise.
4881 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
4884 * lra-constraints.c (inherit_in_ebb): Update
4885 potential_reload_hard_regs along with live_hard_regs.
4887 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4890 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
4892 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
4894 2019-03-13 Martin Sebor <msebor@redhat.com>
4896 PR tree-optimization/89662
4897 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
4900 2019-03-13 Richard Biener <rguenther@suse.de>
4903 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
4904 throw FP expressions at tree-affine.
4906 2019-03-14 Richard Biener <rguenther@suse.de>
4908 * tree-pretty-print.c (dump_generic_node): For -gimple properly
4909 dump negative integer constants using _Literal (type) -num.
4911 2019-03-13 Jakub Jelinek <jakub@redhat.com>
4913 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
4914 nonlocal_value member.
4917 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
4918 (ipa_simd_modify_function_body): Handle PHIs.
4920 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4922 * config/s390/s390.c (s390_option_override_internal): Use more
4923 aggressive inlining parameters.
4925 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4927 * config/s390/3906.md: New file.
4928 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4929 (LONGRUNNING_THRESHOLD): Remove.
4930 (MAX_SCHED_MIX_SCORE): Decrease.
4931 (MAX_SCHED_MIX_DISTANCE): Decrease.
4932 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
4933 (struct s390_sched_state): New struct to hold scheduling state.
4934 (S390_SCHED_STATE_NORMAL): Remove.
4935 (S390_SCHED_STATE_CRACKED): Remove.
4936 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
4937 (s390_get_sched_attrmask): Use new attribute.
4938 (s390_get_unit_mask): Use new units.
4939 (s390_is_fpd): New function.
4940 (s390_is_fxd): New function.
4941 (s390_is_longrunning): New function.
4942 (s390_sched_score): Use new functions.
4943 (s390_sched_reorder): Likewise.
4944 (s390_sched_variable_issue): Rework and use new functions.
4945 (s390_sched_init): Use new functions.
4946 * config/s390/s390.h (s390_tune_attr): Add z14.
4947 * config/s390/s390.md: Add z14.
4949 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
4951 * config/s390/2964.md: Update pipeline description.
4952 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
4953 (LONGRUNNING_THRESHOLD): Remove.
4954 (LATENCY_FACTOR): Remove.
4955 (s390_get_unit_mask): Add unit.
4956 (s390_sched_score): Use fxd/fpd.
4957 (s390_sched_variable_issue): Use fxd/fpd.
4959 2019-03-12 Martin Liska <mliska@suse.cz>
4961 * config/i386/i386.c: Reword an error message.
4963 2019-03-12 Martin Jambor <mjambor@suse.cz>
4965 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
4966 terminate with newline.
4968 2019-03-12 Jakub Jelinek <jakub@redhat.com>
4971 * config/s390/s390.md (tabort): Use %wd instead of
4972 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
4973 letters and periods.
4974 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
4975 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
4979 * builtins.c (expand_builtin_int_roundingfn,
4980 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
4981 gcc_unreachable if validate_arglist fails.
4983 2019-03-12 Richard Biener <rguenther@suse.de>
4985 PR tree-optimization/89664
4986 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
4987 free the occurance tree after the early out.
4989 2019-03-11 Jakub Jelinek <jakub@redhat.com>
4993 * vr-values.c (vr_values::update_value_range): If
4994 old_vr->varying_p (), don't update it, make new_vr also VARYING
4997 2019-03-11 Martin Liska <mliska@suse.cz>
4999 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5000 Fix double string quoting.
5002 2019-03-11 Martin Liska <mliska@suse.cz>
5004 * collect-utils.c (collect_wait): Wrap apostrophes
5005 in gcc internal format with %'.
5006 * collect2.c (main): Likewise.
5007 (scan_prog_file): Likewise.
5008 (scan_libraries): Likewise.
5009 * config/i386/i386.c (ix86_expand_call): Likewise.
5010 (ix86_handle_interrupt_attribute): Likewise.
5011 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
5012 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5013 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
5014 * lto-wrapper.c (find_crtoffloadtable): Likewise.
5015 * symtab.c (symtab_node::verify_base): Likewise.
5016 * tree-cfg.c (verify_gimple_label): Likewise.
5017 * tree.c (verify_type_variant): Likewise.
5019 2019-03-11 Martin Liska <mliska@suse.cz>
5021 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
5022 in a string format message and fix GNU coding style.
5023 (expand_builtin_set_thread_pointer): Likewise.
5024 * common/config/aarch64/aarch64-common.c
5025 (aarch64_rewrite_selected_cpu): Likewise.
5026 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
5027 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
5028 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
5029 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5030 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
5031 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
5032 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
5033 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
5034 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
5035 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
5037 * common/config/riscv/riscv-common.c
5038 (riscv_subset_list::parsing_subset_version): Likewise.
5039 (riscv_subset_list::parse_std_ext): Likewise.
5040 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5041 (riscv_subset_list::parse): Likewise.
5042 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
5043 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
5044 (aarch64_override_options_internal): Likewise.
5045 (aarch64_validate_mcpu): Likewise.
5046 (aarch64_validate_march): Likewise.
5047 (aarch64_validate_mtune): Likewise.
5048 (aarch64_override_options): Likewise.
5049 * config/alpha/alpha.c (alpha_option_override): Likewise.
5050 * config/arc/arc.c (arc_init): Likewise.
5051 (parse_mrgf_banked_regs_option): Likewise.
5052 (arc_override_options): Likewise.
5053 (arc_expand_builtin_aligned): Likewise.
5054 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
5055 (arm_expand_builtin): Likewise.
5056 * config/arm/arm.c (arm_option_check_internal): Likewise.
5057 (arm_configure_build_target): Likewise.
5058 (arm_option_override): Likewise.
5059 (arm_options_perform_arch_sanity_checks): Likewise.
5060 (arm_handle_cmse_nonsecure_entry): Likewise.
5061 (arm_handle_cmse_nonsecure_call): Likewise.
5062 (arm_tls_referenced_p): Likewise.
5063 (thumb1_expand_prologue): Likewise.
5064 * config/avr/avr.c (avr_option_override): Likewise.
5065 * config/bfin/bfin.c (bfin_option_override): Likewise.
5066 * config/c6x/c6x.c (c6x_option_override): Likewise.
5067 * config/cr16/cr16.c (cr16_override_options): Likewise.
5068 * config/cris/cris.c (cris_option_override): Likewise.
5069 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
5070 * config/darwin-c.c (macosx_version_as_macro): Likewise.
5071 * config/darwin.c (darwin_override_options): Likewise.
5072 * config/frv/frv.c (frv_expand_builtin): Likewise.
5073 * config/h8300/h8300.c (h8300_option_override): Likewise.
5074 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
5075 (ix86_option_override_internal): Likewise.
5076 (warn_once_call_ms2sysv_xlogues): Likewise.
5077 (ix86_expand_prologue): Likewise.
5078 (split_stack_prologue_scratch_regno): Likewise.
5079 (ix86_warn_parameter_passing_abi): Likewise.
5080 * config/ia64/ia64.c (fix_range): Likewise.
5081 * config/m68k/m68k.c (m68k_option_override): Likewise.
5082 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5083 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
5084 (mips_set_compression_mode): Likewise.
5085 * config/mmix/mmix.c (mmix_option_override): Likewise.
5086 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
5087 * config/msp430/msp430.c (msp430_option_override): Likewise.
5088 * config/nds32/nds32.c (nds32_option_override): Likewise.
5089 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
5090 (nios2_option_override): Likewise.
5091 (nios2_expand_custom_builtin): Likewise.
5092 * config/nvptx/mkoffload.c (main): Likewise.
5093 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
5094 * config/pa/pa.c (fix_range): Likewise.
5095 (pa_option_override): Likewise.
5096 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
5097 (riscv_option_override): Likewise.
5098 * config/rl78/rl78.c (rl78_option_override): Likewise.
5099 * config/rs6000/aix61.h: Likewise.
5100 * config/rs6000/aix71.h: Likewise.
5101 * config/rs6000/aix72.h: Likewise.
5102 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
5103 * config/rs6000/freebsd64.h: Likewise.
5104 * config/rs6000/linux64.h: Likewise.
5105 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
5106 (rs6000_expand_zeroop_builtin): Likewise.
5107 (rs6000_expand_mtfsb_builtin): Likewise.
5108 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
5109 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
5110 (rs6000_invalid_builtin): Likewise.
5111 (rs6000_expand_split_stack_prologue): Likewise.
5112 * config/rs6000/rtems.h: Likewise.
5113 * config/rx/rx.c (valid_psw_flag): Likewise.
5114 (rx_expand_builtin): Likewise.
5115 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
5116 * config/s390/s390.c (s390_expand_builtin): Likewise.
5117 (s390_function_profiler): Likewise.
5118 (s390_option_override_internal): Likewise.
5119 (s390_option_override): Likewise.
5120 * config/sh/sh.c (sh_option_override): Likewise.
5121 (sh_builtin_saveregs): Likewise.
5122 (sh_fix_range): Likewise.
5123 * config/sh/vxworks.h: Likewise.
5124 * config/sparc/sparc.c (sparc_option_override): Likewise.
5125 * config/spu/spu.c (spu_option_override): Likewise.
5126 (fix_range): Likewise.
5127 * config/visium/visium.c (visium_option_override): Likewise.
5128 (visium_handle_interrupt_attr): Likewise.
5129 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
5130 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
5131 (dbg_cnt_process_opt): Likewise.
5132 * dwarf2out.c (output_dwarf_version): Likewise.
5133 * except.c (expand_eh_return): Likewise.
5134 * gcc.c (defined): Likewise.
5135 (driver_handle_option): Likewise.
5136 (process_command): Likewise.
5137 (compare_files): Likewise.
5138 (driver::prepare_infiles): Likewise.
5139 (driver::do_spec_on_infiles): Likewise.
5140 (driver::maybe_run_linker): Likewise.
5141 * omp-offload.c (oacc_parse_default_dims): Likewise.
5142 * opts-global.c (handle_common_deferred_options): Likewise.
5143 * opts.c (parse_sanitizer_options): Likewise.
5144 (common_handle_option): Likewise.
5145 (enable_warning_as_error): Likewise.
5146 * passes.c (enable_disable_pass): Likewise.
5147 * plugin.c (parse_plugin_arg_opt): Likewise.
5148 (default_plugin_dir_name): Likewise.
5149 * targhooks.c (default_expand_builtin_saveregs): Likewise.
5150 (default_pch_valid_p): Likewise.
5151 * toplev.c (init_asm_output): Likewise.
5152 (process_options): Likewise.
5153 (toplev::run_self_tests): Likewise.
5154 * tree-cfg.c (verify_gimple_call): Likewise.
5155 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
5156 (tree_inlinable_function_p): Likewise.
5157 * var-tracking.c (vt_find_locations): Likewise.
5159 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
5161 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
5162 only on the else branch.
5164 2019-03-11 Martin Liska <mliska@suse.cz>
5166 * gcov.c (output_intermediate_json_line): Print function
5168 (output_json_intermediate_file): Add new argument.
5169 * doc/gcov.texi: Document the change.
5171 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
5173 PR rtl-optimization/89588
5174 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5175 explicit unrolling factor more robust.
5177 2019-03-11 Richard Biener <rguenther@suse.de>
5179 PR tree-optimization/89649
5180 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
5181 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
5182 on the prolog and epilog loops.
5183 (vect_loop_versioning): Return copy of loop.
5184 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
5185 on the non-vectorized version of the loop.
5187 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
5190 * config/i386/sse.md (*vec_extractv2di_0_sse):
5191 Add (=r,x) alternative and corresponding splitter.
5193 2019-03-10 Martin Jambor <mjambor@suse.cz>
5195 PR tree-optimization/85762
5196 PR tree-optimization/87008
5197 PR tree-optimization/85459
5198 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
5199 it points to if there is a type changing MEM_REF. Adjust all callers.
5200 (build_accesses_from_assign): Disable total scalarization if
5201 contains_vce_or_bfcref_p returns true through the new parameter, for
5204 2019-03-09 Jakub Jelinek <jakub@redhat.com>
5207 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
5208 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
5211 * common.opt (fdiagnostics-show-labels,
5212 fdiagnostics-show-line-numbers, fdiagnostics-format=,
5213 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
5214 gas-locview-support, ginline-points, ginternal-reset-location-views):
5215 Terminate description text with a dot.
5216 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
5217 * config/mcore/mcore.opt (m210, m340): Likewise.
5218 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
5219 mnops=): Start description text with a capital letter.
5220 * config/arc/arc.opt (msize-level=): Likewise.
5221 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
5222 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
5224 * config/ft32/ft32.opt (msim): Likewise.
5225 (mft32b, mcompress): Likewise. Terminate description text with a dot.
5226 (mnodiv, mnopm): Terminate description text with a dot.
5227 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
5229 * config/i386/i386.opt (prefer_vector_width, instrument_return):
5231 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
5234 PR rtl-optimization/89634
5235 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
5236 are modified in BB_END (e->src) instruction.
5238 2019-03-08 David Malcolm <dmalcolm@redhat.com>
5241 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
5242 messages more amenable to translation, and improve wording.
5244 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
5246 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
5247 ud- and du-chains between phases.
5249 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
5252 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
5253 instead of POLY_INT_CST.
5255 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5257 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
5260 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
5265 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
5266 (_mm_storeu_si64): Ditto.
5268 2019-03-08 Martin Liska <mliska@suse.cz>
5271 * config/i386/i386.c (ix86_option_override_internal): Disable
5272 jump tables when retpolines are used.
5274 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
5277 * ipa-split.c (execute_split_functions): Do not split
5278 'noinline' or 'section' function.
5280 2019-03-08 Jakub Jelinek <jakub@redhat.com>
5283 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
5284 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
5285 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
5288 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
5289 from diagnostics. Formatting fixes.
5292 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
5293 warn_odr diagnostics.
5296 * lra-constraints.c (process_alt_operands): Avoid one space before
5297 " at the end of line and another after " on another line in a string
5299 * attribs.c (handle_dll_attribute): Likewise.
5300 * config/avr/avr-devices.c (avr_texinfo): Likewise.
5302 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
5303 warning_at or inform messages in G_() if there is no ?:.
5305 PR tree-optimization/89550
5306 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
5307 returned true. Formatting fixes.
5308 (expand_builtin_strnlen): Formatting fixes.
5309 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
5310 if warning_at returned true.
5311 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
5313 2019-03-08 Richard Biener <rguenther@suse.de>
5316 * cfgloop.h (struct loop): Add owned_clique field.
5317 * cfgloopmanip.c (copy_loop_info): Copy it.
5318 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
5320 * tree-inline.c (copy_loops): Remap owned_clique.
5321 * lto-streamer-in.c (input_cfg): Stream owned_clique.
5322 * lto-streamer-out.c (output_cfg): Likewise.
5324 2019-03-08 Jakub Jelinek <jakub@redhat.com>
5327 * config/darwin.c: Include intl.h.
5328 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
5329 composing the message out of two separate parts.
5331 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5334 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
5335 doesn't start with a capital letter and doesn't end with a dot.
5336 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
5337 with a capital letter.
5338 (ix86_mangle_function_version_assembler_name): Likewise.
5339 (ix86_generate_version_dispatcher_body): Likewise.
5340 (fold_builtin_cpu): Likewise.
5341 (get_builtin_code_for_version): Likewise. Remove extraneous space.
5342 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
5343 translators, wrap full type name in %qs.
5345 PR translation/79999
5346 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
5347 depend clause with source (or sink) modifier.
5348 * omp-expand.c (expand_omp_ordered_sink): Likewise.
5351 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
5352 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
5353 (avx512f_load<mode>_mask): New define_expand.
5354 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
5355 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
5356 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
5357 __builtin_ia32_movess_mask): New builtins.
5358 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
5359 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
5360 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
5361 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
5363 2019-03-07 Martin Jambor <mjambor@suse.cz>
5366 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
5367 for extern inline functions.
5369 2019-03-07 Martin Jambor <mjambor@suse.cz>
5372 * cgraph.h (cgraph_node): New inline method former_thunk_p.
5373 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
5374 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
5375 have multiple callees. At the end check if declarations match as
5376 opposed to cgraph_nodes.
5378 2019-03-07 Martin Liska <mliska@suse.cz>
5380 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
5381 which is equivalent to searching for this in clones chain.
5382 * symtab.c (symtab_node::verify_base): Similarly compare ASM
5383 names with a neighbour and special case first node in a chain.
5385 2019-01-25 Jason Merrill <jason@redhat.com>
5387 PR c++/80916 - spurious "static but not defined" warning.
5388 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
5389 for an internal symbol with DECL_EXTERNAL.
5391 2019-04-07 Richard Biener <rguenther@suse.de>
5394 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
5395 * tree-inline.c (copy_loops): Simplify.
5397 2019-03-07 Martin Liska <mliska@suse.cz>
5399 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
5401 2019-03-07 Richard Biener <rguenther@suse.de>
5403 PR tree-optimization/89595
5404 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
5405 stmt iterator as reference, take boolean output parameter to
5406 indicate whether the stmt was removed and thus the iterator
5408 (dom_opt_dom_walker::before_dom_children): Re-iterate over
5409 stmts created by folding.
5411 2019-03-07 Jakub Jelinek <jakub@redhat.com>
5414 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
5417 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
5419 PR rtl-optimization/88845
5420 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
5422 * lra.c (remove_scratches_1): New function.
5423 (remove_scratches): Use it.
5424 (lra_emit_move): Likewise.
5426 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
5428 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
5429 unaligned_access variable.
5430 * config/arc/arc.c (arc_override_options): Set unaligned access
5431 default on for HS CPUs.
5432 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
5434 2019-03-06 Martin Liska <mliska@suse.cz>
5436 PR gcov-profile/89577
5437 * doc/gcov.texi: Prefer to use --coverage.
5438 * doc/sourcebuild.texi: Likewise.
5440 2019-03-02 Jason Merrill <jason@redhat.com>
5442 PR c++/86485 - -Wmaybe-unused with empty class ?:
5443 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
5445 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5448 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
5452 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
5453 exactly one argument.
5455 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5456 Richard Sandiford <richard.sandiford@arm.com>
5458 PR tree-optimization/89570
5459 * match.pd (vec_cond into cond_op simplification): Don't use
5460 get_conditional_internal_fn, use as_internal_fn (cond_op).
5462 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
5465 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
5466 to decide when to split off a non-zero offset from a symbol.
5467 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
5468 in function symbols.
5470 2019-03-05 Richard Biener <rguenther@suse.de>
5472 PR tree-optimization/89594
5473 * tree-if-conv.c (pass_if_conversion::execute): Handle
5474 case where .LOOP_VECTORIZED_FUNCTION was removed.
5476 2019-03-05 Jakub Jelinek <jakub@redhat.com>
5479 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
5480 instead alloca it only when needed with the needed size.
5482 PR tree-optimization/89570
5483 * match.pd (vec_cond into cond_op simplification): Guard with
5484 vectorized_internal_fn_supported_p test and #if GIMPLE.
5486 PR tree-optimization/89566
5487 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
5488 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
5489 Punt if get_user_idx_format succeeds, but idx_format argument is
5490 not provided or doesn't have pointer type, or if idx_args is above
5491 number of provided arguments.
5493 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
5495 PR tree-optimization/89437
5496 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
5498 2019-03-04 Richard Biener <rguenther@suse.de>
5501 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
5504 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
5506 PR tree-optimization/89487
5507 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
5508 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
5509 (distribute_loop): Don't do runtime alias check if there is non-
5510 addressable data reference.
5511 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
5512 is a register variable.
5514 2019-03-02 Jakub Jelinek <jakub@redhat.com>
5517 * config/arm/arm.md (cmpsi2_addneg): Use
5518 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
5519 If operands[2] is 0 or INT_MIN, force use of subs.
5520 (*compare_scc splitter): Use gen_int_mode.
5521 (*negscc): Likewise.
5522 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
5524 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
5525 Monk Chiang <sh.chiang04@gmail.com>
5527 * common/config/riscv/riscv-common.c: Include sstream.
5528 (riscv_subset_list::to_string): New.
5529 (riscv_arch_str): Likewise.
5530 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
5532 * config/riscv/riscv-protos.h (riscv_arch_str): New.
5533 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
5534 (riscv_emit_attribute): New.
5535 (riscv_file_start): Emit attribute if needed.
5536 (riscv_option_override): Init riscv_emit_attribute_p.
5537 * config/riscv/riscv.opt (mriscv-attribute): New option.
5538 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
5540 * doc/install.texi: Document --with-riscv-attribute.
5541 * doc/invoke.texi: Document -mriscv-attribute.
5543 * common/config/riscv/riscv-common.c:
5544 Include config/riscv/riscv-protos.h.
5545 (INCLUDE_STRING): Defined.
5546 (RISCV_DONT_CARE_VERSION): Defined.
5547 (riscv_subset_t): Declare.
5548 (riscv_subset_t::riscv_subset_t): New.
5549 (riscv_subset_list): Declare.
5550 (riscv_subset_list::riscv_subset_list): New.
5551 (riscv_subset_list::~riscv_subset_list): Likewise.
5552 (riscv_subset_list::parsing_subset_version): Likewise.
5553 (riscv_subset_list::parse_std_ext): Likewise.
5554 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5555 (riscv_subset_list::add): Likewise.
5556 (riscv_subset_list::lookup): Likewise.
5557 (riscv_subset_list::xlen): Likewise.
5558 (riscv_subset_list::parse): Likewise.
5559 (riscv_supported_std_ext): Likewise.
5560 (current_subset_list): Likewise.
5561 (riscv_parse_arch_string): Using riscv_subset_list::parse to
5564 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
5566 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
5567 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
5568 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
5570 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
5572 PR rtl-optimization/85899
5573 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
5574 fallthru edges leading to the exit block.
5576 2019-03-01 Tamar Christina <tamar.christina@arm.com>
5579 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
5580 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
5582 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
5584 PR tree-optimization/89535
5585 * tree-vect-stmts.c (vectorizable_call): Record the vector types
5586 for each operand. Calculate the fallback choice for mask operands
5587 and pass it to vect_get_vec_def_for_operand.
5589 2019-03-01 Richard Biener <rguenther@suse.de>
5592 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
5593 get virtual operands.
5594 (get_expr_operands): Handle CONST_DECL like other decls.
5596 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5599 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
5600 on DECL_P and EXPR_P.
5602 2019-03-01 Richard Biener <rguenther@suse.de>
5605 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
5606 argument, defaulted to zero.
5607 * passes.c (execute_function_todo): Pass down SSA update flags
5608 to cleanup_tree_cfg.
5609 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
5610 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
5612 (cleanup_tree_cfg): Get and pass down SSA update flags.
5614 2019-03-01 Jakub Jelinek <jakub@redhat.com>
5617 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
5618 early_lto_debug argument.
5620 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
5622 PR tree-optimization/89536
5623 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
5624 only whether bit #0 of the value is 0 instead of the entire value.
5626 2019-02-28 Marek Polacek <polacek@redhat.com>
5628 PR c++/87068 - missing diagnostic with fallthrough statement.
5629 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
5630 at the end of a seq, save its location to walk_stmt_info.
5631 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
5634 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
5637 * tree.c (find_atomic_core_type): Move ahead in file.
5638 (check_base_type): Correctly compare alignments of atomic types.
5640 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
5643 * config/i386/i386.c (get_builtin_code_for_version): Identify
5644 Westmere from PCLMUL, instead of AES.
5646 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5649 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
5650 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
5653 2019-02-28 Tamar Christina <tamar.christina@arm.com>
5656 * config/aarch64/aarch64-option-extensions.def: Document it.
5657 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
5660 2019-02-28 Jakub Jelinek <jakub@redhat.com>
5663 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
5664 builtins if they don't have a single scalar floating point argument.
5667 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
5669 PR rtl-optimization/89490
5670 * varasm.c (get_block_for_section): Bail out for mergeable sections.
5671 (default_use_anchors_for_symbol_p, output_object_block): Assert the
5672 block section is not mergeable.
5674 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5677 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
5678 old define_insn to ...
5679 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
5680 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
5681 Rename old define_insn to ...
5682 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
5683 (thumb2_casesi_internal_pic): New define_expand. Rename old
5685 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
5686 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
5687 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
5689 2019-02-27 Richard Biener <rguenther@suse.de>
5692 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
5694 2019-02-27 Richard Biener <rguenther@suse.de>
5696 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
5699 2019-02-27 Richard Biener <rguenther@suse.de>
5702 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
5703 parameter, prefix section name with .gnu.debuglto_ if true.
5704 (dwarf2out_finish): Pass false to output_comdat_type_unit.
5705 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
5707 2019-02-27 Richard Biener <rguenther@suse.de>
5710 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
5711 rather than on use_debug_types, doing what output_die does.
5712 (value_format): Likewise.
5714 2019-02-27 Martin Jambor <mjambor@suse.cz>
5715 Martin Sebor <msebor@redhat.com>
5717 * doc/invoke.texi (Warning Options): Reword description of
5718 -Wno-absolute-value.
5720 2019-02-27 Jakub Jelinek <jakub@redhat.com>
5722 PR tree-optimization/89280
5723 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
5724 builtin_setjmp_setup_bb): New functions.
5725 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
5726 When visiting __builtin_setjmp_setup block, queue in special
5727 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
5728 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
5729 from visited after the loop if they don't have any visited successor
5732 2018-02-26 Steve Ellcey <sellcey@marvell.com>
5734 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
5736 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
5738 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5741 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
5742 with types other than sizetype/ssizetype.
5744 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5746 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
5747 (enum sparc_processor_type): ...this.
5748 (enum sparc_code_model_type): New enumeration type.
5749 (enum sparc_memory_model_type): Tweak comments.
5750 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
5752 (mcmodel): Use sparc_code_model enumeration and variable.
5753 (sparc_code_model): New enumeration.
5754 (mdebug): Add Undocumented marker.
5755 * config/sparc/sparc.h (enum cmodel): Delete.
5756 (sparc_cmodel): Likewise.
5757 (TARGET_CM_MEDLOW): Adjust to above renaming.
5758 (TARGET_CM_MEDMID): Likewise.
5759 (TARGET_CM_MEDANY): Likewise.
5760 (TARGET_CM_EMBMEDANY): Likewise.
5761 * config/sparc/sparc.c (sparc_cmodel): Delete.
5762 (sparc_option_override): Remove string/value mapping support for the
5763 code model. Move code and memory model support to after the handling
5764 of target flags. Do private machine setup last.
5765 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
5766 (sparc_legitimize_reload_address): Likewise.
5767 (sparc_output_mi_thunk): Likewise.
5768 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
5770 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5772 PR tree-optimization/89500
5773 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
5774 (handle_builtin_strlen): Remove noncst_bound variable. Always
5775 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
5776 cst if the first cst bytes starting at x are known to be non-zero,
5777 even if the string is not zero terminated. Don't try to modify
5778 *si for strnlen. Update strlen_to_stridx only for strlen or if
5779 we can prove strnlen returns the same value as strlen would.
5781 2019-02-26 Martin Liska <mliska@suse.cz>
5783 * alloc-pool.h (struct pool_usage): Remove extra
5785 * bitmap.h (struct bitmap_usage): Likewise.
5786 * ggc-common.c (struct ggc_usage): Likewise.
5787 * mem-stats.h (struct mem_usage): Likewise.
5788 (mem_alloc_description::dump): Print dash lines
5789 here and repeat header at the end of a table report.
5790 It's then more readable.
5791 * tree-phinodes.c (phinodes_print_statistics): Make
5792 horizontal alignment.
5793 * tree-ssanames.c (ssanames_print_statistics): Likewise.
5794 * vec.c (struct vec_usage): Remove extra print_dash_line.
5795 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
5797 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
5799 * doc/extend.texi (__builtin_object_size):
5800 Use @pxref instead of @xref inside parenthesis.
5801 (__builtin_has_attribute): Add missing comma after @xref.
5802 (__builtin_object_size): Ditto.
5803 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
5804 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
5807 2019-02-26 Jeff Law <law@redhat.com>
5809 PR rtl-optimization/87761
5810 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
5811 detect obviously dead insns and delete them.
5813 2019-02-26 Richard Biener <rguenther@suse.de>
5815 PR tree-optimization/89505
5816 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
5817 to handle restrict pointed-to vars with multiple subvars
5820 2019-02-26 Richard Biener <rguenther@suse.de>
5822 PR tree-optimization/89489
5823 * tree-parloops.c (create_loop_fn): Copy over last_clique.
5825 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
5827 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
5828 and move around comment.
5829 <BIT_AND_EXPR>: Likewise.
5830 <BIT_NOT_EXPR>: Add specific handling for boolean types.
5832 2019-02-26 Jakub Jelinek <jakub@redhat.com>
5835 * config/i386/i386.c (remove_partial_avx_dependency): Call
5836 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
5837 after changing possibly many instructions to use that pseudo. Fix up
5838 insertion of v4sf_const0 setter at the start of bb.
5840 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5843 * doc/extend.texi (Variadic Pointer Args): New section.
5845 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
5846 Martin Sebor <msebor@gmail.com>
5848 * common.opt (Wattribute-alias): Likewise.
5849 * doc/invoke.texi (Option Summary): List general form of
5850 -Wattribute-alias=. List positive form of -Wmissing-attributes.
5851 (-Wmissing-attributes): Invert entry, rewrite and correct default.
5852 Add cross-references.
5853 (-Wattribute-alias): Rewrite and correct default. Mention
5854 considered attributes (same as for -Wmissing-attributes).
5856 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
5858 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
5859 (_mm_cvtpd_ps): Likewise.
5860 (_mm_cvttpd_epi32): Likewise.
5863 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
5864 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
5867 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
5869 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5872 * common/config/aarch64/aarch64-common.c
5873 (struct aarch64_option_extension): Add is_synthetic.
5874 (all_extensions): Use it.
5875 (TARGET_OPTION_INIT_STRUCT): Define hook.
5876 (struct gcc_targetm_common): Moved to end.
5877 (all_extensions_by_on): New.
5878 (opt_ext_cmp, typedef opt_ext): New.
5879 (aarch64_option_init_struct): New.
5880 (aarch64_contains_opt): New.
5881 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
5882 * config/aarch64/aarch64-option-extensions.def
5883 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
5884 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
5885 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
5886 Set is_synthetic to false.
5887 (crypto): Set is_synthetic to true.
5888 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
5891 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5893 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5894 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
5895 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5896 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
5897 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
5898 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
5899 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
5900 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
5902 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
5903 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5904 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
5905 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
5906 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
5907 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
5908 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
5909 vfmlsl_laneq_high_f16): ... To this.
5910 * config/arm/neon.md: Update comments.
5912 2019-02-25 Tamar Christina <tamar.christina@arm.com>
5914 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
5915 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
5916 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
5917 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
5918 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
5919 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
5920 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
5921 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
5923 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
5924 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
5925 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
5926 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
5927 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
5928 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
5929 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
5930 vfmlslq_laneq_high_f16): ... To this.
5932 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
5934 PR rtl-optimization/86096
5935 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
5936 comparing mw_order values.
5938 2019-02-25 Jakub Jelinek <jakub@redhat.com>
5941 * config/arm/arm.md (*subsi3_carryin_const): Use
5942 arm_neg_immediate_operand predicate instead of
5943 arm_not_immediate_operand, "L" constraint instead of "K" and
5944 print it using %n2 instead of %B2.
5945 (*subsi3_carryin_const0): New define_insn.
5946 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
5947 instead of arm_not_operand and "I" constraint instead of "K" and
5948 print it using %n3 instead of %B2. Instead of using match_dup 2 add
5949 another match_operand and in the condition check that it is negation
5951 (*subsi3_carryin_compare_const0): New define_ins.
5952 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
5953 *subsi3_carryin_const.
5954 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
5955 split into *subsi3_carryin_compare_const0 if the highpart is zero.
5958 * config/arm.vfp.md (*negdf2_vfp): Use
5959 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
5960 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
5962 2019-02-24 Jakub Jelinek <jakub@redhat.com>
5964 PR rtl-optimization/89445
5965 * simplify-rtx.c (simplify_ternary_operation): Don't use
5966 simplify_merge_mask on operands that may trap.
5967 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
5968 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
5969 second operand is CONST_VECTOR, check if any element could be zero.
5970 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
5971 their operands can trap.
5973 2019-02-23 Martin Sebor <msebor@redhat.com>
5975 * gimple-ssa-sprintf.c (target_strtol): Rename...
5976 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
5977 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
5978 check for range error.
5980 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
5983 * opts-common.c (prune_options): Also prune joined switches
5984 with Negative and RejectNegative.
5985 * config/i386/i386.opt (march=): Add Negative(march=).
5986 (mtune=): Add Negative(mtune=).
5987 * doc/options.texi: Document Negative used together with Joined
5990 2019-02-22 Martin Sebor <msebor@redhat.com>
5992 * doc/extend.texi (Other Builtins): Add
5993 __builtin_is_constant_evaluated.
5995 2019-02-22 Richard Biener <rguenther@suse.de>
5997 PR tree-optimization/87609
5998 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
6000 2019-02-22 Jeff Law <law@redhat.com>
6002 PR rtl-optimization/87761
6003 * config/mips/mips.md: Add new combiner pattern to recognize
6004 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
6006 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
6009 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
6010 destination register in peepholes generating patterns for ADDS/SUBS.
6011 (add<mode>3_compare0,
6012 *addsi3_compare0_uxtw, add<mode>3_compareC,
6013 add<mode>3_compareV_imm, add<mode>3_compareV,
6014 *adds_<optab><ALLX:mode>_<GPI:mode>,
6015 *subs_<optab><ALLX:mode>_<GPI:mode>,
6016 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
6017 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
6018 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
6019 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
6020 sub<mode>3_compare1): Allow stack pointer for source register.
6021 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
6023 2019-02-22 Martin Sebor <msebor@redhat.com>
6025 PR tree-optimization/88993
6026 PR tree-optimization/88853
6027 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
6029 (sprintf_dom_walker::call_info::is_string_func): New helper.
6030 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
6031 for formatted string functions.
6032 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
6034 2019-02-22 Martin Sebor <msebor@redhat.com>
6037 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
6038 unreachable subexpressions.
6040 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
6041 Hongtao Liu <hongtao.liu@intel.com>
6042 Sunil K Pandey <sunil.k.pandey@intel.com>
6045 * config/i386/i386-passes.def: Add
6046 pass_remove_partial_avx_dependency.
6047 * config/i386/i386-protos.h
6048 (make_pass_remove_partial_avx_dependency): New.
6049 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
6051 (pass_data_remove_partial_avx_dependency): New.
6052 (pass_remove_partial_avx_dependency): Likewise.
6053 (make_pass_remove_partial_avx_dependency): Likewise.
6054 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
6055 (*extendsfdf2): Add avx_partial_xmm_update.
6056 (truncdfsf2): Likewise.
6057 (*float<SWI48:mode><MODEF:mode>2): Likewise.
6058 (SF/DF conversion splitters): Disabled for TARGET_AVX.
6060 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
6063 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
6066 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
6069 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
6070 (PTA_SKYLAKE): Add PTA_AES.
6071 (PTA_GOLDMONT): Likewise.
6073 2019-02-22 Sudakshina Das <sudi.das@arm.com>
6075 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
6076 instruction if enabled.
6077 (aarch64_override_options): Remove reference to return address key.
6079 2019-02-22 Richard Biener <rguenther@suse.de>
6081 PR tree-optimization/89440
6082 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
6083 not necessary assert.
6085 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6088 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
6089 (oacc_replace_fn_attrib_attr): ... this new function.
6090 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
6091 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
6093 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6095 * config/arm/arm-cpus.in (ares): Rename to...
6096 (neoverse-n1): ... This. Add ares as alias.
6097 * config/arm/arm-tables.opt: Regenerate.
6098 * config/arm/arm-tune.md: Likewise.
6099 * doc/invoke.txt (ARM Options): Document neoverse-n1.
6101 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6103 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
6104 * config/aarch64/aarch64-tune.md: Regenerate.
6105 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
6107 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6109 * config/aarch64/aarch64.c (ares_tunings): Rename to...
6110 (neoversen1_tunings): ... This.
6111 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
6112 (neoverse-n1): New CPU.
6113 * config/aarch64/aarch64-tune.md: Regenerate.
6114 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
6116 2019-02-22 Richard Biener <rguenther@suse.de>
6119 * cfghooks.h (dependence_hash): New typedef.
6120 (struct copy_bb_data): New type.
6121 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
6122 (duplicate_block): Likewise.
6123 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
6124 (copy_bbs): Create and pass down copy_bb_data.
6125 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
6126 (rtl_duplicate_bb): Likewise.
6127 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
6128 remap dependence info.
6130 2019-02-22 Richard Biener <rguenther@suse.de>
6132 PR tree-optimization/87609
6133 * tree-core.h (tree_base): Document special clique values.
6134 * tree-inline.c (remap_dependence_clique): Do not use the
6135 special clique value of one.
6136 (maybe_set_dependence_info): Use clique one.
6137 (clear_dependence_clique): New callback.
6138 (compute_dependence_clique): Clear clique one from all refs
6139 before assigning it (again).
6141 2019-02-21 Martin Sebor <msebor@redhat.com>
6143 * doc/extend.texi (__clear_cache): Correct signature.
6145 2019-02-21 Ian Lance Taylor <iant@golang.org>
6148 * varasm.c (decode_addr_const): Call lookup_constant_def rather
6149 than output_constant_def.
6150 (add_constant_to_table): New static function.
6151 (output_constant_def): Call add_constant_to_table.
6152 (tree_output_constant_def): Likewise.
6154 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6157 * builtins.c (fold_builtin_arith_overflow): If first two args are
6158 INTEGER_CSTs, set intres and ovfres to constants rather than calls
6161 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
6164 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
6165 error for -mindirect-branch/-mfunction-return with incompatible
6168 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6171 * constraints.md (q): Remove.
6172 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
6175 2019-02-21 Martin Jambor <mjambor@suse.cz>
6178 * omp-general.c (omp_extract_for_data): Removed a duplicate call
6179 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
6180 (omp_adjust_for_condition): ...here. Added necessary parameters.
6181 * omp-general.h (omp_adjust_for_condition): Updated declaration.
6182 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
6183 proper values to new parameters of omp_adjust_for_condition.
6185 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6188 * expr.c (expand_assignment): If result is a MEM, use change_address
6189 instead of simplify_gen_subreg.
6191 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6192 David Malcolm <dmalcolm@redhat.com>
6195 * fold-const.c (decode_field_reference): Return NULL_TREE if
6196 lang_hooks.types.type_for_size returns NULL. Check it before
6197 overwriting *exp_. Use return NULL_TREE instead of return 0.
6199 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6203 * toplev.c (do_compile): Double the emin/emax exponents to workaround
6206 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
6209 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
6210 TARGET_SSE in addition to TARGET_SSE_MATH.
6212 (ix86_excess_precision): Ditto.
6213 (ix86_float_exceptions_rounding_supported_p): Ditto.
6214 (use_rsqrt_p): Ditto.
6215 * config/i386/sse.md (rsqrt<mode>2): Ditto.
6217 2019-02-20 David Malcolm <dmalcolm@redhat.com>
6220 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
6221 linenum_arith_t when determining if two adjacent line spans are
6222 close enough to merge.
6223 (diagnostic_show_locus): Use linenum_arith_t when iterating over
6224 lines within each line_span.
6226 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
6229 * lra-constraints.c(uses_hard_regs_p): Fix handling of
6230 paradoxical SUBREGS.
6232 2019-02-20 Li Jia He <helijia@linux.ibm.com>
6235 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
6236 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
6237 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
6240 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
6242 * config/gcn/gcn.c (print_operand): Fix typo.
6244 2019-02-19 Richard Biener <rguenther@suse.de>
6247 * toplev.c (do_compile): Initialize mpfr's exponent range
6248 based on available float modes.
6250 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
6252 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
6253 as long as the epilogue isn't completed.
6255 2019-02-18 Martin Sebor <msebor@redhat.com>
6257 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
6258 __has_cpp_attribute, and __has_include.
6260 2019-02-18 Martin Sebor <msebor@redhat.com>
6262 * doc/invoke.texi (-Wreturn-type): Correct and expand.
6264 2019-02-18 Martin Sebor <msebor@redhat.com>
6267 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
6269 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
6271 2019-02-18 Richard Biener <rguenther@suse.de>
6273 PR tree-optimization/89296
6274 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
6275 of no-warning flag to cases that might emit the bogus warning.
6277 2019-02-18 Jakub Jelinek <jakub@redhat.com>
6280 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
6282 * config/arm/vfp.md (*movdi_vfp): Likewise.
6283 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
6284 "q" constraint for operands[0].
6287 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
6288 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
6289 pattern in a temporary buffer.
6290 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
6291 than 64-operands[2].
6294 * config/s390/s390.c (s390_indirect_branch_attrvalue,
6295 s390_indirect_branch_settings): Define unconditionally.
6296 (s390_set_current_function): Likewise, but guard the whole body except
6297 the s390_indirect_branch_settings call with
6298 #if S390_USE_TARGET_ATTRIBUTE.
6299 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
6301 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
6302 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
6303 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
6304 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
6305 HOST_WIDE_INT_1U instead of 1ULL.
6306 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
6307 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
6308 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
6309 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
6311 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
6314 2019-02-18 Martin Jambor <mjambor@suse.cz>
6316 PR tree-optimization/89209
6317 * tree-sra.c (create_access_replacement): New optional parameter
6318 reg_tree. Use it as a type if non-NULL and access type is not of
6320 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
6321 to create_access_replacement.
6322 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
6323 Check lacc is non-NULL before attempting to re-create it on the RHS.
6325 2019-02-18 Martin Liska <mliska@suse.cz>
6328 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
6330 (symbol_table::free_edge): Recycle m_summary_id.
6331 * cgraph.h (get_summary_id): New.
6332 (symbol_table::release_symbol): Set m_summary_id to -1
6334 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
6335 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
6336 function_summary to fast_function_summary.
6337 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
6338 * ipa-pure-const.c (class funct_state_summary_t):
6339 Switch from function_summary to fast_function_summary.
6340 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
6341 (class ipa_ref_opt_summary_t): Switch from function_summary
6342 to fast_function_summary.
6343 * symbol-summary.h (class function_summary_base): New class
6344 that is created from base of former function_summary.
6345 (function_summary_base::unregister_hooks): New.
6346 (class function_summary): Inherit from function_summary_base.
6347 (class call_summary_base): New class
6348 that is created from base of former call_summary.
6349 (class call_summary): Inherit from call_summary_base.
6350 (struct is_same): New.
6351 (class fast_function_summary): New summary class.
6352 (class fast_call_summary): New summary class.
6353 * vec.h (vec_safe_grow_cleared): New function.
6355 2019-02-18 Martin Liska <mliska@suse.cz>
6357 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
6358 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
6359 * doc/tm.texi: Document new target hook.
6360 * doc/tm.texi.in: Likewise.
6361 * target.def: Add new target macro.
6362 * gcc.c (find_fortran_preinclude_file): Do not search multilib
6365 2019-02-17 Alan Modra <amodra@gmail.com>
6368 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
6369 output reg on add insn.
6370 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
6372 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6375 * config/i386/sse.md (ssedoublemode): Remove V4HI.
6376 (PMULHRSW): Likewise.
6377 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
6379 (ssse3_pmulhrswv4hi3): New expander.
6381 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
6383 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
6384 MMX. Add isa attribute.
6386 2019-02-16 Jakub Jelinek <jakub@redhat.com>
6388 PR rtl-optimization/66152
6389 * builtins.h (c_readstr): Declare.
6390 * builtins.c (c_readstr): Remove forward declaration. Add
6391 null_terminated_p argument, if false, read all bytes from the
6392 string instead of stopping after '\0'.
6393 * expr.c (string_cst_read_str): New function.
6394 (store_expr): Use string_cst_read_str instead of
6395 builtin_strncpy_read_str. Try to store by pieces the whole
6396 exp_len first, and only if that fails, split it up into
6397 store by pieces followed by clear_storage. Formatting fix.
6399 * config/i386/i386.md (*movqi_internal): Remove static from
6400 buf variable. Use output_asm_insn (buf, operands); return "";
6401 instead of return buf;.
6402 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
6403 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
6404 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
6406 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6408 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
6409 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
6410 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
6411 (CC1_SPEC): Likewise.
6412 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
6414 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6416 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
6417 the base address on 64-bit strict-alignment platforms.
6419 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
6421 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
6423 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6425 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
6427 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
6429 PR rtl-optimization/88308
6430 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
6431 on copied instruction.
6433 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
6435 * final.c (insn_current_reference_address): Replace test on JUMP_P
6436 with test on jump_to_label_p.
6437 * config/visium/visium-passes.def: New file.
6438 * config/visium/t-visium (PASSES_EXTRA): Define.
6439 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
6440 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
6441 (TRAMPOLINE_ALIGNMENT): Define.
6442 * config/visium/visium.c (visium_option_override): Do not register
6443 the machine-specific reorg pass here.
6444 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
6446 (output_branch): Adjust threshold for long branch instruction.
6447 * config/visium/visium.md (cpu): Move around.
6448 (length): Adjust for the GR6.
6450 2019-02-15 Richard Biener <rguenther@suse.de>
6451 Jakub Jelinek <jakub@redhat.com>
6453 PR tree-optimization/89278
6454 * tree-loop-distribution.c: Include tree-eh.h.
6455 (generate_memset_builtin, generate_memcpy_builtin): Call
6456 rewrite_to_non_trapping_overflow on builtin->size before passing it
6457 to force_gimple_operand_gsi.
6459 2019-02-15 Jakub Jelinek <jakub@redhat.com>
6462 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
6464 * opth-gen.awk: Likewise.
6466 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
6468 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
6469 Enable MMX, SSE and SSE2 by default.
6470 * config/i386/i386.c (ix86_option_override_internal): Do not
6471 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
6473 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6475 PR rtl-optimization/89354
6476 * combine.c (make_extraction): Punt if extraction_mode is narrower
6479 2019-02-14 Maya Rashish <coypu@sdf.org>
6481 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
6482 * config/netbsd-d.c: New file.
6483 * config/t-netbsd: Add netbsd-d.o
6485 2018-02-14 Steve Ellcey <sellcey@marvell.com>
6487 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
6488 affects_type_identity to true for aarch64_vector_pcs.
6489 (aarch64_comp_type_attributes): New function.
6490 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
6492 2019-02-14 Tamar Christina <tamar.christina@arm.com>
6495 * config/arm/iterators.md (ANY64): Add V4HF.
6497 2019-02-14 Martin Liska <mliska@suse.cz>
6499 PR rtl-optimization/89242
6500 * dce.c (delete_unmarked_insns): Call free_dominance_info we
6501 process a transformation.
6503 2019-02-14 Jakub Jelinek <jakub@redhat.com>
6505 PR tree-optimization/89314
6506 * fold-const.c (fold_binary_loc): Cast strlen argument to
6507 const char * before dereferencing it. Formatting fixes.
6510 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
6512 2019-02-13 Ian Lance Taylor <iant@golang.org>
6514 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
6515 and set current index for other optimizations.
6517 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
6519 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
6520 nonimmediate_operand as operand 2 predicate.
6521 (vec_set<VF2_512_256:mode>_0): Ditto.
6522 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
6523 (*vec_concatv2si): Remove alternative 2.
6524 (*vec_concatv4si_0): Use vm constraint for alternative 0.
6525 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
6526 (vec_concatv2di): Split alternatives 4,5,6 to ...
6527 (*vec_concatv2di_0) ... new pattern.
6529 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
6532 * config/arm/arm.c (ldm_stm_operation_p) Set
6533 addr_reg_in_reglist correctly for first register.
6534 (load_multiple_sequence): Remove dead base check.
6535 (gen_ldm_seq): Correctly set write_back for Thumb-1.
6537 2019-02-13 Tamar Christina <tamar.christina@arm.com>
6540 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
6541 Expose as @aarch64_pred_mov.
6542 * config/aarch64/aarch64.c (aarch64_classify_address):
6543 Use expand_insn which legitimizes operands.
6545 2019-02-13 Martin Liska <mliska@suse.cz>
6547 * builtins.h (expand_builtin_with_bounds): Remove declaration.
6548 * calls.c (struct arg_data): Remove special_slot, pointer_arg
6549 and pointer_offset fields.
6550 (initialize_argument_information): Remove usage of dead
6552 * cgraph.h (struct cgraph_thunk_info): Remove
6553 add_pointer_bounds_args.
6554 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
6556 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
6558 * config/i386/i386.c (ix86_function_arg_advance): Remove
6560 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
6561 (def_builtin): Remove usage of dead
6563 (ix86_add_new_builtins): Likewise.
6564 * ipa-fnsummary.c (compute_fn_summary): Likewise.
6565 * ipa-icf.c (sem_function::equals_wpa): Likewise.
6566 (sem_function::init): Likewise.
6567 (sem_variable::merge): Likewise.
6568 * ipa-visibility.c (function_and_variable_visibility): Likewise.
6569 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
6570 * lto-cgraph.c (lto_output_node): Likewise.
6571 (lto_output_varpool_node): Likewise.
6572 (input_node): Likewise.
6573 (input_varpool_node): Likewise.
6574 * lto-streamer-out.c (lto_output): Likewise.
6575 * tree-inline.c (expand_call_inline): Remove usage of
6577 * tree-inline.h (struct copy_body_data): Likewise.
6578 * varpool.c (varpool_node::dump): Likewise.
6580 2019-02-13 Jakub Jelinek <jakub@redhat.com>
6583 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
6584 into pt->vars_contains_escaped_heap instead of setting
6585 pt->vars_contains_escaped_heap to it.
6588 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
6589 INTVAL (size), compare it to GET_MODE_MASK instead of
6590 1 << GET_MODE_BITSIZE.
6593 * config/i386/predicates.md (x86_64_immediate_operand): Allow
6594 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
6597 2019-02-13 Martin Liska <mliska@suse.cz>
6600 * cfgrtl.c (remove_barriers_from_footer): New function.
6601 (try_redirect_by_replacing_jump): Use it.
6602 (cfg_layout_redirect_edge_and_branch): Likewise.
6604 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6606 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
6607 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
6608 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
6609 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
6610 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
6611 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
6613 * config/rs6000/rs6000.c (builtin_function_type)
6614 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
6615 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
6616 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
6617 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
6618 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
6620 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
6622 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
6623 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
6625 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
6628 * config/i386/i386.md (*movoi_internal_avx): Revert revision
6629 268678 and revision 268657.
6630 (*movti_internal): Likewise.
6632 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
6635 * config/s390/s390.c (s390_decompose_address): Update comment.
6636 (s390_check_qrst_address): Reject invalid address forms after
6639 2019-02-12 Martin Liska <mliska@suse.cz>
6642 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
6643 we need default values of funct_state for a function that
6646 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
6648 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
6649 the object to pick the size of stores on strict-alignment platforms.
6651 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
6652 (*movdi_insn_sp32): Likewise.
6653 (*movdi_insn_sp64): Likewise.
6655 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
6658 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
6659 types that needs constructiong.
6660 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
6662 2019-02-12 Richard Biener <rguenther@suse.de>
6664 PR tree-optimization/89253
6665 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
6668 2019-02-11 David Malcolm <dmalcolm@redhat.com>
6671 * input.c (selftest::test_line_offset_overflow): New selftest.
6672 (selftest::input_c_tests): Call it.
6674 2019-02-11 Martin Sebor <msebor@redhat.com>
6676 PR tree-optimization/88771
6677 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
6678 when -Wstringop-overflow is set.
6679 (builtin_memref::builtin_memref): Adjust excessive upper bound
6680 only when lower bound is not excessive.
6681 (maybe_diag_overlap): Detect and diagnose excessive bounds via
6682 -Wstringop-ovefflow.
6683 (maybe_diag_offset_bounds): Rename...
6684 (maybe_diag_access_bounds): ...to this.
6685 (check_bounds_or_overlap): Adjust for name change above.
6687 2019-02-11 Martin Sebor <msebor@redhat.com>
6690 * builtins.c (max_object_size): Move from here...
6691 * builtins.h (max_object_size): ...and here...
6692 * tree.c (max_object_size): ...to here...
6693 * tree.h (max_object_size): ...and here.
6695 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
6697 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
6698 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
6699 for correct semantics.
6701 2019-02-11 Alan Modra <amodra@gmail.com>
6703 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
6704 -mlongcall and -mpltseq.
6705 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
6706 (RS/6000 and PowerPC Options <-mpltseq>): Document.
6707 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
6708 * config/rs6000/sysv4.opt (mpltseq): New option.
6709 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
6710 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
6711 support is lacking. Don't allow -mpltseq with -mbss-plt.
6712 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
6713 -mpltseq given for ELFv1.
6714 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
6715 Only use UNSPEC_PLTSEQ for inline PLT calls.
6716 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
6717 use UNSPEC_PLTSEQ for inline PLT calls.
6718 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
6719 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
6720 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
6721 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6722 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6723 (pltseq_mtctr_<mode>): Likewise.
6725 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6727 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
6729 * configure: Regenerate.
6731 2019-02-11 Jakub Jelinek <jakub@redhat.com>
6734 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
6737 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6739 * function.c (assign_parm_setup_block): Use the stored
6740 size, not the passed size, when allocating stack-space,
6741 also for a parameter with alignment larger than
6742 MAX_SUPPORTED_STACK_ALIGNMENT.
6744 2019-02-11 Martin Liska <mliska@suse.cz>
6747 * ipa-cp.c (build_toporder_info): Remove usage of a param.
6748 * ipa-inline.c (inline_small_functions): Likewise.
6749 * ipa-pure-const.c (propagate_pure_const): Likewise.
6750 (propagate_nothrow): Likewise.
6751 * ipa-reference.c (propagate): Likewise.
6752 * ipa-utils.c (struct searchc_env): Remove unused field.
6753 (searchc): Always search across AVAIL_INTERPOSABLE.
6754 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
6755 the only called IPA pure const can properly not propagate
6756 across interposable boundary.
6757 * ipa-utils.h (ipa_reduced_postorder): Remove param.
6759 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
6761 * config/nds32/nds32.md (call_internal, call_value_internal,
6762 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
6764 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
6766 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
6769 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
6771 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
6774 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6776 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
6778 2019-02-10 Jakub Jelinek <jakub@redhat.com>
6780 PR tree-optimization/89268
6781 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
6782 if preds is non-NULL.
6784 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6787 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
6790 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6792 * config/nds32/nds32.md (trap): New pattern.
6794 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
6796 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
6799 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
6801 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
6804 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6806 * ipa-visibility.c (localize_node): Also do not localize
6807 LDPR_PREVAILING_DEF_IRONLY_EXP.
6809 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6812 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
6813 instead of type_with_linkage.
6815 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
6818 * params.def (uninlined-function-insns, uninlined-function-time,
6819 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
6820 bound so we don't get overflows.
6822 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
6824 * config/rs6000/rs6000-string.c (expand_compare_loop,
6825 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
6828 2019-02-09 Jakub Jelinek <jakub@redhat.com>
6831 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6832 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
6833 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
6835 2019-02-09 Alan Modra <amodra@gmail.com>
6838 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
6839 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
6842 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
6845 * lra-constraints.c (process_alt_operands): Don't increase reject
6846 for memory when offset memory is required.
6848 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
6850 * config/s390/vector.md: Implement vector copysign.
6852 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6854 * expr.c (expand_constructor): Correct indentations.
6856 2019-02-08 Richard Biener <rguenther@suse.de>
6858 PR tree-optimization/89247
6859 * tree-if-conv.c: Include tree-cfgcleanup.h.
6860 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
6861 (tree_if_conversion): Pass through predicate vector.
6862 (pass_if_conversion::execute): Do CFG cleanup and SSA update
6863 inline, see if any if-converted loops we refrece in
6864 LOOP_VECTORIZED calls vanished and fixup.
6865 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
6867 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
6869 * config/s390/constraints.md (jdd): New constraint.
6871 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
6874 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
6875 upper 16 vector registers without TARGET_AVX512VL.
6876 (*movti_internal): Likewise.
6878 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6880 PR rtl-optimization/89234
6881 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
6882 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
6883 (copy_reg_eh_region_note_backward): Likewise.
6885 2019-02-08 Richard Biener <rguenther@suse.de>
6888 * tree-data-ref.c (initialize_matrix_A): Fail if constant
6890 (analyze_subscript_affine_affine): Handle failure from
6891 initialize_matrix_A.
6893 2019-02-08 Jakub Jelinek <jakub@redhat.com>
6895 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
6898 2019-02-07 David Malcolm <dmalcolm@redhat.com>
6900 PR tree-optimization/86637
6901 PR tree-optimization/89235
6902 * tree-vect-loop.c (optimize_mask_stores): Add an
6903 auto_purge_vect_location sentinel to ensure that vect_location is
6906 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
6907 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
6908 to ensure that vect_location is purged on exit.
6909 (pass_slp_vectorize::execute): Likewise, replacing the manual
6911 * tree-vectorizer.h (class auto_purge_vect_location): New class.
6913 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6915 * config/aarch64/iterators.md (max_opp): New code_attr.
6916 (USMAX): New code iterator.
6917 * config/aarch64/predicates.md (aarch64_smin): New predicate.
6918 (aarch64_smax): Likewise.
6919 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
6920 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
6923 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
6926 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
6927 for TARGET_AVX512VL.
6928 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
6930 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
6932 * config/s390/s390-builtin-types.def: Add new types.
6933 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
6934 (s390_vec_xlw4): Make the memory operand into a const pointer.
6935 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
6937 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
6938 a new vector type with the alignment of the scalar memory operand.
6940 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
6941 Jakub Jelinek <jakub@redhat.com>
6944 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
6945 arm_count_ldrdstrd_insns): New declarations.
6946 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
6948 (valid_operands_ldrd_strd): New function.
6949 (arm_count_ldrdstrd_insns): New function.
6950 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
6951 sets instead of single DImode set and define new insns to match this.
6953 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6955 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
6956 Make it a C initializer.
6958 2019-02-07 Tamar Christina <tamar.christina@arm.com>
6961 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
6963 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6965 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
6966 Use neon_dot<q> for type.
6967 (neon_<sup>dot_lane<vsi2qi>): Likewise.
6969 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6971 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
6972 Use neon_dot<q> for type.
6973 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
6974 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
6976 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
6978 PR rtl-optimization/89225
6979 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
6982 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
6984 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
6985 after restoring registers saved to allocate the frame on Windows.
6987 2019-02-06 Richard Biener <rguenther@suse.de>
6989 PR tree-optimization/89182
6990 * graphite.h (cached_scalar_evolution_in_region): Declare.
6991 * graphite.c (struct seir_cache_key): New.
6992 (struct sese_scev_hash): Likewise.
6993 (seir_cache): New global.
6994 (cached_scalar_evolution_in_region): New function.
6995 (graphite_transform_loops): Allocate and release seir_cache.
6996 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
6997 cached_scalar_evolution_in_region.
6998 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7000 (scop_detection::graphite_can_represent_expr: Use
7001 cached_scalar_evolution_in_region.
7002 (scop_detection::stmt_simple_for_scop_p): Likewise.
7003 (find_params_in_bb): Likewise.
7004 (gather_bbs::before_dom_children): Likewise.
7005 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
7006 (add_loop_constraints): Likewise.
7008 2019-02-06 Jakub Jelinek <jakub@redhat.com>
7011 * fold-const-call.c (fold_const_vec_convert): Pass true as last
7012 operand to new_unary_operation only if both element types are integral
7013 and it isn't a widening conversion. Return NULL_TREE if
7014 new_unary_operation failed.
7016 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
7019 * config/s390/s390.md: Remove load and test FP splitter.
7021 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7024 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
7025 expand_compare_loop, expand_block_compare_gpr,
7026 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
7027 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
7028 #include "profile-count.h" and "predict.h" for types and functions
7029 needed to work with REG_BR_PROB notes.
7031 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7034 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
7035 for the long branch case.
7037 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7040 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
7041 can throw, non-call exceptions are enabled and we can't delete
7042 dead exceptions or alter cfg. Set must_clean if
7043 delete_insn_and_edges returns true, don't set it blindly for calls.
7044 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
7046 PR rtl-optimization/89195
7047 * combine.c (make_extraction): For MEMs, don't extract bytes outside
7048 of the original MEM.
7050 2019-02-05 Martin Liska <mliska@suse.cz>
7052 PR gcov-profile/89000
7053 * gcov.c (function_summary): Remove argument.
7054 (file_summary): New function.
7055 (print_usage): Replace tabs with spaces.
7056 (generate_results): Use new function file_summary.
7058 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7061 * optabs.c (prepare_cmp_insn): Pass x and y to
7062 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
7064 2019-02-05 Richard Biener <rguenther@suse.de>
7067 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
7068 (struct bitmap_element): Drop chain_prev so we properly recurse on
7069 the prev member, supporting tree views.
7070 (struct bitmap_head): GTY skip the obstack member.
7072 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
7075 * doc/extend.texi (Vector Extensions): Add an example of using vector
7076 types together with x86 intrinsics.
7078 2019-02-04 Alan Modra <amodra@gmail.com>
7080 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
7081 str[] size to 160, and comment.
7083 2019-02-04 Alan Modra <amodra@gmail.com>
7085 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
7086 (rs6000_pltseq_template): Guard output of TLS markers with
7088 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
7089 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
7090 to use inline PLT sequences.
7091 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7092 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7093 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
7095 2019-02-04 Martin Liska <mliska@suse.cz>
7098 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
7099 out when ipa_fn_summaries does not contain entry for callee.
7101 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
7103 * config/sparc/sparc.h: Remove superfluous blank lines.
7104 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
7105 (got_register_rtx): ...this.
7106 (sparc_got): Adjust to above renaming.
7107 (sparc_tls_got): Likewise.
7108 (sparc_delegitimize_address): Likewise.
7109 (sparc_output_mi_thunk): Likewise.
7110 (sparc_init_pic_reg): Likewise.
7111 (save_local_or_in_reg_p): Fix test on the GOT register.
7112 (USE_HIDDEN_LINKONCE): Move around.
7113 (get_pc_thunk_name): Likewise.
7114 (gen_load_pcrel_sym): Likewise.
7115 (load_got_register): Likewise.
7117 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
7119 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
7120 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
7122 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7124 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
7127 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7129 * config.gcc (with_nds32_lib, glibc):
7130 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
7131 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
7132 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
7134 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
7137 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
7138 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
7139 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
7140 (*rcpsf2_sse): Ditto.
7141 (*rsqrtsf2_sse): Ditto.
7142 (sse4_1_round<mode<2): Ditto.
7144 2019-02-03 Richard Biener <rguenther@suse.de>
7147 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
7150 2019-02-02 Jakub Jelinek <jakub@redhat.com>
7153 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7154 Punt with warning on aggregate return or argument types. Ignore
7155 type/mode checking for uniform arguments.
7157 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
7159 * combine.c (try_combine): Do not print "Can't combine" messages unless
7160 printing failed combination attempts.
7162 2019-02-01 Martin Jambor <mjambor@suse.cz>
7165 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
7166 segment and global segment variables before making them static.
7168 2019-02-01 Martin Jambor <mjambor@suse.cz>
7170 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
7171 missed optimization dump with dump_enabled_p.
7173 2019-02-01 Richard Biener <rguenther@suse.de>
7176 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
7177 the instantiate cache.
7178 (instantiate_scev_binary): Elide second operand procesing
7179 if equal to the first.
7180 * tree-chrec.c (chrec_contains_symbols): Add visited set.
7181 (chrec_contains_undetermined): Likewise.
7182 (tree_contains_chrecs): Likewise.
7184 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
7186 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
7188 2019-02-01 Jakub Jelinek <jakub@redhat.com>
7190 PR tree-optimization/89143
7191 * wide-int-range.h (wide_int_range_absu): Declare.
7192 * wide-int-range.cc (wide_int_range_absu): New function.
7193 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
7195 PR tree-optimization/88107
7196 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
7197 instead of assertion that eh_region_outermost is non-NULL, if it
7198 is NULL, set *ALL to true and return NULL.
7199 (move_sese_region_to_fn): Adjust caller, if all is set, call
7200 duplicate_eh_regions with NULL region.
7202 2019-02-01 Richard Biener <rguenth@suse.de>
7204 PR rtl-optimization/88593
7205 * mode-switching.c (optimize_mode_switching): Free dominators before
7206 calling cleanup_cfg.
7208 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
7210 PR tree-optimization/88932
7211 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
7213 2019-01-31 Jakub Jelinek <jakub@redhat.com>
7216 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
7217 bogus clang warning.
7219 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
7222 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
7223 alternative to avoid partial SSE register stall for TARGET_AVX.
7224 (truncdfsf2): Ditto.
7225 (sse4_1_round<mode>2): Ditto.
7227 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
7229 PR tree-optimization/89008
7230 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
7231 process anything of the form X * 0.
7233 2019-01-31 Richard Biener <rguenther@suse.de>
7235 PR tree-optimization/89135
7236 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
7237 with abnormal preds.
7239 2019-01-31 Jakub Jelinek <jakub@redhat.com>
7242 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
7243 always_inline callees into no_sanitize_address callers.
7245 2019-01-31 Richard Biener <rguenther@suse.de>
7247 PR rtl-optimization/89115
7248 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
7250 2019-01-30 Martin Sebor <msebor@redhat.com>
7253 * doc/extend.texi (cast to a union): Correct and expand.
7255 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
7257 PR rtl-optimization/87246
7258 * lra-constraints.c (simplify_operand_subreg): Reload memory
7259 in subreg if the address became invalid.
7261 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
7264 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
7265 Disable for little-endian.
7267 2019-01-30 Richard Biener <rguenther@suse.de>
7269 PR rtl-optimization/89115
7270 * opts.c (default_options_optimization): Reduce
7271 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
7272 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
7275 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
7277 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
7278 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
7279 type of vector element when vec_extract is implemented by direct
7282 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
7284 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
7286 2019-01-30 Richard Biener <rguenther@suse.de>
7288 PR tree-optimization/89111
7289 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
7290 canonicalization to appropriately sized access types.
7292 2019-01-30 Jakub Jelinek <jakub@redhat.com>
7295 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
7296 for arguments to functions that are TU-local and shouldn't be
7297 referenced by assembly.
7299 2019-01-30 Ulrich Drepper <drepper@redhat.com>
7301 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
7304 2019-01-29 Martin Sebor <msebor@redhat.com>
7307 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
7309 2019-01-29 Jakub Jelinek <jakub@redhat.com>
7313 * omp-simd-clone.c (simd_clone_clauses_extract)
7314 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
7315 OMP_CLAUSE_ALIGNED_ALIGNMENT.
7317 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
7319 * config.gcc: Force .init_array for ARC.
7321 2019-01-29 Richard Biener <rguenther@suse.de>
7324 * dwarf2out.c (collect_skeleton_dies): New helper.
7325 (copy_decls_for_unworthy_types): Call it.
7326 (build_abbrev_table): Assert we do not try to replace
7327 DW_AT_signature refs with local refs.
7329 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7332 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
7333 for lastprivate/linear IV, push gimplify context around gimplify_assign
7334 and, if it needed any temporaries, pop it into a gimple bind around the
7337 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
7339 * common.opt (-Wattribute-alias): Remove "no-" from name.
7340 Make -Wattribute-alias command line option and
7341 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
7343 2019-01-28 Jakub Jelinek <jakub@redhat.com>
7346 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
7347 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
7349 (bmi2): Add missing @opindex.
7350 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
7351 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
7352 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
7353 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
7354 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
7355 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
7356 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
7357 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
7358 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
7359 xsavec, xsaveopt and xsaves options.
7361 2019-01-28 Richard Biener <rguenther@suse.de>
7364 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
7367 2019-01-28 Richard Biener <rguenther@suse.de>
7369 PR tree-optimization/88739
7370 * tree-cfg.c (verify_types_in_gimple_reference): Verify
7371 BIT_FIELD_REFs only are applied to mode-precision operands
7372 when they are integral.
7373 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
7374 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
7375 BIT_FIELD_REFs of non-mode-precision integral operands.
7377 2019-01-27 Jakub Jelinek <jakub@redhat.com>
7380 * config/i386/sse.md
7381 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
7382 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
7383 first constants in pairs are multiples of 2. Formatting fixes.
7384 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
7385 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
7386 first constants in each quadruple are multiples of 4. Formatting fixes.
7388 2019-01-26 Martin Jambor <mjambor@suse.cz>
7391 * tree-inline.c: Include tree-cfgcleanup.h.
7392 (delete_unreachable_blocks_update_callgraph): Move...
7393 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
7394 ...here, make externally visible, make second argument bool, adjust
7396 * tree-cfgcleanup.c: Include cgraph.h.
7397 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
7399 * ipa-prop.c: Include tree-cfgcleanup.h.
7400 (ipcp_transform_function): Call
7401 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
7403 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
7405 PR rtl-optimization/88846
7406 * ira.c (process_set_for_memref_referenced_p): New.
7407 (memref_referenced_p): Add new param. Use
7408 process_set_for_memref_referenced_p. Add new switch cases.
7409 (memref_used_between_p): Pass new arg to memref_referenced_p.
7411 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
7414 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
7415 argument ABI_BREAK. Set to true if the calculated alignment has
7416 changed in gcc-9. Check bit-fields for their base type alignment.
7417 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
7418 (aarch64_function_arg_boundary): Likewise.
7419 (aarch64_gimplify_va_arg_expr): Likewise.
7421 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7424 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
7425 instead of accessing TREE_INT_CST_ELT directly.
7427 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
7429 * doc/sourcebuild.texi (Environment attributes): Add fenv and
7430 fenv_exceptions description.
7432 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
7434 PR rtl-optimization/87763
7435 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
7436 Allow SUBREG when matching CC_NZmode compare.
7438 2019-01-25 Richard Biener <rguenther@suse.de>
7440 PR tree-optimization/89049
7441 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
7442 Look at the pattern stmt to determine if the stmt is vectorized.
7444 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
7446 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
7447 (pred_mov<mode>): Handle all-register forms using both a new
7448 alternative and a split.
7450 2019-01-25 Richard Biener <rguenther@suse.de>
7452 PR tree-optimization/86865
7453 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7454 Reject non-do-while loops.
7456 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
7458 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
7459 * config/rs6000/constraints.md (Q constraint): Use REG_P.
7460 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
7461 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7462 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
7463 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7464 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
7465 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
7466 vlogical_operand, gpc_reg_operand, int_reg_operand,
7467 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
7468 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
7469 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
7470 (save_world_operation, restore_world_operation, lmw_operation,
7471 stmw_operation): Use MEM_P and REG_P.
7472 (tie_operand): Use MEM_P.
7473 (vrsave_operation, crsave_operation): Use REG_P.
7474 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
7475 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
7476 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
7477 (call_operand): Use HARD_REGISTER_P.
7478 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
7480 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
7481 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
7482 quad_aligned_load_p, replace_swapped_aligned_store,
7483 recombine_lvx_pattern, replace_swapped_aligned_load,
7484 recombine_stvx_pattern): Use MEM_P.
7485 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
7486 Use MEM_P and SYMBOL_REF_P.
7487 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
7488 (insn_is_swappable_p): Use REG_P and MEM_P.
7489 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
7490 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
7492 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
7494 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
7496 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
7497 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
7498 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
7499 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
7501 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7502 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
7503 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
7504 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
7505 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
7506 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
7507 rs6000_split_logical_di): Use CONST_INT_P.
7508 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
7509 REG_P and SYMBOL_REF_P.
7510 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
7511 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
7512 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
7513 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
7514 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
7515 (small_data_operand, print_operand_address): Use CONST_INT_P and
7517 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
7518 (rs6000_init_hard_regno_mode_ok, direct_move_p):
7519 Use HARD_REGISTER_NUM_P.
7520 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
7521 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
7522 SUBREG_P and SYMBOL_REF_P.
7523 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
7524 and HARD_REGISTER_NUM_P.
7525 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
7527 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
7528 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
7530 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
7531 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
7532 find_addr_reg): Use REG_P.
7533 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
7534 (rs6000_emit_le_vsx_move): Use SUBREG_P.
7535 (offsettable_ok_by_alignment, constant_pool_expr_p,
7536 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
7537 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
7538 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
7539 rs6000_assemble_integer, create_TOC_reference,
7540 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
7541 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
7542 (rs6000_split_vec_extract_var): Use reg_or_subregno.
7543 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
7544 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
7545 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7546 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
7547 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
7548 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
7549 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
7550 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
7551 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
7552 and cbranch<mode>4): Use CONST_INT_P.
7553 (multiple define_splits): Use REG_P and SUBREG_P.
7554 (define_expands call, call_value): Use MEM_P.
7555 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
7556 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
7557 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
7558 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
7559 and HARD_REGISTER_NUM_P.
7560 (multiple define_splits): Use HARD_REGISTER_NUM_P.
7562 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
7564 PR rtl-optimization/88948
7565 * rtl.h (prepare_copy_insn): New prototype.
7566 * gcse.c (prepare_copy_insn): New function, split out from
7567 process_insert_insn.
7568 (process_insert_insn): Use prepare_copy_insn.
7569 * store-motion.c (replace_store_insn): Use prepare_copy_insn
7570 instead of gen_move_insn.
7572 2019-01-24 Jakub Jelinek <jakub@redhat.com>
7575 * config/i386/i386.c (ix86_pic_register_p): Return true for
7578 PR tree-optimization/88964
7579 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
7580 punt if HONOR_SNANS (chrec).
7583 * tree-nested.c (convert_nonlocal_reference_stmt,
7584 convert_local_reference_stmt, convert_tramp_reference_stmt,
7585 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
7586 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
7589 PR tree-optimization/89027
7590 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
7591 for "omp simd array" variables.
7593 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
7596 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
7597 force the alignment of m_val.
7599 2019-01-24 Richard Biener <rguenther@suse.de>
7602 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
7603 When in "legacy" debug mode make sure to reset self-origins.
7605 2019-01-24 Martin Liska <mliska@suse.cz>
7607 PR gcov-profile/88994
7608 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
7609 result will be always smaller or equal to the original.
7610 * gcov.c (mangle_name): Fix else branch where we should
7611 also copy to PTR and shift the pointer.
7613 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7615 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
7616 * vr-values.c (find_case_label_ranges): Fix a comment typo.
7618 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
7620 * common/config/i386/i386-common.c
7621 (OPTION_MASK_ISA_ENQCMD_SET,
7622 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
7623 (ix86_handle_option): Handle -menqcmd.
7624 * config.gcc (enqcmdintrin.h): New header file.
7625 * config/i386/cpuid.h (bit_ENQCMD): New bit.
7626 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
7628 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
7630 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
7631 __builtin_ia32_enqcmds): New builtins.
7632 * config/i386/i386-c.c (__ENQCMD__): New macro.
7633 * config/i386/i386-option.c (ix86_target_string): Add
7635 (ix86_valid_target_attribute_inner_p): Likewise.
7636 * config/i386/i386-expand.c
7637 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
7638 IX86_BUILTIN_ENQCMDS.
7639 * config/i386/i386.h (TARGET_ENQCMD): New.
7640 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
7641 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
7642 (movdir64b_<mode>): Parameterize to enable share expansion code
7643 with ENQCMD in function ix86_expand_builtin.
7644 * config/i386/i386.opt: Add -menqcmd.
7645 * config/i386/immintrin.h: Include enqcmdintrin.h.
7646 * config/i386/enqcmdintrin.h: New intrinsic file.
7647 * doc/invoke.texi: Add -menqcmd.
7649 2019-01-23 Bin Cheng <bin.cheng@arm.com>
7650 Steve Ellcey <sellcey@marvell.com>
7653 * recog.c (address_operand): Return false on wrong mode for address.
7654 (constrain_operands): Check for mode with 'p' constraint.
7656 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
7659 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
7660 Disparage MMX alternative.
7661 (sse2_cvtpd2pi): Ditto.
7662 (sse2_cvttpd2pi): Ditto.
7664 2019-01-23 David Malcolm <dmalcolm@redhat.com>
7667 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
7668 use-after-free of the result of
7669 aarch64_get_extension_string_for_isa_flags.
7671 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7674 * doc/extend.texi: Document break and continue behavior in
7675 statement expressions.
7677 2019-01-23 Richard Biener <rguenther@suse.de>
7679 PR tree-optimization/89008
7680 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
7681 not leave another stray operand.
7683 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7685 * BASE-VER: Bump to 9.0.1.
7687 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
7689 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
7690 thunk that returns by reference, use the type of the return object
7691 of the thunk instead of that of the alias to build the dereference.
7693 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
7695 * config/arc/atomic.md: Add operand to DMB instruction.
7697 2019-01-23 Jakub Jelinek <jakub@redhat.com>
7699 PR tree-optimization/88964
7700 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
7701 build_zero_cst instead of build_int_cst. Return false for loop
7702 invariants which honor signed zeros.
7704 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
7706 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
7708 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7711 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
7712 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
7713 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
7716 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
7717 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
7720 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
7721 Disable for little endian.
7723 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7726 * config/arm/arm.c (arm_needs_double_word_align): Check
7727 DECL_BIT_FIELD_TYPE.
7729 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
7730 H.J. Lu <hongjiu.lu@intel.com>
7733 * config/i386/i386-builtin.def: Add mask2 to all builtin
7734 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
7736 * config/i386/i386.c (BDESC): Add mask2 to the definition.
7737 (BDESC_FIRST): Likewise.
7738 (define_builtin): Add an argument for mask2. Updated to handle
7739 both ix86_isa_flags and ix86_isa_flags2.
7740 (define_builtin_const): Likewise.
7741 (define_builtin_pure): Likewise.
7742 (define_builtin2): Deleted.
7743 (define_builtin_const2): Likewise.
7744 (builtin_description): Add a member, mask2.
7745 (bdesc_*): Add mask2 to builtin initializations.
7746 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
7747 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
7749 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
7751 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
7754 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
7757 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
7760 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
7761 alignment is dominated by a bitfield with 64-bit aligned base type.
7762 (arm_function_arg): Emit a warning if the alignment has changed since
7763 earlier GCC releases.
7764 (arm_function_arg_boundary): Likewise.
7765 (arm_setup_incoming_varargs): Likewise.
7767 2019-01-22 Richard Biener <rguenther@suse.de>
7769 PR tree-optimization/88862
7770 * graphite-scop-detection.c
7771 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
7773 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
7775 * doc/extend.tex (AMD GCN Function Attributes): New section.
7776 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
7777 * doc/invoke.texi (AMD GCN Options): New section.
7778 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
7780 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
7782 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
7783 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
7785 2019-01-22 Jakub Jelinek <jakub@redhat.com>
7787 PR tree-optimization/88044
7788 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
7789 is false in the first iteration, but !every_iteration, return false
7790 instead of true with niter->niter zero.
7792 PR rtl-optimization/88904
7793 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
7794 any nonequal registers before processing BB_END (b).
7797 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
7799 (expand_binop_directly, expand_doubleword_clz,
7800 expand_doubleword_popcount, expand_ctz, expand_ffs,
7801 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
7803 PR rtl-optimization/49429
7805 PR rtl-optimization/86334
7807 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
7808 addressable from here...
7809 (emit_block_op_via_libcall): ... to here.
7811 2019-01-22 Richard Biener <rguenther@suse.de>
7813 * tree-vect-loop.c (vect_analyze_loop_operations): Use
7814 auto_vec for cost vector to fix memleak.
7815 (vectorize_fold_left_reduction): Properly gather SLP defs.
7816 (vectorizable_comparison): Do not swap operands to properly
7819 2019-01-22 Alan Modra <amodra@gmail.com>
7822 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
7823 stays a reg. Allow a const_int.
7824 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
7825 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
7826 (IS_NOMARK_TLSGETADDR): Define.
7827 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
7828 (rs6000_output_tlsargs): New function.
7829 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
7830 __tls_get_addr call takes an arg.
7831 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
7832 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
7834 (call_value_nonlocal_sysv): ..or here, delete split.
7835 (tls_gdld_nomark): Delete.
7836 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
7837 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
7838 (call_value_nonlocal_sysv): Likewise.
7839 (call_value_nonlocal_sysv_secure): Likewise.
7840 (call_value_nonlocal_aix): Likewise.
7841 (call_value_indirect_aix): Likewise.
7842 (call_value_indirect_elfv2): Likewise.
7843 (call_value_local32, call_value_local64): Disable for no-mark tls.
7844 (call_value_local_aix): Likewise.
7846 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
7849 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
7850 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
7852 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
7854 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
7855 string contents as hash_map keys.
7857 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7860 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
7861 for rvalue context. Handle rvalues correctly. Use min_align_of_type
7862 instead of TYPE_ALIGN.
7863 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
7864 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
7865 pointer from TYPE_STUB_DECL.
7867 2019-01-21 Richard Biener <rguenther@suse.de>
7869 PR tree-optimization/88934
7870 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
7871 at the possibly non-constant operand.
7872 (vect_get_constant_vectors): Adjust.
7874 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
7877 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
7878 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
7879 instead of _X86INTRIN_H_INCLUDED.
7880 * onfig/i386/clwbintrin.h: Likewise.
7881 * config/i386/pkuintrin.h: Likewise.
7882 * config/i386/prfchwintrin.h: Likewise.
7883 * config/i386/rdseedintrin.h: Likewise.
7884 * config/i386/wbnoinvdintrin.h: Likewise.
7885 * config/i386/xsavecintrin.h: Likewise.
7886 * config/i386/xsavesintrin.h: Likewise.
7887 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
7888 * config/i386/xsaveintrin.h: Likewise.
7889 * config/i386/xsaveoptintrin.h: Likewise.
7890 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
7891 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
7892 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
7893 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
7894 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
7895 * config/i386/immintrin.h: Here.
7897 2019-01-20 Martin Jambor <mjambor@suse.cz>
7900 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
7901 with aa_walk_budget.
7902 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
7903 aa_walk_budget_p parameter.
7904 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
7905 walk. Updated all callers.
7906 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
7907 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
7909 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
7910 parameter info. Extract info from fbi. Pass fbi to recursive calls
7911 and to unmodified_parm.
7912 (phi_result_unknown_predicate): New parameter fbi, removed parameter
7913 info, updated call to will_be_nonconstant_expr_predicate.
7914 (param_change_prob): New parameter fbi, limit AA walking.
7915 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
7916 calls to various above functions.
7917 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
7918 parameter. Use it to limit AA walking.
7919 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
7921 (detect_type_change): New parameter fbi, pass it on to
7922 detect_type_change_from_memory_writes.
7923 (detect_type_change_ssa): Likewise.
7924 (aa_overwalked): Removed.
7925 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
7926 accordingly, adjust to the neew AA limiting scheme.
7927 (parm_ref_data_preserved_p): Likewise.
7928 (ipa_compute_jump_functions_for_edge): Adjust call to
7930 (ipa_analyze_call_uses): Likewise.
7931 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
7932 (ipa_analyze_node): Initialize aa_walk_budget.
7933 (ipcp_transform_function): Likewise.
7934 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
7935 to get_dynamic_type.
7937 2019-01-19 Jakub Jelinek <jakub@redhat.com>
7939 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
7940 outside of #if CHECKING_P code.
7942 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
7944 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
7945 New function, split out from...
7946 (loop_versioning::analyze_stride): ...here.
7947 (loop_versioning::find_per_loop_multiplication): Use gassign.
7948 (loop_versioning::analyze_term_using_scevs): Return a success code.
7949 (loop_versioning::analyze_arbitrary_term): New function.
7950 (loop_versioning::analyze_address_fragment): Use
7951 analyze_arbitrary_term if all else fails.
7953 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
7956 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
7959 2019-01-18 Richard Biener <rguenther@suse.de>
7961 PR tree-optimization/88903
7962 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
7963 scalar stmts a SLP shift amount is composed of when detecting
7966 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
7969 * config/arm/arm-cpus.in (mp): New feature.
7971 (fgroup ARMv7ve): Add mp and sec features.
7972 (arch armv7-a): Add options to allow mp and sec extensions.
7973 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
7974 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
7975 extenstions to the base architecture.
7976 (cpu cortex-a8): Add sec extension to the base architecture.
7977 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
7978 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
7979 variants down to the base v7-a varaint.
7980 * config/arm/t-multilib (v7_a_arch_variants): New variable.
7981 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
7982 of permitted extensions for -march=armv7-a and for
7983 -mcpu=generic-armv7-a.
7985 2019-01-18 Martin Liska <mliska@suse.cz>
7987 * params.def: Fix comment.
7988 * tree-profile.c (gimple_init_gcov_profiler): Bump function
7990 (gimple_gen_ic_func_profiler): Likewise.
7992 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7994 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
7995 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
7996 and put in error checks for stack protector guard options.
7997 (aarch64_stack_protect_guard): New.
7998 (TARGET_STACK_PROTECT_GUARD): Define.
7999 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
8000 (reg_stack_protect_address<mode>): New.
8001 (stack_protect_set): Adjust for SSP_GLOBAL.
8002 (stack_protect_test): Likewise.
8003 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
8004 (-mstack-protector-guard): Likewise.
8005 (-mstack-protector-guard-offset): Likewise.
8007 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8009 PR tree-optimization/86214
8010 * tree-inline.h (struct copy_body_data): Add
8011 add_clobbers_to_eh_landing_pads member.
8012 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
8013 (copy_edges_for_bb): Call it if EH edge destination is <
8014 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
8015 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
8016 if flag_stack_reuse != SR_NONE and clear it afterwards.
8018 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
8021 * doc/install.texi (with-multilib-list): Document for aarch64.
8023 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8026 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
8027 (("..."))) with ("...").
8029 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8031 * doc/extend.texi (Built-in Functions for Memory Model Aware
8032 Atomic Operations): Document atomic fetch and nand.
8034 2019-01-18 Martin Liska <mliska@suse.cz>
8035 Richard Biener <rguenther@suse.de>
8038 * cgraph.h (create_version_clone_with_body): Add new argument
8040 * cgraphclones.c (cgraph_node::create_version_clone): Add
8041 DECL_ATTRIBUTES to a newly created decl. And call
8042 valid_attribute_p so that proper cl_target_optimization_node
8043 is set for the newly created declaration.
8044 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
8046 (expand_target_clones): Do not call valid_attribute_p, it must
8048 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
8051 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8054 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
8055 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
8056 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
8058 2019-01-17 Martin Sebor <msebor@redhat.com>
8061 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
8062 Handle anti-ranges the same as no range at all.
8064 2018-01-17 Steve Ellcey <sellcey@cavium.com>
8066 * config/aarch64/aarch64.c (cgraph.h): New include.
8067 (intl.h): New include.
8068 (supported_simd_type): New function.
8069 (currently_supported_simd_type): Ditto.
8070 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
8071 (aarch64_simd_clone_adjust): Ditto.
8072 (aarch64_simd_clone_usable): Ditto.
8073 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
8074 (TARGET_SIMD_CLONE_ADJUST): Ditto.
8075 (TARGET_SIMD_CLONE_USABLE): Ditto.
8076 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
8077 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
8080 2019-01-17 Martin Sebor <msebor@redhat.com>
8082 PR tree-optimization/88800
8083 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
8084 NO_WARNING bit here. Avoid folding out-of-bounds calls.
8085 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
8086 redundant argument. Add new argument and issue diagnostics under
8087 its control. Detect out-of-bounds access even with warnings
8089 (check_bounds_or_overlap): Change return type. Add argument.
8090 (wrestrict_dom_walker::check_call): Adjust.
8091 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
8092 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
8093 check_bounds_or_overlap's return value.
8094 (handle_builtin_stxncpy): Same.
8095 (handle_builtin_strcat): Same.
8097 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8098 Kwok Cheung Yeung <kcy@codesourcery.com>
8099 Julian Brown <julian@codesourcery.com>
8100 Tom de Vries <tom@codesourcery.com>
8102 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
8104 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8106 * doc/sourcebuild.texi: Document dg-require-effective-target
8107 llvm_binutils and offload_gcn.
8109 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8110 Kwok Cheung Yeung <kcy@codesourcery.com>
8111 Julian Brown <julian@codesourcery.com>
8112 Tom de Vries <tom@codesourcery.com>
8114 * doc/sourcebuild.texi: Document dg-required-effective-target
8117 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8118 Kwok Cheung Yeung <kcy@codesourcery.com>
8119 Julian Brown <julian@codesourcery.com>
8120 Tom de Vries <tom@codesourcery.com>
8121 Jan Hubicka <hubicka@ucw.cz>
8122 Martin Jambor <mjambor@suse.cz>
8124 * config.gcc: Add amdgcn*-*-amdhsa configuration.
8125 * configure.ac: Check for dlopen.
8126 * configure: Regenerate.
8128 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8129 Kwok Cheung Yeung <kcy@codesourcery.com>
8130 Julian Brown <julian@codesourcery.com>
8131 Tom de Vries <tom@codesourcery.com>
8132 Jan Hubicka <hubicka@ucw.cz>
8133 Martin Jambor <mjambor@suse.cz>
8135 * common/config/gcn/gcn-common.c: New file.
8136 * config/gcn/driver-gcn.c: New file.
8137 * config/gcn/gcn-builtins.def: New file.
8138 * config/gcn/gcn-hsa.h: New file.
8139 * config/gcn/gcn-modes.def: New file.
8140 * config/gcn/gcn-opts.h: New file.
8141 * config/gcn/gcn-passes.def: New file.
8142 * config/gcn/gcn-protos.h: New file.
8143 * config/gcn/gcn-run.c: New file.
8144 * config/gcn/gcn-tree.c: New file.
8145 * config/gcn/gcn.c: New file.
8146 * config/gcn/gcn.h: New file.
8147 * config/gcn/gcn.opt: New file.
8148 * config/gcn/t-gcn-hsa: New file.
8150 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8151 Kwok Cheung Yeung <kcy@codesourcery.com>
8152 Julian Brown <julian@codesourcery.com>
8153 Tom de Vries <tom@codesourcery.com>
8154 Jan Hubicka <hubicka@ucw.cz>
8155 Martin Jambor <mjambor@suse.cz>
8157 * config/gcn/constraints.md: New file.
8158 * config/gcn/gcn-valu.md: New file.
8159 * config/gcn/gcn.md: New file.
8160 * config/gcn/predicates.md: New file.
8162 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
8164 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
8165 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
8166 (stmt_uses_0_or_null_in_undefined_way): Likewise.
8167 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
8169 2019-01-17 Tamar Christina <tamar.christina@arm.com>
8172 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
8173 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
8174 it and document registers.
8176 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8178 * config/aarch64/aarch64.c (ares_tunings): Define.
8179 * config/aarch64/aarch64-cores.def (ares): Use the above.
8181 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8185 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
8187 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
8188 (_mm512_fixupimm_round_pd): Update parameters and builtin.
8189 (_mm512_maskz_fixupimm_round_pd): Ditto.
8190 (_mm512_fixupimm_round_ps): Ditto.
8191 (_mm512_maskz_fixupimm_round_ps): Ditto.
8192 (_mm_fixupimm_round_sd): Ditto.
8193 (_mm_maskz_fixupimm_round_sd): Ditto.
8194 (_mm_fixupimm_round_ss): Ditto.
8195 (_mm_maskz_fixupimm_round_ss): Ditto.
8196 (_mm512_fixupimm_pd): Ditto.
8197 (_mm512_maskz_fixupimm_pd): Ditto.
8198 (_mm512_fixupimm_ps): Ditto.
8199 (_mm512_maskz_fixupimm_ps): Ditto.
8200 (_mm_fixupimm_sd): Ditto.
8201 (_mm_maskz_fixupimm_sd): Ditto.
8202 (_mm_fixupimm_ss): Ditto.
8203 (_mm_maskz_fixupimm_ss): Ditto.
8204 (_mm512_mask_fixupimm_round_pd): Update builtin.
8205 (_mm512_mask_fixupimm_round_ps): Ditto.
8206 (_mm_mask_fixupimm_round_sd): Ditto.
8207 (_mm_mask_fixupimm_round_ss): Ditto.
8208 (_mm512_mask_fixupimm_pd): Ditto.
8209 (_mm512_mask_fixupimm_ps): Ditto.
8210 (_mm_mask_fixupimm_sd): Ditto.
8211 (_mm_mask_fixupimm_ss): Ditto.
8212 * config/i386/avx512vlintrin.h:
8213 (_mm256_fixupimm_pd): Update parameters and builtin.
8214 (_mm256_maskz_fixupimm_pd): Ditto.
8215 (_mm256_fixupimm_ps): Ditto.
8216 (_mm256_maskz_fixupimm_ps): Ditto.
8217 (_mm_fixupimm_pd): Ditto.
8218 (_mm_maskz_fixupimm_pd): Ditto.
8219 (_mm_fixupimm_ps): Ditto.
8220 (_mm_maskz_fixupimm_ps): Ditto.
8221 (_mm256_mask_fixupimm_pd): Update builtin.
8222 (_mm256_mask_fixupimm_ps): Ditto.
8223 (_mm_mask_fixupimm_pd): Ditto.
8224 (_mm_mask_fixupimm_ps): Ditto.
8225 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
8226 * config/i386/i386-builtin.def: Update builtin definitions.
8227 * config/i386/i386.c: Handle new builtin types and remove useless ones.
8228 * config/i386/sse.md: Update VFIXUPIMM* patterns.
8229 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8230 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8231 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
8232 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8233 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8234 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
8235 * config/i386/subst.md:
8236 (round_saeonly_sd_mask_operand4): Add new subst_attr.
8237 (round_saeonly_sd_mask_op4): Ditto.
8238 (round_saeonly_expand_operand5): Ditto.
8239 (round_saeonly_expand): Update.
8241 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8245 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
8247 * config/i386/sse.md: Combine VFIXUPIMM* patterns
8248 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8249 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8250 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
8251 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8252 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8253 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
8255 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8259 2018-12-15 Jakub Jelinek <jakub@redhat.com>
8262 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
8263 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
8264 instead of UNSPEC_FIXUPIMM.
8266 2019-01-17 Richard Biener <rguenther@suse.de>
8269 * dwarf2out.c (want_pubnames): Never generate pubnames sections
8270 and friends for the LTO part of debug info.
8272 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8274 PR tree-optimization/86214
8275 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
8278 PR rtl-optimization/88870
8279 * dce.c (deletable_insn_p): Never delete const/pure calls that can
8280 throw if we can't alter the cfg or delete dead exceptions.
8281 (mark_insn): Don't call find_call_stack_args for such calls.
8283 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
8285 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
8286 prototypes for vec_st.
8287 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
8288 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
8289 mainly on signed/unsigned long long and double.
8291 2019-01-16 David Malcolm <dmalcolm@redhat.com>
8294 * combine.c (delete_noop_moves): Convert to "bool" return,
8295 returning true if any edges are eliminated.
8296 (combine_instructions): Also return true if delete_noop_moves
8299 2019-01-16 Tamar Christina <tamar.christina@arm.com>
8301 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
8302 correct max nunits for endian swap.
8303 (aarch64_expand_fcmla_builtin): Correct subreg code.
8304 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8305 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
8308 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
8310 * config/alpha/alpha.c (alpha_gimplify_va_arg):
8311 Handle split indirect COMPLEX_TYPE arguments.
8313 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
8316 * config/aarch64/aarch64-modes.def: Add comment about how the carry
8317 bit is set by add and compare.
8318 (CC_ADC): New CC_MODE.
8319 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
8320 to cache the code and mode of X. Adjust the shape of a CC_Cmode
8321 comparison. Add detection for CC_ADCmode.
8322 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
8324 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
8325 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
8326 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
8327 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
8328 to eliminate the need for zero-extending the operands.
8329 (add<mode>3_compareC_imm): Delete. Merge into ...
8330 (add<mode>3_compareC): ... this. Restructure the comparison to
8331 eliminate the need for zero-extending the operands.
8332 (add<mode>3_carryin): Use LTU for the overflow detection.
8333 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
8334 Reexpress comparison for overflow.
8335 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
8336 (add<mode>3_carryinC): Likewise.
8337 (add<mode>3_carryinV): Use LTU for carry between partials.
8338 * config/aarch64/predicates.md (aarch64_carry_operation): Update
8339 handling of CC_Cmode and add CC_ADCmode.
8340 (aarch64_borrow_operation): Likewise.
8342 2019-01-16 Tamar Christina <tamar.christina@arm.com>
8344 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
8345 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
8346 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
8347 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
8349 2019-01-16 Martin Liska <mliska@suse.cz>
8351 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
8353 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
8355 * gcc.c (add_sysrooted_hdrs_prefix): New function.
8356 (path_prefix_reset): Move up in the source file.
8357 (find_fortran_preinclude_file): Make complex search for the
8358 fortran header files.
8360 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
8362 * godump.c (go_output_typedef): When outputting a typedef, refer
8363 to the underlying type by its name and not its structure.
8365 2019-01-15 David Malcolm <dmalcolm@redhat.com>
8368 * tree.c (build_function_type): Assert that arg_types is not
8371 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
8374 * doc/extend.texi: Document that listing the stack pointer in the
8375 clobber list of an asm is a deprecated feature.
8376 * common.opt (Wdeprecated): Moved from c-family/c.opt.
8377 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
8378 warning instead of an error for clobbers of the stack pointer.
8379 Add a note explaining why.
8381 2019-01-15 Richard Biener <rguenther@suse.de>
8384 * dwarf2out.c (gen_member_die): Do not generate inheritance
8387 2019-01-15 Richard Biener <rguenther@suse.de>
8389 PR tree-optimization/88855
8390 * tree-if-conv.c (combine_blocks): Collect
8391 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
8393 2019-01-15 Tom de Vries <tdevries@suse.de>
8396 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
8397 lhs == NULL_TREE for gang-level reduction.
8399 2019-01-15 Richard Biener <rguenther@suse.de>
8400 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8403 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
8404 return true if SSA_NAME is already marked in visited bitmap.
8405 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
8407 2019-01-15 Jakub Jelinek <jakub@redhat.com>
8409 PR tree-optimization/88775
8410 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
8411 equal == 0 equality pointer comparisons some more if compared in
8412 integral types and either one points to an automatic var and the
8413 other to a global, or we can prove at least one points to the middle
8414 or both point to start or both point to end.
8416 2019-01-14 Andi Kleen <ak@linux.intel.com>
8418 * Makefile.in: Lower autofdo sampling rate by 10x.
8419 * Makefile.tpl: Dito.
8421 2019-01-14 Tom Honermann <tom@honermann.net>
8423 * defaults.h: Define CHAR8_TYPE.
8425 2019-01-14 Martin Sebor <msebor@redhat.com>
8428 * doc/extend.texi (Darwin Format Checks): Clarify.
8430 2019-01-14 Richard Biener <rguenther@suse.de>
8432 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
8433 whether we are in (simplify ...) or (match ...) context.
8435 2019-01-14 Jakub Jelinek <jakub@redhat.com>
8437 PR rtl-optimization/88796
8438 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
8439 * cfgexpand.c (stack_protect_prologue): Initialize
8440 crtl->stack_protect_guard_decl.
8441 * function.c (stack_protect_epilogue): Use it instead of calling
8442 targetm.stack_protect_guard again.
8443 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
8444 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
8445 crtl->stack_protect_guard_decl.
8446 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
8447 on the returned MEM_EXPR.
8449 2019-01-12 Tom de Vries <tdevries@suse.de>
8451 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
8452 vector length using -fopenacc-dim.
8454 2019-01-12 Tom de Vries <tdevries@suse.de>
8456 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
8457 lengths into account.
8459 2019-01-12 Svante Signell <svante.signell@gmail.com>
8461 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
8462 (TARGET_CAN_SPLIT_STACK): Define.
8463 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
8465 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8467 * params.def (inline-unit-growth): Set to 40.
8469 2019-01-12 Jakub Jelinek <jakub@redhat.com>
8471 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
8473 2019-01-12 Tom de Vries <tdevries@suse.de>
8475 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
8476 region calling vector-partitionable routine, set default_vector_length
8479 2019-01-12 Tom de Vries <tdevries@suse.de>
8481 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
8482 variable default_vector_length.
8484 2019-01-12 Tom de Vries <tdevries@suse.de>
8487 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
8488 from oacc_default_dims, as oacc_validate_dims would do it, and apply
8491 2019-01-12 Tom de Vries <tdevries@suse.de>
8493 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
8494 (nvptx_goacc_validate_dims): Add used parameter.
8495 * doc/tm.texi: Regenerate.
8496 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
8497 argument to call to targetm.goacc.validate_dims.
8498 (default_goacc_validate_dims): Add used
8500 * target.def (validate_dims): Add used parameter in DEFHOOK.
8501 * targhooks.h (default_goacc_validate_dims): Add used parameter.
8503 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8507 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
8509 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
8510 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
8511 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
8512 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
8514 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
8516 PR rtl-optimization/87305
8518 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
8519 for little endian pseudos used as paradoxical subreg.
8521 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8523 PR tree-optimization/88693
8524 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
8525 for STRING_CSTs that don't contain any NUL characters in the first
8526 TREE_STRING_LENGTH bytes.
8528 2019-01-11 Alan Modra <amodra@gmail.com>
8532 * genattrtab.c (min_fn): Don't translate values.
8533 (min_attr_value): Return INT_MAX when the value can't be calculated.
8534 Return minimum among any values that can be calculated.
8535 (max_attr_value): Adjust.
8537 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8539 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
8541 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8543 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8544 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
8545 (aarch64_return_call_with_max_clobbers): New function.
8546 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
8547 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
8549 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
8550 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
8551 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
8552 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
8553 * cselib.c (cselib_process_insn): Add argument to
8554 targetm.hard_regno_call_part_clobbered call.
8555 * ira-conflicts.c (ira_build_conflicts): Ditto.
8556 * ira-costs.c (ira_tune_allocno_costs): Ditto.
8557 * lra-constraints.c (inherit_reload_reg): Ditto.
8558 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
8559 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
8560 argument. Call targetm.return_call_with_max_clobbers.
8561 Add argument to targetm.hard_regno_call_part_clobbered call.
8562 (calls_have_same_clobbers_p): New function.
8563 (process_bb_lives): Add call_insn and last_call_insn variables.
8564 Pass call_insn to check_pseudos_live_through_calls.
8565 Modify if stmt to check targetm.return_call_with_max_clobbers.
8566 Update setting of flush variable.
8567 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
8569 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
8570 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
8571 targetm.hard_regno_call_part_clobbered call.
8572 * reginfo.c (choose_hard_reg_mode): Ditto.
8573 * regrename.c (check_new_reg_p): Ditto.
8574 * reload.c (find_equiv_reg): Ditto.
8575 * reload1.c (emit_reload_insns): Ditto.
8576 * sched-deps.c (deps_analyze_insn): Ditto.
8577 * sel-sched.c (init_regs_for_mode): Ditto.
8578 (mark_unavailable_hard_regs): Ditto.
8579 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
8580 * target.def (hard_regno_call_part_clobbered): Add insn argument.
8581 (return_call_with_max_clobbers): New target function.
8582 * doc/tm.texi: Regenerate.
8583 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
8584 * hooks.c (hook_bool_uint_mode_false): Change to
8585 hook_bool_insn_uint_mode_false.
8586 * hooks.h (hook_bool_uint_mode_false): Ditto.
8588 2019-01-11 Steve Ellcey <sellcey@marvell.com>
8590 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
8591 (aarch64_remove_extra_call_preserved_regs): New function.
8592 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
8593 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
8594 * doc/tm.texi: Regenerate.
8595 * final.c (get_call_reg_set_usage): Call new hook.
8596 * target.def (remove_extra_call_preserved_regs): New hook.
8597 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
8598 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
8600 2019-01-11 Jakub Jelinek <jakub@redhat.com>
8603 * passes.c (finish_optimization_passes): Call print_combine_total_stats
8604 inside of pass_combine_1 dump rather than pass_profile_1.
8606 2019-01-11 Tom de Vries <tdevries@suse.de>
8608 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
8609 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
8610 (PTX_NUM_PER_WORKER_BARRIERS): Define.
8611 (nvptx_apply_dim_limits): Prevent vector_length 64 and
8614 2019-01-11 Tom de Vries <tdevries@suse.de>
8616 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
8618 2019-01-11 Jan Beulich <jbeulich@suse.com>
8620 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
8621 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
8622 sse2_cvtsi2sd): Add {l}.
8623 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
8626 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8629 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
8631 (*float<floatunssuffix>v2div2sf2): New define_insn.
8632 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
8633 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
8634 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
8635 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
8636 match_operands with "const0_operand" "C".
8638 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8640 * config/aarch64/aarch64-builtins.c
8641 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
8642 (aarch64_init_simd_builtins): ...Here
8644 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
8646 PR rtl-optimization/87305
8648 (setup_live_pseudos_and_spill_after_risky_transforms): Check
8649 allocation for big endian pseudos used as paradoxical subregs and
8650 spill them if it is wrong.
8651 * lra-constraints.c (lra_constraints): Add a comment.
8653 2019-01-10 Richard Biener <rguenther@suse.de>
8655 PR tree-optimization/88792
8656 * tree-ssa-pre.c (get_representative_for): Do not return a
8659 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8663 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
8664 (assign_parm_setup_block): Do the argument slot realignment here
8667 2019-01-10 Stefan Agner <stefan@agner.ch>
8670 * config/arm/arm.c (arm_option_override_internal): Force
8671 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
8673 2019-01-10 Jakub Jelinek <jakub@redhat.com>
8676 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
8679 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8681 * config/arm/arm-builtins.c
8682 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
8683 (MAC_LANE_PAIR_QUALIFIERS): New.
8684 (arm_expand_builtin_args): Use it.
8685 (arm_expand_builtin_1): Likewise.
8686 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
8687 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
8688 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
8689 * config/arm/arm_neon.h:
8690 (vcadd_rot90_f16): New.
8691 (vcaddq_rot90_f16): New.
8692 (vcadd_rot270_f16): New.
8693 (vcaddq_rot270_f16): New.
8696 (vcmla_lane_f16): New.
8697 (vcmla_laneq_f16): New.
8698 (vcmlaq_lane_f16): New.
8699 (vcmlaq_laneq_f16): New.
8700 (vcmla_rot90_f16): New.
8701 (vcmlaq_rot90_f16): New.
8702 (vcmla_rot90_lane_f16): New.
8703 (vcmla_rot90_laneq_f16): New.
8704 (vcmlaq_rot90_lane_f16): New.
8705 (vcmlaq_rot90_laneq_f16): New.
8706 (vcmla_rot180_f16): New.
8707 (vcmlaq_rot180_f16): New.
8708 (vcmla_rot180_lane_f16): New.
8709 (vcmla_rot180_laneq_f16): New.
8710 (vcmlaq_rot180_lane_f16): New.
8711 (vcmlaq_rot180_laneq_f16): New.
8712 (vcmla_rot270_f16): New.
8713 (vcmlaq_rot270_f16): New.
8714 (vcmla_rot270_lane_f16): New.
8715 (vcmla_rot270_laneq_f16): New.
8716 (vcmlaq_rot270_lane_f16): New.
8717 (vcmlaq_rot270_laneq_f16): New.
8718 (vcadd_rot90_f32): New.
8719 (vcaddq_rot90_f32): New.
8720 (vcadd_rot270_f32): New.
8721 (vcaddq_rot270_f32): New.
8724 (vcmla_lane_f32): New.
8725 (vcmla_laneq_f32): New.
8726 (vcmlaq_lane_f32): New.
8727 (vcmlaq_laneq_f32): New.
8728 (vcmla_rot90_f32): New.
8729 (vcmlaq_rot90_f32): New.
8730 (vcmla_rot90_lane_f32): New.
8731 (vcmla_rot90_laneq_f32): New.
8732 (vcmlaq_rot90_lane_f32): New.
8733 (vcmlaq_rot90_laneq_f32): New.
8734 (vcmla_rot180_f32): New.
8735 (vcmlaq_rot180_f32): New.
8736 (vcmla_rot180_lane_f32): New.
8737 (vcmla_rot180_laneq_f32): New.
8738 (vcmlaq_rot180_lane_f32): New.
8739 (vcmlaq_rot180_laneq_f32): New.
8740 (vcmla_rot270_f32): New.
8741 (vcmlaq_rot270_f32): New.
8742 (vcmla_rot270_lane_f32): New.
8743 (vcmla_rot270_laneq_f32): New.
8744 (vcmlaq_rot270_lane_f32): New.
8745 (vcmlaq_rot270_laneq_f32): New.
8746 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
8747 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
8748 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
8749 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
8750 vcmlaq_lane270): New.
8751 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
8752 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
8753 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
8754 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
8755 (arm_option_reconfigure_globals): Use them.
8756 * config/arm/iterators.md (VDF, VQ_HSF): New.
8757 (VCADD, VCMLA): New.
8758 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
8759 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
8761 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
8762 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
8764 2019-01-10 Tamar Christina <tamar.christina@arm.com>
8766 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
8767 Add qualifier_lane_pair_index.
8768 (emit-rtl.h): Include.
8769 (TYPES_QUADOP_LANE_PAIR): New.
8770 (aarch64_simd_expand_args): Use it.
8771 (aarch64_simd_expand_builtin): Likewise.
8772 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
8774 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
8775 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
8776 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
8777 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
8778 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
8779 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
8780 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
8781 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
8782 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
8783 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
8784 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
8785 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
8786 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
8787 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
8788 Add __ARM_FEATURE_COMPLEX.
8789 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
8790 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
8791 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
8792 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
8793 fcmlaq_lane270): New.
8794 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
8795 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
8796 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
8797 * config/aarch64/arm_neon.h:
8798 (vcadd_rot90_f16): New.
8799 (vcaddq_rot90_f16): New.
8800 (vcadd_rot270_f16): New.
8801 (vcaddq_rot270_f16): New.
8804 (vcmla_lane_f16): New.
8805 (vcmla_laneq_f16): New.
8806 (vcmlaq_lane_f16): New.
8807 (vcmlaq_rot90_lane_f16): New.
8808 (vcmla_rot90_laneq_f16): New.
8809 (vcmla_rot90_lane_f16): New.
8810 (vcmlaq_rot90_f16): New.
8811 (vcmla_rot90_f16): New.
8812 (vcmlaq_laneq_f16): New.
8813 (vcmla_rot180_laneq_f16): New.
8814 (vcmla_rot180_lane_f16): New.
8815 (vcmlaq_rot180_f16): New.
8816 (vcmla_rot180_f16): New.
8817 (vcmlaq_rot90_laneq_f16): New.
8818 (vcmlaq_rot270_laneq_f16): New.
8819 (vcmlaq_rot270_lane_f16): New.
8820 (vcmla_rot270_laneq_f16): New.
8821 (vcmlaq_rot270_f16): New.
8822 (vcmla_rot270_f16): New.
8823 (vcmlaq_rot180_laneq_f16): New.
8824 (vcmlaq_rot180_lane_f16): New.
8825 (vcmla_rot270_lane_f16): New.
8826 (vcadd_rot90_f32): New.
8827 (vcaddq_rot90_f32): New.
8828 (vcaddq_rot90_f64): New.
8829 (vcadd_rot270_f32): New.
8830 (vcaddq_rot270_f32): New.
8831 (vcaddq_rot270_f64): New.
8835 (vcmla_lane_f32): New.
8836 (vcmla_laneq_f32): New.
8837 (vcmlaq_lane_f32): New.
8838 (vcmlaq_laneq_f32): New.
8839 (vcmla_rot90_f32): New.
8840 (vcmlaq_rot90_f32): New.
8841 (vcmlaq_rot90_f64): New.
8842 (vcmla_rot90_lane_f32): New.
8843 (vcmla_rot90_laneq_f32): New.
8844 (vcmlaq_rot90_lane_f32): New.
8845 (vcmlaq_rot90_laneq_f32): New.
8846 (vcmla_rot180_f32): New.
8847 (vcmlaq_rot180_f32): New.
8848 (vcmlaq_rot180_f64): New.
8849 (vcmla_rot180_lane_f32): New.
8850 (vcmla_rot180_laneq_f32): New.
8851 (vcmlaq_rot180_lane_f32): New.
8852 (vcmlaq_rot180_laneq_f32): New.
8853 (vcmla_rot270_f32): New.
8854 (vcmlaq_rot270_f32): New.
8855 (vcmlaq_rot270_f64): New.
8856 (vcmla_rot270_lane_f32): New.
8857 (vcmla_rot270_laneq_f32): New.
8858 (vcmlaq_rot270_lane_f32): New.
8859 (vcmlaq_rot270_laneq_f32): New.
8860 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
8861 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
8862 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
8863 (FCADD, FCMLA): New.
8865 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
8867 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8871 * config/pa/pa.c: Change "can not" to "cannot".
8872 * gimple-ssa-evrp-analyze.c: Likewise.
8873 * ipa-icf.c: Likewise.
8874 * ipa-polymorphic-call.c: Likewise.
8875 * ipa-pure-const.c: Likewise.
8876 * lra-constraints.c: Likewise.
8877 * lra-remat.c: Likewise.
8878 * reload1.c: Likewise.
8879 * reorg.c: Likewise.
8880 * tree-ssa-uninit.c: Likewise.
8882 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
8886 * Makefile.in: Mechanically replace "can not" with "cannot".
8887 * alias.c: Likewise.
8888 * builtins.c: Likewise.
8889 * calls.c: Likewise.
8890 * cgraph.c: Likewise.
8891 * cgraph.h: Likewise.
8892 * cgraphclones.c: Likewise.
8893 * cgraphunit.c: Likewise.
8894 * combine-stack-adj.c: Likewise.
8895 * combine.c: Likewise.
8896 * common/config/i386/i386-common.c: Likewise.
8897 * config/aarch64/aarch64.c: Likewise.
8898 * config/alpha/sync.md: Likewise.
8899 * config/arc/arc.c: Likewise.
8900 * config/arc/predicates.md: Likewise.
8901 * config/arm/arm-c.c: Likewise.
8902 * config/arm/arm.c: Likewise.
8903 * config/arm/arm.h: Likewise.
8904 * config/arm/arm.md: Likewise.
8905 * config/arm/cortex-r4f.md: Likewise.
8906 * config/csky/csky.c: Likewise.
8907 * config/csky/csky.h: Likewise.
8908 * config/darwin-f.c: Likewise.
8909 * config/epiphany/epiphany.md: Likewise.
8910 * config/i386/i386.c: Likewise.
8911 * config/i386/sol2.h: Likewise.
8912 * config/m68k/m68k.c: Likewise.
8913 * config/mcore/mcore.h: Likewise.
8914 * config/microblaze/microblaze.md: Likewise.
8915 * config/mips/20kc.md: Likewise.
8916 * config/mips/sb1.md: Likewise.
8917 * config/nds32/nds32.c: Likewise.
8918 * config/nds32/predicates.md: Likewise.
8919 * config/pa/pa.c: Likewise.
8920 * config/rs6000/e300c2c3.md: Likewise.
8921 * config/rs6000/rs6000.c: Likewise.
8922 * config/s390/s390.h: Likewise.
8923 * config/sh/sh.c: Likewise.
8924 * config/sh/sh.md: Likewise.
8925 * config/spu/vmx2spu.h: Likewise.
8926 * cprop.c: Likewise.
8927 * dbxout.c: Likewise.
8928 * df-scan.c: Likewise.
8929 * doc/cfg.texi: Likewise.
8930 * doc/extend.texi: Likewise.
8931 * doc/fragments.texi: Likewise.
8932 * doc/gty.texi: Likewise.
8933 * doc/invoke.texi: Likewise.
8934 * doc/lto.texi: Likewise.
8935 * doc/md.texi: Likewise.
8936 * doc/objc.texi: Likewise.
8937 * doc/rtl.texi: Likewise.
8938 * doc/tm.texi: Likewise.
8940 * emit-rtl.c: Likewise.
8941 * emit-rtl.h: Likewise.
8942 * except.c: Likewise.
8943 * expmed.c: Likewise.
8945 * fold-const.c: Likewise.
8946 * genautomata.c: Likewise.
8947 * gimple-fold.c: Likewise.
8948 * hard-reg-set.h: Likewise.
8949 * ifcvt.c: Likewise.
8950 * ipa-comdats.c: Likewise.
8951 * ipa-cp.c: Likewise.
8952 * ipa-devirt.c: Likewise.
8953 * ipa-fnsummary.c: Likewise.
8954 * ipa-icf.c: Likewise.
8955 * ipa-inline-transform.c: Likewise.
8956 * ipa-inline.c: Likewise.
8957 * ipa-polymorphic-call.c: Likewise.
8958 * ipa-profile.c: Likewise.
8959 * ipa-prop.c: Likewise.
8960 * ipa-pure-const.c: Likewise.
8961 * ipa-reference.c: Likewise.
8962 * ipa-split.c: Likewise.
8963 * ipa-visibility.c: Likewise.
8965 * ira-build.c: Likewise.
8966 * ira-color.c: Likewise.
8967 * ira-conflicts.c: Likewise.
8968 * ira-costs.c: Likewise.
8969 * ira-int.h: Likewise.
8970 * ira-lives.c: Likewise.
8973 * loop-invariant.c: Likewise.
8974 * loop-unroll.c: Likewise.
8975 * lower-subreg.c: Likewise.
8976 * lra-assigns.c: Likewise.
8977 * lra-constraints.c: Likewise.
8978 * lra-eliminations.c: Likewise.
8979 * lra-lives.c: Likewise.
8980 * lra-remat.c: Likewise.
8981 * lra-spills.c: Likewise.
8983 * lto-cgraph.c: Likewise.
8984 * lto-streamer-out.c: Likewise.
8985 * postreload-gcse.c: Likewise.
8986 * predict.c: Likewise.
8987 * profile-count.h: Likewise.
8988 * profile.c: Likewise.
8989 * recog.c: Likewise.
8991 * reload.c: Likewise.
8992 * reload1.c: Likewise.
8993 * reorg.c: Likewise.
8994 * resource.c: Likewise.
8995 * rtl.def: Likewise.
8997 * rtlanal.c: Likewise.
8998 * sched-deps.c: Likewise.
8999 * sched-ebb.c: Likewise.
9000 * sched-rgn.c: Likewise.
9001 * sel-sched-ir.c: Likewise.
9002 * sel-sched.c: Likewise.
9003 * shrink-wrap.c: Likewise.
9004 * simplify-rtx.c: Likewise.
9005 * symtab.c: Likewise.
9006 * target.def: Likewise.
9007 * toplev.c: Likewise.
9008 * tree-call-cdce.c: Likewise.
9009 * tree-cfg.c: Likewise.
9010 * tree-complex.c: Likewise.
9011 * tree-core.h: Likewise.
9012 * tree-eh.c: Likewise.
9013 * tree-inline.c: Likewise.
9014 * tree-loop-distribution.c: Likewise.
9015 * tree-nrv.c: Likewise.
9016 * tree-profile.c: Likewise.
9017 * tree-sra.c: Likewise.
9018 * tree-ssa-alias.c: Likewise.
9019 * tree-ssa-dce.c: Likewise.
9020 * tree-ssa-dom.c: Likewise.
9021 * tree-ssa-forwprop.c: Likewise.
9022 * tree-ssa-loop-im.c: Likewise.
9023 * tree-ssa-loop-ivcanon.c: Likewise.
9024 * tree-ssa-loop-ivopts.c: Likewise.
9025 * tree-ssa-loop-niter.c: Likewise.
9026 * tree-ssa-phionlycprop.c: Likewise.
9027 * tree-ssa-phiopt.c: Likewise.
9028 * tree-ssa-propagate.c: Likewise.
9029 * tree-ssa-threadedge.c: Likewise.
9030 * tree-ssa-threadupdate.c: Likewise.
9031 * tree-ssa-uninit.c: Likewise.
9032 * tree-ssanames.c: Likewise.
9033 * tree-streamer-out.c: Likewise.
9036 * vr-values.c: Likewise.
9038 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
9040 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
9041 (ix86_split_xorsign): Ditto.
9042 * config/i386/i386.c (ix86_expand_xorsign): New function.
9043 (ix86_split_xorsign): Ditto.
9044 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
9045 (xorsign<mode>3): New expander.
9046 (xorsign<mode>3_1): New insn_and_split pattern.
9047 * config/i386/sse.md (xorsign<mode>3): New expander.
9049 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9051 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
9052 (*tablejump_sp64): Likewise.
9053 (*tablejump<P:mode>): ...this.
9054 (*call_address_sp32): Merge into...
9055 (*call_address_sp64): Likewise.
9056 (*call_address<P:mode>): ...this.
9057 (*call_symbolic_sp32): Merge into...
9058 (*call_symbolic_sp64): Likewise.
9059 (*call_symbolic<P:mode>): ...this.
9060 (call_value): Remove constraint and add predicate.
9061 (*call_value_address_sp32): Merge into...
9062 (*call_value_address_sp64): Likewise.
9063 (*call_value_address<P:mode>): ...this.
9064 (*call_value_symbolic_sp32): Merge into...
9065 (*call_value_symbolic_sp64): Likewise.
9066 (*call_value_symbolic<P:mode>): ...this.
9067 (*sibcall_symbolic_sp32): Merge into...
9068 (*sibcall_symbolic_sp64): Likewise.
9069 (*sibcall_symbolic<P:mode>): ...this.
9070 (sibcall_value): Remove constraint and add predicate.
9071 (*sibcall_value_symbolic_sp32): Merge into...
9072 (*sibcall_value_symbolic_sp64): Likewise.
9073 (*sibcall_value_symbolic<P:mode>): ...this.
9074 (window_save): Minor tweak.
9075 (*branch_sp32): Merge into...
9076 (*branch_sp64): Likewise.
9077 (*branch<P:mode>): ...this.
9079 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9080 James Clarke <jrtc27@jrtc27.com>
9083 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
9084 consistently in TLS address generation and adjust code to the renaming
9085 of patterns. Mark calls to __tls_get_addr as const.
9086 * config/sparc/sparc.md (tgd_hi22): Turn into...
9087 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
9088 (tgd_lo10): Turn into...
9089 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
9090 (tgd_add32): Merge into...
9091 (tgd_add64): Likewise.
9092 (tgd_add<P:mode>): ...this and use Pmode throughout.
9093 (tldm_hi22): Turn into...
9094 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
9095 (tldm_lo10): Turn into...
9096 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
9097 (tldm_add32): Merge into...
9098 (tldm_add64): Likewise.
9099 (tldm_add<P:mode>): ...this and use Pmode throughout.
9100 (tldm_call32): Merge into...
9101 (tldm_call64): Likewise.
9102 (tldm_call<P:mode>): ...this and use Pmode throughout.
9103 (tldo_hix22): Turn into...
9104 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
9105 (tldo_lox10): Turn into...
9106 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
9107 (tldo_add32): Merge into...
9108 (tldo_add64): Likewise.
9109 (tldo_add<P:mode>): ...this and use Pmode throughout.
9110 (tie_hi22): Turn into...
9111 (tie_hi22<P:mode>): ...this and use Pmode throughout.
9112 (tie_lo10): Turn into...
9113 (tie_lo10<P:mode>): ...this and use Pmode throughout.
9114 (tie_ld64): Use DImode throughout.
9115 (tie_add32): Merge into...
9116 (tie_add64): Likewise.
9117 (tie_add<P:mode>): ...this and use Pmode throughout.
9118 (tle_hix22_sp32): Merge into...
9119 (tle_hix22_sp64): Likewise.
9120 (tle_hix22<P:mode>): ...this and use Pmode throughout.
9121 (tle_lox22_sp32): Merge into...
9122 (tle_lox22_sp64): Likewise.
9123 (tle_lox22<P:mode>): ...this and use Pmode throughout.
9124 (*tldo_ldub_sp32): Merge into...
9125 (*tldo_ldub_sp64): Likewise.
9126 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
9127 (*tldo_ldub1_sp32): Merge into...
9128 (*tldo_ldub1_sp64): Likewise.
9129 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
9130 (*tldo_ldub2_sp32): Merge into...
9131 (*tldo_ldub2_sp64): Likewise.
9132 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
9133 (*tldo_ldsb1_sp32): Merge into...
9134 (*tldo_ldsb1_sp64): Likewise.
9135 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
9136 (*tldo_ldsb2_sp32): Merge into...
9137 (*tldo_ldsb2_sp64): Likewise.
9138 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
9139 (*tldo_ldub3_sp64): Use DImode throughout.
9140 (*tldo_ldsb3_sp64): Likewise.
9141 (*tldo_lduh_sp32): Merge into...
9142 (*tldo_lduh_sp64): Likewise.
9143 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
9144 (*tldo_lduh1_sp32): Merge into...
9145 (*tldo_lduh1_sp64): Likewise.
9146 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
9147 (*tldo_ldsh1_sp32): Merge into...
9148 (*tldo_ldsh1_sp64): Likewise.
9149 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
9150 (*tldo_lduh2_sp64): Use DImode throughout.
9151 (*tldo_ldsh2_sp64): Likewise.
9152 (*tldo_lduw_sp32): Merge into...
9153 (*tldo_lduw_sp64): Likewise.
9154 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
9155 (*tldo_lduw1_sp64): Use DImode throughout.
9156 (*tldo_ldsw1_sp64): Likewise.
9157 (*tldo_ldx_sp64): Likewise.
9158 (*tldo_stb_sp32): Merge into...
9159 (*tldo_stb_sp64): Likewise.
9160 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
9161 (*tldo_sth_sp32): Merge into...
9162 (*tldo_sth_sp64): Likewise.
9163 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
9164 (*tldo_stw_sp32): Merge into...
9165 (*tldo_stw_sp64): Likewise.
9166 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
9167 (*tldo_stx_sp64): Use DImode throughout.
9169 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9171 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
9172 check configure option to set BTI and Return Address Signing.
9173 * configure.ac: Add --enable-standard-branch-protection and
9174 --disable-standard-branch-protection.
9175 * configure: Regenerated.
9176 * doc/install.texi: Document the same.
9178 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9179 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9181 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
9182 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
9183 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
9185 * config/aarch64/aarch64-bti-insert.c: New file.
9186 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
9188 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
9190 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
9191 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
9192 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
9193 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
9195 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9197 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
9198 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
9199 Disable bti for -mbranch-protection=none.
9200 (aarch64_handle_standard_branch_protection): Enable bti for
9201 -mbranch-protection=standard.
9202 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
9203 -mbranch-protection.
9204 (aarch64_bti_enabled): Check if bti is enabled.
9205 * config/aarch64/aarch64.opt: Declare target variable.
9206 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
9208 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9210 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
9211 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
9212 (aarch64_expand_epilogue): Likewise.
9213 (aarch64_output_mi_thunk): Likewise
9214 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
9215 TAILCALL_ADDR_REGS to x16 and x17.
9216 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
9218 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9220 * config/aarch64/aarch64-option-extensions.def: Define
9221 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
9222 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
9223 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
9224 (AARCH64_FL_PREDRES): New.
9225 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
9226 AARCH64_FL_PREDRES by default.
9227 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
9229 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9231 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
9233 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
9234 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
9235 * doc/invoke.texi: Document ARMv8.5-A.
9237 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9239 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
9240 (xorsign<mode>3): Likewise.
9242 2019-01-09 Jelinek <jakub@redhat.com>
9245 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
9246 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
9248 PR rtl-optimization/88331
9249 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
9250 not currently_expanding_to_rtl.
9252 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9254 * doc/invoke.texi (-Os): Remove trailing spaces.
9255 (-finline-functions): Remove reference to -O2.
9257 2019-01-08 Jakub Jelinek <jakub@redhat.com>
9259 PR rtl-optimization/79593
9260 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
9262 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
9263 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
9265 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
9268 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
9272 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
9273 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
9275 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
9278 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
9279 ix86_avx_u128_mode_entry.
9281 2019-01-08 Martin Liska <mliska@suse.cz>
9283 PR tree-optimization/88753
9284 * tree-switch-conversion.c (switch_conversion::build_one_array):
9285 Come up with local variable constructor. Convert first to
9286 type of constructor values.
9288 2019-01-08 Richard Biener <rguenther@suse.de>
9290 PR tree-optimization/86554
9291 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
9292 rpo_avail): Move earlier.
9293 (visit_nary_op): When value-numbering to expressions
9294 with different overflow behavior make sure there's an
9295 available expression on the path.
9297 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
9299 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
9300 aarch64_parse_branch_protection,
9301 struct aarch64_branch_protect_type,
9302 aarch64_handle_no_branch_protection,
9303 aarch64_handle_standard_branch_protection,
9304 aarch64_validate_mbranch_protection,
9305 aarch64_handle_pac_ret_protection,
9306 aarch64_handle_attr_branch_protection,
9307 accepted_branch_protection_string,
9308 aarch64_pac_ret_subtypes,
9309 aarch64_branch_protect_types,
9310 aarch64_handle_pac_ret_leaf): Define.
9311 (aarch64_override_options_after_change_1, aarch64_override_options):
9312 Add check for accepted_branch_protection_string.
9313 (aarch64_option_save): Save accepted_branch_protection_string.
9314 (aarch64_option_restore): Save accepted_branch_protection_string.
9315 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
9316 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
9317 msign-return-address.
9318 * doc/invoke.texi: Add mbranch-protection.
9320 2019-01-08 Alan Modra <amodra@gmail.com>
9323 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
9324 Delete "unknownp" parameter. Adjust callers. Handle
9325 CONST_INT, PLUS, MINUS, and MULT.
9326 (attr_value_aligned): Renamed from or_attr_value.
9327 (min_attr_value): Return INT_MIN for unhandled rtl case..
9328 (min_fn): ..and translate to INT_MAX here.
9329 (write_length_unit_log): Modify to cope without "unknown".
9330 (write_attr_value): Handle IF_THEN_ELSE.
9332 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9334 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
9335 optimization for masked stores.
9337 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9340 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
9341 output vector directly to duplicate_and_interleave instead of
9342 going through a temporary. Postpone insertion of ctor_seq to
9343 the end of the loop.
9345 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
9348 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
9349 unsigned_p. Handle signed and unsigned overflow correction as
9351 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
9353 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
9355 (add<mode>3_compareV_imm): Make this callable for expanding.
9356 (subv<GPI:mode>4): Use register_operand for operand 1. Use
9357 aarch64_plus_operand for operand 2.
9358 (subv<GPI:mode>_insn): New insn pattern.
9359 (subv<GPI:mode>_imm): Likewise.
9360 (negv<GPI:mode>3): New expand pattern.
9361 (negv<GPI:mode>_insn): New insn pattern.
9362 (negv<GPI:mode>_cmp_only): Likewise.
9363 (cmpv<GPI:mode>_insn): Likewise.
9364 (subvti4): Use register_operand for operand 1. Update call to
9365 aarch64_expand_subvti.
9366 (usubvti4): Likewise.
9367 (negvti3): New expand pattern.
9368 (negdi_carryout): New insn pattern.
9369 (negvdi_carryinV): New insn pattern.
9370 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
9371 version the named version.
9372 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
9374 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
9376 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
9378 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
9379 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
9380 (sub<mode>3_carryinCV): Delete.
9381 (sub<GPI:mode>3_carryinV): New expand pattern.
9382 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
9384 2019-01-07 Richard Biener <rguenther@suse.de>
9386 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
9387 of tree_operand_hash.
9389 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9391 PR tree-optimization/88598
9392 * tree.h (single_nonzero_element): Declare.
9393 * tree.c (single_nonzero_element): New function.
9394 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
9395 if I is the only nonzero element of CST.
9397 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
9399 PR tree-optimization/88598
9400 * tree.h (initializer_each_zero_or_onep): Declare.
9401 * tree.c (initializer_each_zero_or_onep): New function.
9402 (signed_or_unsigned_type_for): Handle float types too.
9403 (unsigned_type_for, signed_type_for): Update comments accordingly.
9404 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
9405 x & { 0 or -1, 0 or -1, ... }.
9407 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
9409 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
9410 with x86_64-pc-linux-gnu.
9412 2019-01-07 Tom de Vries <tdevries@suse.de>
9415 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
9417 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
9420 2019-01-07 Jakub Jelinek <jakub@redhat.com>
9422 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
9423 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
9424 TARGET_AVX512F as condition.
9427 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
9428 const_not_ok_for_debug_p target hook.
9429 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
9430 on UNSPEC and subexpressions thereof if all subexpressions of the
9431 UNSPEC are CONSTANT_P.
9433 PR tree-optimization/88676
9434 * tree-ssa-phiopt.c (two_value_replacement): New function.
9435 (tree_ssa_phiopt_worker): Call it.
9438 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
9439 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
9442 * tree-vect-generic.c: Include insn-config.h and recog.h.
9443 (expand_vector_piecewise): Add defaulted ret_type argument,
9444 if non-NULL, use that in preference to type for the result type.
9445 (expand_vector_parallel): Formatting fix.
9446 (do_vec_conversion, do_vec_narrowing_conversion,
9447 expand_vector_conversion): New functions.
9448 (expand_vector_operations_1): Call expand_vector_conversion
9449 for VEC_CONVERT ifn calls.
9450 * internal-fn.def (VEC_CONVERT): New internal function.
9451 * internal-fn.c (expand_VEC_CONVERT): New function.
9452 * fold-const-call.c (fold_const_vec_convert): New function.
9453 (fold_const_call): Use it for CFN_VEC_CONVERT.
9454 * doc/extend.texi (__builtin_convertvector): Document.
9456 2019-01-07 Tom de Vries <tdevries@suse.de>
9458 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
9459 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
9460 vector_red_partition, vector_red_sym): New global variables.
9461 (nvptx_option_override): Initialize vector_red_sym.
9462 (nvptx_declare_function_name): Restore red_partition register.
9463 (nvptx_file_end): Emit code to declare the vector reduction variables.
9464 (nvptx_output_red_partition): New function.
9465 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
9466 large vector reductions.
9467 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
9468 (nvptx_init_builtins): Add VECTOR_ADDR.
9469 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
9470 Handle nvptx_expand_shared_addr.
9471 (nvptx_get_shared_red_addr): Add vector argument and handle large
9473 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
9475 (nvptx_goacc_reduction_init): Likewise.
9476 (nvptx_goacc_reduction_fini): Likewise.
9477 (nvptx_goacc_reduction_teardown): Likewise.
9478 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
9479 init,fini,teardown}.
9480 (nvptx_init_axis_predicate): Initialize vector_red_partition.
9481 (nvptx_set_current_function): Init vector_red_partition.
9482 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
9483 (nvptx_red_partition): New insn.
9484 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
9486 2019-01-07 Tom de Vries <tdevries@suse.de>
9489 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
9492 2019-01-07 Tom de Vries <tdevries@suse.de>
9494 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
9495 (nvptx_option_override): Init oacc_bcast_partition.
9496 (nvptx_init_oacc_workers): New function.
9497 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
9498 (nvptx_needs_shared_bcast): New function.
9499 (nvptx_find_par): Generalize to enable vectors to use shared-memory
9501 (nvptx_shared_propagate): Initialize vector bcast partition and
9502 synchronization state.
9503 (nvptx_single): Generalize to enable vectors to use shared-memory
9505 (nvptx_process_pars): Likewise.
9506 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
9507 * config/nvptx/nvptx.h (struct machine_function): Add
9508 bcast_partition and sync_bar members.
9510 2019-01-07 Tom de Vries <tdevries@suse.de>
9512 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
9513 (nvptx_apply_dim_limits): New function.
9514 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
9517 2019-01-07 Tom de Vries <tdevries@suse.de>
9519 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
9520 as late as possible.
9522 2019-01-07 Tom de Vries <tdevries@suse.de>
9524 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
9525 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
9526 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
9527 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
9528 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
9530 2019-01-07 Tom de Vries <tdevries@suse.de>
9532 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
9534 2019-01-07 Tom de Vries <tdevries@suse.de>
9536 * omp-offload.c (oacc_get_min_dim): New function.
9537 * omp-offload.h (oacc_get_min_dim): Declare.
9539 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
9542 * config/i386/i386.c (function_value_ms_64): Return small sturct in
9543 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
9545 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9549 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
9551 * ipa-inline.c (edge_badness): Use inlined_time instead of
9552 inline_summaries->get.
9554 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9556 * opts.c (enable_fdo_optimizations): Enable
9557 version-loops-for-strides, loop-interchange, unrol-and-jam
9558 and tree-loop-distribution.
9559 * invoke.texi: Document newly enabled options.
9561 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9563 * doc/invoke.texi (max-inline-insns-small): New parameters.
9564 * ipa-inline.c (want_early_inline_function_p): simplify.
9565 (want_inline_small_function_p): Fix pasto from previous patch;
9566 use max-inline-insns-small bound.
9567 * params.def (max-inline-insns-small): New param.
9568 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
9569 variables correctly.
9571 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9573 * doc/invoke.texi: Document max-inline-insns-size,
9574 uninlined-function-insns, uninlined-function-time,
9575 uninlined-thunk-insns and uninlined-thunk-time.
9576 * params.def: Add max-inline-insns-size,
9577 uninlined-function-insns, uninlined-function-time,
9578 uninlined-thunk-insns and uninlined-thunk-time.
9579 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
9581 * ipa-inline.c (can_inline_edge_by_limits_p,
9582 want_inline_small_function_p): Use new parameters.
9584 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9586 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
9588 2019-01-05 Jakub Jelinek <jakub@redhat.com>
9592 * expr.c (expand_assignment): For calls returning VLA structures
9593 if to_rtx is not a MEM, force it into a stack temporary.
9596 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
9597 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
9598 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
9599 subexpressions of both operands.
9600 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
9601 subrtxes are CONSTANT_P.
9602 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
9605 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
9607 * params.def (hot-bb-count-ws-permille): Set to 990.
9609 2019-01-04 Martin Sebor <msebor@redhat.com>
9612 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
9615 2019-01-04 Martin Sebor <msebor@redhat.com>
9618 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
9620 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9622 * gdbinit.in: Turn off pagination for the skip commands, restore
9623 it to previous state afterwards.
9625 2019-01-04 Jakub Jelinek <jakub@redhat.com>
9628 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
9629 of GET_MODE (opN) as modes of the libcall arguments.
9631 2019-01-04 Jan Beulich <jbeulich@suse.com>
9633 * config/i386/sse.md
9634 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
9635 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
9636 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9637 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
9638 avx512f_vmcmp<mode>3<round_saeonly_name>,
9639 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
9640 avx512f_maskcmp<mode>3,
9641 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9642 <avx512>_cvt<ssemodesuffix>2mask<mode>,
9643 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9644 *<avx512>_cvtmask2<ssemodesuffix><mode>,
9645 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9646 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
9647 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9648 <avx512>_gt<mode>3<mask_scalar_merge_name>,
9649 <avx512>_testm<mode>3<mask_scalar_merge_name>,
9650 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
9651 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
9652 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
9653 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
9654 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
9655 avx512cd_maskb_vec_dup<mode>,
9656 avx512cd_maskw_vec_dup<mode>,
9657 avx512dq_fpclass<mode><mask_scalar_merge_name>,
9658 avx512dq_vmfpclass<mode>,
9659 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
9662 2019-01-03 Martin Sebor <msebor@redhat.com>
9664 PR tree-optimization/88659
9665 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
9667 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
9669 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
9670 unaligned vsx and avoid lxvd2x/stxvd2x.
9671 (gen_lvx_v4si_move): New function.
9673 2019-01-03 Tom de Vries <tdevries@suse.de>
9675 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
9676 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
9678 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
9680 2019-01-03 Tom de Vries <tdevries@suse.de>
9682 * config/nvptx/nvptx.c (struct offload_attrs): New.
9683 (populate_offload_attrs): New function. Factor mask extraction out of
9684 nvptx_reorg. Add extraction of dimensions.
9685 (nvptx_reorg): Use populate_offload_attrs.
9687 2019-01-03 Tom de Vries <tdevries@suse.de>
9689 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
9690 cases for oacc_min_dims_p and routine_p. Add asserts for
9691 oacc_default_dims_p and offload_region_p.
9693 2019-01-03 Tom de Vries <tdevries@suse.de>
9695 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
9697 (nvptx_goacc_validate_dims): ... here.
9699 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9701 PR tree-optimization/85574
9702 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
9704 (struct ssa_equip_hash_traits): Declare.
9705 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
9707 2019-01-03 Jakub Jelinek <jakub@redhat.com>
9710 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
9711 change it to qualified_type.
9713 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
9715 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
9716 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
9718 2019-01-02 Martin Sebor <msebor@redhat.com>
9719 Jeff Law <law@redhat.com>
9721 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
9722 (get_range_strlen_tree): Update appropriately.
9724 * gimple-fold.h (get_range_strlen): Drop unused last argument.
9726 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
9727 rather than set_range_info.
9728 * tree-ssa-strlen.c (set_strlen_range): Extracted from
9729 maybe_set_strlen_range. Handle potentially boundary crossing
9730 cases more conservatively.
9731 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
9732 Call set_strlen_range.
9733 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
9736 * gimple-fold.c (get_range_strlen): Update prototype to no longer
9737 need the flexp argument.
9738 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
9739 from calls to get_range_strlen. Update comments. Just update
9740 VAL for an unterminated const char array and let the reset of the
9741 code handle it normally. No longer try to set *flexp. Adjust
9743 (get_range_strlen): Update for the new get_range_strlen API.
9744 (get_maxval_strlen): Similarly.
9745 (gimple_fold_builtin_strlen): Handle update meaning of return value
9746 from get_range_strlen.
9747 * gimple-ssa-sprintf.c (get_string_length): Update for the new
9748 get_range_strlen API.
9750 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
9753 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
9754 false at WPA time when body was removed.
9756 2019-01-02 Martin Liska <mliska@suse.cz>
9758 PR tree-optimization/88650
9759 * predict.c (set_even_probabilities): Calculate probability
9760 remainer only when really used.
9762 2019-01-02 Richard Biener <rguenther@suse.de>
9765 * tree-data-ref.c (analyze_subscript_affine_affine): Use
9766 widest_ints when mangling max_stmt_execution results.
9768 2019-01-02 Richard Biener <rguenther@suse.de>
9770 PR tree-optimization/88621
9771 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
9772 bitfields when canoncalizing.
9774 2019-01-02 Richard Biener <rguenther@suse.de>
9777 * config/i386/x86-tune-costs.h (intel_cost): Adjust
9778 cost of cheap SSE instruction.
9780 2019-01-02 Richard Biener <rguenther@suse.de>
9783 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
9784 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
9786 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
9787 set after UIDs before splitting them.
9789 2019-01-01 Martin Sebor <msebor@redhat.com>
9790 Jeff Law <law@redhat.com>
9792 * gimple-fold.c (get_range_strlen_tree): Record if the computed
9793 length is optimistic. If it is, then arrange to compute the
9794 conservative length as well.
9796 * gimple-fold.h (get_range_strlen): Update prototype.
9797 * builtins.c (check_access): Update call to get_range_strlen to use
9798 c_strlen_data pointer. Change various variable accesses to instead
9799 pull data from the c_strlen_data structure.
9800 (check_strncat_sizes, expand_builtin_strncat): Likewise.
9801 * calls.c (maybe_warn_nonstring_arg): Likewise.
9802 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
9803 minimum length if maximum lengh is unknown.
9804 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
9805 that used c_strlen, it's no longer needed. Restructure slightly.
9806 (format_string): Set unlikely range appropriately.
9807 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
9809 (get_range_strlen): Accept c_strlen_data pointer for external
9810 call sites as well. Pass through to call to internal get_range_strlen.
9811 Adjust minlen, maxlen and maxbound as needed.
9812 (get_maxval_strlen): Update comments.
9813 (gimple_fold_builtin_strlen): Update call to get_range_strlen
9814 to use c_strlen_data pointer. Change variable accesses to instead
9815 use c_strlen_data data members.
9817 * gimple-fold.c (get_range_strlen): Update prototype.
9818 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
9819 local variables. Use pdata to return information to caller.
9820 Update calls to get_range_strlen. Update pdata->maxbound.
9821 (get_range_strlen -- static version): Similarly.
9822 (get_range_strlen -- extern version): Update for internal
9823 get_range_strlen API change. Convert to external data format.
9824 (get_maxval_strlen): Similarly.
9826 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
9828 * coverage.c (get_coverage_counts): Use current_function_decl.
9829 * profile.c (read_thunk_profile): New function.
9830 (branch_prob): Add THUNK parameter.
9831 * tree-profile.c (tree_profiling): Handle thunks.
9832 * value-prof.c (init_node_map): Handle thunks.
9833 * value-prof.h (branch_prob): Upate prototype.
9834 (read_thunk_profile): Declare.
9836 2019-01-01 Jakub Jelinek <jakub@redhat.com>
9838 Update copyright years.
9840 * gcc.c (process_command): Update copyright notice dates.
9841 * gcov-dump.c (print_version): Ditto.
9842 * gcov.c (print_version): Ditto.
9843 * gcov-tool.c (print_version): Ditto.
9844 * gengtype.c (create_file): Ditto.
9845 * doc/cpp.texi: Bump @copying's copyright year.
9846 * doc/cppinternals.texi: Ditto.
9847 * doc/gcc.texi: Ditto.
9848 * doc/gccint.texi: Ditto.
9849 * doc/gcov.texi: Ditto.
9850 * doc/install.texi: Ditto.
9851 * doc/invoke.texi: Ditto.
9853 Copyright (C) 2019 Free Software Foundation, Inc.
9855 Copying and distribution of this file, with or without modification,
9856 are permitted in any medium without royalty provided the copyright
9857 notice and this notice are preserved.