1 2019-05-16 Martin Sebor <msebor@redhat.com>
3 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
4 identifiers, keywords, operators, and types in diagnostics. Correct
5 quoting, spelling, and sentence capitalization issues.
6 (expand_builtin_atomic_is_lock_free): Same.
7 (fold_builtin_next_arg): Same.
8 * cfgexpand.c (expand_one_var): Same.
9 (tree_conflicts_with_clobbers_p): Same.
10 (expand_asm_stmt): Same.
11 (verify_loop_structure): Same.
12 * cgraphunit.c (process_function_and_variable_attributes): Same.
13 * collect-utils.c (collect_execute): Same.
14 * collect2.c (maybe_run_lto_and_relink): Same.
15 (is_lto_object_file): Same.
16 (scan_prog_file): Same.
17 * convert.c (convert_to_real_1): Same.
18 * dwarf2out.c (dwarf2out_begin_prologue): Same.
19 * except.c (verify_eh_tree): Same.
20 * gcc.c (execute): Same.
21 (eval_spec_function): Same.
23 (driver::set_up_specs): Same.
24 (compare_debug_auxbase_opt_spec_function): Same.
25 * gcov-tool.c (unlink_gcda_file): Same.
28 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
29 * gimplify.c (gimplify_asm_expr): Same.
30 (gimplify_adjust_omp_clauses): Same.
31 * hsa-gen.c (gen_hsa_addr_insns): Same.
32 (gen_hsa_insns_for_load): Same.
33 (gen_hsa_cmp_insn_from_gimple): Same.
34 (gen_hsa_insns_for_operation_assignment): Same.
35 (gen_get_level): Same.
36 (gen_hsa_alloca): Same.
37 (omp_simple_builtin::generate): Same.
38 (gen_hsa_atomic_for_builtin): Same.
39 (gen_hsa_insns_for_call): Same.
40 * input.c (dump_location_info): Same.
41 * ipa-devirt.c (compare_virtual_tables): Same.
42 * ira.c (ira_setup_eliminable_regset): Same.
43 * lra-assigns.c (lra_assign): Same.
44 * lra-constraints.c (lra_constraints): Same.
45 * lto-streamer-in.c (lto_input_mode_table): Same.
46 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
47 (merge_and_complain): Same.
48 (compile_offload_image): Same.
49 (compile_images_for_offload_targets): Same.
50 (debug_objcopy): Same.
53 * opts.c (print_specific_help): Same.
54 (parse_no_sanitize_attribute): Same.
57 * plugin.c (add_new_plugin): Same.
58 (parse_plugin_arg_opt): Same.
59 (try_init_one_plugin): Same.
60 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
61 operators, and types in diagnostics. Correct quoting and spelling
63 * read-rtl-function.c (parse_edge_flag_token): Same.
64 (function_reader::parse_enum_value): Same.
65 * reg-stack.c (check_asm_stack_operands): Same.
66 * regcprop.c (validate_value_data): Same.
67 * sched-rgn.c (make_pass_sched_fusion): Same.
68 * stmt.c (check_unique_operand_names): Same.
69 * targhooks.c (default_target_option_pragma_parse): Same.
70 * tlink.c (recompile_files): Same.
71 * toplev.c (process_options): Same.
73 * trans-mem.c (diagnose_tm_1): Same.
74 (ipa_tm_scan_irr_block): Same.
75 (ipa_tm_diagnose_transaction): Same.
76 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
77 format a tree code name in a diagnostic.
78 (verify_types_in_gimple_min_lval): Same.
79 (verify_types_in_gimple_reference): Same.
80 (verify_gimple_call): Same.
81 (verify_gimple_assign_unary): Same.
82 (verify_gimple_assign_binary): Same.
83 (verify_gimple_assign_ternary): Same.
84 (verify_gimple_assign_single): Same.
85 (verify_gimple_switch): Same.
86 (verify_gimple_label): Same.
87 (verify_gimple_phi): Same.
88 (verify_gimple_in_seq): Same.
89 (verify_eh_throw_stmt_node): Same.
90 (collect_subblocks): Same.
91 (gimple_verify_flow_info): Same.
92 (do_warn_unused_result): Same.
93 * tree-inline.c (expand_call_inline): Same.
94 * tree-into-ssa.c (update_ssa): Same.
95 * tree.c (tree_int_cst_elt_check_failed): Same.
96 (tree_vec_elt_check_failed): Same.
97 (omp_clause_operand_check_failed): Same.
98 (verify_type_variant): Same.
100 * value-prof.c (verify_histograms): Same.
101 * varasm.c (assemble_start_function): Same.
103 2019-05-16 Martin Sebor <msebor@redhat.com>
105 * config/i386/i386-expand.c (get_element_number): Quote keywords
106 and other internal names in diagnostics. Adjust other diagnostic
107 formatting issues noted by -Wformat-diag.
108 * config/i386/i386-features.c
109 (ix86_mangle_function_version_assembler_name): Same.
110 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
111 * config/i386/i386.c (ix86_function_type_abi): Same.
112 (ix86_function_ms_hook_prologue): Same.
113 (classify_argument): Same.
114 (ix86_expand_prologue): Same.
115 (ix86_md_asm_adjust): Same.
116 (ix86_memmodel_check): Same.
118 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
120 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
121 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
124 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
127 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
128 intrinsics without SSE/SSE2/SSSE3.
129 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
131 (*mmx_uavgv8qi3): Likewise.
133 2019-05-17 Richard Biener <rguenther@suse.de>
135 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
136 VEC_PERM_EXPR as __VEC_PERM with -gimple.
138 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
140 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
141 vec_sldw insn pattern.
143 2019-05-17 Richard Biener <rguenther@suse.de>
145 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
147 2019-05-17 Martin Liska <mliska@suse.cz>
150 * toplev.c (output_stack_usage): With LTO and sanitizer it
151 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
152 has no file location.
154 2019-05-16 Jakub Jelinek <jakub@redhat.com>
157 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
158 sz0 is equal to sz1, instead return false in that case.
160 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
161 has non-constant expression, force sctx.lane and use two
162 argument IFN_GOMP_SIMD_LANE instead of single argument.
163 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
164 two argument IFN_GOMP_SIMD_LANE without lhs.
165 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
167 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
169 (LOOP_REQUIRES_VERSIONING): Or in
170 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
171 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
173 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
174 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
175 from simd if clause if needed.
177 2019-05-16 Richard Biener <rguenther@suse.de>
179 * tree-affine.c (expr_to_aff_combination): New function split
181 (tree_to_aff_combination): ... here.
182 (aff_combination_expand): Avoid building a GENERIC tree.
184 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
186 * cgraphunit.c (cgraph_node::expand_thunk): Remove
187 assemble_start_function and assemble_end_function calls.
188 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
189 assemble_start_function and assemble_end_function.
190 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
191 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
192 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
193 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
194 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
195 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
196 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
197 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
198 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
199 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
200 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
201 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
203 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
204 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
205 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
206 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
207 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
208 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
209 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
210 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
211 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
212 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
213 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
214 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
215 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
216 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
218 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
219 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
220 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
222 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
224 * tree-ssa-alias.c (alias_stats): Add
225 aliasing_component_refs_p_may_alias and
226 aliasing_component_refs_p_no_alias.
227 (dump_alias_stats): Print aliasing_component_refs_p stats.
228 (aliasing_component_refs_p): Update stats.
230 2019-05-16 Martin Liska <mliska@suse.cz>
233 * multiple_target.c (expand_target_clones): Do not allow
234 target_clones being used with a symbol that is an alias.
236 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
238 PR tree-optimization/90394
239 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
240 positives rather than ICE for cases where (code2 == NE_EXPR
241 && code1 == BIT_AND_EXPR).
243 2019-05-16 Jakub Jelinek <jakub@redhat.com>
246 * tree-core.h (struct tree_decl_common): Document
247 decl_nonshareable_flag for PARM_DECLs.
248 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
249 * calls.c (expand_call): Don't try tail call if caller
250 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
251 passed on the stack and callee needs to pass any arguments on the
253 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
254 else if instead of series of mutually exclusive ifs. Handle
255 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
256 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
258 * lto-streamer.h (LTO_major_version): Bump to 9.
260 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
262 PR tree-optimization/90106
263 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
264 new parameter as new internal function call, also move it to new
266 (use_internal_fn): Pass internal function call to
267 shrink_wrap_one_built_in_call_with_conds.
269 2019-05-15 Jakub Jelinek <jakub@redhat.com>
271 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
273 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
274 safelen_int and set loop->dont_vectorize.
276 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
279 * config/i386/i386-builtin.def: Enable MMX intrinsics with
281 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
283 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
284 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
285 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
288 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
291 * config/i386/mmx.md (*vec_dupv2sf): Changed to
292 define_insn_and_split to support SSE emulation.
293 (*vec_extractv2sf_0): Likewise.
294 (*vec_extractv2sf_1): Likewise.
295 (*vec_extractv2si_0): Likewise.
296 (*vec_extractv2si_1): Likewise.
297 (*vec_extractv2si_zext_mem): Likewise.
298 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
299 (vec_extractv2sf_1 splitter): Likewise.
300 (vec_extractv2sfsf): Likewise.
301 (vec_setv2si): Likewise.
302 (vec_extractv2si_1 splitter): Likewise.
303 (vec_extractv2sisi): Likewise.
304 (vec_setv4hi): Likewise.
305 (vec_extractv4hihi): Likewise.
306 (vec_setv8qi): Likewise.
307 (vec_extractv8qiqi): Likewise.
308 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
309 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
310 (vec_extractv2sisi): Likewise.
311 (vec_extractv4hihi): Likewise.
312 (vec_extractv8qiqi): Likewise.
313 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
314 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
315 (vec_initv2sisi): Likewise.
316 (vec_initv4hihi): Likewise.
317 (vec_initv8qiqi): Likewise.
318 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
319 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
320 (vec_setv4hi): Likewise.
321 (vec_setv8qi): Likewise.
323 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
326 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
328 (MMXMODE:*mov<mode>_internal): Likewise.
329 (MMXMODE:movmisalign<mode>): Likewise.
331 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
334 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
335 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
336 (sse2_cvtpd2pi): Ditto.
337 (sse2_cvttpd2pi): Ditto.
338 (*vec_concatv2sf_sse4_1): Ditto.
339 (*vec_concatv2sf_sse): Ditto.
340 (*vec_concatv2si_sse4_1): Ditto.
341 (*vec_concatv2si): Ditto.
342 (*vec_concatv4si_0): Ditto.
343 (*vec_concatv2di_0): Ditto.
345 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
348 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
350 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
353 * config/i386/sse.md (ssse3_palignrdi): Changed to
354 define_insn_and_split to support SSE emulation.
356 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
359 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
361 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
364 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
365 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
368 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
371 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
372 or TARGET_MMX_WITH_SSE.
373 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
375 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
378 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
380 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
383 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
384 Changed to define_insn_and_split to support SSE emulation.
386 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
389 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
390 Changed to define_insn_and_split to support SSE emulation.
392 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
395 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
397 (mmx_<emms>): New expander.
399 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
402 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
404 (*sse2_umulv1siv1di3): Add SSE2 emulation.
406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
409 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
414 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
419 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
421 (*mmx_uavgv4hi3): Add SSE emulation.
423 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
426 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
427 and TARGET_MMX_WITH_SSE.
428 (*mmx_uavgv8qi3): Add SSE emulation.
430 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
433 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
434 maskmovdqu for __MMX_WITH_SSE__.
436 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
439 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
440 TARGET_MMX and TARGET_MMX_WITH_SSE.
441 (*mmx_umulv4hi3_highpart): Add SSE emulation.
443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
446 * config/i386/mmx.md (mmx_pmovmskb): Changed to
447 define_insn_and_split to support SSE emulation.
449 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
452 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
453 and TARGET_MMX_WITH_SSE.
454 (mmx_<code>v8qi3): Likewise.
455 (smaxmin:<code>v4hi3): New.
456 (umaxmin:<code>v8qi3): Likewise.
457 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
458 (umaxmin:*mmx_<code>v8qi3): Likewise.
460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
463 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
465 (*mmx_pinsrw): Add SSE emulation.
467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
470 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
472 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
475 * config/i386/sse.md (sse_cvtpi2ps): Changed to
476 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
482 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
483 (sse_cvttps2pi): Likewise.
485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
488 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
490 (mmx_pshufw_1): Add SSE emulation.
491 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
492 TARGET_MMX_WITH_SSE to support SSE emulation.
494 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
497 * config/i386/constraints.md (Yw): New constraint.
498 * config/i386/mmx.md (*vec_dupv2si): Changed to
499 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
500 support SSE emulation.
502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
505 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
507 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
509 (mmx_gt<mode>3): Likewise.
511 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
514 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
515 TARGET_MMX_WITH_SSE. Add SSE support.
517 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
520 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
522 (any_logic:<code><mode>3): New.
523 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
526 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
529 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
530 TARGET_MMX_WITH_SSE. Add SSE emulation.
531 (mmx_<shift_insn><mode>3): Likewise.
533 (<shift_insn><mode>3): Likewise.
535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
538 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
539 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
544 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
546 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
549 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
552 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
555 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
558 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
561 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
562 (plusminus:mmx_<plusminus_insn><mode>3): Check
564 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
565 (<plusminus_insn><mode>3): New.
566 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
567 (*mmx_<plusminus_insn><mode>3): Likewise.
569 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
572 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
573 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
575 * config/i386/mmx.m (mmx_punpckhbw): Changed to
576 define_insn_and_split to support SSE emulation.
577 (mmx_punpcklbw): Likewise.
578 (mmx_punpckhwd): Likewise.
579 (mmx_punpcklwd): Likewise.
580 (mmx_punpckhdq): Likewise.
581 (mmx_punpckldq): Likewise.
583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
584 Uros Bizjak <ubizjak@gmail.com>
587 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
589 (ix86_split_mmx_pack): Likewise.
590 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
592 (ix86_split_mmx_pack): Likewise.
593 * config/i386/i386.md (mmx_isa): New.
594 (enabled): Also check mmx_isa.
595 * config/i386/mmx.md (any_s_truncate): New code iterator.
596 (s_trunsuffix): New code attr.
597 (mmx_packsswb): Removed.
598 (mmx_packssdw): Likewise.
599 (mmx_packuswb): Likewise.
600 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
601 MMX packsswb/packuswb with SSE2.
602 (mmx_packssdw): Likewise.
603 * config/i386/predicates.md (register_mmxmem_operand): New.
605 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
608 * config/i386/i386-c.c (ix86_target_macros_internal): Define
609 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
610 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
611 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
612 (ix86_vector_mode_supported_p): Likewise.
613 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
615 2019-05-15 Martin Liska <mliska@suse.cz>
618 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
621 2019-05-15 Richard Biener <rguenther@suse.de>
623 * tree-into-ssa.c (pass_build_ssa::execute): Run
624 update_address_taken before going into SSA.
626 2019-05-15 Richard Biener <rguenther@suse.de>
628 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
629 as __BIT_FIELD_REF with type with -gimple.
631 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
633 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
634 semantically equivalent branches (left over after prior refactorings).
636 2019-05-15 Richard Biener <rguenther@suse.de>
638 PR tree-optimization/88828
639 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
642 2019-05-14 Richard Biener <rguenther@suse.de>
644 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
645 as __VIEW_CONVERT with -gimple.
647 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
650 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
653 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
655 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
656 define_split to become a define_insn_and_split.
658 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
660 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
662 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
663 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
664 (sibcall_epilogue): Adjust.
667 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
669 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
671 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
672 * config.host: Likewise.
673 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
674 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
675 __svr4__]: Remove "brand" fallback.
676 [!KSTAT_DATA_STRING]: Remove.
677 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
679 (comdat_group): Likewise.
680 (set_have_as_tls): Likewise.
681 (gcc_cv_target_dl_iterate_phdr): Likewise.
682 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
683 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
684 * configure: Regenerate.
685 * doc/install.texi: Simplify Solaris target triplets.
686 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
687 (Specific, *-*-solaris2*): Document Solaris 10 removal.
688 Remove Solaris 10 references.
689 Remove obsolete Solaris bug reference.
690 (Specific, sparc-sun-solaris2.10): Remove.
692 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
694 * config/i386/i386.md (any_div): New code iterator.
695 (paired_mod): New code attribute.
696 (sgnprefix): Handle DIV and UDIV RTXes.
698 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
699 and udivmod<mode>4 patterns using any_div code iterator.
700 (divmod splitters): Macroize splitters using any_div code iterator.
701 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
702 (*udivmodsi4_pow2_zext_2): Ditto.
703 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
704 and *udivmod<mode>4_noext patterns using any_div code iterator.
705 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
706 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
707 patterns using any_div code iterator.
708 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
709 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
710 patterns using any_div code iterator.
711 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
712 udivmodhiqi3 patterns using any_extend code iterator.
714 2019-05-14 Richard Biener <rguenther@suse.de>
715 H.J. Lu <hongjiu.lu@intel.com>
717 PR tree-optimization/88828
718 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
719 permuting in a single non-constant element not extracted
722 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
724 * internal-fn.def (SIGNBIT): New.
725 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
727 (signbitv4sf2): Likewise.
729 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
732 * config/mips/mips.c (mips_split_move): Skip forward SRC into
733 next insn when the SRC reg is dead.
735 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
737 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
738 (alloc_cand_and_find_basis): Ditto.
739 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
740 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
741 (create_add_imm_cand, slsr_process_cast): Ditto.
742 (slsr_process_copy, replace_mult_candidate): Ditto.
743 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
744 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
745 (pass_strength_reduction::execute): Init the first NULL element.
747 2019-05-13 Nathan Sidwell <nathan@acm.org>
749 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
750 (run_attempt): Reformat line break.
752 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
755 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
756 data registers in sibcall epilogues.
757 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
759 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
762 * configure.ac (--enable-frame-pointer):
763 Disable by default for cygwin and mingw.
764 * configure: Regenerate.
766 2019-05-13 Nathan Sidwell <nathan@acm.org>
768 * dwarf2out.c (breakout_comdat_types): Move comment to correct
770 (const_ok_for_output_1): Balance parens around #if/#else/#endif
771 (gen_member_die): Move abstract origin check earlier. Only VARs
772 can be static_inline_p. Simplify splicing control flow.
774 2019-05-13 Richard Biener <rguenther@suse.de>
776 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
778 (vect_build_slp_tree_1): Likewise.
780 2019-05-13 Richard Biener <rguenther@suse.de>
782 PR tree-optimization/90402
783 * tree-if-conv.c (tree_if_conversion): Value number only
784 the loop body by making the latch an exit of the region
786 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
788 (do_rpo_vn): Deal with multiple edges into the entry block
789 that are not backedges inside the region by skipping PHIs
792 2019-05-13 Richard Biener <rguenther@suse.de>
794 PR tree-optimization/90316
795 * tree-ssa-pre.c (insert_aux): Fold into ...
796 (insert): ... this function. Use a RPO walk to reduce the
797 number of required iterations.
799 2019-05-13 Martin Liska <mliska@suse.cz>
801 PR tree-optimization/90416
802 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
803 string instead of passing the second part as va_arg argument.
805 2019-05-13 Martin Liska <mliska@suse.cz>
807 PR gcov-profile/90380
808 * gcov.c (handle_cycle): Do not support zero cycle count,
809 it should not be possible.
810 (path_contains_zero_cycle_arc): New function.
811 (circuit): Ignore zero cycle arc counts.
813 2019-05-13 Martin Liska <mliska@suse.cz>
815 PR gcov-profile/90380
816 * gcov.c (enum loop_type): Remove the enum and
818 (handle_cycle): Assert that we should not reach
820 (circuit): Use loop_found instead of a tri-state loop_type.
821 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
824 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
827 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
828 (ix86_output_indirect_branch_via_reg): Use output mechanism
829 accounting for __USER_LABEL_PREFIX__.
830 (ix86_output_indirect_branch_via_push): Likewise.
831 (ix86_output_function_return): Likewise.
832 (ix86_output_indirect_function_return): Likewise.
834 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
836 * doc/md.texi: Document use of code attributes in rtx patterns.
837 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
838 * read-rtl.c (find_code): Split out search loops into...
839 (maybe_find_code): ...this new function.
840 (check_code_iterator): Make the error message more informative.
841 (check_code_attribute): New function.
842 (rtx_reader::rtx_alloc_for_name): Likewise.
843 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
844 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
845 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
846 <max_opp> directly as an rtx code instead of via a match_operator.
847 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
848 (<su>abd<mode>_3): Update accordingly.
850 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
852 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
853 is given, print the state of the EH "save world" computation for
856 2019-05-11 Jakub Jelinek <jakub@redhat.com>
859 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
860 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
862 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
864 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
865 Use pinsrd for TARGET_SSE4_1.
866 * config/i386/sse.md (movdi_to_sse): Ditto.
868 2019-05-10 Richard Biener <rguenther@suse.de>
870 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
871 (do_rpo_vn): Initialize next_value_id.
873 2019-05-10 Martin Liska <mliska@suse.cz>
875 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
878 2019-05-10 Jakub Jelinek <jakub@redhat.com>
880 PR tree-optimization/90385
881 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
882 arguments of the exit phis.
885 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
886 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
888 (copy_tree_body_r): Likewise.
889 (copy_fn): Set id.do_not_fold to true.
891 2019-05-10 Martin Liska <mliska@suse.cz>
893 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
894 Reapply changes from r269790.
896 2019-05-10 Martin Liska <mliska@suse.cz>
899 * doc/invoke.texi: New params.
900 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
901 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
902 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
904 * tree-switch-conversion.h (struct jump_table_cluster):
907 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
909 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
911 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
913 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
915 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
917 PR rtl-optimization/88879
918 * sel-sched.c (sel_target_adjust_priority): Remove assert.
920 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
923 * config/arm/arm.c (callee_saved_reg_p): Move before
924 thumb_find_work_register.
925 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
926 thumb_find_work_register. Only call df_get_live_out once.
927 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
928 (thumb_find_work_register): Use
929 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
930 algorithms to locate a spare call clobbered reg.
932 2019-05-09 Martin Liska <mliska@suse.cz>
934 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
935 and MAX_EXPR in GIMPLE FE format.
937 2019-05-09 Martin Liska <mliska@suse.cz>
939 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
940 * gimple-pretty-print.c (dump_gimple_bb_header):
942 (pp_cfg_jump): Dump edge probability.
943 * profile-count.c (profile_quality_as_string): Simplify
945 (parse_profile_quality): New function.
946 (profile_count::dump): Simplify with a static array.
947 (profile_count::from_gcov_type): Add new argument.
948 * profile-count.h (parse_profile_quality): Likewise.
949 * predict.h (set_hot_bb_threshold): New.
950 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
952 * predict.c (get_hot_bb_threshold): Set from the new param.
953 (set_hot_bb_threshold): New.
955 2019-05-09 Richard Biener <rguenther@suse.de>
957 PR tree-optimization/90395
958 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
959 rewrite vector stores that throw internally.
961 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
963 * cif-code.def (CHKP): Remove.
966 * configure.ac (--enable-frame-pointer): Disable by default for
968 * configure: Regenerate.
970 2019-05-09 Alan Modra <amodra@gmail.com>
973 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
974 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
975 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
976 cost for general <-> vsx when direct moves are available.
977 Cost union classes at minimal cost for any reg in the class.
978 Correct calculation for moves between vsx, float, and altivec.
979 Don't return a low cost for moves between special regs. Don't
980 use hard coded register numbers.
981 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
982 (rs6000_ira_change_pseudo_allocno_class): New function.
983 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
984 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
986 (movsi_internal1): Don't disparage vector alternatives.
987 (mov<mode>_internal): Likewise, excepting alternative that
989 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
992 2019-05-08 Jakub Jelinek <jakub@redhat.com>
995 PR tree-optimization/89060
996 * tree-ssa-live.h (live_vars_map): New typedef.
997 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
998 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
999 (struct compute_live_vars_data): New type.
1000 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
1001 live_vars_at_stmt, destroy_live_vars): New functions.
1002 * tree-tailcall.c: Include tree-ssa-live.h.
1003 (live_vars, live_vars_vec): New global variables.
1004 (find_tail_calls): Perform variable life analysis before punting.
1005 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
1006 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
1008 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
1009 Perform variable life analysis to select variables that really need
1011 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
1012 instead set id->eh_landing_pad_dest and assert it is the same.
1013 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
1015 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
1016 Richard Earnshaw <rearnsha@arm.com>
1019 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
1021 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
1022 (thumb1_compute_save_core_reg_mask): Don't force a spare work
1023 register if both the epilogue and prologue can use call-clobbered
1025 (thumb1_unexpanded_epilogue): Use
1026 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
1027 picking temporaries for restoring high regs to match that of the
1028 prologue where possible.
1029 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
1030 the list of work registers. Detect if the return address is still live
1031 at the end of the prologue and avoid using it for a work register if so.
1032 If the return address is not live, add LR to the list of pushable regs
1033 after the first pass.
1035 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1037 PR tree-optimization/90078
1038 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
1039 (INFTY): Increase the value for infinite cost.
1040 (struct comp_cost): Promote type of members to int64_t.
1041 (infinite_cost): Don't set complexity in initialization.
1042 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
1043 overflows to infinite_cost.
1044 (adjust_setup_cost): Promote type of parameter and cost computation
1046 (struct ainc_cost_data, struct iv_ca): Promote type of member to
1048 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
1049 cost computation to int64_t.
1050 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
1051 int64_t's format specifier in dump.
1053 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1055 PR tree-optimization/90240
1056 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
1057 with respect to scaling factor pre-computed for each basic block.
1058 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
1059 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
1060 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
1061 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
1062 live range for array of loop's basic blocks. Cleanup aux field of
1063 loop's basic blocks.
1065 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1067 PR tree-optimization/90356
1068 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
1070 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
1072 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
1073 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
1074 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
1075 (ix86_handle_option): Handle -mavx512bf16.
1076 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
1078 * config/i386/avx512bf16vlintrin.h: New.
1079 * config/i386/avx512bf16intrin.h: New.
1080 * config/i386/cpuid.h (bit_AVX512BF16): New.
1081 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
1082 * config/i386/i386-builtin-types.def: Add new types.
1083 * config/i386/i386-builtin.def: Add new builtins.
1084 * config/i386/i386-c.c (ix86_target_macros_internal): Define
1086 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
1087 (ix86_option_override_internal): Handle BF16.
1088 (ix86_valid_target_attribute_inner_p): Ditto.
1089 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
1090 * config/i386/i386-builtin.c (enum processor_features): Add
1092 (static const _isa_names_table isa_names_table): Ditto.
1093 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
1094 (PTA_AVX512BF16): Ditto.
1095 * config/i386/i386.opt: Add -mavx512bf16.
1096 * config/i386/immintrin.h: Include avx512bf16intrin.h
1097 and avx512bf16vlintrin.h.
1098 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
1099 avx512f_cvtneps2bf16_<mode><mask_name>,
1100 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
1101 * config/i386/subst.md (mask_half): Add new subst.
1102 * doc/invoke.texi: Document -mavx512bf16.
1104 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
1106 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
1108 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
1109 (rs6000_debug_legitimize_reload_address): Delete.
1110 (rs6000_legitimize_reload_address_ptr): Delete.
1111 (rs6000_option_override_internal): Adjust.
1112 (mem_operand_gpr): Adjust comment.
1113 (legitimate_lo_sum_address_p): Ditto.
1114 (rs6000_legitimize_reload_address): Delete.
1115 (rs6000_debug_legitimize_reload_address): Delete.
1116 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
1118 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
1121 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1122 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
1123 to compute vector element selector for both constant and variable
1126 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1128 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
1129 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
1130 ashrdi3_cvt using SWI48 mode iterator.
1132 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1134 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
1135 (aarch64_<su>abd<mode>_3): Likewise.
1136 (*aarch64_<su>abd<mode>_3): New define_insn.
1137 (<sur>sad<vsi2qi>): New define_expand.
1138 * config/aarch64/iterators.md: Added MAX_OPP attribute.
1139 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
1140 (build_vect_cond_expr): Likewise.
1142 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1144 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
1145 clobbers outside of accessible_reg_set.
1146 * config/i386/i386.c (ix86_conditional_register_usage):
1147 Disable register sets by clearing corresponding bits in
1148 accessible_reg_set. Do not set corresponding bits in fixed_regs,
1149 call_used_regs and don't clear corresponding reg_names array members.
1151 2019-05-07 Richard Biener <rguenther@suse.de>
1153 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
1154 not specified still compute a comp_vectype for invariant
1157 2019-05-07 Richard Biener <rguenther@suse.de>
1159 PR tree-optimization/90316
1160 * tree-ssa-pre.c (translate_vuse_through_block): When
1161 same_valid is NULL do not bother to search for a virtual
1163 (phi_translate_1): When operands changed we cannot keep
1164 the same value-number so do not bother to ask whether
1165 that's possible from translate_vuse_through_block.
1167 2019-05-07 Martin Liska <mliska@suse.cz>
1169 * bitmap.c (bitmap_register): Come up with
1170 alloc_descriptor_max_uid and assign it for
1172 (register_overhead): Use get_descriptor as
1174 (release_overhead): New.
1175 (bitmap_elem_to_freelist): Call it.
1176 (bitmap_elt_clear_from): Likewise.
1177 (bitmap_obstack_free): Likewise.
1178 (bitmap_move): Sensitively release memory.
1179 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
1180 (bitmap_initialize): Initialize alloc_descriptor to zero.
1181 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
1183 2019-05-07 Richard Biener <rguenther@suse.de>
1185 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
1186 we build a SLP node. Remove max_size and limiting.
1187 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
1189 2019-05-07 Richard Biener <rguenther@suse.de>
1191 PR tree-optimization/90316
1192 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
1194 (walk_non_aliased_vuses): Take walking limit argument.
1195 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
1196 walking if it is reached instead of just counting.
1197 (get_continuation_for_phi): Likewise.
1198 (walk_non_aliased_vuses): Likewise, instead of leaving counter
1199 limiting to the callback.
1200 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
1201 (vn_reference_lookup_3): Likewise.
1202 (vn_reference_lookup_pieces): Likewise.
1203 (vn_reference_lookup): Likewise.
1204 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
1205 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
1206 (avail_exprs_stack::lookup_avail_expr): Likewise.
1208 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
1210 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
1211 for comparaible types in the second direction even if first one
1212 hits incomparable type.
1214 2019-05-07 Richard Biener <rguenther@suse.de>
1217 * lto-wrapper.c (debug_objcopy): Use the original filename
1218 including archive offset for the filename used for -save-temps.
1220 2019-05-07 Li Jia He <helijia@linux.ibm.com>
1222 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
1225 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1227 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
1228 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
1229 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
1230 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
1231 (FRAME_POINTER_REGNUM): Change numbering.
1232 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
1233 (alt_reg_names): Adjust.
1234 (rs6000_conditional_register_usage): Don't mark hard register 64 as
1236 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1237 (DWARF_FRAME_REGISTERS): Delete.
1238 (DWARF2_FRAME_REG_OUT): Fix whitespace.
1239 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1241 (REG_ALLOC_ORDER): Adjust.
1242 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
1243 (REG_CLASS_CONTENTS): Adjust.
1244 (RETURN_ADDR_RTX): Change comment.
1245 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
1247 (REGISTER_NAMES): Adjust.
1248 (ADDITIONAL_REGISTER_NAMES): Adjust.
1249 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1251 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1253 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
1255 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1256 (DWARF_FRAME_REGISTERS): Adjust.
1257 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1259 (REG_ALLOC_ORDER): Adjust.
1260 (enum reg_class): Delete SPR_REGS.
1261 (REG_CLASS_NAMES): Delete SPR_REGS.
1262 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
1263 (REGISTER_NAMES): Adjust.
1264 (ADDITIONAL_REGISTER_NAMES): Adjust.
1265 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1266 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
1267 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
1268 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
1269 (htm_spr_regno): Delete.
1270 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
1272 (rs6000_dbx_register_number): Adjust.
1274 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1276 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
1278 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1280 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
1281 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
1283 2019-05-06 Jakub Jelinek <jakub@redhat.com>
1285 PR tree-optimization/88709
1286 PR tree-optimization/90271
1287 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
1288 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
1289 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
1291 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
1292 of the store merging group is larger than
1293 PARAM_STORE_MERGING_MAX_SIZE parameter.
1294 (split_group): Add bzero_first argument. If set, always emit first
1295 the first store which must be = {} of the whole area and then for the
1296 rest of the stores consider all zero bytes as paddings.
1297 (imm_store_chain_info::output_merged_store): Check if first store
1298 is = {} of the whole area and if yes, determine which setting of
1299 bzero_first for split_group gives smaller number of stores. Adjust
1300 split_group callers.
1301 (lhs_valid_for_store_merging_p): Allow decls.
1302 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
1304 (pass_store_merging::process_store): Likewise.
1306 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
1309 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1310 handling of V1TImode.
1312 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
1315 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
1316 and enable_frame_pointer ...
1317 * configure.ac: ... here. Update help strings for
1318 --enable-frame-pointer.
1319 * configure: Regenerate.
1320 * config/i386/i386-options.c (ix86_option_override_internal): Remove
1321 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
1322 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
1323 (USE_X86_64_FRAME_POINTER): Ditto.
1325 2019-05-06 Martin Liska <mliska@suse.cz>
1327 * config.gcc: Append to target_gtfiles and fix indentation.
1329 2019-05-06 Richard Biener <rguenther@suse.de>
1331 PR tree-optimization/90358
1332 * tree-vect-stmts.c (get_group_load_store_type): Properly
1333 detect unused upper half of load.
1334 (vectorizable_load): Likewise.
1336 2019-05-06 Richard Biener <rguenther@suse.de>
1338 PR tree-optimization/88828
1339 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
1340 (simplify_vector_constructor): ...here. Handle constants in
1343 2019-05-06 Richard Biener <rguenther@suse.de>
1345 PR tree-optimization/90328
1346 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
1347 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
1348 is valid in the loop nest before using it.
1349 (initialize_data_dependence_relation): Adjust.
1350 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
1351 loop as loop-nest to dr_may_alias_p.
1353 2019-05-06 Richard Biener <rguenther@suse.de>
1355 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
1357 2019-05-06 Richard Biener <rguenther@suse.de>
1359 PR tree-optimization/90316
1360 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
1361 compute target on demand.
1362 (get_continuation_for_phi): Remove code walking stmts to
1363 get to a target virtual operand which could end up being
1366 2019-05-06 Martin Liska <mliska@suse.cz>
1369 * config/i386/i386-options.c (ix86_option_override_internal): Error only
1370 when -mabi is selected to a non-default version.
1372 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
1373 Martin Liska <mliska@suse.cz>
1375 * Makefile.in: Add lto-dump.texi.
1376 * cgraph.h: Add new functions get_visibility_string and
1377 get_symtab_type_string.
1378 * doc/gcc.texi: Include lto-dump section.
1379 * doc/lto-dump.texi: New file.
1380 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
1381 (parse_dump_option): Factor out this function.
1382 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
1383 (parse_dump_option): Export the function.
1384 * symtab.c (symtab_node::get_visibility_string): New function.
1385 (symtab_node::get_symtab_type_string): Likewise.
1387 2019-05-06 Martin Liska <mliska@suse.cz>
1389 * config/i386/i386-builtins.c: New file.
1390 * config/i386/i386-builtins.h: New file.
1391 * config/i386/i386-expand.c: New file.
1392 * config/i386/i386-expand.h: New file.
1393 * config/i386/i386-features.c: New file.
1394 * config/i386/i386-features.h: New file.
1395 * config/i386/i386-options.c: New file.
1396 * config/i386/i386-options.h: New file.
1397 * config.gcc: Add new files into extra_objs and
1399 * config/i386/i386.c: Split content of the file
1400 into newly introduced files.
1401 * config/i386/i386.h: Declare common variables
1403 * config/i386/t-i386: Define dependencies for new files.
1406 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
1409 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
1410 Restrict 'all' variant to 32-bit configurations.
1411 (unaligned_loadhiu): Likewise.
1412 (unaligned_storehi): Likewise.
1413 (unaligned_storesi): Likewise.
1414 (unaligned_loadhis): Disable when compiling for thumb1.
1416 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
1418 PR tree-optimization/90269
1419 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
1422 2019-05-03 Martin Liska <mliska@suse.cz>
1424 * hash-map.h: Add is_empty function.
1425 * hash-set.h: Likewise.
1426 * hash-table.h: Likewise.
1427 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
1428 elements () == 0 (and similar usages).
1429 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
1430 * gimplify.c (gimplify_bind_expr): Likewise.
1431 (gimplify_switch_expr): Likewise.
1432 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
1433 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
1434 * postreload-gcse.c (dump_hash_table): Likewise.
1435 (gcse_after_reload_main): Likewise.
1436 * predict.c (combine_predictions_for_bb): Likewise.
1437 * tree-parloops.c (reduction_phi): Likewise.
1438 (separate_decls_in_region): Likewise.
1439 (transform_to_exit_first_loop): Likewise.
1440 (gen_parallel_loop): Likewise.
1441 (gather_scalar_reductions): Likewise.
1442 (try_create_reduction_list): Likewise.
1443 * var-tracking.c (dump_vars): Likewise.
1444 (emit_notes_for_changes): Likewise.
1445 (vt_emit_notes): Likewise.
1447 2019-05-03 Richard Biener <rguenther@suse.de>
1449 PR tree-optimization/90316
1450 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
1453 2019-05-03 Richard Biener <rguenther@suse.de>
1455 * tree-vect-stmts.c (get_group_load_store_type): Avoid
1456 peeling for gaps by loading only lower halves of vectors
1458 (vectorizable_load): Likewise.
1460 2019-05-03 Richard Biener <rguenther@suse.de>
1463 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
1465 2019-05-03 Richard Biener <rguenther@suse.de>
1468 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
1469 Handle STRING_CST vs DECL or STRING_CST.
1471 2019-05-03 Richard Biener <rguenther@suse.de>
1473 PR tree-optimization/88963
1474 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
1475 vector loads feeding only BIT_FIELD_REFs to component
1476 loads. Rewrite stores fed by CONSTRUCTORs to component
1479 2019-05-03 Jakub Jelinek <jakub@redhat.com>
1481 * opts.h (finish_options): Remove lang_mask argument.
1482 (print_help, help_option_argument): Declare.
1483 * opts.c (print_help): Remove forward declaration, no longer static.
1484 (finish_options): Remove lang_mask argument, don't call print_help
1486 * opts-global.c (decode_options): Adjust finish_option caller, call
1489 PR tree-optimization/90303
1490 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
1491 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
1493 2019-05-03 Richard Biener <rguenther@suse.de>
1495 PR tree-optimization/89698
1496 * gimple-fold.c (canonicalize_constructor_val): Early out
1497 for constants, handle unfolded INTEGER_CSTs as they appear in
1498 C++ virtual table ctors.
1500 2019-05-03 Richard Biener <rguenther@suse.de>
1502 * passes.c (execute_function_todo): Remove dead code.
1504 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
1506 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
1507 the internal register number, for any "real" register.
1509 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
1511 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
1512 correct numbers for TFHAR, TFIAR, TEXASR.
1514 2019-05-02 Richard Biener <rguenther@suse.de>
1516 PR tree-optimization/89653
1517 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
1518 update-address-taken before the pass.
1519 * passes.def (pass_tree_loop_init): Put comment before it.
1521 2019-05-02 Richard Biener <rguenther@suse.de>
1523 PR tree-optimization/89509
1524 * tree-ssa-structalias.c (compute_dependence_clique): Look
1525 at the first subvar when determining whether it is restrict.
1527 2019-05-02 Richard Biener <rguenther@suse.de>
1529 PR tree-optimization/90273
1530 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
1531 useless debug stmts.
1533 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1535 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
1537 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
1539 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
1540 VEC_COND_EXPR be inserted to emulate a conditional internal function.
1541 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
1542 (vectorizable_reduction): Use the functions above to vectorize in a
1543 fully masked loop codes that don't have a conditional internal
1546 2019-05-02 Martin Liska <mliska@suse.cz>
1548 * cgraphclones.c: Call valid_attribute_p with 1 for
1550 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
1551 it's for target attribute.
1552 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
1553 Add new boolean argument.
1554 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
1556 (ix86_valid_target_attribute_tree): Pass target_clone_attr
1557 to ix86_valid_target_attribute_inner_p.
1558 (ix86_valid_target_attribute_p): Pass flags argument to
1559 ix86_valid_target_attribute_inner_p.
1560 (get_builtin_code_for_version): Use 0 as it's target attribute.
1562 2019-05-02 Martin Liska <mliska@suse.cz>
1564 * gcc.c (process_command): Add dummy file only
1566 * opts-global.c (decode_options): Pass lang_mask.
1567 * opts.c (print_help): New function.
1568 (finish_options): Print --help if help_option_argument
1570 (common_handle_option): Factor out content of OPT__help_
1572 * opts.h (finish_options): Add new argument.
1574 2019-05-02 Martin Liska <mliska@suse.cz>
1577 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
1578 With -minline-all-stringops use inline expansion using 4B loop.
1579 * doc/invoke.texi: Document the change of
1580 -minline-all-stringops.
1582 2019-05-01 Jeff Law <law@redhat.com>
1584 PR tree-optimization/88797
1585 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
1586 PHI feeds a conditional on the RHS of an assignment.
1588 2019-04-30 Andrew Waterman <andrew@sifive.com>
1589 Jim Wilson <jimw@sifive.com>
1591 * config/riscv/constraints.md (L): New.
1592 * config/riscv/predicates.md (lui_operand): New.
1593 (sfb_alu_operand): New.
1594 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
1595 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
1596 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
1597 * config/riscv/risc.md (type): Add sfb_alu.
1598 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
1599 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
1600 (branch_zero<mode>): Delete.
1602 (mov<GPR:mode><X:mode>cc): Likewise.
1603 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
1605 2019-04-30 Nathan Sidwell <nathan@acm.org>
1607 * tree.h (MARK_TS_EXP): New.
1609 2019-04-30 Martin Liska <mliska@suse.cz>
1611 * opts.c (enable_warning_as_error): Provide hints
1612 for unknown options.
1614 2019-04-30 Martin Liska <mliska@suse.cz>
1617 * doc/invoke.texi: Add missing dash for gas-locview-support
1618 and gno-as-locview-support.
1620 2019-04-30 Jakub Jelinek <jakub@redhat.com>
1623 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
1624 whitespace at the start of target attribute string.
1626 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1629 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
1630 Define __ARM_FEATURE_ATOMICS.
1632 2019-04-30 Martin Liska <mliska@suse.cz>
1634 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
1635 into built_in_function enum. Remove code for endp == 2 and
1636 use BUILT_IN_* constants.
1637 (gimple_fold_builtin): Call the function with fcode.
1639 2019-04-30 Martin Liska <mliska@suse.cz>
1641 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
1642 DECL_FUNCTION_CODE into ix86_builtins enum before
1643 the switch statement.
1645 2019-04-30 Jakub Jelinek <jakub@redhat.com>
1647 PR tree-optimization/89475
1648 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
1651 2019-04-30 Martin Liska <mliska@suse.cz>
1653 PR translation/90274
1654 * opts.c (print_filtered_help): Wrap string in _(...).
1656 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
1658 PR tree-optimization/90240
1660 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1662 PR tree-optimization/90078
1663 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
1664 checks for infinite_cost overflow.
1666 2019-04-29 Jeff Law <law@redhat.com>
1668 * passes.def: Move -Wrestrict pass after copy propagation.
1670 2019-04-29 Maya Rashish <coypu@sdf.org>
1672 * config.gcc (default_gnu_indirect_function): Default to yes
1673 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
1674 sparc*-*-netbsd*, x86_64-*-netbsd*.
1676 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
1678 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
1679 where cond2 is NE_EXPR.
1680 (is_value_included_in): Update comment.
1682 2019-04-29 Richard Biener <rguenther@suse.de>
1684 PR tree-optimization/90278
1685 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
1686 EH on comparison simplification.
1688 2019-04-29 Jason Merrill <jason@redhat.com>
1690 PR c++/82081 - tail call optimization breaks noexcept
1691 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
1692 nothrow function to a might-throw function into a tail call.
1694 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
1696 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
1697 (DDR_INNER_LOOP): Likewise.
1698 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
1699 (initialize_data_dependence_relation): Likewise.
1700 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
1702 2019-04-29 Jakub Jelinek <jakub@redhat.com>
1704 PR rtl-optimization/90257
1705 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
1709 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
1713 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
1716 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
1719 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
1721 * lra-spills.c (lra_final_code_change): Remove useless move insns.
1723 2019-04-29 Richard Biener <rguenther@suse.de>
1725 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
1728 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
1730 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
1731 varasm.h, and netbsd-protos.h.
1733 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
1736 * config/i386/i386-protos.h (ix86_data_alignment): Change
1737 the second argument type to unsigned int.
1738 * config/i386/i386.c (ix86_data_alignment): Change "align"
1739 argument type to unsigned int.
1741 2019-04-27 Martin Liska <mliska@suse.cz>
1744 * opt-suggestions.c (option_proposer::build_option_suggestions):
1745 When get_valid_option_values returns empty values, add the
1746 misspelling candidate.
1748 2019-04-26 Jim Wilson <jimw@sifive.com>
1750 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
1752 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
1753 Pass orig_mode to riscv_build_integer.
1754 (riscv_split_integer): Pass mode to riscv_move_integer.
1755 (riscv_legitimize_const_move): Likewise.
1756 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
1757 promoted_mode. Replace force_reg call with code to load constant into
1758 promoted reg and then subreg it for the store.
1759 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
1762 2018-04-26 Eugene Sharygin <eush@ispras.ru>
1764 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
1767 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
1769 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
1770 commentary about the encoding of precision.
1772 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
1774 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
1775 * config/i386/t-freebsd64: New file.
1776 * config.gcc: Add the t-freebsd64 for multilib support.
1778 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
1780 * doc/extend.texi (vector_size): Add missing comma after @xref.
1782 2019-04-25 Jakub Jelinek <jakub@redhat.com>
1784 * BASE-VER: Set to 10.0.0.
1786 2019-04-25 Richard Biener <rguenther@suse.de>
1789 * gimplify.c (gimplify_expr): Avoid turning a lvalue
1790 VIEW_CONVERT_EXPR into one operating on an rvalue.
1792 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
1795 * config/i386/i386.c (feature_priority): Moved to file scope.
1796 (processor_features): Likewise.
1797 (processor_model): Likewise.
1798 (_arch_names_table): Likewise.
1799 (arch_names_table): Likewise.
1800 (_feature_list): Removed.
1801 (feature_list): Likewise.
1802 (_isa_names_table): Moved to file scope. Add priority.
1803 (isa_names_table): Likewise.
1804 (get_builtin_code_for_version): Replace feature_list with
1805 isa_names_table. Update error message for P_ZERO priority.
1807 2019-04-25 Richard Biener <rguenther@suse.de>
1809 * tree-pass.h (make_pass_phi_only_cprop): Remove.
1810 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
1812 2019-04-24 Jeff Law <law@redhat.com>
1814 PR tree-optimization/90037
1815 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
1816 * passes.def: Replace all instance of phi-only cprop with the
1817 lattice propagator. Move propagation pass from after erroneous
1818 path isolation to before erroneous path isolation.
1819 * tree-ssa-phionlycprop.c: Remove.
1821 2019-04-24 Richard Biener <rguenther@suse.de>
1824 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
1825 by size and BITS_PER_UNIT on poly-wide-ints.
1827 2019-04-25 Richard Biener <rguenther@suse.de>
1830 * match.pd: Add pattern to simplify view-conversion of an
1833 2019-04-24 Clement Chigot <clement.chigot@atos.net>
1835 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
1836 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
1837 for Go on 32 bit AIX.
1838 * config/rs6000/aix72.h: Likewise.
1840 2019-04-24 Jakub Jelinek <jakub@redhat.com>
1843 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
1844 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
1846 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
1849 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
1850 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
1851 for restored hard frame pointer.
1852 (s390_sched_dependencies_evaluation): Implement new target hook.
1853 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
1855 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
1857 * config/arc/arc-options.def: Fix typos and spelling mistakes.
1858 * config/arc/arc.c (arc_init): Cleanup warning message.
1859 (arc_override_options): Likewise.
1861 2019-04-24 Jakub Jelinek <jakub@redhat.com>
1864 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
1865 a register if both if_true and if_false are MEMs.
1867 PR tree-optimization/90208
1868 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
1869 after labels of new_bb, not before them.
1871 PR tree-optimization/90211
1872 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
1873 which are not SSA_NAMEs.
1875 2018-04-23 Sudakshina Das <sudi.das@arm.com>
1877 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
1879 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
1881 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
1883 PR rtl-optimization/87979
1884 * modulo-sched.c (sms_schedule): Start ii value "mii" should
1887 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
1889 PR rtl-optimization/84032
1890 * modulo-sched.c (ps_insn_find_column): Change condition so that
1891 branch will always be the last insn in a row inside partial
1894 2019-04-23 Richard Biener <rguenther@suse.de>
1897 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
1898 dest_single_pred_p argument.
1899 (remove_forwarder_block): Adjust.
1900 (remove_forwarder_block_with_phi): Likewise.
1902 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1903 Bernd Edlinger <bernd.edlinger@hotmail.de>
1904 Jakub Jelinek <jakub@redhat.com>
1907 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
1908 if used with general-regs-only.
1909 (arm_conditional_register_usage): Don't add non-general regs if
1911 (arm_valid_target_attribute_rec): Handle general-regs-only.
1912 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
1914 (TARGET_HARD_FLOAT_SUB): Define.
1915 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
1916 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
1917 (TARGET_REALLY_IWMMXT2): Likewise.
1918 * config/arm/arm.opt: Add -mgeneral-regs-only.
1919 * doc/extend.texi: Document ARM general-regs-only target.
1920 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
1922 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1924 PR tree-optimization/90078
1925 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
1926 checks for infinite_cost overflow.
1928 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1930 PR tree-optimization/90021
1931 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
1932 and check univariate against it.
1933 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
1934 * tree-data-ref.c (add_other_self_distances): Pass new argument.
1936 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
1940 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
1943 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
1946 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
1948 * lra-spills.c (lra_final_code_change): Remove useless move insns.
1950 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
1952 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
1953 names using operand format, rather than hard-wired.
1954 (speculation_barrier): Likewise.
1956 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
1958 PR tree-optimization/88055
1959 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
1960 (gen_one_condition): Use it if !HONOR_NANS.
1962 2019-04-19 Jakub Jelinek <jakub@redhat.com>
1965 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
1966 assign_temp instead of gen_reg_rtx.
1968 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
1970 PR translation/90118
1971 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1972 Add missing space before %<.
1974 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
1976 PR rtl-optimization/87871
1977 * ira-lives.c (make_object_dead): Don't add conflicts to
1978 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
1980 2019-04-18 Martin Sebor <msebor@redhat.com>
1983 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
1984 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
1985 assuming type size fits in SHWI.
1987 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
1990 * ipa-inline.c (flatten_function): New parameter UPDATE.
1991 (ipa_inline, early_inliner): Use it.
1993 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
1995 * fold-const.c (int_const_binop): Return early on failure.
1997 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
2000 * combine.c (force_int_to_mode): Cast the argument rather than
2001 the result of known_alignment.
2002 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
2004 2019-04-18 Richard Biener <rguenther@suse.de>
2007 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
2009 (remove_forwarder_block): ... here.
2010 (remove_forwarder_block_with_phi): Also move debug stmts here.
2012 2019-04-18 Jakub Jelinek <jakub@redhat.com>
2014 PR translation/79183
2015 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
2016 inform where appropriate.
2018 2019-04-18 Richard Biener <rguenther@suse.de>
2020 * tree.c (get_qualified_type): Put found type variants at the
2021 head of the variant list.
2023 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2025 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
2027 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
2030 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
2031 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
2032 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
2033 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
2034 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
2036 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
2038 * ira-conflicts.c (print_allocno_conflicts): Always print something,
2039 even for allocno's with no conflicts.
2040 (print_conflicts): Print an extra newline.
2042 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2044 * auto-inc-dec.c (attempt_change): Set the alignment of the
2045 temporary memory to that of the original.
2047 2019-04-17 Joao Moreira <jmoreira@suse.de>
2049 * targhooks.c (default_print_patchable_function_entry): Emit
2050 __patchable_function_entries section with writable flags to allow
2051 relocation resolution.
2053 2019-04-17 Jonny Grant <jg@jguk.org>
2055 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
2057 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2060 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
2063 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
2065 * config/arc/arc.c (arc_init): Format diagnostic string.
2066 (arc_override_options): Likewise.
2067 (check_if_valid_regno_const): Likewise.
2068 (arc_reorg): Likewise.
2070 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2073 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
2075 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
2077 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
2078 (*movdi_update1): Use Pmode.
2079 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
2080 (movdi_<mode>_update_stack): Rename to ...
2081 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
2083 (*movsi_update1): Use Pmode.
2084 (*movsi_update2): Use Pmode.
2085 (movsi_update): Rename to ...
2086 (movsi_<mode>_update): ... this. Use Pmode.
2087 (movsi_update_stack): Fix condition.
2088 (*movhi_update1): Use Pmode. Fix argument to
2089 avoiding_indexed_address_p.
2090 (*movhi_update2): Ditto.
2091 (*movhi_update3): Ditto.
2092 (*movhi_update4): Ditto.
2093 (*movqi_update1): Ditto.
2094 (*movqi_update2): Ditto.
2095 (*movqi_update3): Ditto.
2096 (*movsf_update1, *movdf_update1): Merge, rename to...
2097 (*mov<mode>_update1): This. Use Pmode. Fix argument to
2098 avoiding_indexed_address_p. Add "size" attribute.
2099 (*movsf_update2, *movdf_update2): Merge, rename to...
2100 (*mov<mode>_update2): This. Ditto.
2101 (*movsf_update3): Use Pmode. Fix argument to
2102 avoiding_indexed_address_p.
2103 (*movsf_update4): Ditto.
2104 (allocate_stack): Simplify condition. Adjust pattern names.
2106 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2109 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
2110 whitespace at the start of target attribute string.
2112 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
2115 * config/rs6000/power9.md: Add store forwarding bypass.
2117 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
2120 * valtrack.c (dead_debug_insert_temp): Reset debug references
2121 to the return value of a call being removed.
2123 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2125 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
2126 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
2127 implement target hook.
2128 (arc_memory_move_cost): New function.
2129 (TARGET_REGISTER_MOVE_COST): Define.
2130 (TARGET_MEMORY_MOVE_COST): Likewise.
2131 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
2132 (MEMORY_MOVE_COST): Likewise.
2134 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2136 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
2137 (sibcall_value_insn): Likewise.
2138 * config/arc/constraints.md (Rs5): Remove.
2140 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2142 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
2143 for last two fake registers.
2144 (arc_conditional_register_usage): Make sure fake frame and arg
2145 pointer regs are in general regs class.
2146 (FRAME_POINTER_MASK): Remove.
2147 (RETURN_ADDR_MASK): Remove.
2148 (arc_must_save_register): Use hard frame regnum.
2149 (frame_restore_reg): Use hard_frame_pointer_rtx.
2150 (arc_save_callee_saves): Likewise.
2151 (arc_restore_callee_saves): Likewise.
2152 (arc_save_callee_enter): Likewise.
2153 (arc_restore_callee_leave): Likewise.
2154 (arc_save_callee_milli): Likewise.
2155 (arc_eh_return_address_location): Likewise.
2156 (arc_check_multi): Use hard frame regnum.
2157 (arc_can_eliminate): Likewise.
2158 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
2159 for register allocator.
2160 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
2161 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
2162 (FRAME_POINTER_REGNUM): Change it to a fake register.
2163 (HARD_FRAME_POINTER_REGNUM): Defined.
2164 (ARG_POINTER_REGNUM): Change it to a new fake register.
2165 (ELIMINABLE_REGS): Update.
2166 (REGISTER_NAMES): Update names.
2167 * config/arc/arc.md (LP_START): Remove.
2169 (shift_si3_loop): Update pattern.
2171 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2173 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
2174 to avoid delay slot scheduling.
2175 (arc_must_save_register): Don't save SP.
2176 * config/arc/arc.md (stack_tie): Remove.
2177 (UNSPEC_ARC_STKTIE): Likewise.
2179 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
2180 Shiva Chen <shiva0217@gmail.com>
2182 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
2183 code gen with large shift amount.
2185 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
2187 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
2190 2019-04-16 Jakub Jelinek <jakub@redhat.com>
2193 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
2194 print -m64/-mx32/-m32 if it is true.
2195 (ix86_debug_options, ix86_function_specific_print): Pass true as
2196 ADD_ABI_P to ix86_target_string.
2197 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
2198 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
2199 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
2201 PR rtl-optimization/90082
2202 * dce.c (can_delete_call): New function.
2203 (deletable_insn_p, mark_insn): Use it.
2205 PR tree-optimization/90090
2206 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
2208 (is_division_by_square): Likewise. Formatting fix.
2210 2019-04-16 Richard Biener <rguenther@suse.de>
2212 PR tree-optimization/56049
2213 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
2214 equality check if alias-set zero will prevail.
2216 2019-04-15 Jeff Law <law@redhat.com>
2218 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
2219 size and alignment as unsigned.
2221 2019-04-15 Richard Biener <rguenther@suse.de>
2224 * tree-loop-distribution.c (destroy_loop): Preserve correct
2227 2019-04-15 Richard Biener <rguenther@suse.de>
2229 PR tree-optimization/90071
2230 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
2231 abnormal operands from def stmts.
2233 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
2235 PR rtl-optimization/89794
2236 * combine.c (count_auto_inc): New function.
2237 (try_combine): Count how many auto_inc expressions there were in the
2238 original instructions. Ensure we have the same number in the new
2239 instructions. Remove the code that tried to ensure auto_inc side
2240 effects on i1 and i0 are not lost.
2242 2019-04-15 Richard Biener <rguenther@suse.de>
2245 * tree.h (auto_var_p): Declare.
2246 * tree.c (auto_var_p): New function, split out from ...
2247 (auto_var_in_fn_p): ... here.
2248 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
2250 (new_var_info): Initialize it.
2251 (set_uids_in_ptset): Also set the shadow variable uid if required.
2252 (ipa_pta_execute): Postprocess points-to solutions assigning
2253 shadow variable uids for locals that may reach their containing
2254 function recursively.
2255 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
2256 assert but instead check whether the points-to solution is
2259 2019-04-15 Martin Jambor <mjambor@suse.cz>
2262 * cgraph.c (clone_of_p): Loop over clone chain for each step in
2265 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2267 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
2269 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2270 Kito Cheng <kito.cheng@gmail.com>
2271 Shiva Chen <shiva0217@gmail.com>
2273 * config/nds32/nds32-md-auxiliary.c
2274 (nds32_legitimize_pic_address): Use new PIC pattern.
2275 (nds32_legitimize_tls_address): Use new TLS pattern.
2276 (nds32_output_symrel): New.
2277 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
2278 (nds32_alloc_relax_group_id): Ditto.
2279 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
2280 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
2282 (nds32_group_tls_insn): Ditto.
2283 (nds32_group_float_insns): Ditto.
2284 * config/nds32/nds32.md (tls_le): New.
2287 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
2289 * configure: Add nds32 target for dwarf2 debug_line checking.
2290 * configure.ac: Regenerated.
2292 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
2295 * ipa-devirt.c (skip_in_fields_list_p): New.
2296 (odr_types_equivalent_p): Use it.
2298 2019-04-13 Jakub Jelinek <jakub@redhat.com>
2301 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
2302 instead of strncmp when checking for thumb and arm. Formatting fixes.
2304 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
2306 * doc/install.texi: Document --with-target-system-zlib.
2308 2019-04-12 Martin Sebor <msebor@redhat.com>
2314 * targhooks.c (default_vector_alignment): Avoid assuming
2315 argument fits in SHWI.
2316 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
2318 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
2320 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2322 PR rtl-optimization/89965
2323 * dce.c: Include rtl-iter.h.
2324 (struct check_argument_load_data): New type.
2325 (check_argument_load): New function.
2326 (find_call_stack_args): Check for loads from stack slots still tracked
2327 in sp_bytes and punt if any is found.
2329 * config/mips/loongson-mmiintrin.h: Fix up #error message.
2331 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
2333 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
2334 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
2336 2019-04-12 Martin Liska <mliska@suse.cz>
2339 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
2341 (separate_attrs): Handle multiple 'default's.
2342 (expand_target_clones): Rework error handling code.
2344 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
2347 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
2348 mode of vector rather than mode of destination for move instruction.
2349 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
2350 Use QI inner mode with V16QI vector mode.
2352 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2355 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
2356 "invalid %%t operand" in output_operand_lossage message.
2358 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
2360 * config/s390/predicates.md (permute_pattern_operand): New
2362 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
2363 operand for the permute pattern.
2364 ("*vec_perm<mode>"): New insn definition.
2365 ("bswap<mode>"): Generate the permute pattern operand in the
2366 expander and perform the operand reloads for pre arch13 level
2368 ("*bswap<mode>_emu"): Rename to ...
2369 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
2370 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
2371 Add the USE operand for the permute pattern.
2372 ("*vec_set_bswap_vec<mode>"): Likewise.
2374 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2377 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
2378 and gcc_unreachable if it fails, just call tree_to_uhwi which
2379 verifies that too. Test TREE_CHAIN instead of list_length > 1.
2380 Start warning message with a lower-case letter. Formatting fixes.
2382 PR rtl-optimization/90026
2383 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
2384 successors, look for BARRIERs inside of the whole BB_FOOTER chain
2385 rather than just at the start of it. If e->src BB_FOOTER is not NULL
2386 in cfglayout mode, use emit_barrier_after_bb.
2388 2018-04-11 Steve Ellcey <sellcey@marvell.com>
2390 PR rtl-optimization/87763
2391 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
2394 2019-04-11 Tom de Vries <tdevries@suse.de>
2396 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
2397 max macro using statement expression.
2399 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
2401 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
2402 * xcoffout.c (xcoff_private_rodata_section_name): Define.
2403 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
2404 read_only_private_data_section using xcoff_private_rodata_section_name.
2405 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
2407 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
2410 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
2412 2019-04-11 Jakub Jelinek <jakub@redhat.com>
2414 PR rtl-optimization/89965
2415 * dce.c (sp_based_mem_offset): New function.
2416 (find_call_stack_args): Use sp_based_mem_offset.
2418 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
2420 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
2422 2019-04-11 Richard Biener <rguenther@suse.de>
2424 PR tree-optimization/90020
2425 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
2426 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
2427 * tree-ssa-pre.c (compute_avail): Use it to not put
2428 possibly trapping references after a call that might not
2429 return into EXP_GEN.
2430 * gcse.c (compute_hash_table_work): Do not elide
2431 marking a block containing a call if the call might not
2434 2019-04-11 Richard Biener <rguenther@suse.de>
2436 PR tree-optimization/90018
2437 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
2438 Test both SLP and interleaving variants.
2440 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
2442 * config/s390/8561.md: New file.
2443 * config/s390/driver-native.c (s390_host_detect_local_cpu):
2444 Add arch13 cpu model.
2445 * config/s390/s390-opts.h (enum processor_type): Likewise.
2446 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
2447 (s390_get_unit_mask): Likewise.
2448 (s390_is_fpd): Likewise.
2449 (s390_is_fxd): Likewise.
2450 * config/s390/s390.h (s390_tune_attr): Likewise.
2451 * config/s390/s390.md: Include arch13 pipeline description.
2452 * config/s390/s390.opt: Add arch13.
2454 2018-04-10 Steve Ellcey <sellcey@marvell.com>
2456 PR rtl-optimization/87763
2457 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
2459 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
2461 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
2463 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
2464 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
2465 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
2466 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
2468 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
2470 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
2471 "Although" in -fipa-icf documentation.
2473 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
2474 of using multiple -g options.
2476 2019-04-10 Martin Liska <mliska@suse.cz>
2478 PR gcov-profile/89959
2479 * doc/gcov.texi: Make documentation of -x option
2482 2019-04-10 Richard Biener <rguenther@suse.de>
2484 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
2486 (DR_GROUP_SAME_DR_STMT): Remove.
2487 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
2488 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
2489 replace with assert.
2490 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
2491 (vect_record_grouped_load_vectors): Remove unreachable code.
2493 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
2496 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
2497 obsolete reference to N.
2499 2019-04-10 Jakub Jelinek <jakub@redhat.com>
2502 * expr.c (store_expr): Set properly size on the MEM passed to
2506 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
2507 with strlen in between hostsz-3 and hostsz-1 inclusive when no
2508 translation is needed, and when translation is needed, only append
2509 ... if the string length is hostsz or more bytes long. Avoid using
2512 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
2515 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
2516 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
2518 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
2519 differences directly.
2520 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
2522 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2524 PR translation/90011
2525 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2527 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
2529 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
2530 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
2531 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
2532 trailing space from -gsplit-dwarf diagnostics.
2534 PR tree-optimization/89998
2535 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
2536 instead of integer_type_node if possible, don't add ranges if return
2537 type is not compatible with int.
2538 * gimple-fold.c (gimple_fold_builtin_sprintf,
2539 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
2542 2019-04-09 Martin Liska <mliska@suse.cz>
2544 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
2545 * doc/install.texi: Document the new config.
2547 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
2549 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
2550 use gimple_expr_type for load and store calls. Skip over the
2551 condition argument in a conditional internal function.
2552 Protect use of TREE_INT_CST_LOW.
2554 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2557 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
2558 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
2559 trailing period from it too.
2561 2019-04-08 wu yuan <wuyuan5@huawei.com>
2563 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
2564 * config/aarch64/aarch64.md : Add "tsv110.md"
2565 * config/aarch64/tsv110.md: New file.
2567 2019-04-08 Richard Biener <rguenther@suse.de>
2569 PR tree-optimization/90006
2570 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
2573 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
2576 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
2578 (fma_root_node): Likewise.
2579 (func_fma_steering): Likewise.
2581 2019-04-08 Jakub Jelinek <jakub@redhat.com>
2583 PR rtl-optimization/89865
2584 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
2586 PR rtl-optimization/89865
2587 * config/i386/i386.md
2588 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
2589 numbers not to clash with the additional operands[4].
2590 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
2591 with extra register copy in the middle.
2593 2019-04-08 Martin Liska <mliska@suse.cz>
2595 PR gcov-profile/89961
2596 * doc/gcov.texi: Document data_file.
2597 * gcov.c (generate_results): Add data_info into JSON output.
2599 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
2601 PR tree-optimization/89725
2602 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
2603 loop's chrec as invariant symbol.
2604 * tree-chrec.h (chrec_contains_symbols): New parameter.
2605 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
2606 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
2607 function of loops not in DDR's loop_nest.
2608 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
2610 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
2613 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
2616 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
2619 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
2620 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
2622 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
2624 * sched-deps.c (sched_macro_fuse_insns): Check return value of
2625 targetm.fixed_condition_code_regs.
2627 2019-04-05 Richard Biener <rguenther@suse.de>
2631 * tree-cfgcleanup.c (remove_forwarder_block): Always move
2632 debug bind stmts but reset them if they are not valid at the
2635 2019-04-05 Martin Liska <mliska@suse.cz>
2637 PR translation/89936
2638 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
2639 order to wrap keywords or arguments.
2640 * collect2.c (main): Likewise.
2641 (scan_prog_file): Likewise.
2642 (scan_libraries): Likewise.
2643 * common/config/riscv/riscv-common.c
2644 (riscv_subset_list::parsing_subset_version): Likewise.
2645 (riscv_subset_list::parse_std_ext): Likewise.
2646 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2648 * config/arm/arm.c (arm_option_override): Likewise.
2649 * config/cris/cris.c (cris_print_operand): Likewise.
2650 * config/darwin-c.c (darwin_pragma_options): Likewise.
2651 (darwin_pragma_unused): Likewise.
2652 (darwin_pragma_ms_struct): Likewise.
2653 * config/ft32/ft32.c (ft32_print_operand): Likewise.
2654 * config/i386/i386.c (print_reg): Likewise.
2655 (ix86_print_operand): Likewise.
2656 * config/i386/xm-djgpp.h: Likewise.
2657 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
2658 * config/m32c/m32c.c (m32c_option_override): Likewise.
2659 * config/msp430/msp430.c (msp430_option_override): Likewise.
2660 * config/nds32/nds32.c (nds32_option_override): Likewise.
2661 * config/nvptx/mkoffload.c (main): Likewise.
2662 * config/rx/rx.c (rx_print_operand): Likewise.
2663 (valid_psw_flag): Likewise.
2664 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
2665 (vms_pragma_nomember_alignment): Likewise.
2666 (vms_pragma_extern_model): Likewise.
2667 * lto-wrapper.c (compile_offload_image): Likewise.
2668 * omp-offload.c (oacc_parse_default_dims): Likewise.
2669 * symtab.c (symtab_node::verify_base): Likewise.
2670 * tlink.c (recompile_files): Likewise.
2671 (start_tweaking): Likewise.
2672 * tree-profile.c (parse_profile_filter): Likewise.
2674 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
2676 PR tree-optimization/89956
2677 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
2678 multiple negates of the same value.
2680 2019-04-04 Martin Sebor <msebor@redhat.com>
2684 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
2685 have the same precision since the function crashes otherwise.
2686 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
2687 has non-zero arguments.
2689 2019-04-04 Martin Sebor <msebor@redhat.com>
2692 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
2693 out if the number of arguments is less than expected.
2695 2019-04-04 Jeff Law <law@redhat.com>
2697 PR rtl-optimization/89399
2698 * ree.c (combine_set_extension): Use single_set rather than
2699 digging into PATTERN for items on the candidate list.
2700 (combine_reaching_defs): Likewise.
2702 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
2704 PR rtl-optimization/46590
2705 * loop-invariant.c (find_defs): Move df_remove_problem and
2706 df_process_deferred_rescans to move_invariants.
2707 Move df_live_add_problem and df_live_set_all_dirty calls
2709 (move_invariants): Likewise.
2710 (move_loop_invariants): Likewise, making the df_live calls
2711 conditional on -O. Remove the problem again if we added it
2714 2019-04-03 qing zhao <qing.zhao@oracle.com>
2716 PR tree-optimization/89730
2717 * ipa-inline.c (can_inline_edge_p): Delete the checking for
2718 -flive-patching=inline-only-static.
2719 (can_inline_edge_by_limits_p): Add the checking for
2720 -flive-patching=inline-only-static and grant always_inline
2721 even when -flive-patching=inline-only-static is specified.
2723 2019-04-03 Jeff Law <law@redhat.com>
2725 PR rtl-optimization/81025
2726 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
2728 2019-04-03 Richard Biener <rguenther@suse.de>
2730 PR tree-optimization/84101
2731 * tree-vect-stmts.c: Include explow.h for hard_function_value,
2732 regs.h for hard_regno_nregs.
2733 (cfun_returns): New helper.
2734 (vect_model_store_cost): When vectorizing a store to a decl
2735 we return and the function ABI returns in a multi-reg location
2736 account for the possible spilling that will happen.
2738 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
2740 * config/s390/s390.c (s390_legitimate_address_p): Reject long
2741 displacement addresses for vector mode operands.
2743 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
2745 * config/arc/arc.c (GMASK_LEN): Define.
2746 (arc_restore_callee_saves): Restore first blink when
2749 2019-04-03 Sudakshina Das <sudi.das@arm.com>
2751 * doc/extend.texi: Add deprecated comment on sign-return-address
2752 function attribute and add mbranch-protection.
2753 * doc/invoke.texi: Add bti to the options for mbranch-protection.
2755 2019-04-03 Richard Biener <rguenther@suse.de>
2758 * lto-wrapper.c (run_gcc): Avoid implicit rules making
2759 the all target phony.
2761 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
2765 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
2766 Return false for variable DImode shifts.
2767 (dimode_scalar_chain::compute_convert_gain): Do not handle
2768 register count operand in variable DImode shifts.
2769 (dimode_scalar_chain::make_vector_copies): Remove support to copy
2770 count argument of a variable shift instruction to a vector register.
2771 (dimode_scalar_chain::convert_reg): Remove support to convert
2772 count argument of a variable shift instruction.
2774 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
2776 PR rtl-optimization/84206
2777 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
2778 iterating over loop headers.
2780 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
2782 PR rtl-optimization/85876
2783 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
2784 beyond the original fence.
2786 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
2788 * config.gcc: Mark spu* targets as deprecated/obsolete.
2790 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2792 * config/s390/s390-builtin-types.def: New builtin function type
2793 definitions. Remove unused types.
2794 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
2795 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
2796 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
2797 overloaded builtins.
2798 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
2799 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
2800 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
2801 (vec_double, vec_signed, vec_unsigned): Define to use the new
2802 overloaded builtins.
2803 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
2806 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2808 * config/s390/s390-builtin-types.def: New builtin function type
2810 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
2811 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
2812 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
2813 (s390_vstrszh, s390_vstrszf): New low-level builtins.
2814 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
2815 constant definitions.
2816 * config/s390/vecintrin.h (vec_search_string_cc)
2817 (vec_search_string_until_zero_cc): New builtin name definitions.
2818 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
2820 ("vec_vstrs<mode>"): New insn definition.
2822 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2824 * config/s390/s390-builtin-types.def: Add new builtin function
2826 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
2827 New overloaded builtins.
2828 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
2830 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
2831 (UNSPEC_VEC_SLDBYTE): ... this.
2832 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
2833 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
2835 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
2836 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
2837 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
2839 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2841 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
2842 New insn definition.
2843 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
2844 * config/s390/vector.md (V_HW_HSD): ... here.
2846 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2848 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
2849 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
2850 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
2851 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
2852 New insn definitions.
2854 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2856 * config/s390/s390-builtin-types.def: Add new builtin function type.
2857 * config/s390/s390-builtins.def: Add overloaded builtin
2858 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
2859 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
2860 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
2861 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
2862 ("eltswap<mode>"): New expander.
2863 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
2866 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2868 * config/s390/s390-builtin-types.def: Add new builtin function types.
2869 * config/s390/s390-builtins.def: Add overloaded builtin
2870 s390_vec_revb. Add low-level builtins for vlbr and vstbr
2872 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
2873 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
2874 ("bswap<mode>"): New expander.
2875 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
2877 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2879 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
2880 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
2881 vector builtin version number in __VEC__.
2883 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2885 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
2887 (SFSI): New mode attribute.
2888 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
2889 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
2891 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
2892 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
2893 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
2894 ("floatsi<mode>2"): Add wcefb instruction.
2896 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2898 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
2899 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
2901 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
2902 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
2903 support 32 bit fp-int conversions. Rename to ...
2904 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
2905 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
2906 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
2907 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
2910 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2912 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
2913 if-then-else constructs if we can use the select instruction.
2914 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
2916 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2918 * config/s390/s390.md ("*popcountdi_arch13_cc")
2919 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
2921 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
2922 Append _z196 to make it ...
2923 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
2924 ("popcounthi2_z196"): ... this.
2925 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
2926 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
2928 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2930 * config/s390/s390.c (s390_canonicalize_comparison): Convert
2931 certain compares for arch13 in order to make use of the condition
2932 code result produced by the new instructions.
2933 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
2934 nxrk, and nxgrk instruction patterns.
2935 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
2936 (inv_no): Add new code iterator together with some attributes.
2937 ("*andc_split_<mode>"): Disable splitter for arch13.
2938 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
2939 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
2940 ("*<ANDOR:bitops_name>c<GPR:mode>")
2941 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
2942 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
2943 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
2944 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
2946 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2948 * common/config/s390/s390-common.c (processor_flags_table): New
2950 * config.gcc: Support arch13 with the --with-arch= configure flag.
2951 * config/s390/driver-native.c (s390_host_detect_local_cpu):
2952 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
2953 * config/s390/s390.c (s390_get_sched_attrmask)
2954 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
2955 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
2956 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
2957 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
2958 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
2960 * config/s390/s390.opt: Support arch13 as processor type in
2961 command line options.
2963 2019-04-02 Martin Liska <mliska@suse.cz>
2965 PR translation/89912
2966 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
2967 Fix param description of graphite-max-arrays-per-scop.
2969 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
2971 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
2972 (ASAN_CC1_SPEC): Use it in 64-bit mode.
2973 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
2975 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2977 PR rtl-optimization/85412
2978 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
2979 sel_sched_region_1, not after.
2981 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2983 PR rtl-optimization/86928
2984 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
2985 compute_live if necessary.
2986 (sel_redirect_edge_and_branch): Likewise.
2988 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
2990 PR rtl-optimization/89865
2991 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
2992 register if it is a part of small class.
2994 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2996 PR rtl-optimization/87273
2997 * sel-sched-ir.c (merge_fences): Remove assert.
2999 2019-04-01 Richard Biener <rguenther@suse.de>
3001 PR tree-optimization/46590
3002 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
3003 (dom_walker::m_reachability): Add in place of...
3004 (dom_walker::m_skip_unreachable_blocks): ...this.
3005 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
3006 Move complex initialization ...
3007 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
3008 lazily and initialize edge flags on each invocation.
3009 (dom_walker::bb_reachable): Use m_reachability.
3011 2019-04-01 Martin Liska <mliska@suse.cz>
3014 * opt-suggestions.c (option_proposer::build_option_suggestions):
3015 Add variant without any argument in order to provide better
3018 2019-04-01 Richard Biener <rguenther@suse.de>
3021 * gimple.c: Include langhooks.h.
3022 (gimple_get_alias_set): Treat enumeral types as the underlying
3025 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
3026 Eric Botcazou <ebotcazou@adacore.com>
3028 PR rtl-optimization/89862
3029 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
3030 that operates on the full registers for WORD_REGISTER_OPERATIONS
3033 2019-03-29 Jim Wilson <jimw@sifive.com>
3035 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
3036 Clear MASK_RVC and then set if C subset supported.
3038 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3041 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
3042 non-addressable complit into its initializer if it is volatile.
3044 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
3046 * opts-common.c (integral_argument): Set errno properly in one case.
3048 2019-03-29 Martin Liska <mliska@suse.cz>
3050 * doc/invoke.texi: Remove -Wchkp from documentation.
3052 2019-03-29 Martin Liska <mliska@suse.cz>
3054 * dbgcnt.c (print_limit_reach): New function.
3057 2019-03-29 Martin Liska <mliska@suse.cz>
3059 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
3060 (dbg_cnt_process_opt): Parse first tokens aas
3061 dbg_cnt_process_single_pair is also using strtok.
3063 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3065 PR rtl-optimization/87485
3066 * function.c (expand_function_end): Move stack_protect_epilogue
3067 before loading of return value into hard register(s).
3069 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3072 * tree-inline.h (struct copy_body_data): Add
3073 dont_remap_vla_if_no_change flag.
3074 * tree-inline.c (remap_type_3, remap_type_2): New functions.
3075 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
3076 and remap_type_2 returns false.
3077 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
3078 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
3079 only from where it is copied to nested contexts.
3081 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3084 * config/i386/i386.md (RMW operation with LEA peephole):
3085 Use LEAMODE mode attribute instead of SWI mode iterator for
3088 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3091 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3092 Also process XEXP (src, 0) of a shift insn.
3094 2019-03-28 David Malcolm <dmalcolm@redhat.com>
3097 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
3098 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
3100 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3102 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
3104 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
3105 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
3106 immediately after first one with df_analyze in between, but rather
3107 process all bbs, queueing ones that need second pass in a worklist,
3108 df_analyze, process queued debug insn changes and if second pass is
3109 needed, process bbs from worklist, df_analyze, process queued debug
3112 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
3113 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
3114 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
3116 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
3119 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
3122 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
3125 * config/i386/i386.c (ix86_function_value_1): Call the newly added
3126 function for 32-bit MS_ABI.
3127 (function_value_ms_32): New function.
3129 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
3131 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
3132 (movdi): Call gen_movdi_symbol_save_scc.
3133 (gen_movdi_symbol_save_scc): New insn and split.
3135 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
3137 PR rtl-optimization/89313
3138 * function.c (matching_constraint_num): New static function.
3139 (match_asm_constraints_1): Use it. Fixup white space and comment.
3140 Don't replace inputs with non-matching constraints which conflict
3141 with early clobber outputs.
3143 2019-03-27 Jeff Law <law@redhat.com>
3146 PR rtl-optimization/87761
3147 PR rtl-optimization/89826
3148 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
3150 (pass_cprop_hardreg::execute): Call df_analyze after adding the
3151 note problem to get REG_DEAD/REG_UNUSED notes updated.
3153 2019-03-27 Richard Biener <rguenther@suse.de>
3155 PR tree-optimization/89463
3156 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
3157 queue edges to remove.
3158 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
3159 dead stmts. Delay edge removal until PHIs are removed to
3160 make debug-stmt creation not confused by seemingly degenerate
3163 2019-03-27 Alan Modra <amodra@gmail.com>
3165 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
3167 * config/rs6000/darwin.h: Likewise.
3168 * config/rs6000/rs6000.c: Likewise.
3170 2019-03-27 Alan Modra <amodra@gmail.com>
3172 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
3173 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
3175 2019-03-26 Andrew Waterman <andrew@sifive.com>
3176 Jim Wilson <jimw@sifive.com>
3178 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
3179 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
3180 (generic_idivdi, generic_fmul_single, generic_fmul_double)
3181 (generic_fdiv, generic_fsqrt): Add check for generic tune.
3182 (generic_alu): Add auipc to type list.
3183 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
3184 (riscv_microarchitecture): Declare.
3185 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
3186 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
3188 (riscv_microarchitecture): New.
3189 (sifive_7_tune_info): New.
3190 (riscv_cpu_info_table): Add microarchitecture value for rocket and
3191 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
3193 (riscv_store_data_bypass_p): New.
3194 (riscv_option_override): Set riscv_microarchitecture from
3195 cpu->microarchitecture.
3196 * config/riscv/riscv.md: Include sifive-7.md.
3199 (auipc<mode>): Change type to auipc.
3200 (restore_stack_nonlocal): New.
3201 * config/riscv/sifive-7.md: New.
3202 * doc/invoke.texi (RISC-V Options): Update mtune docs.
3204 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
3207 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3208 Also process XEXP (src, 0) of a shift insn.
3210 2019-03-26 Richard Biener <rguenther@suse.de>
3212 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
3213 (copy_debug_stmt): Likewise.
3214 (expand_call_inline): Likewise.
3215 (copy_bb): Avoid redundant lookup & set of gimple_block.
3216 * gimple-low.c (lower_gimple_return): Likewise.
3217 (lower_builtin_setjmp): Likewise.
3219 2019-03-26 Jakub Jelinek <jakub@redhat.com>
3221 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
3222 is constant 0, turn into static const data member initialized to false.
3223 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
3224 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
3226 2019-03-26 Jason Merrill <jason@redhat.com>
3227 Jakub Jelinek <jakub@redhat.com>
3229 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
3231 (mem_alloc_description::release_object_overhead): Fix comment typos.
3232 * hash-table.h (hash_table::~hash_table): Call
3233 release_instance_overhead only if m_entries is non-NULL, otherwise
3234 call unregister_descriptor.
3236 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
3238 PR tree-optimization/81740
3239 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3240 In case of outer loop vectorization, check for backward dependence
3241 at the inner loop if outer loop dependence is reversed.
3243 2019-03-26 Alan Modra <amodra@gmail.com>
3245 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
3246 rs6000_vector_mem init. Correct wI and wJ comment.
3248 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
3250 PR rtl-optimization/88347
3251 PR rtl-optimization/88423
3252 * sched-deps.c (sched_analyze_insn): Take into account that for
3253 tablejumps the barrier appears after a label and a jump_table_data.
3255 2019-03-25 Martin Sebor <msebor@redhat.com>
3258 * c-common.c (check_user_alignment): Rename local. Correct maximum
3259 alignment in diagnostic. Avoid assuming argument fits in SHWI,
3260 convert it to UHWI when it fits.
3262 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
3265 * dwarf2out.c (premark_used_variables): New function.
3266 (prune_unused_types_walk): Do not mark not premarked external
3268 (prune_unused_types): Call premark_used_variables.
3270 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
3272 PR rtl-optimization/89676
3273 * lra-constraints.c (curr_insn_transform): Do match reload for
3274 early clobbers when the match was successful only for different
3277 2019-03-25 Martin Sebor <msebor@redhat.com>
3279 * doc/extend.texi (Common Type Attributes): Document vector_size.
3280 (Common Variable Attributes): Mention size constraint. Correct
3282 (Vector Extensions): Use @dfn when defining bas type. Clarify
3283 base type and size constraints.
3285 2019-03-25 Richard Biener <rguenther@suse.de>
3287 PR tree-optimization/89789
3288 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
3289 changes from non-undefined back to undefined.
3291 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
3293 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
3294 heap string and a gc string, but since this variable is unknown to
3295 ggc the gc string might get reused and corrupted. Fixed by always
3296 using a heap string.
3298 2019-03-25 Richard Biener <rguenther@suse.de>
3300 PR tree-optimization/89779
3301 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
3302 to remove IV defs, delay actual removal.
3303 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
3304 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
3305 very end, properly also reset loop control IV information.
3307 2019-03-25 Richard Biener <rguenther@suse.de>
3309 PR tree-optimization/89802
3310 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
3311 move EH data to folded stmt.
3313 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3315 * config/s390/s390-builtin-types.def: Remove few unused types and
3316 fix sort order for others.
3318 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3320 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
3321 expected and found types with -mdebug during builtin matching.
3323 2019-03-25 Richard Biener <rguenther@suse.de>
3326 * fold-const.c (operand_equal_p): Revert last change with
3329 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
3331 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
3332 notes for the result of the __tls_get_addr calls.
3333 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
3335 2019-03-24 Jeff Law <law@redhat.com>
3337 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
3339 PR rtl-optimization/87761
3340 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
3341 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
3343 (pass_cprop_hardreg::execute): Add df note problem and defer insn
3344 rescans. Reprocess blocks as needed, calling df_analyze before
3345 reprocessing. Always call df_analyze before fixing up debug bind
3348 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
3350 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
3353 2019-03-22 Andrew Pinski <apinski@marvell.com>
3355 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
3356 attrribute for uxtw.
3358 2019-03-26 Jeff Law <law@redhat.com>
3360 PR rtl-optimization/87761
3361 * config/mips/mips-protos.h (mips_split_move): Add new argument.
3362 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
3363 (mips_split_move): Accept new INSN argument. Try to forward SRC
3364 into the next instruction.
3365 (mips_split_move_insn): Pass INSN through to mips_split_move.
3367 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
3369 PR rtl-optimization/89676
3370 * lra-constraints.c (curr_insn_transform): Do match reload for
3371 early clobbers even if the match was successful.
3373 2019-03-22 Jakub Jelinek <jakub@redhat.com>
3376 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
3378 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
3380 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
3382 2019-03-22 Jakub Jelinek <jakub@redhat.com>
3384 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
3385 <avx512>_fmsub_<mode>_mask3<round_name>,
3386 <avx512>_fnmadd_<mode>_mask3<round_name>,
3387 <avx512>_fnmsub_<mode>_mask3<round_name>,
3388 avx512f_vmfmadd_<mode>_mask3<round_name>,
3389 avx512f_vmfmsub_<mode>_mask3<round_name>,
3390 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
3391 instead of register_operand and %v instead of v for match_operand 1.
3392 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
3393 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
3394 <round_nimm_predicate> instead of register_operand and %v instead of v
3395 for match_operand 1.
3397 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
3398 <avx512>_fmadd_<mode>_mask3<round_name>,
3399 <avx512>_fmsub_<mode>_mask<round_name>,
3400 <avx512>_fmsub_<mode>_mask3<round_name>,
3401 <avx512>_fnmadd_<mode>_mask<round_name>,
3402 <avx512>_fnmadd_<mode>_mask3<round_name>,
3403 <avx512>_fnmsub_<mode>_mask<round_name>,
3404 <avx512>_fnmsub_<mode>_mask3<round_name>,
3405 <avx512>_fmaddsub_<mode>_mask<round_name>,
3406 <avx512>_fmaddsub_<mode>_mask3<round_name>,
3407 <avx512>_fmsubadd_<mode>_mask<round_name>,
3408 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
3409 <round_nimm_predicate> instead of nonimmediate_operand.
3410 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
3411 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
3412 Use register_operand instead of <round_nimm_predicate> for the
3413 operand that needs to match output.
3414 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
3415 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
3416 Likewise. Formatting fixes.
3419 * config/i386/i386.c (enum ix86_builtins): Remove
3420 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
3421 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
3422 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
3423 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
3424 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
3425 __builtin_ia32_vfmsubss3_mask3): New builtins.
3426 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
3427 avx512f_vmfmadd_<mode>_mask3<round_name>,
3428 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
3429 *avx512f_vmfmsub_<mode>_mask<round_name>,
3430 avx512f_vmfmsub_<mode>_mask3<round_name>,
3431 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
3432 *avx512f_vmfnmadd_<mode>_mask<round_name>,
3433 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
3434 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
3435 *avx512f_vmfnmsub_<mode>_mask<round_name>,
3436 avx512f_vmfnmsub_<mode>_mask3<round_name>,
3437 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
3438 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
3439 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
3440 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
3441 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
3442 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
3443 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
3444 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
3445 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
3446 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
3447 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
3448 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
3449 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
3450 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
3451 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
3452 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
3453 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
3454 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
3455 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
3456 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
3457 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
3458 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
3460 2019-03-21 Martin Sebor <msebor@redhat.com>
3462 PR tree-optimization/89350
3463 * builtins.c (compute_objsize): Also ignore offsets whose upper
3465 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
3466 (builtin_memref::builtin_memref): Initialize new member.
3467 Allow EXPR to be null.
3468 (builtin_memref::extend_offset_range): Replace local with a member.
3469 Avoid assuming pointer offsets are unsigned.
3470 (builtin_memref::set_base_and_offset): Determine base object
3471 before computing offset range.
3472 (builtin_access::builtin_access): Handle memset.
3473 (builtin_access::generic_overlap): Replace local with a member.
3474 (builtin_access::strcat_overlap): Same.
3475 (builtin_access::overlap): Same.
3476 (maybe_diag_overlap): Same.
3477 (maybe_diag_access_bounds): Same.
3478 (wrestrict_dom_walker::check_call): Handle memset.
3479 (check_bounds_or_overlap): Same.
3481 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
3482 Jakub Jelinek <jakub@redhat.com>
3485 * tree.c (fld_type_variant, fld_incomplete_type_of,
3486 fld_process_array_type): Call fld->pset.add and don't call
3487 add_tree_to_fld_list if it returns true.
3488 (free_lang_data_in_type): Similarly with self-recursive call. Purge
3489 non-marked types from TYPE_NEXT_VARIANT list.
3490 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
3492 2019-03-21 Jakub Jelinek <jakub@redhat.com>
3494 * hash-table.h (hash_table): Add Lazy template parameter defaulted
3495 to false, if true, don't alloc_entries during construction, but defer
3496 it to the first method that needs m_entries allocated.
3497 (hash_table::hash_table, hash_table::~hash_table,
3498 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
3499 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
3500 hash_table::clear_slot, hash_table::traverse_noresize,
3501 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
3502 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
3504 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
3505 NO_INSERT instead of find_with_hash.
3506 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
3507 hash_set::m_table): Add Lazy to template params of hash_table.
3508 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
3509 * attribs.c (test_attribute_exclusions): Likewise.
3510 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
3511 hash_set. Add tests for hash_set with Lazy = true.
3513 2019-03-21 Richard Biener <rguenther@suse.de>
3515 PR tree-optimization/89779
3516 * tree.c (tree_nop_conversion): Consolidate and fix defensive
3517 checks with respect to released SSA names now having error_mark_node
3519 * fold-const.c (operand_equal_p): Likewise.
3521 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
3524 * config/s390/s390.c (global_not_special_regno_p): Move to make it
3526 (s390_optimize_register_info): Use global_not_special_regno_p to
3527 check for global regs.
3529 2019-03-20 Jakub Jelinek <jakub@redhat.com>
3532 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
3533 update this_alternative nor this_alternative_set.
3535 2019-03-19 Jim Wilson <jimw@sifive.com>
3538 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
3539 align, size, offset. Use them to handle a BLKmode reference. Update
3541 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
3543 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3545 PR rtl-optimization/89768
3546 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
3548 (unroll_loop_runtime_iterations): Likewise.
3550 2019-03-19 Martin Sebor <msebor@redhat.com>
3552 PR tree-optimization/89644
3553 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
3554 rather than endptr as an indicator of nul-termination.
3556 PR tree-optimization/89644
3557 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
3558 arrays in determining sequence sizes in strncpy and stpncpy.
3560 2019-03-19 Martin Liska <mliska@suse.cz>
3563 * predict.c (combine_predictions_for_bb): Empty likely_edges and
3564 unlikely_edges if there's an edge that belongs to both these sets.
3566 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
3569 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
3570 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
3571 go via a stack temporary.
3573 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3576 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
3577 instead of gen_rtx_SUBREG.
3578 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
3580 2019-03-19 Richard Biener <rguenther@suse.de>
3583 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
3585 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
3589 * tree.c (free_lang_data_in_decl): Do not free context of C++
3592 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3595 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
3596 subs for the first alternative except when operands[3] is 1.
3599 * gimplify.c (gimplify_asm_expr): For output argument with
3600 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
3603 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
3605 PR rtl-optimization/89753
3606 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
3607 explicit unrolling factor even more robust.
3609 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3612 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
3613 compensation use x2 += 1 instead of x2 -= -1 and when honoring
3614 signed zeros, do another copysign after the compensation.
3616 2019-03-18 Martin Sebor <msebor@redhat.com>
3618 PR tree-optimization/89720
3619 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
3620 more conservatively, the same as anti-range.
3622 2019-03-18 Richard Biener <rguenther@suse.de>
3625 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
3626 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
3627 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
3628 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
3630 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
3632 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
3633 Extend queue to 1024 entries.
3634 Add "consumed" field.
3635 (gomp_print_output): Remove print_index parameter.
3636 Add final parameter.
3637 Change limit to unsigned.
3638 Use consumed field to implement circular buffer.
3639 Detect interrupted print in final pass.
3640 Flush output at the end.
3641 (run): Update gomp_print_output usage.
3642 (main): Initialize kernargs->output_data.consumed.
3644 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
3646 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
3647 calculation of the minimum number of scalar iterations for
3648 fully-predicated loops.
3650 2019-03-18 Martin Jambor <mjambor@suse.cz>
3652 PR tree-optimization/89546
3653 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
3654 any propagation to its children took place.
3656 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3659 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
3660 parameter, and make use of it.
3661 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
3663 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3665 * config/arc/arc.opt (mcode-density-frame): Get the inital value
3666 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
3667 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
3668 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
3669 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
3670 match what the ops is doing.
3671 (push_multi_fp_blink): Likewise.
3672 * config/arc/arc.c (arc_override_options): Enable enter/leave when
3673 compiling for size and elf target.
3674 (arc_save_callee_enter): Adjust note to match what enter/leave
3677 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3679 * config/arc/arc.md (tst_movb): Fix constraint.
3681 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3683 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3685 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3687 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
3688 * config/arc/arc.c (arc_conditional_register_usage): Remove all
3689 reg_alloc_order references.
3690 (size_alloc_order): Define.
3691 (arc_adjust_reg_alloc_order): New function.
3692 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
3694 (ADJUST_REG_ALLOC_ORDER): Define.
3695 (HONOR_REG_ALLOC_ORDER): Likewise.
3697 2019-03-18 Richard Biener <rguenther@suse.de>
3700 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
3701 loads and stores a bit more.
3703 2019-03-18 Richard Biener <rguenther@suse.de>
3706 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
3707 load pessimization to stores as well.
3709 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
3712 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
3713 successor, use NULL as its av set.
3715 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3717 PR rtl-optimization/89721
3718 * lra-constraints (invariant_p): Return false if side_effects_p holds.
3720 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
3723 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3724 When handling vec_extract, use modular arithmetic to allow
3725 constant selectors greater than vector length.
3726 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
3727 V1TImode vectors to have constant selector values greater than 0.
3728 Use modular arithmetic to compute vector index.
3729 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
3730 index for in-memory vectors. Correct code generation for
3731 in-register vectors.
3732 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
3735 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
3739 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
3742 2019-03-15 Jakub Jelinek <jakub@redhat.com>
3745 * tree.c (inchash::add_expr): Strip any location wrappers.
3746 * fold-const.c (operand_equal_p): Move stripping of location wrapper
3747 after hash verification.
3750 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
3751 SIGN_EXTEND and ZERO_EXTEND.
3753 2019-03-14 Jason Merrill <jason@redhat.com>
3754 Jakub Jelinek <jakub@redhat.com>
3756 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
3757 than if is_empty (*slot).
3758 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
3759 existing elt and for elt removal.
3760 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
3761 of already removed elt.
3763 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
3766 * config/i386/i386.c (remove_partial_avx_dependency): Handle
3769 2019-03-14 Martin Liska <mliska@suse.cz>
3772 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
3774 2019-03-14 Richard Biener <rguenther@suse.de>
3777 * config/i386/i386.c (make_resolver_func): Properly set
3778 DECL_CONTEXT on the RESULT_DECL.
3779 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
3781 2019-03-14 Richard Biener <rguenther@suse.de>
3783 * gimple-pretty-print.c: Include cfgloop.h.
3784 (dump_gimple_phi): Adjust.
3785 (dump_gimple_bb_header): Dump loop header for GIMPLE.
3786 (pp_cfg_jump): Adjust.
3787 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
3788 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
3789 (lower_phi_internal_fn): Remove.
3790 (verify_gimple_call): Remove IFN_PHI special-casing.
3791 (dump_function_to_file): Dump IL state.
3792 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
3793 done to deal with PHI nodes being present in non-SSA state.
3795 2019-03-14 Jakub Jelinek <jakub@redhat.com>
3798 * multiple_target.c (create_dispatcher_calls): Change
3799 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
3800 In the node->iterate_referring loop, push *ref rather than ref, call
3801 ref->remove_reference () and always pass 0 to iterate_referring.
3803 PR rtl-optimization/89679
3804 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
3805 would contain a paradoxical SUBREG.
3807 2019-03-14 Richard Biener <rguenther@suse.de>
3809 PR tree-optimization/89710
3810 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
3813 2019-03-14 Martin Liska <mliska@suse.cz>
3815 * coverage.c (coverage_begin_function): Stream also
3817 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
3818 documentation about function declaration location.
3819 * gcov-dump.c (tag_function): Print whole range
3820 of function declaration.
3821 * gcov.c (struct function_info): Add end_column field.
3822 (function_info::function_info): Initialize it.
3823 (output_json_intermediate_file): Output {start,end}_column
3825 (read_graph_file): Read end_column.
3827 2019-03-14 Richard Biener <rguenther@suse.de>
3830 * fold-const.c (operand_equal_p): For INDIRECT_REF check
3831 that the access types are similar.
3833 2019-03-14 Jakub Jelinek <jakub@redhat.com>
3835 PR tree-optimization/89703
3836 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
3837 aren't compatible also with builtin_decl_explicit. Check pure
3838 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
3839 and BUILT_IN_STPNCPY{,_CHK}.
3841 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
3844 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
3845 addr32 prefix to VSIB address for X32.
3846 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
3848 (*avx512pf_gatherpf<mode>df_mask): Likewise.
3849 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
3850 (*avx512pf_scatterpf<mode>df_mask): Likewise.
3851 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
3852 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
3853 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
3854 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
3855 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
3856 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
3857 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
3858 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
3859 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
3860 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
3861 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
3862 (*avx512f_scatterdi<mode>): Likewise.
3864 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
3867 * lra-constraints.c (inherit_in_ebb): Update
3868 potential_reload_hard_regs along with live_hard_regs.
3870 2019-03-13 Jakub Jelinek <jakub@redhat.com>
3873 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
3875 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
3877 2019-03-13 Martin Sebor <msebor@redhat.com>
3879 PR tree-optimization/89662
3880 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
3883 2019-03-13 Richard Biener <rguenther@suse.de>
3886 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
3887 throw FP expressions at tree-affine.
3889 2019-03-14 Richard Biener <rguenther@suse.de>
3891 * tree-pretty-print.c (dump_generic_node): For -gimple properly
3892 dump negative integer constants using _Literal (type) -num.
3894 2019-03-13 Jakub Jelinek <jakub@redhat.com>
3896 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
3897 nonlocal_value member.
3900 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
3901 (ipa_simd_modify_function_body): Handle PHIs.
3903 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3905 * config/s390/s390.c (s390_option_override_internal): Use more
3906 aggressive inlining parameters.
3908 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3910 * config/s390/3906.md: New file.
3911 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
3912 (LONGRUNNING_THRESHOLD): Remove.
3913 (MAX_SCHED_MIX_SCORE): Decrease.
3914 (MAX_SCHED_MIX_DISTANCE): Decrease.
3915 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
3916 (struct s390_sched_state): New struct to hold scheduling state.
3917 (S390_SCHED_STATE_NORMAL): Remove.
3918 (S390_SCHED_STATE_CRACKED): Remove.
3919 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
3920 (s390_get_sched_attrmask): Use new attribute.
3921 (s390_get_unit_mask): Use new units.
3922 (s390_is_fpd): New function.
3923 (s390_is_fxd): New function.
3924 (s390_is_longrunning): New function.
3925 (s390_sched_score): Use new functions.
3926 (s390_sched_reorder): Likewise.
3927 (s390_sched_variable_issue): Rework and use new functions.
3928 (s390_sched_init): Use new functions.
3929 * config/s390/s390.h (s390_tune_attr): Add z14.
3930 * config/s390/s390.md: Add z14.
3932 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3934 * config/s390/2964.md: Update pipeline description.
3935 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
3936 (LONGRUNNING_THRESHOLD): Remove.
3937 (LATENCY_FACTOR): Remove.
3938 (s390_get_unit_mask): Add unit.
3939 (s390_sched_score): Use fxd/fpd.
3940 (s390_sched_variable_issue): Use fxd/fpd.
3942 2019-03-12 Martin Liska <mliska@suse.cz>
3944 * config/i386/i386.c: Reword an error message.
3946 2019-03-12 Martin Jambor <mjambor@suse.cz>
3948 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
3949 terminate with newline.
3951 2019-03-12 Jakub Jelinek <jakub@redhat.com>
3954 * config/s390/s390.md (tabort): Use %wd instead of
3955 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
3956 letters and periods.
3957 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
3958 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
3962 * builtins.c (expand_builtin_int_roundingfn,
3963 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
3964 gcc_unreachable if validate_arglist fails.
3966 2019-03-12 Richard Biener <rguenther@suse.de>
3968 PR tree-optimization/89664
3969 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
3970 free the occurance tree after the early out.
3972 2019-03-11 Jakub Jelinek <jakub@redhat.com>
3976 * vr-values.c (vr_values::update_value_range): If
3977 old_vr->varying_p (), don't update it, make new_vr also VARYING
3980 2019-03-11 Martin Liska <mliska@suse.cz>
3982 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3983 Fix double string quoting.
3985 2019-03-11 Martin Liska <mliska@suse.cz>
3987 * collect-utils.c (collect_wait): Wrap apostrophes
3988 in gcc internal format with %'.
3989 * collect2.c (main): Likewise.
3990 (scan_prog_file): Likewise.
3991 (scan_libraries): Likewise.
3992 * config/i386/i386.c (ix86_expand_call): Likewise.
3993 (ix86_handle_interrupt_attribute): Likewise.
3994 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
3995 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
3996 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
3997 * lto-wrapper.c (find_crtoffloadtable): Likewise.
3998 * symtab.c (symtab_node::verify_base): Likewise.
3999 * tree-cfg.c (verify_gimple_label): Likewise.
4000 * tree.c (verify_type_variant): Likewise.
4002 2019-03-11 Martin Liska <mliska@suse.cz>
4004 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
4005 in a string format message and fix GNU coding style.
4006 (expand_builtin_set_thread_pointer): Likewise.
4007 * common/config/aarch64/aarch64-common.c
4008 (aarch64_rewrite_selected_cpu): Likewise.
4009 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
4010 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
4011 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
4012 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
4013 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
4014 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
4015 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
4016 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
4017 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
4018 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
4020 * common/config/riscv/riscv-common.c
4021 (riscv_subset_list::parsing_subset_version): Likewise.
4022 (riscv_subset_list::parse_std_ext): Likewise.
4023 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4024 (riscv_subset_list::parse): Likewise.
4025 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
4026 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
4027 (aarch64_override_options_internal): Likewise.
4028 (aarch64_validate_mcpu): Likewise.
4029 (aarch64_validate_march): Likewise.
4030 (aarch64_validate_mtune): Likewise.
4031 (aarch64_override_options): Likewise.
4032 * config/alpha/alpha.c (alpha_option_override): Likewise.
4033 * config/arc/arc.c (arc_init): Likewise.
4034 (parse_mrgf_banked_regs_option): Likewise.
4035 (arc_override_options): Likewise.
4036 (arc_expand_builtin_aligned): Likewise.
4037 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
4038 (arm_expand_builtin): Likewise.
4039 * config/arm/arm.c (arm_option_check_internal): Likewise.
4040 (arm_configure_build_target): Likewise.
4041 (arm_option_override): Likewise.
4042 (arm_options_perform_arch_sanity_checks): Likewise.
4043 (arm_handle_cmse_nonsecure_entry): Likewise.
4044 (arm_handle_cmse_nonsecure_call): Likewise.
4045 (arm_tls_referenced_p): Likewise.
4046 (thumb1_expand_prologue): Likewise.
4047 * config/avr/avr.c (avr_option_override): Likewise.
4048 * config/bfin/bfin.c (bfin_option_override): Likewise.
4049 * config/c6x/c6x.c (c6x_option_override): Likewise.
4050 * config/cr16/cr16.c (cr16_override_options): Likewise.
4051 * config/cris/cris.c (cris_option_override): Likewise.
4052 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
4053 * config/darwin-c.c (macosx_version_as_macro): Likewise.
4054 * config/darwin.c (darwin_override_options): Likewise.
4055 * config/frv/frv.c (frv_expand_builtin): Likewise.
4056 * config/h8300/h8300.c (h8300_option_override): Likewise.
4057 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
4058 (ix86_option_override_internal): Likewise.
4059 (warn_once_call_ms2sysv_xlogues): Likewise.
4060 (ix86_expand_prologue): Likewise.
4061 (split_stack_prologue_scratch_regno): Likewise.
4062 (ix86_warn_parameter_passing_abi): Likewise.
4063 * config/ia64/ia64.c (fix_range): Likewise.
4064 * config/m68k/m68k.c (m68k_option_override): Likewise.
4065 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
4066 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
4067 (mips_set_compression_mode): Likewise.
4068 * config/mmix/mmix.c (mmix_option_override): Likewise.
4069 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
4070 * config/msp430/msp430.c (msp430_option_override): Likewise.
4071 * config/nds32/nds32.c (nds32_option_override): Likewise.
4072 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
4073 (nios2_option_override): Likewise.
4074 (nios2_expand_custom_builtin): Likewise.
4075 * config/nvptx/mkoffload.c (main): Likewise.
4076 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
4077 * config/pa/pa.c (fix_range): Likewise.
4078 (pa_option_override): Likewise.
4079 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
4080 (riscv_option_override): Likewise.
4081 * config/rl78/rl78.c (rl78_option_override): Likewise.
4082 * config/rs6000/aix61.h: Likewise.
4083 * config/rs6000/aix71.h: Likewise.
4084 * config/rs6000/aix72.h: Likewise.
4085 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
4086 * config/rs6000/freebsd64.h: Likewise.
4087 * config/rs6000/linux64.h: Likewise.
4088 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
4089 (rs6000_expand_zeroop_builtin): Likewise.
4090 (rs6000_expand_mtfsb_builtin): Likewise.
4091 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
4092 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
4093 (rs6000_invalid_builtin): Likewise.
4094 (rs6000_expand_split_stack_prologue): Likewise.
4095 * config/rs6000/rtems.h: Likewise.
4096 * config/rx/rx.c (valid_psw_flag): Likewise.
4097 (rx_expand_builtin): Likewise.
4098 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
4099 * config/s390/s390.c (s390_expand_builtin): Likewise.
4100 (s390_function_profiler): Likewise.
4101 (s390_option_override_internal): Likewise.
4102 (s390_option_override): Likewise.
4103 * config/sh/sh.c (sh_option_override): Likewise.
4104 (sh_builtin_saveregs): Likewise.
4105 (sh_fix_range): Likewise.
4106 * config/sh/vxworks.h: Likewise.
4107 * config/sparc/sparc.c (sparc_option_override): Likewise.
4108 * config/spu/spu.c (spu_option_override): Likewise.
4109 (fix_range): Likewise.
4110 * config/visium/visium.c (visium_option_override): Likewise.
4111 (visium_handle_interrupt_attr): Likewise.
4112 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
4113 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
4114 (dbg_cnt_process_opt): Likewise.
4115 * dwarf2out.c (output_dwarf_version): Likewise.
4116 * except.c (expand_eh_return): Likewise.
4117 * gcc.c (defined): Likewise.
4118 (driver_handle_option): Likewise.
4119 (process_command): Likewise.
4120 (compare_files): Likewise.
4121 (driver::prepare_infiles): Likewise.
4122 (driver::do_spec_on_infiles): Likewise.
4123 (driver::maybe_run_linker): Likewise.
4124 * omp-offload.c (oacc_parse_default_dims): Likewise.
4125 * opts-global.c (handle_common_deferred_options): Likewise.
4126 * opts.c (parse_sanitizer_options): Likewise.
4127 (common_handle_option): Likewise.
4128 (enable_warning_as_error): Likewise.
4129 * passes.c (enable_disable_pass): Likewise.
4130 * plugin.c (parse_plugin_arg_opt): Likewise.
4131 (default_plugin_dir_name): Likewise.
4132 * targhooks.c (default_expand_builtin_saveregs): Likewise.
4133 (default_pch_valid_p): Likewise.
4134 * toplev.c (init_asm_output): Likewise.
4135 (process_options): Likewise.
4136 (toplev::run_self_tests): Likewise.
4137 * tree-cfg.c (verify_gimple_call): Likewise.
4138 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
4139 (tree_inlinable_function_p): Likewise.
4140 * var-tracking.c (vt_find_locations): Likewise.
4142 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
4144 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
4145 only on the else branch.
4147 2019-03-11 Martin Liska <mliska@suse.cz>
4149 * gcov.c (output_intermediate_json_line): Print function
4151 (output_json_intermediate_file): Add new argument.
4152 * doc/gcov.texi: Document the change.
4154 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
4156 PR rtl-optimization/89588
4157 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4158 explicit unrolling factor more robust.
4160 2019-03-11 Richard Biener <rguenther@suse.de>
4162 PR tree-optimization/89649
4163 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
4164 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
4165 on the prolog and epilog loops.
4166 (vect_loop_versioning): Return copy of loop.
4167 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
4168 on the non-vectorized version of the loop.
4170 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
4173 * config/i386/sse.md (*vec_extractv2di_0_sse):
4174 Add (=r,x) alternative and corresponding splitter.
4176 2019-03-10 Martin Jambor <mjambor@suse.cz>
4178 PR tree-optimization/85762
4179 PR tree-optimization/87008
4180 PR tree-optimization/85459
4181 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
4182 it points to if there is a type changing MEM_REF. Adjust all callers.
4183 (build_accesses_from_assign): Disable total scalarization if
4184 contains_vce_or_bfcref_p returns true through the new parameter, for
4187 2019-03-09 Jakub Jelinek <jakub@redhat.com>
4190 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
4191 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
4194 * common.opt (fdiagnostics-show-labels,
4195 fdiagnostics-show-line-numbers, fdiagnostics-format=,
4196 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
4197 gas-locview-support, ginline-points, ginternal-reset-location-views):
4198 Terminate description text with a dot.
4199 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
4200 * config/mcore/mcore.opt (m210, m340): Likewise.
4201 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
4202 mnops=): Start description text with a capital letter.
4203 * config/arc/arc.opt (msize-level=): Likewise.
4204 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
4205 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
4207 * config/ft32/ft32.opt (msim): Likewise.
4208 (mft32b, mcompress): Likewise. Terminate description text with a dot.
4209 (mnodiv, mnopm): Terminate description text with a dot.
4210 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
4212 * config/i386/i386.opt (prefer_vector_width, instrument_return):
4214 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
4217 PR rtl-optimization/89634
4218 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
4219 are modified in BB_END (e->src) instruction.
4221 2019-03-08 David Malcolm <dmalcolm@redhat.com>
4224 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
4225 messages more amenable to translation, and improve wording.
4227 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
4229 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
4230 ud- and du-chains between phases.
4232 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
4235 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
4236 instead of POLY_INT_CST.
4238 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4240 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
4243 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
4248 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
4249 (_mm_storeu_si64): Ditto.
4251 2019-03-08 Martin Liska <mliska@suse.cz>
4254 * config/i386/i386.c (ix86_option_override_internal): Disable
4255 jump tables when retpolines are used.
4257 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
4260 * ipa-split.c (execute_split_functions): Do not split
4261 'noinline' or 'section' function.
4263 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4266 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
4267 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
4268 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
4271 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4272 from diagnostics. Formatting fixes.
4275 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
4276 warn_odr diagnostics.
4279 * lra-constraints.c (process_alt_operands): Avoid one space before
4280 " at the end of line and another after " on another line in a string
4282 * attribs.c (handle_dll_attribute): Likewise.
4283 * config/avr/avr-devices.c (avr_texinfo): Likewise.
4285 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
4286 warning_at or inform messages in G_() if there is no ?:.
4288 PR tree-optimization/89550
4289 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
4290 returned true. Formatting fixes.
4291 (expand_builtin_strnlen): Formatting fixes.
4292 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
4293 if warning_at returned true.
4294 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
4296 2019-03-08 Richard Biener <rguenther@suse.de>
4299 * cfgloop.h (struct loop): Add owned_clique field.
4300 * cfgloopmanip.c (copy_loop_info): Copy it.
4301 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
4303 * tree-inline.c (copy_loops): Remap owned_clique.
4304 * lto-streamer-in.c (input_cfg): Stream owned_clique.
4305 * lto-streamer-out.c (output_cfg): Likewise.
4307 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4310 * config/darwin.c: Include intl.h.
4311 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
4312 composing the message out of two separate parts.
4314 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4317 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
4318 doesn't start with a capital letter and doesn't end with a dot.
4319 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
4320 with a capital letter.
4321 (ix86_mangle_function_version_assembler_name): Likewise.
4322 (ix86_generate_version_dispatcher_body): Likewise.
4323 (fold_builtin_cpu): Likewise.
4324 (get_builtin_code_for_version): Likewise. Remove extraneous space.
4325 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
4326 translators, wrap full type name in %qs.
4328 PR translation/79999
4329 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
4330 depend clause with source (or sink) modifier.
4331 * omp-expand.c (expand_omp_ordered_sink): Likewise.
4334 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
4335 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
4336 (avx512f_load<mode>_mask): New define_expand.
4337 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
4338 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
4339 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
4340 __builtin_ia32_movess_mask): New builtins.
4341 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
4342 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
4343 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
4344 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
4346 2019-03-07 Martin Jambor <mjambor@suse.cz>
4349 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
4350 for extern inline functions.
4352 2019-03-07 Martin Jambor <mjambor@suse.cz>
4355 * cgraph.h (cgraph_node): New inline method former_thunk_p.
4356 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
4357 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
4358 have multiple callees. At the end check if declarations match as
4359 opposed to cgraph_nodes.
4361 2019-03-07 Martin Liska <mliska@suse.cz>
4363 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
4364 which is equivalent to searching for this in clones chain.
4365 * symtab.c (symtab_node::verify_base): Similarly compare ASM
4366 names with a neighbour and special case first node in a chain.
4368 2019-01-25 Jason Merrill <jason@redhat.com>
4370 PR c++/80916 - spurious "static but not defined" warning.
4371 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
4372 for an internal symbol with DECL_EXTERNAL.
4374 2019-04-07 Richard Biener <rguenther@suse.de>
4377 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
4378 * tree-inline.c (copy_loops): Simplify.
4380 2019-03-07 Martin Liska <mliska@suse.cz>
4382 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
4384 2019-03-07 Richard Biener <rguenther@suse.de>
4386 PR tree-optimization/89595
4387 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
4388 stmt iterator as reference, take boolean output parameter to
4389 indicate whether the stmt was removed and thus the iterator
4391 (dom_opt_dom_walker::before_dom_children): Re-iterate over
4392 stmts created by folding.
4394 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4397 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
4400 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
4402 PR rtl-optimization/88845
4403 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
4405 * lra.c (remove_scratches_1): New function.
4406 (remove_scratches): Use it.
4407 (lra_emit_move): Likewise.
4409 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
4411 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
4412 unaligned_access variable.
4413 * config/arc/arc.c (arc_override_options): Set unaligned access
4414 default on for HS CPUs.
4415 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
4417 2019-03-06 Martin Liska <mliska@suse.cz>
4419 PR gcov-profile/89577
4420 * doc/gcov.texi: Prefer to use --coverage.
4421 * doc/sourcebuild.texi: Likewise.
4423 2019-03-02 Jason Merrill <jason@redhat.com>
4425 PR c++/86485 - -Wmaybe-unused with empty class ?:
4426 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
4428 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4431 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
4435 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
4436 exactly one argument.
4438 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4439 Richard Sandiford <richard.sandiford@arm.com>
4441 PR tree-optimization/89570
4442 * match.pd (vec_cond into cond_op simplification): Don't use
4443 get_conditional_internal_fn, use as_internal_fn (cond_op).
4445 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
4448 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
4449 to decide when to split off a non-zero offset from a symbol.
4450 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
4451 in function symbols.
4453 2019-03-05 Richard Biener <rguenther@suse.de>
4455 PR tree-optimization/89594
4456 * tree-if-conv.c (pass_if_conversion::execute): Handle
4457 case where .LOOP_VECTORIZED_FUNCTION was removed.
4459 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4462 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
4463 instead alloca it only when needed with the needed size.
4465 PR tree-optimization/89570
4466 * match.pd (vec_cond into cond_op simplification): Guard with
4467 vectorized_internal_fn_supported_p test and #if GIMPLE.
4469 PR tree-optimization/89566
4470 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
4471 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
4472 Punt if get_user_idx_format succeeds, but idx_format argument is
4473 not provided or doesn't have pointer type, or if idx_args is above
4474 number of provided arguments.
4476 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
4478 PR tree-optimization/89437
4479 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
4481 2019-03-04 Richard Biener <rguenther@suse.de>
4484 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
4487 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
4489 PR tree-optimization/89487
4490 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
4491 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
4492 (distribute_loop): Don't do runtime alias check if there is non-
4493 addressable data reference.
4494 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
4495 is a register variable.
4497 2019-03-02 Jakub Jelinek <jakub@redhat.com>
4500 * config/arm/arm.md (cmpsi2_addneg): Use
4501 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
4502 If operands[2] is 0 or INT_MIN, force use of subs.
4503 (*compare_scc splitter): Use gen_int_mode.
4504 (*negscc): Likewise.
4505 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
4507 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
4508 Monk Chiang <sh.chiang04@gmail.com>
4510 * common/config/riscv/riscv-common.c: Include sstream.
4511 (riscv_subset_list::to_string): New.
4512 (riscv_arch_str): Likewise.
4513 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
4515 * config/riscv/riscv-protos.h (riscv_arch_str): New.
4516 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
4517 (riscv_emit_attribute): New.
4518 (riscv_file_start): Emit attribute if needed.
4519 (riscv_option_override): Init riscv_emit_attribute_p.
4520 * config/riscv/riscv.opt (mriscv-attribute): New option.
4521 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
4523 * doc/install.texi: Document --with-riscv-attribute.
4524 * doc/invoke.texi: Document -mriscv-attribute.
4526 * common/config/riscv/riscv-common.c:
4527 Include config/riscv/riscv-protos.h.
4528 (INCLUDE_STRING): Defined.
4529 (RISCV_DONT_CARE_VERSION): Defined.
4530 (riscv_subset_t): Declare.
4531 (riscv_subset_t::riscv_subset_t): New.
4532 (riscv_subset_list): Declare.
4533 (riscv_subset_list::riscv_subset_list): New.
4534 (riscv_subset_list::~riscv_subset_list): Likewise.
4535 (riscv_subset_list::parsing_subset_version): Likewise.
4536 (riscv_subset_list::parse_std_ext): Likewise.
4537 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
4538 (riscv_subset_list::add): Likewise.
4539 (riscv_subset_list::lookup): Likewise.
4540 (riscv_subset_list::xlen): Likewise.
4541 (riscv_subset_list::parse): Likewise.
4542 (riscv_supported_std_ext): Likewise.
4543 (current_subset_list): Likewise.
4544 (riscv_parse_arch_string): Using riscv_subset_list::parse to
4547 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
4549 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
4550 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
4551 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
4553 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
4555 PR rtl-optimization/85899
4556 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
4557 fallthru edges leading to the exit block.
4559 2019-03-01 Tamar Christina <tamar.christina@arm.com>
4562 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
4563 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
4565 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
4567 PR tree-optimization/89535
4568 * tree-vect-stmts.c (vectorizable_call): Record the vector types
4569 for each operand. Calculate the fallback choice for mask operands
4570 and pass it to vect_get_vec_def_for_operand.
4572 2019-03-01 Richard Biener <rguenther@suse.de>
4575 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
4576 get virtual operands.
4577 (get_expr_operands): Handle CONST_DECL like other decls.
4579 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4582 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
4583 on DECL_P and EXPR_P.
4585 2019-03-01 Richard Biener <rguenther@suse.de>
4588 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
4589 argument, defaulted to zero.
4590 * passes.c (execute_function_todo): Pass down SSA update flags
4591 to cleanup_tree_cfg.
4592 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
4593 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
4595 (cleanup_tree_cfg): Get and pass down SSA update flags.
4597 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4600 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
4601 early_lto_debug argument.
4603 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
4605 PR tree-optimization/89536
4606 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
4607 only whether bit #0 of the value is 0 instead of the entire value.
4609 2019-02-28 Marek Polacek <polacek@redhat.com>
4611 PR c++/87068 - missing diagnostic with fallthrough statement.
4612 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
4613 at the end of a seq, save its location to walk_stmt_info.
4614 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
4617 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
4620 * tree.c (find_atomic_core_type): Move ahead in file.
4621 (check_base_type): Correctly compare alignments of atomic types.
4623 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
4626 * config/i386/i386.c (get_builtin_code_for_version): Identify
4627 Westmere from PCLMUL, instead of AES.
4629 2019-02-28 Jakub Jelinek <jakub@redhat.com>
4632 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
4633 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
4636 2019-02-28 Tamar Christina <tamar.christina@arm.com>
4639 * config/aarch64/aarch64-option-extensions.def: Document it.
4640 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
4643 2019-02-28 Jakub Jelinek <jakub@redhat.com>
4646 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
4647 builtins if they don't have a single scalar floating point argument.
4650 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4652 PR rtl-optimization/89490
4653 * varasm.c (get_block_for_section): Bail out for mergeable sections.
4654 (default_use_anchors_for_symbol_p, output_object_block): Assert the
4655 block section is not mergeable.
4657 2019-02-27 Jakub Jelinek <jakub@redhat.com>
4660 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
4661 old define_insn to ...
4662 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
4663 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
4664 Rename old define_insn to ...
4665 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
4666 (thumb2_casesi_internal_pic): New define_expand. Rename old
4668 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
4669 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
4670 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
4672 2019-02-27 Richard Biener <rguenther@suse.de>
4675 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
4677 2019-02-27 Richard Biener <rguenther@suse.de>
4679 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
4682 2019-02-27 Richard Biener <rguenther@suse.de>
4685 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
4686 parameter, prefix section name with .gnu.debuglto_ if true.
4687 (dwarf2out_finish): Pass false to output_comdat_type_unit.
4688 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
4690 2019-02-27 Richard Biener <rguenther@suse.de>
4693 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
4694 rather than on use_debug_types, doing what output_die does.
4695 (value_format): Likewise.
4697 2019-02-27 Martin Jambor <mjambor@suse.cz>
4698 Martin Sebor <msebor@redhat.com>
4700 * doc/invoke.texi (Warning Options): Reword description of
4701 -Wno-absolute-value.
4703 2019-02-27 Jakub Jelinek <jakub@redhat.com>
4705 PR tree-optimization/89280
4706 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
4707 builtin_setjmp_setup_bb): New functions.
4708 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
4709 When visiting __builtin_setjmp_setup block, queue in special
4710 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
4711 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
4712 from visited after the loop if they don't have any visited successor
4715 2018-02-26 Steve Ellcey <sellcey@marvell.com>
4717 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
4719 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
4721 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4724 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
4725 with types other than sizetype/ssizetype.
4727 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
4729 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
4730 (enum sparc_processor_type): ...this.
4731 (enum sparc_code_model_type): New enumeration type.
4732 (enum sparc_memory_model_type): Tweak comments.
4733 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
4735 (mcmodel): Use sparc_code_model enumeration and variable.
4736 (sparc_code_model): New enumeration.
4737 (mdebug): Add Undocumented marker.
4738 * config/sparc/sparc.h (enum cmodel): Delete.
4739 (sparc_cmodel): Likewise.
4740 (TARGET_CM_MEDLOW): Adjust to above renaming.
4741 (TARGET_CM_MEDMID): Likewise.
4742 (TARGET_CM_MEDANY): Likewise.
4743 (TARGET_CM_EMBMEDANY): Likewise.
4744 * config/sparc/sparc.c (sparc_cmodel): Delete.
4745 (sparc_option_override): Remove string/value mapping support for the
4746 code model. Move code and memory model support to after the handling
4747 of target flags. Do private machine setup last.
4748 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
4749 (sparc_legitimize_reload_address): Likewise.
4750 (sparc_output_mi_thunk): Likewise.
4751 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
4753 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4755 PR tree-optimization/89500
4756 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
4757 (handle_builtin_strlen): Remove noncst_bound variable. Always
4758 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
4759 cst if the first cst bytes starting at x are known to be non-zero,
4760 even if the string is not zero terminated. Don't try to modify
4761 *si for strnlen. Update strlen_to_stridx only for strlen or if
4762 we can prove strnlen returns the same value as strlen would.
4764 2019-02-26 Martin Liska <mliska@suse.cz>
4766 * alloc-pool.h (struct pool_usage): Remove extra
4768 * bitmap.h (struct bitmap_usage): Likewise.
4769 * ggc-common.c (struct ggc_usage): Likewise.
4770 * mem-stats.h (struct mem_usage): Likewise.
4771 (mem_alloc_description::dump): Print dash lines
4772 here and repeat header at the end of a table report.
4773 It's then more readable.
4774 * tree-phinodes.c (phinodes_print_statistics): Make
4775 horizontal alignment.
4776 * tree-ssanames.c (ssanames_print_statistics): Likewise.
4777 * vec.c (struct vec_usage): Remove extra print_dash_line.
4778 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
4780 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
4782 * doc/extend.texi (__builtin_object_size):
4783 Use @pxref instead of @xref inside parenthesis.
4784 (__builtin_has_attribute): Add missing comma after @xref.
4785 (__builtin_object_size): Ditto.
4786 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
4787 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
4790 2019-02-26 Jeff Law <law@redhat.com>
4792 PR rtl-optimization/87761
4793 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
4794 detect obviously dead insns and delete them.
4796 2019-02-26 Richard Biener <rguenther@suse.de>
4798 PR tree-optimization/89505
4799 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
4800 to handle restrict pointed-to vars with multiple subvars
4803 2019-02-26 Richard Biener <rguenther@suse.de>
4805 PR tree-optimization/89489
4806 * tree-parloops.c (create_loop_fn): Copy over last_clique.
4808 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
4810 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
4811 and move around comment.
4812 <BIT_AND_EXPR>: Likewise.
4813 <BIT_NOT_EXPR>: Add specific handling for boolean types.
4815 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4818 * config/i386/i386.c (remove_partial_avx_dependency): Call
4819 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
4820 after changing possibly many instructions to use that pseudo. Fix up
4821 insertion of v4sf_const0 setter at the start of bb.
4823 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4826 * doc/extend.texi (Variadic Pointer Args): New section.
4828 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4829 Martin Sebor <msebor@gmail.com>
4831 * common.opt (Wattribute-alias): Likewise.
4832 * doc/invoke.texi (Option Summary): List general form of
4833 -Wattribute-alias=. List positive form of -Wmissing-attributes.
4834 (-Wmissing-attributes): Invert entry, rewrite and correct default.
4835 Add cross-references.
4836 (-Wattribute-alias): Rewrite and correct default. Mention
4837 considered attributes (same as for -Wmissing-attributes).
4839 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
4841 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
4842 (_mm_cvtpd_ps): Likewise.
4843 (_mm_cvttpd_epi32): Likewise.
4846 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
4847 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
4850 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
4852 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4855 * common/config/aarch64/aarch64-common.c
4856 (struct aarch64_option_extension): Add is_synthetic.
4857 (all_extensions): Use it.
4858 (TARGET_OPTION_INIT_STRUCT): Define hook.
4859 (struct gcc_targetm_common): Moved to end.
4860 (all_extensions_by_on): New.
4861 (opt_ext_cmp, typedef opt_ext): New.
4862 (aarch64_option_init_struct): New.
4863 (aarch64_contains_opt): New.
4864 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
4865 * config/aarch64/aarch64-option-extensions.def
4866 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
4867 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
4868 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
4869 Set is_synthetic to false.
4870 (crypto): Set is_synthetic to true.
4871 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
4874 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4876 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
4877 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
4878 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
4879 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
4880 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
4881 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
4882 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
4883 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
4885 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
4886 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
4887 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
4888 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
4889 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
4890 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
4891 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
4892 vfmlsl_laneq_high_f16): ... To this.
4893 * config/arm/neon.md: Update comments.
4895 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4897 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
4898 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
4899 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
4900 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
4901 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
4902 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
4903 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
4904 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
4906 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
4907 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
4908 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
4909 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
4910 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
4911 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
4912 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
4913 vfmlslq_laneq_high_f16): ... To this.
4915 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
4917 PR rtl-optimization/86096
4918 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
4919 comparing mw_order values.
4921 2019-02-25 Jakub Jelinek <jakub@redhat.com>
4924 * config/arm/arm.md (*subsi3_carryin_const): Use
4925 arm_neg_immediate_operand predicate instead of
4926 arm_not_immediate_operand, "L" constraint instead of "K" and
4927 print it using %n2 instead of %B2.
4928 (*subsi3_carryin_const0): New define_insn.
4929 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
4930 instead of arm_not_operand and "I" constraint instead of "K" and
4931 print it using %n3 instead of %B2. Instead of using match_dup 2 add
4932 another match_operand and in the condition check that it is negation
4934 (*subsi3_carryin_compare_const0): New define_ins.
4935 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
4936 *subsi3_carryin_const.
4937 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
4938 split into *subsi3_carryin_compare_const0 if the highpart is zero.
4941 * config/arm.vfp.md (*negdf2_vfp): Use
4942 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
4943 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
4945 2019-02-24 Jakub Jelinek <jakub@redhat.com>
4947 PR rtl-optimization/89445
4948 * simplify-rtx.c (simplify_ternary_operation): Don't use
4949 simplify_merge_mask on operands that may trap.
4950 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
4951 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
4952 second operand is CONST_VECTOR, check if any element could be zero.
4953 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
4954 their operands can trap.
4956 2019-02-23 Martin Sebor <msebor@redhat.com>
4958 * gimple-ssa-sprintf.c (target_strtol): Rename...
4959 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
4960 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
4961 check for range error.
4963 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
4966 * opts-common.c (prune_options): Also prune joined switches
4967 with Negative and RejectNegative.
4968 * config/i386/i386.opt (march=): Add Negative(march=).
4969 (mtune=): Add Negative(mtune=).
4970 * doc/options.texi: Document Negative used together with Joined
4973 2019-02-22 Martin Sebor <msebor@redhat.com>
4975 * doc/extend.texi (Other Builtins): Add
4976 __builtin_is_constant_evaluated.
4978 2019-02-22 Richard Biener <rguenther@suse.de>
4980 PR tree-optimization/87609
4981 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
4983 2019-02-22 Jeff Law <law@redhat.com>
4985 PR rtl-optimization/87761
4986 * config/mips/mips.md: Add new combiner pattern to recognize
4987 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
4989 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
4992 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
4993 destination register in peepholes generating patterns for ADDS/SUBS.
4994 (add<mode>3_compare0,
4995 *addsi3_compare0_uxtw, add<mode>3_compareC,
4996 add<mode>3_compareV_imm, add<mode>3_compareV,
4997 *adds_<optab><ALLX:mode>_<GPI:mode>,
4998 *subs_<optab><ALLX:mode>_<GPI:mode>,
4999 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
5000 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
5001 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
5002 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
5003 sub<mode>3_compare1): Allow stack pointer for source register.
5004 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
5006 2019-02-22 Martin Sebor <msebor@redhat.com>
5008 PR tree-optimization/88993
5009 PR tree-optimization/88853
5010 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
5012 (sprintf_dom_walker::call_info::is_string_func): New helper.
5013 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
5014 for formatted string functions.
5015 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
5017 2019-02-22 Martin Sebor <msebor@redhat.com>
5020 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
5021 unreachable subexpressions.
5023 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
5024 Hongtao Liu <hongtao.liu@intel.com>
5025 Sunil K Pandey <sunil.k.pandey@intel.com>
5028 * config/i386/i386-passes.def: Add
5029 pass_remove_partial_avx_dependency.
5030 * config/i386/i386-protos.h
5031 (make_pass_remove_partial_avx_dependency): New.
5032 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
5034 (pass_data_remove_partial_avx_dependency): New.
5035 (pass_remove_partial_avx_dependency): Likewise.
5036 (make_pass_remove_partial_avx_dependency): Likewise.
5037 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
5038 (*extendsfdf2): Add avx_partial_xmm_update.
5039 (truncdfsf2): Likewise.
5040 (*float<SWI48:mode><MODEF:mode>2): Likewise.
5041 (SF/DF conversion splitters): Disabled for TARGET_AVX.
5043 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
5046 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
5049 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
5052 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
5053 (PTA_SKYLAKE): Add PTA_AES.
5054 (PTA_GOLDMONT): Likewise.
5056 2019-02-22 Sudakshina Das <sudi.das@arm.com>
5058 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
5059 instruction if enabled.
5060 (aarch64_override_options): Remove reference to return address key.
5062 2019-02-22 Richard Biener <rguenther@suse.de>
5064 PR tree-optimization/89440
5065 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5066 not necessary assert.
5068 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5071 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
5072 (oacc_replace_fn_attrib_attr): ... this new function.
5073 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
5074 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
5076 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5078 * config/arm/arm-cpus.in (ares): Rename to...
5079 (neoverse-n1): ... This. Add ares as alias.
5080 * config/arm/arm-tables.opt: Regenerate.
5081 * config/arm/arm-tune.md: Likewise.
5082 * doc/invoke.txt (ARM Options): Document neoverse-n1.
5084 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5086 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
5087 * config/aarch64/aarch64-tune.md: Regenerate.
5088 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
5090 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5092 * config/aarch64/aarch64.c (ares_tunings): Rename to...
5093 (neoversen1_tunings): ... This.
5094 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
5095 (neoverse-n1): New CPU.
5096 * config/aarch64/aarch64-tune.md: Regenerate.
5097 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
5099 2019-02-22 Richard Biener <rguenther@suse.de>
5102 * cfghooks.h (dependence_hash): New typedef.
5103 (struct copy_bb_data): New type.
5104 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
5105 (duplicate_block): Likewise.
5106 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
5107 (copy_bbs): Create and pass down copy_bb_data.
5108 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
5109 (rtl_duplicate_bb): Likewise.
5110 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
5111 remap dependence info.
5113 2019-02-22 Richard Biener <rguenther@suse.de>
5115 PR tree-optimization/87609
5116 * tree-core.h (tree_base): Document special clique values.
5117 * tree-inline.c (remap_dependence_clique): Do not use the
5118 special clique value of one.
5119 (maybe_set_dependence_info): Use clique one.
5120 (clear_dependence_clique): New callback.
5121 (compute_dependence_clique): Clear clique one from all refs
5122 before assigning it (again).
5124 2019-02-21 Martin Sebor <msebor@redhat.com>
5126 * doc/extend.texi (__clear_cache): Correct signature.
5128 2019-02-21 Ian Lance Taylor <iant@golang.org>
5131 * varasm.c (decode_addr_const): Call lookup_constant_def rather
5132 than output_constant_def.
5133 (add_constant_to_table): New static function.
5134 (output_constant_def): Call add_constant_to_table.
5135 (tree_output_constant_def): Likewise.
5137 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5140 * builtins.c (fold_builtin_arith_overflow): If first two args are
5141 INTEGER_CSTs, set intres and ovfres to constants rather than calls
5144 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
5147 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
5148 error for -mindirect-branch/-mfunction-return with incompatible
5151 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5154 * constraints.md (q): Remove.
5155 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
5158 2019-02-21 Martin Jambor <mjambor@suse.cz>
5161 * omp-general.c (omp_extract_for_data): Removed a duplicate call
5162 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
5163 (omp_adjust_for_condition): ...here. Added necessary parameters.
5164 * omp-general.h (omp_adjust_for_condition): Updated declaration.
5165 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
5166 proper values to new parameters of omp_adjust_for_condition.
5168 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5171 * expr.c (expand_assignment): If result is a MEM, use change_address
5172 instead of simplify_gen_subreg.
5174 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5175 David Malcolm <dmalcolm@redhat.com>
5178 * fold-const.c (decode_field_reference): Return NULL_TREE if
5179 lang_hooks.types.type_for_size returns NULL. Check it before
5180 overwriting *exp_. Use return NULL_TREE instead of return 0.
5182 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5186 * toplev.c (do_compile): Double the emin/emax exponents to workaround
5189 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
5192 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
5193 TARGET_SSE in addition to TARGET_SSE_MATH.
5195 (ix86_excess_precision): Ditto.
5196 (ix86_float_exceptions_rounding_supported_p): Ditto.
5197 (use_rsqrt_p): Ditto.
5198 * config/i386/sse.md (rsqrt<mode>2): Ditto.
5200 2019-02-20 David Malcolm <dmalcolm@redhat.com>
5203 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
5204 linenum_arith_t when determining if two adjacent line spans are
5205 close enough to merge.
5206 (diagnostic_show_locus): Use linenum_arith_t when iterating over
5207 lines within each line_span.
5209 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
5212 * lra-constraints.c(uses_hard_regs_p): Fix handling of
5213 paradoxical SUBREGS.
5215 2019-02-20 Li Jia He <helijia@linux.ibm.com>
5218 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
5219 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
5220 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
5223 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
5225 * config/gcn/gcn.c (print_operand): Fix typo.
5227 2019-02-19 Richard Biener <rguenther@suse.de>
5230 * toplev.c (do_compile): Initialize mpfr's exponent range
5231 based on available float modes.
5233 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
5235 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
5236 as long as the epilogue isn't completed.
5238 2019-02-18 Martin Sebor <msebor@redhat.com>
5240 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
5241 __has_cpp_attribute, and __has_include.
5243 2019-02-18 Martin Sebor <msebor@redhat.com>
5245 * doc/invoke.texi (-Wreturn-type): Correct and expand.
5247 2019-02-18 Martin Sebor <msebor@redhat.com>
5250 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
5252 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
5254 2019-02-18 Richard Biener <rguenther@suse.de>
5256 PR tree-optimization/89296
5257 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
5258 of no-warning flag to cases that might emit the bogus warning.
5260 2019-02-18 Jakub Jelinek <jakub@redhat.com>
5263 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
5265 * config/arm/vfp.md (*movdi_vfp): Likewise.
5266 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
5267 "q" constraint for operands[0].
5270 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
5271 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
5272 pattern in a temporary buffer.
5273 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
5274 than 64-operands[2].
5277 * config/s390/s390.c (s390_indirect_branch_attrvalue,
5278 s390_indirect_branch_settings): Define unconditionally.
5279 (s390_set_current_function): Likewise, but guard the whole body except
5280 the s390_indirect_branch_settings call with
5281 #if S390_USE_TARGET_ATTRIBUTE.
5282 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
5284 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
5285 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
5286 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
5287 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
5288 HOST_WIDE_INT_1U instead of 1ULL.
5289 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
5290 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
5291 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
5292 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
5294 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
5297 2019-02-18 Martin Jambor <mjambor@suse.cz>
5299 PR tree-optimization/89209
5300 * tree-sra.c (create_access_replacement): New optional parameter
5301 reg_tree. Use it as a type if non-NULL and access type is not of
5303 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
5304 to create_access_replacement.
5305 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
5306 Check lacc is non-NULL before attempting to re-create it on the RHS.
5308 2019-02-18 Martin Liska <mliska@suse.cz>
5311 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
5313 (symbol_table::free_edge): Recycle m_summary_id.
5314 * cgraph.h (get_summary_id): New.
5315 (symbol_table::release_symbol): Set m_summary_id to -1
5317 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
5318 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
5319 function_summary to fast_function_summary.
5320 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
5321 * ipa-pure-const.c (class funct_state_summary_t):
5322 Switch from function_summary to fast_function_summary.
5323 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
5324 (class ipa_ref_opt_summary_t): Switch from function_summary
5325 to fast_function_summary.
5326 * symbol-summary.h (class function_summary_base): New class
5327 that is created from base of former function_summary.
5328 (function_summary_base::unregister_hooks): New.
5329 (class function_summary): Inherit from function_summary_base.
5330 (class call_summary_base): New class
5331 that is created from base of former call_summary.
5332 (class call_summary): Inherit from call_summary_base.
5333 (struct is_same): New.
5334 (class fast_function_summary): New summary class.
5335 (class fast_call_summary): New summary class.
5336 * vec.h (vec_safe_grow_cleared): New function.
5338 2019-02-18 Martin Liska <mliska@suse.cz>
5340 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
5341 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
5342 * doc/tm.texi: Document new target hook.
5343 * doc/tm.texi.in: Likewise.
5344 * target.def: Add new target macro.
5345 * gcc.c (find_fortran_preinclude_file): Do not search multilib
5348 2019-02-17 Alan Modra <amodra@gmail.com>
5351 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
5352 output reg on add insn.
5353 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
5355 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
5358 * config/i386/sse.md (ssedoublemode): Remove V4HI.
5359 (PMULHRSW): Likewise.
5360 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
5362 (ssse3_pmulhrswv4hi3): New expander.
5364 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
5366 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
5367 MMX. Add isa attribute.
5369 2019-02-16 Jakub Jelinek <jakub@redhat.com>
5371 PR rtl-optimization/66152
5372 * builtins.h (c_readstr): Declare.
5373 * builtins.c (c_readstr): Remove forward declaration. Add
5374 null_terminated_p argument, if false, read all bytes from the
5375 string instead of stopping after '\0'.
5376 * expr.c (string_cst_read_str): New function.
5377 (store_expr): Use string_cst_read_str instead of
5378 builtin_strncpy_read_str. Try to store by pieces the whole
5379 exp_len first, and only if that fails, split it up into
5380 store by pieces followed by clear_storage. Formatting fix.
5382 * config/i386/i386.md (*movqi_internal): Remove static from
5383 buf variable. Use output_asm_insn (buf, operands); return "";
5384 instead of return buf;.
5385 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
5386 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
5387 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
5389 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5391 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
5392 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
5393 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
5394 (CC1_SPEC): Likewise.
5395 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
5397 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5399 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
5400 the base address on 64-bit strict-alignment platforms.
5402 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
5404 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
5406 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5408 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
5410 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
5412 PR rtl-optimization/88308
5413 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
5414 on copied instruction.
5416 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5418 * final.c (insn_current_reference_address): Replace test on JUMP_P
5419 with test on jump_to_label_p.
5420 * config/visium/visium-passes.def: New file.
5421 * config/visium/t-visium (PASSES_EXTRA): Define.
5422 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
5423 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
5424 (TRAMPOLINE_ALIGNMENT): Define.
5425 * config/visium/visium.c (visium_option_override): Do not register
5426 the machine-specific reorg pass here.
5427 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
5429 (output_branch): Adjust threshold for long branch instruction.
5430 * config/visium/visium.md (cpu): Move around.
5431 (length): Adjust for the GR6.
5433 2019-02-15 Richard Biener <rguenther@suse.de>
5434 Jakub Jelinek <jakub@redhat.com>
5436 PR tree-optimization/89278
5437 * tree-loop-distribution.c: Include tree-eh.h.
5438 (generate_memset_builtin, generate_memcpy_builtin): Call
5439 rewrite_to_non_trapping_overflow on builtin->size before passing it
5440 to force_gimple_operand_gsi.
5442 2019-02-15 Jakub Jelinek <jakub@redhat.com>
5445 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
5447 * opth-gen.awk: Likewise.
5449 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5451 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
5452 Enable MMX, SSE and SSE2 by default.
5453 * config/i386/i386.c (ix86_option_override_internal): Do not
5454 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
5456 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5458 PR rtl-optimization/89354
5459 * combine.c (make_extraction): Punt if extraction_mode is narrower
5462 2019-02-14 Maya Rashish <coypu@sdf.org>
5464 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
5465 * config/netbsd-d.c: New file.
5466 * config/t-netbsd: Add netbsd-d.o
5468 2018-02-14 Steve Ellcey <sellcey@marvell.com>
5470 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
5471 affects_type_identity to true for aarch64_vector_pcs.
5472 (aarch64_comp_type_attributes): New function.
5473 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
5475 2019-02-14 Tamar Christina <tamar.christina@arm.com>
5478 * config/arm/iterators.md (ANY64): Add V4HF.
5480 2019-02-14 Martin Liska <mliska@suse.cz>
5482 PR rtl-optimization/89242
5483 * dce.c (delete_unmarked_insns): Call free_dominance_info we
5484 process a transformation.
5486 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5488 PR tree-optimization/89314
5489 * fold-const.c (fold_binary_loc): Cast strlen argument to
5490 const char * before dereferencing it. Formatting fixes.
5493 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
5495 2019-02-13 Ian Lance Taylor <iant@golang.org>
5497 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
5498 and set current index for other optimizations.
5500 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
5502 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
5503 nonimmediate_operand as operand 2 predicate.
5504 (vec_set<VF2_512_256:mode>_0): Ditto.
5505 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
5506 (*vec_concatv2si): Remove alternative 2.
5507 (*vec_concatv4si_0): Use vm constraint for alternative 0.
5508 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
5509 (vec_concatv2di): Split alternatives 4,5,6 to ...
5510 (*vec_concatv2di_0) ... new pattern.
5512 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
5515 * config/arm/arm.c (ldm_stm_operation_p) Set
5516 addr_reg_in_reglist correctly for first register.
5517 (load_multiple_sequence): Remove dead base check.
5518 (gen_ldm_seq): Correctly set write_back for Thumb-1.
5520 2019-02-13 Tamar Christina <tamar.christina@arm.com>
5523 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
5524 Expose as @aarch64_pred_mov.
5525 * config/aarch64/aarch64.c (aarch64_classify_address):
5526 Use expand_insn which legitimizes operands.
5528 2019-02-13 Martin Liska <mliska@suse.cz>
5530 * builtins.h (expand_builtin_with_bounds): Remove declaration.
5531 * calls.c (struct arg_data): Remove special_slot, pointer_arg
5532 and pointer_offset fields.
5533 (initialize_argument_information): Remove usage of dead
5535 * cgraph.h (struct cgraph_thunk_info): Remove
5536 add_pointer_bounds_args.
5537 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
5539 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
5541 * config/i386/i386.c (ix86_function_arg_advance): Remove
5543 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
5544 (def_builtin): Remove usage of dead
5546 (ix86_add_new_builtins): Likewise.
5547 * ipa-fnsummary.c (compute_fn_summary): Likewise.
5548 * ipa-icf.c (sem_function::equals_wpa): Likewise.
5549 (sem_function::init): Likewise.
5550 (sem_variable::merge): Likewise.
5551 * ipa-visibility.c (function_and_variable_visibility): Likewise.
5552 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
5553 * lto-cgraph.c (lto_output_node): Likewise.
5554 (lto_output_varpool_node): Likewise.
5555 (input_node): Likewise.
5556 (input_varpool_node): Likewise.
5557 * lto-streamer-out.c (lto_output): Likewise.
5558 * tree-inline.c (expand_call_inline): Remove usage of
5560 * tree-inline.h (struct copy_body_data): Likewise.
5561 * varpool.c (varpool_node::dump): Likewise.
5563 2019-02-13 Jakub Jelinek <jakub@redhat.com>
5566 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
5567 into pt->vars_contains_escaped_heap instead of setting
5568 pt->vars_contains_escaped_heap to it.
5571 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
5572 INTVAL (size), compare it to GET_MODE_MASK instead of
5573 1 << GET_MODE_BITSIZE.
5576 * config/i386/predicates.md (x86_64_immediate_operand): Allow
5577 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
5580 2019-02-13 Martin Liska <mliska@suse.cz>
5583 * cfgrtl.c (remove_barriers_from_footer): New function.
5584 (try_redirect_by_replacing_jump): Use it.
5585 (cfg_layout_redirect_edge_and_branch): Likewise.
5587 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
5589 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
5590 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
5591 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
5592 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
5593 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
5594 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
5596 * config/rs6000/rs6000.c (builtin_function_type)
5597 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
5598 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
5599 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
5600 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
5601 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
5603 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
5605 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
5606 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
5608 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
5611 * config/i386/i386.md (*movoi_internal_avx): Revert revision
5612 268678 and revision 268657.
5613 (*movti_internal): Likewise.
5615 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
5618 * config/s390/s390.c (s390_decompose_address): Update comment.
5619 (s390_check_qrst_address): Reject invalid address forms after
5622 2019-02-12 Martin Liska <mliska@suse.cz>
5625 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
5626 we need default values of funct_state for a function that
5629 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
5631 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
5632 the object to pick the size of stores on strict-alignment platforms.
5634 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
5635 (*movdi_insn_sp32): Likewise.
5636 (*movdi_insn_sp64): Likewise.
5638 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
5641 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
5642 types that needs constructiong.
5643 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
5645 2019-02-12 Richard Biener <rguenther@suse.de>
5647 PR tree-optimization/89253
5648 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
5651 2019-02-11 David Malcolm <dmalcolm@redhat.com>
5654 * input.c (selftest::test_line_offset_overflow): New selftest.
5655 (selftest::input_c_tests): Call it.
5657 2019-02-11 Martin Sebor <msebor@redhat.com>
5659 PR tree-optimization/88771
5660 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
5661 when -Wstringop-overflow is set.
5662 (builtin_memref::builtin_memref): Adjust excessive upper bound
5663 only when lower bound is not excessive.
5664 (maybe_diag_overlap): Detect and diagnose excessive bounds via
5665 -Wstringop-ovefflow.
5666 (maybe_diag_offset_bounds): Rename...
5667 (maybe_diag_access_bounds): ...to this.
5668 (check_bounds_or_overlap): Adjust for name change above.
5670 2019-02-11 Martin Sebor <msebor@redhat.com>
5673 * builtins.c (max_object_size): Move from here...
5674 * builtins.h (max_object_size): ...and here...
5675 * tree.c (max_object_size): ...to here...
5676 * tree.h (max_object_size): ...and here.
5678 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
5680 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
5681 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
5682 for correct semantics.
5684 2019-02-11 Alan Modra <amodra@gmail.com>
5686 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
5687 -mlongcall and -mpltseq.
5688 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
5689 (RS/6000 and PowerPC Options <-mpltseq>): Document.
5690 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
5691 * config/rs6000/sysv4.opt (mpltseq): New option.
5692 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
5693 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
5694 support is lacking. Don't allow -mpltseq with -mbss-plt.
5695 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
5696 -mpltseq given for ELFv1.
5697 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
5698 Only use UNSPEC_PLTSEQ for inline PLT calls.
5699 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
5700 use UNSPEC_PLTSEQ for inline PLT calls.
5701 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
5702 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
5703 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
5704 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
5705 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
5706 (pltseq_mtctr_<mode>): Likewise.
5708 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5710 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
5712 * configure: Regenerate.
5714 2019-02-11 Jakub Jelinek <jakub@redhat.com>
5717 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
5720 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
5722 * function.c (assign_parm_setup_block): Use the stored
5723 size, not the passed size, when allocating stack-space,
5724 also for a parameter with alignment larger than
5725 MAX_SUPPORTED_STACK_ALIGNMENT.
5727 2019-02-11 Martin Liska <mliska@suse.cz>
5730 * ipa-cp.c (build_toporder_info): Remove usage of a param.
5731 * ipa-inline.c (inline_small_functions): Likewise.
5732 * ipa-pure-const.c (propagate_pure_const): Likewise.
5733 (propagate_nothrow): Likewise.
5734 * ipa-reference.c (propagate): Likewise.
5735 * ipa-utils.c (struct searchc_env): Remove unused field.
5736 (searchc): Always search across AVAIL_INTERPOSABLE.
5737 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
5738 the only called IPA pure const can properly not propagate
5739 across interposable boundary.
5740 * ipa-utils.h (ipa_reduced_postorder): Remove param.
5742 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
5744 * config/nds32/nds32.md (call_internal, call_value_internal,
5745 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
5747 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
5749 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
5752 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
5754 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
5757 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
5759 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
5761 2019-02-10 Jakub Jelinek <jakub@redhat.com>
5763 PR tree-optimization/89268
5764 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
5765 if preds is non-NULL.
5767 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5770 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
5773 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
5775 * config/nds32/nds32.md (trap): New pattern.
5777 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
5779 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
5782 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
5784 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
5787 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5789 * ipa-visibility.c (localize_node): Also do not localize
5790 LDPR_PREVAILING_DEF_IRONLY_EXP.
5792 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5795 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
5796 instead of type_with_linkage.
5798 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5801 * params.def (uninlined-function-insns, uninlined-function-time,
5802 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
5803 bound so we don't get overflows.
5805 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
5807 * config/rs6000/rs6000-string.c (expand_compare_loop,
5808 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
5811 2019-02-09 Jakub Jelinek <jakub@redhat.com>
5814 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
5815 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
5816 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
5818 2019-02-09 Alan Modra <amodra@gmail.com>
5821 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
5822 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
5825 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
5828 * lra-constraints.c (process_alt_operands): Don't increase reject
5829 for memory when offset memory is required.
5831 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
5833 * config/s390/vector.md: Implement vector copysign.
5835 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
5837 * expr.c (expand_constructor): Correct indentations.
5839 2019-02-08 Richard Biener <rguenther@suse.de>
5841 PR tree-optimization/89247
5842 * tree-if-conv.c: Include tree-cfgcleanup.h.
5843 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
5844 (tree_if_conversion): Pass through predicate vector.
5845 (pass_if_conversion::execute): Do CFG cleanup and SSA update
5846 inline, see if any if-converted loops we refrece in
5847 LOOP_VECTORIZED calls vanished and fixup.
5848 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
5850 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
5852 * config/s390/constraints.md (jdd): New constraint.
5854 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
5857 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
5858 upper 16 vector registers without TARGET_AVX512VL.
5859 (*movti_internal): Likewise.
5861 2019-02-08 Jakub Jelinek <jakub@redhat.com>
5863 PR rtl-optimization/89234
5864 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
5865 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
5866 (copy_reg_eh_region_note_backward): Likewise.
5868 2019-02-08 Richard Biener <rguenther@suse.de>
5871 * tree-data-ref.c (initialize_matrix_A): Fail if constant
5873 (analyze_subscript_affine_affine): Handle failure from
5874 initialize_matrix_A.
5876 2019-02-08 Jakub Jelinek <jakub@redhat.com>
5878 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
5881 2019-02-07 David Malcolm <dmalcolm@redhat.com>
5883 PR tree-optimization/86637
5884 PR tree-optimization/89235
5885 * tree-vect-loop.c (optimize_mask_stores): Add an
5886 auto_purge_vect_location sentinel to ensure that vect_location is
5889 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
5890 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
5891 to ensure that vect_location is purged on exit.
5892 (pass_slp_vectorize::execute): Likewise, replacing the manual
5894 * tree-vectorizer.h (class auto_purge_vect_location): New class.
5896 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5898 * config/aarch64/iterators.md (max_opp): New code_attr.
5899 (USMAX): New code iterator.
5900 * config/aarch64/predicates.md (aarch64_smin): New predicate.
5901 (aarch64_smax): Likewise.
5902 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
5903 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
5906 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
5909 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
5910 for TARGET_AVX512VL.
5911 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
5913 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
5915 * config/s390/s390-builtin-types.def: Add new types.
5916 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
5917 (s390_vec_xlw4): Make the memory operand into a const pointer.
5918 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
5920 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
5921 a new vector type with the alignment of the scalar memory operand.
5923 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
5924 Jakub Jelinek <jakub@redhat.com>
5927 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
5928 arm_count_ldrdstrd_insns): New declarations.
5929 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
5931 (valid_operands_ldrd_strd): New function.
5932 (arm_count_ldrdstrd_insns): New function.
5933 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
5934 sets instead of single DImode set and define new insns to match this.
5936 2019-02-07 Tamar Christina <tamar.christina@arm.com>
5938 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
5939 Make it a C initializer.
5941 2019-02-07 Tamar Christina <tamar.christina@arm.com>
5944 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
5946 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5948 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
5949 Use neon_dot<q> for type.
5950 (neon_<sup>dot_lane<vsi2qi>): Likewise.
5952 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5954 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
5955 Use neon_dot<q> for type.
5956 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
5957 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
5959 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
5961 PR rtl-optimization/89225
5962 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
5965 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
5967 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
5968 after restoring registers saved to allocate the frame on Windows.
5970 2019-02-06 Richard Biener <rguenther@suse.de>
5972 PR tree-optimization/89182
5973 * graphite.h (cached_scalar_evolution_in_region): Declare.
5974 * graphite.c (struct seir_cache_key): New.
5975 (struct sese_scev_hash): Likewise.
5976 (seir_cache): New global.
5977 (cached_scalar_evolution_in_region): New function.
5978 (graphite_transform_loops): Allocate and release seir_cache.
5979 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
5980 cached_scalar_evolution_in_region.
5981 * graphite-scop-detection.c (scop_detection::can_represent_loop):
5983 (scop_detection::graphite_can_represent_expr: Use
5984 cached_scalar_evolution_in_region.
5985 (scop_detection::stmt_simple_for_scop_p): Likewise.
5986 (find_params_in_bb): Likewise.
5987 (gather_bbs::before_dom_children): Likewise.
5988 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
5989 (add_loop_constraints): Likewise.
5991 2019-02-06 Jakub Jelinek <jakub@redhat.com>
5994 * fold-const-call.c (fold_const_vec_convert): Pass true as last
5995 operand to new_unary_operation only if both element types are integral
5996 and it isn't a widening conversion. Return NULL_TREE if
5997 new_unary_operation failed.
5999 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
6002 * config/s390/s390.md: Remove load and test FP splitter.
6004 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6007 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
6008 expand_compare_loop, expand_block_compare_gpr,
6009 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
6010 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
6011 #include "profile-count.h" and "predict.h" for types and functions
6012 needed to work with REG_BR_PROB notes.
6014 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6017 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
6018 for the long branch case.
6020 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6023 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
6024 can throw, non-call exceptions are enabled and we can't delete
6025 dead exceptions or alter cfg. Set must_clean if
6026 delete_insn_and_edges returns true, don't set it blindly for calls.
6027 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
6029 PR rtl-optimization/89195
6030 * combine.c (make_extraction): For MEMs, don't extract bytes outside
6031 of the original MEM.
6033 2019-02-05 Martin Liska <mliska@suse.cz>
6035 PR gcov-profile/89000
6036 * gcov.c (function_summary): Remove argument.
6037 (file_summary): New function.
6038 (print_usage): Replace tabs with spaces.
6039 (generate_results): Use new function file_summary.
6041 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6044 * optabs.c (prepare_cmp_insn): Pass x and y to
6045 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
6047 2019-02-05 Richard Biener <rguenther@suse.de>
6050 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
6051 (struct bitmap_element): Drop chain_prev so we properly recurse on
6052 the prev member, supporting tree views.
6053 (struct bitmap_head): GTY skip the obstack member.
6055 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
6058 * doc/extend.texi (Vector Extensions): Add an example of using vector
6059 types together with x86 intrinsics.
6061 2019-02-04 Alan Modra <amodra@gmail.com>
6063 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
6064 str[] size to 160, and comment.
6066 2019-02-04 Alan Modra <amodra@gmail.com>
6068 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
6069 (rs6000_pltseq_template): Guard output of TLS markers with
6071 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
6072 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
6073 to use inline PLT sequences.
6074 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
6075 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
6076 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
6078 2019-02-04 Martin Liska <mliska@suse.cz>
6081 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
6082 out when ipa_fn_summaries does not contain entry for callee.
6084 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
6086 * config/sparc/sparc.h: Remove superfluous blank lines.
6087 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
6088 (got_register_rtx): ...this.
6089 (sparc_got): Adjust to above renaming.
6090 (sparc_tls_got): Likewise.
6091 (sparc_delegitimize_address): Likewise.
6092 (sparc_output_mi_thunk): Likewise.
6093 (sparc_init_pic_reg): Likewise.
6094 (save_local_or_in_reg_p): Fix test on the GOT register.
6095 (USE_HIDDEN_LINKONCE): Move around.
6096 (get_pc_thunk_name): Likewise.
6097 (gen_load_pcrel_sym): Likewise.
6098 (load_got_register): Likewise.
6100 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
6102 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
6103 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
6105 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6107 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
6110 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6112 * config.gcc (with_nds32_lib, glibc):
6113 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
6114 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
6115 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
6117 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
6120 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
6121 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
6122 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
6123 (*rcpsf2_sse): Ditto.
6124 (*rsqrtsf2_sse): Ditto.
6125 (sse4_1_round<mode<2): Ditto.
6127 2019-02-03 Richard Biener <rguenther@suse.de>
6130 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
6133 2019-02-02 Jakub Jelinek <jakub@redhat.com>
6136 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
6137 Punt with warning on aggregate return or argument types. Ignore
6138 type/mode checking for uniform arguments.
6140 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
6142 * combine.c (try_combine): Do not print "Can't combine" messages unless
6143 printing failed combination attempts.
6145 2019-02-01 Martin Jambor <mjambor@suse.cz>
6148 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
6149 segment and global segment variables before making them static.
6151 2019-02-01 Martin Jambor <mjambor@suse.cz>
6153 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
6154 missed optimization dump with dump_enabled_p.
6156 2019-02-01 Richard Biener <rguenther@suse.de>
6159 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
6160 the instantiate cache.
6161 (instantiate_scev_binary): Elide second operand procesing
6162 if equal to the first.
6163 * tree-chrec.c (chrec_contains_symbols): Add visited set.
6164 (chrec_contains_undetermined): Likewise.
6165 (tree_contains_chrecs): Likewise.
6167 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
6169 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
6171 2019-02-01 Jakub Jelinek <jakub@redhat.com>
6173 PR tree-optimization/89143
6174 * wide-int-range.h (wide_int_range_absu): Declare.
6175 * wide-int-range.cc (wide_int_range_absu): New function.
6176 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
6178 PR tree-optimization/88107
6179 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
6180 instead of assertion that eh_region_outermost is non-NULL, if it
6181 is NULL, set *ALL to true and return NULL.
6182 (move_sese_region_to_fn): Adjust caller, if all is set, call
6183 duplicate_eh_regions with NULL region.
6185 2019-02-01 Richard Biener <rguenth@suse.de>
6187 PR rtl-optimization/88593
6188 * mode-switching.c (optimize_mode_switching): Free dominators before
6189 calling cleanup_cfg.
6191 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
6193 PR tree-optimization/88932
6194 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
6196 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6199 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
6200 bogus clang warning.
6202 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
6205 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
6206 alternative to avoid partial SSE register stall for TARGET_AVX.
6207 (truncdfsf2): Ditto.
6208 (sse4_1_round<mode>2): Ditto.
6210 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
6212 PR tree-optimization/89008
6213 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
6214 process anything of the form X * 0.
6216 2019-01-31 Richard Biener <rguenther@suse.de>
6218 PR tree-optimization/89135
6219 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
6220 with abnormal preds.
6222 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6225 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
6226 always_inline callees into no_sanitize_address callers.
6228 2019-01-31 Richard Biener <rguenther@suse.de>
6230 PR rtl-optimization/89115
6231 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
6233 2019-01-30 Martin Sebor <msebor@redhat.com>
6236 * doc/extend.texi (cast to a union): Correct and expand.
6238 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
6240 PR rtl-optimization/87246
6241 * lra-constraints.c (simplify_operand_subreg): Reload memory
6242 in subreg if the address became invalid.
6244 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
6247 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
6248 Disable for little-endian.
6250 2019-01-30 Richard Biener <rguenther@suse.de>
6252 PR rtl-optimization/89115
6253 * opts.c (default_options_optimization): Reduce
6254 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
6255 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
6258 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
6260 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
6261 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
6262 type of vector element when vec_extract is implemented by direct
6265 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
6267 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
6269 2019-01-30 Richard Biener <rguenther@suse.de>
6271 PR tree-optimization/89111
6272 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
6273 canonicalization to appropriately sized access types.
6275 2019-01-30 Jakub Jelinek <jakub@redhat.com>
6278 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
6279 for arguments to functions that are TU-local and shouldn't be
6280 referenced by assembly.
6282 2019-01-30 Ulrich Drepper <drepper@redhat.com>
6284 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
6287 2019-01-29 Martin Sebor <msebor@redhat.com>
6290 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
6292 2019-01-29 Jakub Jelinek <jakub@redhat.com>
6296 * omp-simd-clone.c (simd_clone_clauses_extract)
6297 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
6298 OMP_CLAUSE_ALIGNED_ALIGNMENT.
6300 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
6302 * config.gcc: Force .init_array for ARC.
6304 2019-01-29 Richard Biener <rguenther@suse.de>
6307 * dwarf2out.c (collect_skeleton_dies): New helper.
6308 (copy_decls_for_unworthy_types): Call it.
6309 (build_abbrev_table): Assert we do not try to replace
6310 DW_AT_signature refs with local refs.
6312 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6315 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
6316 for lastprivate/linear IV, push gimplify context around gimplify_assign
6317 and, if it needed any temporaries, pop it into a gimple bind around the
6320 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6322 * common.opt (-Wattribute-alias): Remove "no-" from name.
6323 Make -Wattribute-alias command line option and
6324 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
6326 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6329 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
6330 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
6332 (bmi2): Add missing @opindex.
6333 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
6334 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
6335 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
6336 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
6337 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
6338 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
6339 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
6340 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
6341 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
6342 xsavec, xsaveopt and xsaves options.
6344 2019-01-28 Richard Biener <rguenther@suse.de>
6347 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
6350 2019-01-28 Richard Biener <rguenther@suse.de>
6352 PR tree-optimization/88739
6353 * tree-cfg.c (verify_types_in_gimple_reference): Verify
6354 BIT_FIELD_REFs only are applied to mode-precision operands
6355 when they are integral.
6356 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
6357 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
6358 BIT_FIELD_REFs of non-mode-precision integral operands.
6360 2019-01-27 Jakub Jelinek <jakub@redhat.com>
6363 * config/i386/sse.md
6364 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
6365 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
6366 first constants in pairs are multiples of 2. Formatting fixes.
6367 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
6368 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
6369 first constants in each quadruple are multiples of 4. Formatting fixes.
6371 2019-01-26 Martin Jambor <mjambor@suse.cz>
6374 * tree-inline.c: Include tree-cfgcleanup.h.
6375 (delete_unreachable_blocks_update_callgraph): Move...
6376 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
6377 ...here, make externally visible, make second argument bool, adjust
6379 * tree-cfgcleanup.c: Include cgraph.h.
6380 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
6382 * ipa-prop.c: Include tree-cfgcleanup.h.
6383 (ipcp_transform_function): Call
6384 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
6386 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
6388 PR rtl-optimization/88846
6389 * ira.c (process_set_for_memref_referenced_p): New.
6390 (memref_referenced_p): Add new param. Use
6391 process_set_for_memref_referenced_p. Add new switch cases.
6392 (memref_used_between_p): Pass new arg to memref_referenced_p.
6394 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
6397 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
6398 argument ABI_BREAK. Set to true if the calculated alignment has
6399 changed in gcc-9. Check bit-fields for their base type alignment.
6400 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
6401 (aarch64_function_arg_boundary): Likewise.
6402 (aarch64_gimplify_va_arg_expr): Likewise.
6404 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6407 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
6408 instead of accessing TREE_INT_CST_ELT directly.
6410 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
6412 * doc/sourcebuild.texi (Environment attributes): Add fenv and
6413 fenv_exceptions description.
6415 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
6417 PR rtl-optimization/87763
6418 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
6419 Allow SUBREG when matching CC_NZmode compare.
6421 2019-01-25 Richard Biener <rguenther@suse.de>
6423 PR tree-optimization/89049
6424 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
6425 Look at the pattern stmt to determine if the stmt is vectorized.
6427 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6429 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
6430 (pred_mov<mode>): Handle all-register forms using both a new
6431 alternative and a split.
6433 2019-01-25 Richard Biener <rguenther@suse.de>
6435 PR tree-optimization/86865
6436 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6437 Reject non-do-while loops.
6439 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
6441 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
6442 * config/rs6000/constraints.md (Q constraint): Use REG_P.
6443 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
6444 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
6445 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
6446 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6447 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
6448 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
6449 vlogical_operand, gpc_reg_operand, int_reg_operand,
6450 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
6451 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
6452 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
6453 (save_world_operation, restore_world_operation, lmw_operation,
6454 stmw_operation): Use MEM_P and REG_P.
6455 (tie_operand): Use MEM_P.
6456 (vrsave_operation, crsave_operation): Use REG_P.
6457 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
6458 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
6459 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
6460 (call_operand): Use HARD_REGISTER_P.
6461 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
6463 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
6464 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
6465 quad_aligned_load_p, replace_swapped_aligned_store,
6466 recombine_lvx_pattern, replace_swapped_aligned_load,
6467 recombine_stvx_pattern): Use MEM_P.
6468 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
6469 Use MEM_P and SYMBOL_REF_P.
6470 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
6471 (insn_is_swappable_p): Use REG_P and MEM_P.
6472 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
6473 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
6475 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
6477 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
6479 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
6480 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
6481 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
6482 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
6484 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
6485 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
6486 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
6487 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
6488 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
6489 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
6490 rs6000_split_logical_di): Use CONST_INT_P.
6491 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
6492 REG_P and SYMBOL_REF_P.
6493 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
6494 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
6495 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
6496 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
6497 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
6498 (small_data_operand, print_operand_address): Use CONST_INT_P and
6500 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
6501 (rs6000_init_hard_regno_mode_ok, direct_move_p):
6502 Use HARD_REGISTER_NUM_P.
6503 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
6504 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
6505 SUBREG_P and SYMBOL_REF_P.
6506 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
6507 and HARD_REGISTER_NUM_P.
6508 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
6510 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
6511 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
6513 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
6514 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
6515 find_addr_reg): Use REG_P.
6516 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
6517 (rs6000_emit_le_vsx_move): Use SUBREG_P.
6518 (offsettable_ok_by_alignment, constant_pool_expr_p,
6519 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
6520 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
6521 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
6522 rs6000_assemble_integer, create_TOC_reference,
6523 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
6524 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
6525 (rs6000_split_vec_extract_var): Use reg_or_subregno.
6526 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
6527 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
6528 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6529 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
6530 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
6531 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
6532 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
6533 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
6534 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
6535 and cbranch<mode>4): Use CONST_INT_P.
6536 (multiple define_splits): Use REG_P and SUBREG_P.
6537 (define_expands call, call_value): Use MEM_P.
6538 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
6539 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
6540 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
6541 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
6542 and HARD_REGISTER_NUM_P.
6543 (multiple define_splits): Use HARD_REGISTER_NUM_P.
6545 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6547 PR rtl-optimization/88948
6548 * rtl.h (prepare_copy_insn): New prototype.
6549 * gcse.c (prepare_copy_insn): New function, split out from
6550 process_insert_insn.
6551 (process_insert_insn): Use prepare_copy_insn.
6552 * store-motion.c (replace_store_insn): Use prepare_copy_insn
6553 instead of gen_move_insn.
6555 2019-01-24 Jakub Jelinek <jakub@redhat.com>
6558 * config/i386/i386.c (ix86_pic_register_p): Return true for
6561 PR tree-optimization/88964
6562 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
6563 punt if HONOR_SNANS (chrec).
6566 * tree-nested.c (convert_nonlocal_reference_stmt,
6567 convert_local_reference_stmt, convert_tramp_reference_stmt,
6568 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
6569 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
6572 PR tree-optimization/89027
6573 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
6574 for "omp simd array" variables.
6576 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
6579 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
6580 force the alignment of m_val.
6582 2019-01-24 Richard Biener <rguenther@suse.de>
6585 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
6586 When in "legacy" debug mode make sure to reset self-origins.
6588 2019-01-24 Martin Liska <mliska@suse.cz>
6590 PR gcov-profile/88994
6591 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
6592 result will be always smaller or equal to the original.
6593 * gcov.c (mangle_name): Fix else branch where we should
6594 also copy to PTR and shift the pointer.
6596 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6598 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
6599 * vr-values.c (find_case_label_ranges): Fix a comment typo.
6601 2019-01-23 Bin Cheng <bin.cheng@arm.com>
6602 Steve Ellcey <sellcey@marvell.com>
6605 * recog.c (address_operand): Return false on wrong mode for address.
6606 (constrain_operands): Check for mode with 'p' constraint.
6608 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
6611 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
6612 Disparage MMX alternative.
6613 (sse2_cvtpd2pi): Ditto.
6614 (sse2_cvttpd2pi): Ditto.
6616 2019-01-23 David Malcolm <dmalcolm@redhat.com>
6619 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
6620 use-after-free of the result of
6621 aarch64_get_extension_string_for_isa_flags.
6623 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6626 * doc/extend.texi: Document break and continue behavior in
6627 statement expressions.
6629 2019-01-23 Richard Biener <rguenther@suse.de>
6631 PR tree-optimization/89008
6632 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
6633 not leave another stray operand.
6635 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6637 * BASE-VER: Bump to 9.0.1.
6639 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
6641 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
6642 thunk that returns by reference, use the type of the return object
6643 of the thunk instead of that of the alias to build the dereference.
6645 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
6647 * config/arc/atomic.md: Add operand to DMB instruction.
6649 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6651 PR tree-optimization/88964
6652 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
6653 build_zero_cst instead of build_int_cst. Return false for loop
6654 invariants which honor signed zeros.
6656 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
6658 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
6660 2019-01-22 Jakub Jelinek <jakub@redhat.com>
6663 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
6664 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
6665 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
6668 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
6669 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
6672 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
6673 Disable for little endian.
6675 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
6678 * config/arm/arm.c (arm_needs_double_word_align): Check
6679 DECL_BIT_FIELD_TYPE.
6681 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
6682 H.J. Lu <hongjiu.lu@intel.com>
6685 * config/i386/i386-builtin.def: Add mask2 to all builtin
6686 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
6688 * config/i386/i386.c (BDESC): Add mask2 to the definition.
6689 (BDESC_FIRST): Likewise.
6690 (define_builtin): Add an argument for mask2. Updated to handle
6691 both ix86_isa_flags and ix86_isa_flags2.
6692 (define_builtin_const): Likewise.
6693 (define_builtin_pure): Likewise.
6694 (define_builtin2): Deleted.
6695 (define_builtin_const2): Likewise.
6696 (builtin_description): Add a member, mask2.
6697 (bdesc_*): Add mask2 to builtin initializations.
6698 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
6699 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
6701 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
6703 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
6706 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
6709 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
6712 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
6713 alignment is dominated by a bitfield with 64-bit aligned base type.
6714 (arm_function_arg): Emit a warning if the alignment has changed since
6715 earlier GCC releases.
6716 (arm_function_arg_boundary): Likewise.
6717 (arm_setup_incoming_varargs): Likewise.
6719 2019-01-22 Richard Biener <rguenther@suse.de>
6721 PR tree-optimization/88862
6722 * graphite-scop-detection.c
6723 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
6725 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
6727 * doc/extend.tex (AMD GCN Function Attributes): New section.
6728 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
6729 * doc/invoke.texi (AMD GCN Options): New section.
6730 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
6732 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
6734 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
6735 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
6737 2019-01-22 Jakub Jelinek <jakub@redhat.com>
6739 PR tree-optimization/88044
6740 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
6741 is false in the first iteration, but !every_iteration, return false
6742 instead of true with niter->niter zero.
6744 PR rtl-optimization/88904
6745 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
6746 any nonequal registers before processing BB_END (b).
6749 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
6751 (expand_binop_directly, expand_doubleword_clz,
6752 expand_doubleword_popcount, expand_ctz, expand_ffs,
6753 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
6755 PR rtl-optimization/49429
6757 PR rtl-optimization/86334
6759 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
6760 addressable from here...
6761 (emit_block_op_via_libcall): ... to here.
6763 2019-01-22 Richard Biener <rguenther@suse.de>
6765 * tree-vect-loop.c (vect_analyze_loop_operations): Use
6766 auto_vec for cost vector to fix memleak.
6767 (vectorize_fold_left_reduction): Properly gather SLP defs.
6768 (vectorizable_comparison): Do not swap operands to properly
6771 2019-01-22 Alan Modra <amodra@gmail.com>
6774 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
6775 stays a reg. Allow a const_int.
6776 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
6777 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
6778 (IS_NOMARK_TLSGETADDR): Define.
6779 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
6780 (rs6000_output_tlsargs): New function.
6781 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
6782 __tls_get_addr call takes an arg.
6783 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
6784 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
6786 (call_value_nonlocal_sysv): ..or here, delete split.
6787 (tls_gdld_nomark): Delete.
6788 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
6789 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
6790 (call_value_nonlocal_sysv): Likewise.
6791 (call_value_nonlocal_sysv_secure): Likewise.
6792 (call_value_nonlocal_aix): Likewise.
6793 (call_value_indirect_aix): Likewise.
6794 (call_value_indirect_elfv2): Likewise.
6795 (call_value_local32, call_value_local64): Disable for no-mark tls.
6796 (call_value_local_aix): Likewise.
6798 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
6801 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
6802 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
6804 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
6806 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
6807 string contents as hash_map keys.
6809 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6812 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
6813 for rvalue context. Handle rvalues correctly. Use min_align_of_type
6814 instead of TYPE_ALIGN.
6815 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
6816 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
6817 pointer from TYPE_STUB_DECL.
6819 2019-01-21 Richard Biener <rguenther@suse.de>
6821 PR tree-optimization/88934
6822 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
6823 at the possibly non-constant operand.
6824 (vect_get_constant_vectors): Adjust.
6826 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6829 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
6830 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
6831 instead of _X86INTRIN_H_INCLUDED.
6832 * onfig/i386/clwbintrin.h: Likewise.
6833 * config/i386/pkuintrin.h: Likewise.
6834 * config/i386/prfchwintrin.h: Likewise.
6835 * config/i386/rdseedintrin.h: Likewise.
6836 * config/i386/wbnoinvdintrin.h: Likewise.
6837 * config/i386/xsavecintrin.h: Likewise.
6838 * config/i386/xsavesintrin.h: Likewise.
6839 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
6840 * config/i386/xsaveintrin.h: Likewise.
6841 * config/i386/xsaveoptintrin.h: Likewise.
6842 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
6843 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
6844 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
6845 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
6846 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
6847 * config/i386/immintrin.h: Here.
6849 2019-01-20 Martin Jambor <mjambor@suse.cz>
6852 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
6853 with aa_walk_budget.
6854 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
6855 aa_walk_budget_p parameter.
6856 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
6857 walk. Updated all callers.
6858 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
6859 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
6861 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
6862 parameter info. Extract info from fbi. Pass fbi to recursive calls
6863 and to unmodified_parm.
6864 (phi_result_unknown_predicate): New parameter fbi, removed parameter
6865 info, updated call to will_be_nonconstant_expr_predicate.
6866 (param_change_prob): New parameter fbi, limit AA walking.
6867 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
6868 calls to various above functions.
6869 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
6870 parameter. Use it to limit AA walking.
6871 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
6873 (detect_type_change): New parameter fbi, pass it on to
6874 detect_type_change_from_memory_writes.
6875 (detect_type_change_ssa): Likewise.
6876 (aa_overwalked): Removed.
6877 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
6878 accordingly, adjust to the neew AA limiting scheme.
6879 (parm_ref_data_preserved_p): Likewise.
6880 (ipa_compute_jump_functions_for_edge): Adjust call to
6882 (ipa_analyze_call_uses): Likewise.
6883 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
6884 (ipa_analyze_node): Initialize aa_walk_budget.
6885 (ipcp_transform_function): Likewise.
6886 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
6887 to get_dynamic_type.
6889 2019-01-19 Jakub Jelinek <jakub@redhat.com>
6891 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
6892 outside of #if CHECKING_P code.
6894 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
6896 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
6897 New function, split out from...
6898 (loop_versioning::analyze_stride): ...here.
6899 (loop_versioning::find_per_loop_multiplication): Use gassign.
6900 (loop_versioning::analyze_term_using_scevs): Return a success code.
6901 (loop_versioning::analyze_arbitrary_term): New function.
6902 (loop_versioning::analyze_address_fragment): Use
6903 analyze_arbitrary_term if all else fails.
6905 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
6908 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
6911 2019-01-18 Richard Biener <rguenther@suse.de>
6913 PR tree-optimization/88903
6914 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
6915 scalar stmts a SLP shift amount is composed of when detecting
6918 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
6921 * config/arm/arm-cpus.in (mp): New feature.
6923 (fgroup ARMv7ve): Add mp and sec features.
6924 (arch armv7-a): Add options to allow mp and sec extensions.
6925 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
6926 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
6927 extenstions to the base architecture.
6928 (cpu cortex-a8): Add sec extension to the base architecture.
6929 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
6930 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
6931 variants down to the base v7-a varaint.
6932 * config/arm/t-multilib (v7_a_arch_variants): New variable.
6933 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
6934 of permitted extensions for -march=armv7-a and for
6935 -mcpu=generic-armv7-a.
6937 2019-01-18 Martin Liska <mliska@suse.cz>
6939 * params.def: Fix comment.
6940 * tree-profile.c (gimple_init_gcov_profiler): Bump function
6942 (gimple_gen_ic_func_profiler): Likewise.
6944 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6946 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
6947 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
6948 and put in error checks for stack protector guard options.
6949 (aarch64_stack_protect_guard): New.
6950 (TARGET_STACK_PROTECT_GUARD): Define.
6951 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
6952 (reg_stack_protect_address<mode>): New.
6953 (stack_protect_set): Adjust for SSP_GLOBAL.
6954 (stack_protect_test): Likewise.
6955 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
6956 (-mstack-protector-guard): Likewise.
6957 (-mstack-protector-guard-offset): Likewise.
6959 2019-01-18 Jakub Jelinek <jakub@redhat.com>
6961 PR tree-optimization/86214
6962 * tree-inline.h (struct copy_body_data): Add
6963 add_clobbers_to_eh_landing_pads member.
6964 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
6965 (copy_edges_for_bb): Call it if EH edge destination is <
6966 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
6967 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
6968 if flag_stack_reuse != SR_NONE and clear it afterwards.
6970 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
6973 * doc/install.texi (with-multilib-list): Document for aarch64.
6975 2019-01-18 Jakub Jelinek <jakub@redhat.com>
6978 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
6979 (("..."))) with ("...").
6981 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6983 * doc/extend.texi (Built-in Functions for Memory Model Aware
6984 Atomic Operations): Document atomic fetch and nand.
6986 2019-01-18 Martin Liska <mliska@suse.cz>
6987 Richard Biener <rguenther@suse.de>
6990 * cgraph.h (create_version_clone_with_body): Add new argument
6992 * cgraphclones.c (cgraph_node::create_version_clone): Add
6993 DECL_ATTRIBUTES to a newly created decl. And call
6994 valid_attribute_p so that proper cl_target_optimization_node
6995 is set for the newly created declaration.
6996 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
6998 (expand_target_clones): Do not call valid_attribute_p, it must
7000 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
7003 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7006 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
7007 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
7008 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
7010 2019-01-17 Martin Sebor <msebor@redhat.com>
7013 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
7014 Handle anti-ranges the same as no range at all.
7016 2018-01-17 Steve Ellcey <sellcey@cavium.com>
7018 * config/aarch64/aarch64.c (cgraph.h): New include.
7019 (intl.h): New include.
7020 (supported_simd_type): New function.
7021 (currently_supported_simd_type): Ditto.
7022 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
7023 (aarch64_simd_clone_adjust): Ditto.
7024 (aarch64_simd_clone_usable): Ditto.
7025 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
7026 (TARGET_SIMD_CLONE_ADJUST): Ditto.
7027 (TARGET_SIMD_CLONE_USABLE): Ditto.
7028 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
7029 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
7032 2019-01-17 Martin Sebor <msebor@redhat.com>
7034 PR tree-optimization/88800
7035 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
7036 NO_WARNING bit here. Avoid folding out-of-bounds calls.
7037 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
7038 redundant argument. Add new argument and issue diagnostics under
7039 its control. Detect out-of-bounds access even with warnings
7041 (check_bounds_or_overlap): Change return type. Add argument.
7042 (wrestrict_dom_walker::check_call): Adjust.
7043 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
7044 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
7045 check_bounds_or_overlap's return value.
7046 (handle_builtin_stxncpy): Same.
7047 (handle_builtin_strcat): Same.
7049 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7050 Kwok Cheung Yeung <kcy@codesourcery.com>
7051 Julian Brown <julian@codesourcery.com>
7052 Tom de Vries <tom@codesourcery.com>
7054 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
7056 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7058 * doc/sourcebuild.texi: Document dg-require-effective-target
7059 llvm_binutils and offload_gcn.
7061 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7062 Kwok Cheung Yeung <kcy@codesourcery.com>
7063 Julian Brown <julian@codesourcery.com>
7064 Tom de Vries <tom@codesourcery.com>
7066 * doc/sourcebuild.texi: Document dg-required-effective-target
7069 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7070 Kwok Cheung Yeung <kcy@codesourcery.com>
7071 Julian Brown <julian@codesourcery.com>
7072 Tom de Vries <tom@codesourcery.com>
7073 Jan Hubicka <hubicka@ucw.cz>
7074 Martin Jambor <mjambor@suse.cz>
7076 * config.gcc: Add amdgcn*-*-amdhsa configuration.
7077 * configure.ac: Check for dlopen.
7078 * configure: Regenerate.
7080 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7081 Kwok Cheung Yeung <kcy@codesourcery.com>
7082 Julian Brown <julian@codesourcery.com>
7083 Tom de Vries <tom@codesourcery.com>
7084 Jan Hubicka <hubicka@ucw.cz>
7085 Martin Jambor <mjambor@suse.cz>
7087 * common/config/gcn/gcn-common.c: New file.
7088 * config/gcn/driver-gcn.c: New file.
7089 * config/gcn/gcn-builtins.def: New file.
7090 * config/gcn/gcn-hsa.h: New file.
7091 * config/gcn/gcn-modes.def: New file.
7092 * config/gcn/gcn-opts.h: New file.
7093 * config/gcn/gcn-passes.def: New file.
7094 * config/gcn/gcn-protos.h: New file.
7095 * config/gcn/gcn-run.c: New file.
7096 * config/gcn/gcn-tree.c: New file.
7097 * config/gcn/gcn.c: New file.
7098 * config/gcn/gcn.h: New file.
7099 * config/gcn/gcn.opt: New file.
7100 * config/gcn/t-gcn-hsa: New file.
7102 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7103 Kwok Cheung Yeung <kcy@codesourcery.com>
7104 Julian Brown <julian@codesourcery.com>
7105 Tom de Vries <tom@codesourcery.com>
7106 Jan Hubicka <hubicka@ucw.cz>
7107 Martin Jambor <mjambor@suse.cz>
7109 * config/gcn/constraints.md: New file.
7110 * config/gcn/gcn-valu.md: New file.
7111 * config/gcn/gcn.md: New file.
7112 * config/gcn/predicates.md: New file.
7114 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
7116 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
7117 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
7118 (stmt_uses_0_or_null_in_undefined_way): Likewise.
7119 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
7121 2019-01-17 Tamar Christina <tamar.christina@arm.com>
7124 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
7125 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
7126 it and document registers.
7128 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7130 * config/aarch64/aarch64.c (ares_tunings): Define.
7131 * config/aarch64/aarch64-cores.def (ares): Use the above.
7133 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7137 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
7139 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
7140 (_mm512_fixupimm_round_pd): Update parameters and builtin.
7141 (_mm512_maskz_fixupimm_round_pd): Ditto.
7142 (_mm512_fixupimm_round_ps): Ditto.
7143 (_mm512_maskz_fixupimm_round_ps): Ditto.
7144 (_mm_fixupimm_round_sd): Ditto.
7145 (_mm_maskz_fixupimm_round_sd): Ditto.
7146 (_mm_fixupimm_round_ss): Ditto.
7147 (_mm_maskz_fixupimm_round_ss): Ditto.
7148 (_mm512_fixupimm_pd): Ditto.
7149 (_mm512_maskz_fixupimm_pd): Ditto.
7150 (_mm512_fixupimm_ps): Ditto.
7151 (_mm512_maskz_fixupimm_ps): Ditto.
7152 (_mm_fixupimm_sd): Ditto.
7153 (_mm_maskz_fixupimm_sd): Ditto.
7154 (_mm_fixupimm_ss): Ditto.
7155 (_mm_maskz_fixupimm_ss): Ditto.
7156 (_mm512_mask_fixupimm_round_pd): Update builtin.
7157 (_mm512_mask_fixupimm_round_ps): Ditto.
7158 (_mm_mask_fixupimm_round_sd): Ditto.
7159 (_mm_mask_fixupimm_round_ss): Ditto.
7160 (_mm512_mask_fixupimm_pd): Ditto.
7161 (_mm512_mask_fixupimm_ps): Ditto.
7162 (_mm_mask_fixupimm_sd): Ditto.
7163 (_mm_mask_fixupimm_ss): Ditto.
7164 * config/i386/avx512vlintrin.h:
7165 (_mm256_fixupimm_pd): Update parameters and builtin.
7166 (_mm256_maskz_fixupimm_pd): Ditto.
7167 (_mm256_fixupimm_ps): Ditto.
7168 (_mm256_maskz_fixupimm_ps): Ditto.
7169 (_mm_fixupimm_pd): Ditto.
7170 (_mm_maskz_fixupimm_pd): Ditto.
7171 (_mm_fixupimm_ps): Ditto.
7172 (_mm_maskz_fixupimm_ps): Ditto.
7173 (_mm256_mask_fixupimm_pd): Update builtin.
7174 (_mm256_mask_fixupimm_ps): Ditto.
7175 (_mm_mask_fixupimm_pd): Ditto.
7176 (_mm_mask_fixupimm_ps): Ditto.
7177 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
7178 * config/i386/i386-builtin.def: Update builtin definitions.
7179 * config/i386/i386.c: Handle new builtin types and remove useless ones.
7180 * config/i386/sse.md: Update VFIXUPIMM* patterns.
7181 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7182 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7183 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
7184 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7185 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7186 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
7187 * config/i386/subst.md:
7188 (round_saeonly_sd_mask_operand4): Add new subst_attr.
7189 (round_saeonly_sd_mask_op4): Ditto.
7190 (round_saeonly_expand_operand5): Ditto.
7191 (round_saeonly_expand): Update.
7193 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7197 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
7199 * config/i386/sse.md: Combine VFIXUPIMM* patterns
7200 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7201 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7202 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
7203 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
7204 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
7205 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
7207 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7211 2018-12-15 Jakub Jelinek <jakub@redhat.com>
7214 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
7215 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
7216 instead of UNSPEC_FIXUPIMM.
7218 2019-01-17 Richard Biener <rguenther@suse.de>
7221 * dwarf2out.c (want_pubnames): Never generate pubnames sections
7222 and friends for the LTO part of debug info.
7224 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7226 PR tree-optimization/86214
7227 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
7230 PR rtl-optimization/88870
7231 * dce.c (deletable_insn_p): Never delete const/pure calls that can
7232 throw if we can't alter the cfg or delete dead exceptions.
7233 (mark_insn): Don't call find_call_stack_args for such calls.
7235 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
7237 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
7238 prototypes for vec_st.
7239 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
7240 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
7241 mainly on signed/unsigned long long and double.
7243 2019-01-16 David Malcolm <dmalcolm@redhat.com>
7246 * combine.c (delete_noop_moves): Convert to "bool" return,
7247 returning true if any edges are eliminated.
7248 (combine_instructions): Also return true if delete_noop_moves
7251 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7253 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
7254 correct max nunits for endian swap.
7255 (aarch64_expand_fcmla_builtin): Correct subreg code.
7256 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7257 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
7260 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
7262 * config/alpha/alpha.c (alpha_gimplify_va_arg):
7263 Handle split indirect COMPLEX_TYPE arguments.
7265 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
7268 * config/aarch64/aarch64-modes.def: Add comment about how the carry
7269 bit is set by add and compare.
7270 (CC_ADC): New CC_MODE.
7271 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
7272 to cache the code and mode of X. Adjust the shape of a CC_Cmode
7273 comparison. Add detection for CC_ADCmode.
7274 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
7276 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
7277 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
7278 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
7279 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
7280 to eliminate the need for zero-extending the operands.
7281 (add<mode>3_compareC_imm): Delete. Merge into ...
7282 (add<mode>3_compareC): ... this. Restructure the comparison to
7283 eliminate the need for zero-extending the operands.
7284 (add<mode>3_carryin): Use LTU for the overflow detection.
7285 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
7286 Reexpress comparison for overflow.
7287 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
7288 (add<mode>3_carryinC): Likewise.
7289 (add<mode>3_carryinV): Use LTU for carry between partials.
7290 * config/aarch64/predicates.md (aarch64_carry_operation): Update
7291 handling of CC_Cmode and add CC_ADCmode.
7292 (aarch64_borrow_operation): Likewise.
7294 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7296 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
7297 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
7298 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
7299 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
7301 2019-01-16 Martin Liska <mliska@suse.cz>
7303 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
7305 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
7307 * gcc.c (add_sysrooted_hdrs_prefix): New function.
7308 (path_prefix_reset): Move up in the source file.
7309 (find_fortran_preinclude_file): Make complex search for the
7310 fortran header files.
7312 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
7314 * godump.c (go_output_typedef): When outputting a typedef, refer
7315 to the underlying type by its name and not its structure.
7317 2019-01-15 David Malcolm <dmalcolm@redhat.com>
7320 * tree.c (build_function_type): Assert that arg_types is not
7323 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
7326 * doc/extend.texi: Document that listing the stack pointer in the
7327 clobber list of an asm is a deprecated feature.
7328 * common.opt (Wdeprecated): Moved from c-family/c.opt.
7329 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
7330 warning instead of an error for clobbers of the stack pointer.
7331 Add a note explaining why.
7333 2019-01-15 Richard Biener <rguenther@suse.de>
7336 * dwarf2out.c (gen_member_die): Do not generate inheritance
7339 2019-01-15 Richard Biener <rguenther@suse.de>
7341 PR tree-optimization/88855
7342 * tree-if-conv.c (combine_blocks): Collect
7343 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
7345 2019-01-15 Tom de Vries <tdevries@suse.de>
7348 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
7349 lhs == NULL_TREE for gang-level reduction.
7351 2019-01-15 Richard Biener <rguenther@suse.de>
7352 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7355 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
7356 return true if SSA_NAME is already marked in visited bitmap.
7357 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
7359 2019-01-15 Jakub Jelinek <jakub@redhat.com>
7361 PR tree-optimization/88775
7362 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
7363 equal == 0 equality pointer comparisons some more if compared in
7364 integral types and either one points to an automatic var and the
7365 other to a global, or we can prove at least one points to the middle
7366 or both point to start or both point to end.
7368 2019-01-14 Andi Kleen <ak@linux.intel.com>
7370 * Makefile.in: Lower autofdo sampling rate by 10x.
7371 * Makefile.tpl: Dito.
7373 2019-01-14 Tom Honermann <tom@honermann.net>
7375 * defaults.h: Define CHAR8_TYPE.
7377 2019-01-14 Martin Sebor <msebor@redhat.com>
7380 * doc/extend.texi (Darwin Format Checks): Clarify.
7382 2019-01-14 Richard Biener <rguenther@suse.de>
7384 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
7385 whether we are in (simplify ...) or (match ...) context.
7387 2019-01-14 Jakub Jelinek <jakub@redhat.com>
7389 PR rtl-optimization/88796
7390 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
7391 * cfgexpand.c (stack_protect_prologue): Initialize
7392 crtl->stack_protect_guard_decl.
7393 * function.c (stack_protect_epilogue): Use it instead of calling
7394 targetm.stack_protect_guard again.
7395 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
7396 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
7397 crtl->stack_protect_guard_decl.
7398 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
7399 on the returned MEM_EXPR.
7401 2019-01-12 Tom de Vries <tdevries@suse.de>
7403 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
7404 vector length using -fopenacc-dim.
7406 2019-01-12 Tom de Vries <tdevries@suse.de>
7408 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
7409 lengths into account.
7411 2019-01-12 Svante Signell <svante.signell@gmail.com>
7413 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
7414 (TARGET_CAN_SPLIT_STACK): Define.
7415 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7417 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
7419 * params.def (inline-unit-growth): Set to 40.
7421 2019-01-12 Jakub Jelinek <jakub@redhat.com>
7423 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
7425 2019-01-12 Tom de Vries <tdevries@suse.de>
7427 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
7428 region calling vector-partitionable routine, set default_vector_length
7431 2019-01-12 Tom de Vries <tdevries@suse.de>
7433 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
7434 variable default_vector_length.
7436 2019-01-12 Tom de Vries <tdevries@suse.de>
7439 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
7440 from oacc_default_dims, as oacc_validate_dims would do it, and apply
7443 2019-01-12 Tom de Vries <tdevries@suse.de>
7445 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
7446 (nvptx_goacc_validate_dims): Add used parameter.
7447 * doc/tm.texi: Regenerate.
7448 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
7449 argument to call to targetm.goacc.validate_dims.
7450 (default_goacc_validate_dims): Add used
7452 * target.def (validate_dims): Add used parameter in DEFHOOK.
7453 * targhooks.h (default_goacc_validate_dims): Add used parameter.
7455 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7459 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
7461 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
7462 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
7463 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
7464 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
7466 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
7468 PR rtl-optimization/87305
7470 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
7471 for little endian pseudos used as paradoxical subreg.
7473 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7475 PR tree-optimization/88693
7476 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
7477 for STRING_CSTs that don't contain any NUL characters in the first
7478 TREE_STRING_LENGTH bytes.
7480 2019-01-11 Alan Modra <amodra@gmail.com>
7484 * genattrtab.c (min_fn): Don't translate values.
7485 (min_attr_value): Return INT_MAX when the value can't be calculated.
7486 Return minimum among any values that can be calculated.
7487 (max_attr_value): Adjust.
7489 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7491 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
7493 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7495 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
7496 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
7497 (aarch64_return_call_with_max_clobbers): New function.
7498 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
7499 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
7501 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
7502 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
7503 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
7504 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
7505 * cselib.c (cselib_process_insn): Add argument to
7506 targetm.hard_regno_call_part_clobbered call.
7507 * ira-conflicts.c (ira_build_conflicts): Ditto.
7508 * ira-costs.c (ira_tune_allocno_costs): Ditto.
7509 * lra-constraints.c (inherit_reload_reg): Ditto.
7510 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
7511 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
7512 argument. Call targetm.return_call_with_max_clobbers.
7513 Add argument to targetm.hard_regno_call_part_clobbered call.
7514 (calls_have_same_clobbers_p): New function.
7515 (process_bb_lives): Add call_insn and last_call_insn variables.
7516 Pass call_insn to check_pseudos_live_through_calls.
7517 Modify if stmt to check targetm.return_call_with_max_clobbers.
7518 Update setting of flush variable.
7519 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
7521 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
7522 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
7523 targetm.hard_regno_call_part_clobbered call.
7524 * reginfo.c (choose_hard_reg_mode): Ditto.
7525 * regrename.c (check_new_reg_p): Ditto.
7526 * reload.c (find_equiv_reg): Ditto.
7527 * reload1.c (emit_reload_insns): Ditto.
7528 * sched-deps.c (deps_analyze_insn): Ditto.
7529 * sel-sched.c (init_regs_for_mode): Ditto.
7530 (mark_unavailable_hard_regs): Ditto.
7531 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
7532 * target.def (hard_regno_call_part_clobbered): Add insn argument.
7533 (return_call_with_max_clobbers): New target function.
7534 * doc/tm.texi: Regenerate.
7535 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
7536 * hooks.c (hook_bool_uint_mode_false): Change to
7537 hook_bool_insn_uint_mode_false.
7538 * hooks.h (hook_bool_uint_mode_false): Ditto.
7540 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7542 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
7543 (aarch64_remove_extra_call_preserved_regs): New function.
7544 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
7545 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
7546 * doc/tm.texi: Regenerate.
7547 * final.c (get_call_reg_set_usage): Call new hook.
7548 * target.def (remove_extra_call_preserved_regs): New hook.
7549 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
7550 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
7552 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7555 * passes.c (finish_optimization_passes): Call print_combine_total_stats
7556 inside of pass_combine_1 dump rather than pass_profile_1.
7558 2019-01-11 Tom de Vries <tdevries@suse.de>
7560 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
7561 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
7562 (PTX_NUM_PER_WORKER_BARRIERS): Define.
7563 (nvptx_apply_dim_limits): Prevent vector_length 64 and
7566 2019-01-11 Tom de Vries <tdevries@suse.de>
7568 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
7570 2019-01-11 Jan Beulich <jbeulich@suse.com>
7572 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
7573 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
7574 sse2_cvtsi2sd): Add {l}.
7575 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
7578 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7581 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
7583 (*float<floatunssuffix>v2div2sf2): New define_insn.
7584 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
7585 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
7586 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
7587 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
7588 match_operands with "const0_operand" "C".
7590 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7592 * config/aarch64/aarch64-builtins.c
7593 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
7594 (aarch64_init_simd_builtins): ...Here
7596 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
7598 PR rtl-optimization/87305
7600 (setup_live_pseudos_and_spill_after_risky_transforms): Check
7601 allocation for big endian pseudos used as paradoxical subregs and
7602 spill them if it is wrong.
7603 * lra-constraints.c (lra_constraints): Add a comment.
7605 2019-01-10 Richard Biener <rguenther@suse.de>
7607 PR tree-optimization/88792
7608 * tree-ssa-pre.c (get_representative_for): Do not return a
7611 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7615 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
7616 (assign_parm_setup_block): Do the argument slot realignment here
7619 2019-01-10 Stefan Agner <stefan@agner.ch>
7622 * config/arm/arm.c (arm_option_override_internal): Force
7623 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
7625 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7628 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
7631 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7633 * config/arm/arm-builtins.c
7634 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
7635 (MAC_LANE_PAIR_QUALIFIERS): New.
7636 (arm_expand_builtin_args): Use it.
7637 (arm_expand_builtin_1): Likewise.
7638 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
7639 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
7640 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
7641 * config/arm/arm_neon.h:
7642 (vcadd_rot90_f16): New.
7643 (vcaddq_rot90_f16): New.
7644 (vcadd_rot270_f16): New.
7645 (vcaddq_rot270_f16): New.
7648 (vcmla_lane_f16): New.
7649 (vcmla_laneq_f16): New.
7650 (vcmlaq_lane_f16): New.
7651 (vcmlaq_laneq_f16): New.
7652 (vcmla_rot90_f16): New.
7653 (vcmlaq_rot90_f16): New.
7654 (vcmla_rot90_lane_f16): New.
7655 (vcmla_rot90_laneq_f16): New.
7656 (vcmlaq_rot90_lane_f16): New.
7657 (vcmlaq_rot90_laneq_f16): New.
7658 (vcmla_rot180_f16): New.
7659 (vcmlaq_rot180_f16): New.
7660 (vcmla_rot180_lane_f16): New.
7661 (vcmla_rot180_laneq_f16): New.
7662 (vcmlaq_rot180_lane_f16): New.
7663 (vcmlaq_rot180_laneq_f16): New.
7664 (vcmla_rot270_f16): New.
7665 (vcmlaq_rot270_f16): New.
7666 (vcmla_rot270_lane_f16): New.
7667 (vcmla_rot270_laneq_f16): New.
7668 (vcmlaq_rot270_lane_f16): New.
7669 (vcmlaq_rot270_laneq_f16): New.
7670 (vcadd_rot90_f32): New.
7671 (vcaddq_rot90_f32): New.
7672 (vcadd_rot270_f32): New.
7673 (vcaddq_rot270_f32): New.
7676 (vcmla_lane_f32): New.
7677 (vcmla_laneq_f32): New.
7678 (vcmlaq_lane_f32): New.
7679 (vcmlaq_laneq_f32): New.
7680 (vcmla_rot90_f32): New.
7681 (vcmlaq_rot90_f32): New.
7682 (vcmla_rot90_lane_f32): New.
7683 (vcmla_rot90_laneq_f32): New.
7684 (vcmlaq_rot90_lane_f32): New.
7685 (vcmlaq_rot90_laneq_f32): New.
7686 (vcmla_rot180_f32): New.
7687 (vcmlaq_rot180_f32): New.
7688 (vcmla_rot180_lane_f32): New.
7689 (vcmla_rot180_laneq_f32): New.
7690 (vcmlaq_rot180_lane_f32): New.
7691 (vcmlaq_rot180_laneq_f32): New.
7692 (vcmla_rot270_f32): New.
7693 (vcmlaq_rot270_f32): New.
7694 (vcmla_rot270_lane_f32): New.
7695 (vcmla_rot270_laneq_f32): New.
7696 (vcmlaq_rot270_lane_f32): New.
7697 (vcmlaq_rot270_laneq_f32): New.
7698 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
7699 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
7700 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
7701 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
7702 vcmlaq_lane270): New.
7703 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
7704 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
7705 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
7706 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
7707 (arm_option_reconfigure_globals): Use them.
7708 * config/arm/iterators.md (VDF, VQ_HSF): New.
7709 (VCADD, VCMLA): New.
7710 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
7711 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
7713 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
7714 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
7716 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7718 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7719 Add qualifier_lane_pair_index.
7720 (emit-rtl.h): Include.
7721 (TYPES_QUADOP_LANE_PAIR): New.
7722 (aarch64_simd_expand_args): Use it.
7723 (aarch64_simd_expand_builtin): Likewise.
7724 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
7726 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
7727 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
7728 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
7729 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
7730 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
7731 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
7732 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
7733 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
7734 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
7735 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
7736 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
7737 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
7738 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
7739 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
7740 Add __ARM_FEATURE_COMPLEX.
7741 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
7742 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
7743 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
7744 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
7745 fcmlaq_lane270): New.
7746 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
7747 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
7748 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
7749 * config/aarch64/arm_neon.h:
7750 (vcadd_rot90_f16): New.
7751 (vcaddq_rot90_f16): New.
7752 (vcadd_rot270_f16): New.
7753 (vcaddq_rot270_f16): New.
7756 (vcmla_lane_f16): New.
7757 (vcmla_laneq_f16): New.
7758 (vcmlaq_lane_f16): New.
7759 (vcmlaq_rot90_lane_f16): New.
7760 (vcmla_rot90_laneq_f16): New.
7761 (vcmla_rot90_lane_f16): New.
7762 (vcmlaq_rot90_f16): New.
7763 (vcmla_rot90_f16): New.
7764 (vcmlaq_laneq_f16): New.
7765 (vcmla_rot180_laneq_f16): New.
7766 (vcmla_rot180_lane_f16): New.
7767 (vcmlaq_rot180_f16): New.
7768 (vcmla_rot180_f16): New.
7769 (vcmlaq_rot90_laneq_f16): New.
7770 (vcmlaq_rot270_laneq_f16): New.
7771 (vcmlaq_rot270_lane_f16): New.
7772 (vcmla_rot270_laneq_f16): New.
7773 (vcmlaq_rot270_f16): New.
7774 (vcmla_rot270_f16): New.
7775 (vcmlaq_rot180_laneq_f16): New.
7776 (vcmlaq_rot180_lane_f16): New.
7777 (vcmla_rot270_lane_f16): New.
7778 (vcadd_rot90_f32): New.
7779 (vcaddq_rot90_f32): New.
7780 (vcaddq_rot90_f64): New.
7781 (vcadd_rot270_f32): New.
7782 (vcaddq_rot270_f32): New.
7783 (vcaddq_rot270_f64): New.
7787 (vcmla_lane_f32): New.
7788 (vcmla_laneq_f32): New.
7789 (vcmlaq_lane_f32): New.
7790 (vcmlaq_laneq_f32): New.
7791 (vcmla_rot90_f32): New.
7792 (vcmlaq_rot90_f32): New.
7793 (vcmlaq_rot90_f64): New.
7794 (vcmla_rot90_lane_f32): New.
7795 (vcmla_rot90_laneq_f32): New.
7796 (vcmlaq_rot90_lane_f32): New.
7797 (vcmlaq_rot90_laneq_f32): New.
7798 (vcmla_rot180_f32): New.
7799 (vcmlaq_rot180_f32): New.
7800 (vcmlaq_rot180_f64): New.
7801 (vcmla_rot180_lane_f32): New.
7802 (vcmla_rot180_laneq_f32): New.
7803 (vcmlaq_rot180_lane_f32): New.
7804 (vcmlaq_rot180_laneq_f32): New.
7805 (vcmla_rot270_f32): New.
7806 (vcmlaq_rot270_f32): New.
7807 (vcmlaq_rot270_f64): New.
7808 (vcmla_rot270_lane_f32): New.
7809 (vcmla_rot270_laneq_f32): New.
7810 (vcmlaq_rot270_lane_f32): New.
7811 (vcmlaq_rot270_laneq_f32): New.
7812 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
7813 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
7814 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
7815 (FCADD, FCMLA): New.
7817 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
7819 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
7823 * config/pa/pa.c: Change "can not" to "cannot".
7824 * gimple-ssa-evrp-analyze.c: Likewise.
7825 * ipa-icf.c: Likewise.
7826 * ipa-polymorphic-call.c: Likewise.
7827 * ipa-pure-const.c: Likewise.
7828 * lra-constraints.c: Likewise.
7829 * lra-remat.c: Likewise.
7830 * reload1.c: Likewise.
7831 * reorg.c: Likewise.
7832 * tree-ssa-uninit.c: Likewise.
7834 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
7838 * Makefile.in: Mechanically replace "can not" with "cannot".
7839 * alias.c: Likewise.
7840 * builtins.c: Likewise.
7841 * calls.c: Likewise.
7842 * cgraph.c: Likewise.
7843 * cgraph.h: Likewise.
7844 * cgraphclones.c: Likewise.
7845 * cgraphunit.c: Likewise.
7846 * combine-stack-adj.c: Likewise.
7847 * combine.c: Likewise.
7848 * common/config/i386/i386-common.c: Likewise.
7849 * config/aarch64/aarch64.c: Likewise.
7850 * config/alpha/sync.md: Likewise.
7851 * config/arc/arc.c: Likewise.
7852 * config/arc/predicates.md: Likewise.
7853 * config/arm/arm-c.c: Likewise.
7854 * config/arm/arm.c: Likewise.
7855 * config/arm/arm.h: Likewise.
7856 * config/arm/arm.md: Likewise.
7857 * config/arm/cortex-r4f.md: Likewise.
7858 * config/csky/csky.c: Likewise.
7859 * config/csky/csky.h: Likewise.
7860 * config/darwin-f.c: Likewise.
7861 * config/epiphany/epiphany.md: Likewise.
7862 * config/i386/i386.c: Likewise.
7863 * config/i386/sol2.h: Likewise.
7864 * config/m68k/m68k.c: Likewise.
7865 * config/mcore/mcore.h: Likewise.
7866 * config/microblaze/microblaze.md: Likewise.
7867 * config/mips/20kc.md: Likewise.
7868 * config/mips/sb1.md: Likewise.
7869 * config/nds32/nds32.c: Likewise.
7870 * config/nds32/predicates.md: Likewise.
7871 * config/pa/pa.c: Likewise.
7872 * config/rs6000/e300c2c3.md: Likewise.
7873 * config/rs6000/rs6000.c: Likewise.
7874 * config/s390/s390.h: Likewise.
7875 * config/sh/sh.c: Likewise.
7876 * config/sh/sh.md: Likewise.
7877 * config/spu/vmx2spu.h: Likewise.
7878 * cprop.c: Likewise.
7879 * dbxout.c: Likewise.
7880 * df-scan.c: Likewise.
7881 * doc/cfg.texi: Likewise.
7882 * doc/extend.texi: Likewise.
7883 * doc/fragments.texi: Likewise.
7884 * doc/gty.texi: Likewise.
7885 * doc/invoke.texi: Likewise.
7886 * doc/lto.texi: Likewise.
7887 * doc/md.texi: Likewise.
7888 * doc/objc.texi: Likewise.
7889 * doc/rtl.texi: Likewise.
7890 * doc/tm.texi: Likewise.
7892 * emit-rtl.c: Likewise.
7893 * emit-rtl.h: Likewise.
7894 * except.c: Likewise.
7895 * expmed.c: Likewise.
7897 * fold-const.c: Likewise.
7898 * genautomata.c: Likewise.
7899 * gimple-fold.c: Likewise.
7900 * hard-reg-set.h: Likewise.
7901 * ifcvt.c: Likewise.
7902 * ipa-comdats.c: Likewise.
7903 * ipa-cp.c: Likewise.
7904 * ipa-devirt.c: Likewise.
7905 * ipa-fnsummary.c: Likewise.
7906 * ipa-icf.c: Likewise.
7907 * ipa-inline-transform.c: Likewise.
7908 * ipa-inline.c: Likewise.
7909 * ipa-polymorphic-call.c: Likewise.
7910 * ipa-profile.c: Likewise.
7911 * ipa-prop.c: Likewise.
7912 * ipa-pure-const.c: Likewise.
7913 * ipa-reference.c: Likewise.
7914 * ipa-split.c: Likewise.
7915 * ipa-visibility.c: Likewise.
7917 * ira-build.c: Likewise.
7918 * ira-color.c: Likewise.
7919 * ira-conflicts.c: Likewise.
7920 * ira-costs.c: Likewise.
7921 * ira-int.h: Likewise.
7922 * ira-lives.c: Likewise.
7925 * loop-invariant.c: Likewise.
7926 * loop-unroll.c: Likewise.
7927 * lower-subreg.c: Likewise.
7928 * lra-assigns.c: Likewise.
7929 * lra-constraints.c: Likewise.
7930 * lra-eliminations.c: Likewise.
7931 * lra-lives.c: Likewise.
7932 * lra-remat.c: Likewise.
7933 * lra-spills.c: Likewise.
7935 * lto-cgraph.c: Likewise.
7936 * lto-streamer-out.c: Likewise.
7937 * postreload-gcse.c: Likewise.
7938 * predict.c: Likewise.
7939 * profile-count.h: Likewise.
7940 * profile.c: Likewise.
7941 * recog.c: Likewise.
7943 * reload.c: Likewise.
7944 * reload1.c: Likewise.
7945 * reorg.c: Likewise.
7946 * resource.c: Likewise.
7947 * rtl.def: Likewise.
7949 * rtlanal.c: Likewise.
7950 * sched-deps.c: Likewise.
7951 * sched-ebb.c: Likewise.
7952 * sched-rgn.c: Likewise.
7953 * sel-sched-ir.c: Likewise.
7954 * sel-sched.c: Likewise.
7955 * shrink-wrap.c: Likewise.
7956 * simplify-rtx.c: Likewise.
7957 * symtab.c: Likewise.
7958 * target.def: Likewise.
7959 * toplev.c: Likewise.
7960 * tree-call-cdce.c: Likewise.
7961 * tree-cfg.c: Likewise.
7962 * tree-complex.c: Likewise.
7963 * tree-core.h: Likewise.
7964 * tree-eh.c: Likewise.
7965 * tree-inline.c: Likewise.
7966 * tree-loop-distribution.c: Likewise.
7967 * tree-nrv.c: Likewise.
7968 * tree-profile.c: Likewise.
7969 * tree-sra.c: Likewise.
7970 * tree-ssa-alias.c: Likewise.
7971 * tree-ssa-dce.c: Likewise.
7972 * tree-ssa-dom.c: Likewise.
7973 * tree-ssa-forwprop.c: Likewise.
7974 * tree-ssa-loop-im.c: Likewise.
7975 * tree-ssa-loop-ivcanon.c: Likewise.
7976 * tree-ssa-loop-ivopts.c: Likewise.
7977 * tree-ssa-loop-niter.c: Likewise.
7978 * tree-ssa-phionlycprop.c: Likewise.
7979 * tree-ssa-phiopt.c: Likewise.
7980 * tree-ssa-propagate.c: Likewise.
7981 * tree-ssa-threadedge.c: Likewise.
7982 * tree-ssa-threadupdate.c: Likewise.
7983 * tree-ssa-uninit.c: Likewise.
7984 * tree-ssanames.c: Likewise.
7985 * tree-streamer-out.c: Likewise.
7988 * vr-values.c: Likewise.
7990 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
7992 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
7993 (ix86_split_xorsign): Ditto.
7994 * config/i386/i386.c (ix86_expand_xorsign): New function.
7995 (ix86_split_xorsign): Ditto.
7996 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
7997 (xorsign<mode>3): New expander.
7998 (xorsign<mode>3_1): New insn_and_split pattern.
7999 * config/i386/sse.md (xorsign<mode>3): New expander.
8001 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8003 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
8004 (*tablejump_sp64): Likewise.
8005 (*tablejump<P:mode>): ...this.
8006 (*call_address_sp32): Merge into...
8007 (*call_address_sp64): Likewise.
8008 (*call_address<P:mode>): ...this.
8009 (*call_symbolic_sp32): Merge into...
8010 (*call_symbolic_sp64): Likewise.
8011 (*call_symbolic<P:mode>): ...this.
8012 (call_value): Remove constraint and add predicate.
8013 (*call_value_address_sp32): Merge into...
8014 (*call_value_address_sp64): Likewise.
8015 (*call_value_address<P:mode>): ...this.
8016 (*call_value_symbolic_sp32): Merge into...
8017 (*call_value_symbolic_sp64): Likewise.
8018 (*call_value_symbolic<P:mode>): ...this.
8019 (*sibcall_symbolic_sp32): Merge into...
8020 (*sibcall_symbolic_sp64): Likewise.
8021 (*sibcall_symbolic<P:mode>): ...this.
8022 (sibcall_value): Remove constraint and add predicate.
8023 (*sibcall_value_symbolic_sp32): Merge into...
8024 (*sibcall_value_symbolic_sp64): Likewise.
8025 (*sibcall_value_symbolic<P:mode>): ...this.
8026 (window_save): Minor tweak.
8027 (*branch_sp32): Merge into...
8028 (*branch_sp64): Likewise.
8029 (*branch<P:mode>): ...this.
8031 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8032 James Clarke <jrtc27@jrtc27.com>
8035 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
8036 consistently in TLS address generation and adjust code to the renaming
8037 of patterns. Mark calls to __tls_get_addr as const.
8038 * config/sparc/sparc.md (tgd_hi22): Turn into...
8039 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
8040 (tgd_lo10): Turn into...
8041 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
8042 (tgd_add32): Merge into...
8043 (tgd_add64): Likewise.
8044 (tgd_add<P:mode>): ...this and use Pmode throughout.
8045 (tldm_hi22): Turn into...
8046 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
8047 (tldm_lo10): Turn into...
8048 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
8049 (tldm_add32): Merge into...
8050 (tldm_add64): Likewise.
8051 (tldm_add<P:mode>): ...this and use Pmode throughout.
8052 (tldm_call32): Merge into...
8053 (tldm_call64): Likewise.
8054 (tldm_call<P:mode>): ...this and use Pmode throughout.
8055 (tldo_hix22): Turn into...
8056 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
8057 (tldo_lox10): Turn into...
8058 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
8059 (tldo_add32): Merge into...
8060 (tldo_add64): Likewise.
8061 (tldo_add<P:mode>): ...this and use Pmode throughout.
8062 (tie_hi22): Turn into...
8063 (tie_hi22<P:mode>): ...this and use Pmode throughout.
8064 (tie_lo10): Turn into...
8065 (tie_lo10<P:mode>): ...this and use Pmode throughout.
8066 (tie_ld64): Use DImode throughout.
8067 (tie_add32): Merge into...
8068 (tie_add64): Likewise.
8069 (tie_add<P:mode>): ...this and use Pmode throughout.
8070 (tle_hix22_sp32): Merge into...
8071 (tle_hix22_sp64): Likewise.
8072 (tle_hix22<P:mode>): ...this and use Pmode throughout.
8073 (tle_lox22_sp32): Merge into...
8074 (tle_lox22_sp64): Likewise.
8075 (tle_lox22<P:mode>): ...this and use Pmode throughout.
8076 (*tldo_ldub_sp32): Merge into...
8077 (*tldo_ldub_sp64): Likewise.
8078 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
8079 (*tldo_ldub1_sp32): Merge into...
8080 (*tldo_ldub1_sp64): Likewise.
8081 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
8082 (*tldo_ldub2_sp32): Merge into...
8083 (*tldo_ldub2_sp64): Likewise.
8084 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
8085 (*tldo_ldsb1_sp32): Merge into...
8086 (*tldo_ldsb1_sp64): Likewise.
8087 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
8088 (*tldo_ldsb2_sp32): Merge into...
8089 (*tldo_ldsb2_sp64): Likewise.
8090 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
8091 (*tldo_ldub3_sp64): Use DImode throughout.
8092 (*tldo_ldsb3_sp64): Likewise.
8093 (*tldo_lduh_sp32): Merge into...
8094 (*tldo_lduh_sp64): Likewise.
8095 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
8096 (*tldo_lduh1_sp32): Merge into...
8097 (*tldo_lduh1_sp64): Likewise.
8098 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
8099 (*tldo_ldsh1_sp32): Merge into...
8100 (*tldo_ldsh1_sp64): Likewise.
8101 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
8102 (*tldo_lduh2_sp64): Use DImode throughout.
8103 (*tldo_ldsh2_sp64): Likewise.
8104 (*tldo_lduw_sp32): Merge into...
8105 (*tldo_lduw_sp64): Likewise.
8106 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
8107 (*tldo_lduw1_sp64): Use DImode throughout.
8108 (*tldo_ldsw1_sp64): Likewise.
8109 (*tldo_ldx_sp64): Likewise.
8110 (*tldo_stb_sp32): Merge into...
8111 (*tldo_stb_sp64): Likewise.
8112 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
8113 (*tldo_sth_sp32): Merge into...
8114 (*tldo_sth_sp64): Likewise.
8115 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
8116 (*tldo_stw_sp32): Merge into...
8117 (*tldo_stw_sp64): Likewise.
8118 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
8119 (*tldo_stx_sp64): Use DImode throughout.
8121 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8123 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
8124 check configure option to set BTI and Return Address Signing.
8125 * configure.ac: Add --enable-standard-branch-protection and
8126 --disable-standard-branch-protection.
8127 * configure: Regenerated.
8128 * doc/install.texi: Document the same.
8130 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8131 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8133 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
8134 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
8135 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
8137 * config/aarch64/aarch64-bti-insert.c: New file.
8138 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
8140 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
8142 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
8143 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
8144 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
8145 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
8147 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8149 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
8150 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
8151 Disable bti for -mbranch-protection=none.
8152 (aarch64_handle_standard_branch_protection): Enable bti for
8153 -mbranch-protection=standard.
8154 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
8155 -mbranch-protection.
8156 (aarch64_bti_enabled): Check if bti is enabled.
8157 * config/aarch64/aarch64.opt: Declare target variable.
8158 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
8160 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8162 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
8163 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
8164 (aarch64_expand_epilogue): Likewise.
8165 (aarch64_output_mi_thunk): Likewise
8166 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
8167 TAILCALL_ADDR_REGS to x16 and x17.
8168 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
8170 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8172 * config/aarch64/aarch64-option-extensions.def: Define
8173 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
8174 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
8175 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
8176 (AARCH64_FL_PREDRES): New.
8177 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
8178 AARCH64_FL_PREDRES by default.
8179 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
8181 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8183 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
8185 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
8186 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
8187 * doc/invoke.texi: Document ARMv8.5-A.
8189 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8191 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
8192 (xorsign<mode>3): Likewise.
8194 2019-01-09 Jelinek <jakub@redhat.com>
8197 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
8198 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
8200 PR rtl-optimization/88331
8201 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
8202 not currently_expanding_to_rtl.
8204 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8206 * doc/invoke.texi (-Os): Remove trailing spaces.
8207 (-finline-functions): Remove reference to -O2.
8209 2019-01-08 Jakub Jelinek <jakub@redhat.com>
8211 PR rtl-optimization/79593
8212 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
8214 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
8215 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
8217 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
8220 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
8224 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
8225 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
8227 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
8230 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
8231 ix86_avx_u128_mode_entry.
8233 2019-01-08 Martin Liska <mliska@suse.cz>
8235 PR tree-optimization/88753
8236 * tree-switch-conversion.c (switch_conversion::build_one_array):
8237 Come up with local variable constructor. Convert first to
8238 type of constructor values.
8240 2019-01-08 Richard Biener <rguenther@suse.de>
8242 PR tree-optimization/86554
8243 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
8244 rpo_avail): Move earlier.
8245 (visit_nary_op): When value-numbering to expressions
8246 with different overflow behavior make sure there's an
8247 available expression on the path.
8249 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
8251 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
8252 aarch64_parse_branch_protection,
8253 struct aarch64_branch_protect_type,
8254 aarch64_handle_no_branch_protection,
8255 aarch64_handle_standard_branch_protection,
8256 aarch64_validate_mbranch_protection,
8257 aarch64_handle_pac_ret_protection,
8258 aarch64_handle_attr_branch_protection,
8259 accepted_branch_protection_string,
8260 aarch64_pac_ret_subtypes,
8261 aarch64_branch_protect_types,
8262 aarch64_handle_pac_ret_leaf): Define.
8263 (aarch64_override_options_after_change_1, aarch64_override_options):
8264 Add check for accepted_branch_protection_string.
8265 (aarch64_option_save): Save accepted_branch_protection_string.
8266 (aarch64_option_restore): Save accepted_branch_protection_string.
8267 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
8268 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
8269 msign-return-address.
8270 * doc/invoke.texi: Add mbranch-protection.
8272 2019-01-08 Alan Modra <amodra@gmail.com>
8275 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
8276 Delete "unknownp" parameter. Adjust callers. Handle
8277 CONST_INT, PLUS, MINUS, and MULT.
8278 (attr_value_aligned): Renamed from or_attr_value.
8279 (min_attr_value): Return INT_MIN for unhandled rtl case..
8280 (min_fn): ..and translate to INT_MAX here.
8281 (write_length_unit_log): Modify to cope without "unknown".
8282 (write_attr_value): Handle IF_THEN_ELSE.
8284 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8286 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
8287 optimization for masked stores.
8289 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8292 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
8293 output vector directly to duplicate_and_interleave instead of
8294 going through a temporary. Postpone insertion of ctor_seq to
8295 the end of the loop.
8297 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
8300 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
8301 unsigned_p. Handle signed and unsigned overflow correction as
8303 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
8305 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
8307 (add<mode>3_compareV_imm): Make this callable for expanding.
8308 (subv<GPI:mode>4): Use register_operand for operand 1. Use
8309 aarch64_plus_operand for operand 2.
8310 (subv<GPI:mode>_insn): New insn pattern.
8311 (subv<GPI:mode>_imm): Likewise.
8312 (negv<GPI:mode>3): New expand pattern.
8313 (negv<GPI:mode>_insn): New insn pattern.
8314 (negv<GPI:mode>_cmp_only): Likewise.
8315 (cmpv<GPI:mode>_insn): Likewise.
8316 (subvti4): Use register_operand for operand 1. Update call to
8317 aarch64_expand_subvti.
8318 (usubvti4): Likewise.
8319 (negvti3): New expand pattern.
8320 (negdi_carryout): New insn pattern.
8321 (negvdi_carryinV): New insn pattern.
8322 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
8323 version the named version.
8324 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
8326 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
8328 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
8330 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
8331 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
8332 (sub<mode>3_carryinCV): Delete.
8333 (sub<GPI:mode>3_carryinV): New expand pattern.
8334 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
8336 2019-01-07 Richard Biener <rguenther@suse.de>
8338 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
8339 of tree_operand_hash.
8341 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8343 PR tree-optimization/88598
8344 * tree.h (single_nonzero_element): Declare.
8345 * tree.c (single_nonzero_element): New function.
8346 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
8347 if I is the only nonzero element of CST.
8349 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8351 PR tree-optimization/88598
8352 * tree.h (initializer_each_zero_or_onep): Declare.
8353 * tree.c (initializer_each_zero_or_onep): New function.
8354 (signed_or_unsigned_type_for): Handle float types too.
8355 (unsigned_type_for, signed_type_for): Update comments accordingly.
8356 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
8357 x & { 0 or -1, 0 or -1, ... }.
8359 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
8361 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
8362 with x86_64-pc-linux-gnu.
8364 2019-01-07 Tom de Vries <tdevries@suse.de>
8367 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
8369 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
8372 2019-01-07 Jakub Jelinek <jakub@redhat.com>
8374 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
8375 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
8376 TARGET_AVX512F as condition.
8379 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
8380 const_not_ok_for_debug_p target hook.
8381 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
8382 on UNSPEC and subexpressions thereof if all subexpressions of the
8383 UNSPEC are CONSTANT_P.
8385 PR tree-optimization/88676
8386 * tree-ssa-phiopt.c (two_value_replacement): New function.
8387 (tree_ssa_phiopt_worker): Call it.
8390 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
8391 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
8394 * tree-vect-generic.c: Include insn-config.h and recog.h.
8395 (expand_vector_piecewise): Add defaulted ret_type argument,
8396 if non-NULL, use that in preference to type for the result type.
8397 (expand_vector_parallel): Formatting fix.
8398 (do_vec_conversion, do_vec_narrowing_conversion,
8399 expand_vector_conversion): New functions.
8400 (expand_vector_operations_1): Call expand_vector_conversion
8401 for VEC_CONVERT ifn calls.
8402 * internal-fn.def (VEC_CONVERT): New internal function.
8403 * internal-fn.c (expand_VEC_CONVERT): New function.
8404 * fold-const-call.c (fold_const_vec_convert): New function.
8405 (fold_const_call): Use it for CFN_VEC_CONVERT.
8406 * doc/extend.texi (__builtin_convertvector): Document.
8408 2019-01-07 Tom de Vries <tdevries@suse.de>
8410 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
8411 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
8412 vector_red_partition, vector_red_sym): New global variables.
8413 (nvptx_option_override): Initialize vector_red_sym.
8414 (nvptx_declare_function_name): Restore red_partition register.
8415 (nvptx_file_end): Emit code to declare the vector reduction variables.
8416 (nvptx_output_red_partition): New function.
8417 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
8418 large vector reductions.
8419 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
8420 (nvptx_init_builtins): Add VECTOR_ADDR.
8421 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
8422 Handle nvptx_expand_shared_addr.
8423 (nvptx_get_shared_red_addr): Add vector argument and handle large
8425 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
8427 (nvptx_goacc_reduction_init): Likewise.
8428 (nvptx_goacc_reduction_fini): Likewise.
8429 (nvptx_goacc_reduction_teardown): Likewise.
8430 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
8431 init,fini,teardown}.
8432 (nvptx_init_axis_predicate): Initialize vector_red_partition.
8433 (nvptx_set_current_function): Init vector_red_partition.
8434 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
8435 (nvptx_red_partition): New insn.
8436 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
8438 2019-01-07 Tom de Vries <tdevries@suse.de>
8441 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
8444 2019-01-07 Tom de Vries <tdevries@suse.de>
8446 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
8447 (nvptx_option_override): Init oacc_bcast_partition.
8448 (nvptx_init_oacc_workers): New function.
8449 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
8450 (nvptx_needs_shared_bcast): New function.
8451 (nvptx_find_par): Generalize to enable vectors to use shared-memory
8453 (nvptx_shared_propagate): Initialize vector bcast partition and
8454 synchronization state.
8455 (nvptx_single): Generalize to enable vectors to use shared-memory
8457 (nvptx_process_pars): Likewise.
8458 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
8459 * config/nvptx/nvptx.h (struct machine_function): Add
8460 bcast_partition and sync_bar members.
8462 2019-01-07 Tom de Vries <tdevries@suse.de>
8464 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
8465 (nvptx_apply_dim_limits): New function.
8466 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
8469 2019-01-07 Tom de Vries <tdevries@suse.de>
8471 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
8472 as late as possible.
8474 2019-01-07 Tom de Vries <tdevries@suse.de>
8476 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
8477 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
8478 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
8479 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
8480 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
8482 2019-01-07 Tom de Vries <tdevries@suse.de>
8484 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
8486 2019-01-07 Tom de Vries <tdevries@suse.de>
8488 * omp-offload.c (oacc_get_min_dim): New function.
8489 * omp-offload.h (oacc_get_min_dim): Declare.
8491 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
8494 * config/i386/i386.c (function_value_ms_64): Return small sturct in
8495 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
8497 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8501 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
8503 * ipa-inline.c (edge_badness): Use inlined_time instead of
8504 inline_summaries->get.
8506 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8508 * opts.c (enable_fdo_optimizations): Enable
8509 version-loops-for-strides, loop-interchange, unrol-and-jam
8510 and tree-loop-distribution.
8511 * invoke.texi: Document newly enabled options.
8513 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8515 * doc/invoke.texi (max-inline-insns-small): New parameters.
8516 * ipa-inline.c (want_early_inline_function_p): simplify.
8517 (want_inline_small_function_p): Fix pasto from previous patch;
8518 use max-inline-insns-small bound.
8519 * params.def (max-inline-insns-small): New param.
8520 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
8521 variables correctly.
8523 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8525 * doc/invoke.texi: Document max-inline-insns-size,
8526 uninlined-function-insns, uninlined-function-time,
8527 uninlined-thunk-insns and uninlined-thunk-time.
8528 * params.def: Add max-inline-insns-size,
8529 uninlined-function-insns, uninlined-function-time,
8530 uninlined-thunk-insns and uninlined-thunk-time.
8531 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
8533 * ipa-inline.c (can_inline_edge_by_limits_p,
8534 want_inline_small_function_p): Use new parameters.
8536 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8538 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
8540 2019-01-05 Jakub Jelinek <jakub@redhat.com>
8544 * expr.c (expand_assignment): For calls returning VLA structures
8545 if to_rtx is not a MEM, force it into a stack temporary.
8548 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
8549 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
8550 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
8551 subexpressions of both operands.
8552 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
8553 subrtxes are CONSTANT_P.
8554 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
8557 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
8559 * params.def (hot-bb-count-ws-permille): Set to 990.
8561 2019-01-04 Martin Sebor <msebor@redhat.com>
8564 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
8567 2019-01-04 Martin Sebor <msebor@redhat.com>
8570 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
8572 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8574 * gdbinit.in: Turn off pagination for the skip commands, restore
8575 it to previous state afterwards.
8577 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8580 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
8581 of GET_MODE (opN) as modes of the libcall arguments.
8583 2019-01-04 Jan Beulich <jbeulich@suse.com>
8585 * config/i386/sse.md
8586 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
8587 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
8588 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
8589 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
8590 avx512f_vmcmp<mode>3<round_saeonly_name>,
8591 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
8592 avx512f_maskcmp<mode>3,
8593 <avx512>_cvt<ssemodesuffix>2mask<mode>,
8594 <avx512>_cvt<ssemodesuffix>2mask<mode>,
8595 *<avx512>_cvtmask2<ssemodesuffix><mode>,
8596 *<avx512>_cvtmask2<ssemodesuffix><mode>,
8597 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
8598 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
8599 <avx512>_gt<mode>3<mask_scalar_merge_name>,
8600 <avx512>_gt<mode>3<mask_scalar_merge_name>,
8601 <avx512>_testm<mode>3<mask_scalar_merge_name>,
8602 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
8603 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
8604 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
8605 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
8606 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
8607 avx512cd_maskb_vec_dup<mode>,
8608 avx512cd_maskw_vec_dup<mode>,
8609 avx512dq_fpclass<mode><mask_scalar_merge_name>,
8610 avx512dq_vmfpclass<mode>,
8611 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
8614 2019-01-03 Martin Sebor <msebor@redhat.com>
8616 PR tree-optimization/88659
8617 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
8619 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8621 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
8622 unaligned vsx and avoid lxvd2x/stxvd2x.
8623 (gen_lvx_v4si_move): New function.
8625 2019-01-03 Tom de Vries <tdevries@suse.de>
8627 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
8628 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
8630 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
8632 2019-01-03 Tom de Vries <tdevries@suse.de>
8634 * config/nvptx/nvptx.c (struct offload_attrs): New.
8635 (populate_offload_attrs): New function. Factor mask extraction out of
8636 nvptx_reorg. Add extraction of dimensions.
8637 (nvptx_reorg): Use populate_offload_attrs.
8639 2019-01-03 Tom de Vries <tdevries@suse.de>
8641 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
8642 cases for oacc_min_dims_p and routine_p. Add asserts for
8643 oacc_default_dims_p and offload_region_p.
8645 2019-01-03 Tom de Vries <tdevries@suse.de>
8647 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
8649 (nvptx_goacc_validate_dims): ... here.
8651 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
8653 PR tree-optimization/85574
8654 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
8656 (struct ssa_equip_hash_traits): Declare.
8657 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
8659 2019-01-03 Jakub Jelinek <jakub@redhat.com>
8662 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
8663 change it to qualified_type.
8665 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
8667 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
8668 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
8670 2019-01-02 Martin Sebor <msebor@redhat.com>
8671 Jeff Law <law@redhat.com>
8673 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
8674 (get_range_strlen_tree): Update appropriately.
8676 * gimple-fold.h (get_range_strlen): Drop unused last argument.
8678 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
8679 rather than set_range_info.
8680 * tree-ssa-strlen.c (set_strlen_range): Extracted from
8681 maybe_set_strlen_range. Handle potentially boundary crossing
8682 cases more conservatively.
8683 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
8684 Call set_strlen_range.
8685 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
8688 * gimple-fold.c (get_range_strlen): Update prototype to no longer
8689 need the flexp argument.
8690 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
8691 from calls to get_range_strlen. Update comments. Just update
8692 VAL for an unterminated const char array and let the reset of the
8693 code handle it normally. No longer try to set *flexp. Adjust
8695 (get_range_strlen): Update for the new get_range_strlen API.
8696 (get_maxval_strlen): Similarly.
8697 (gimple_fold_builtin_strlen): Handle update meaning of return value
8698 from get_range_strlen.
8699 * gimple-ssa-sprintf.c (get_string_length): Update for the new
8700 get_range_strlen API.
8702 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
8705 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
8706 false at WPA time when body was removed.
8708 2019-01-02 Martin Liska <mliska@suse.cz>
8710 PR tree-optimization/88650
8711 * predict.c (set_even_probabilities): Calculate probability
8712 remainer only when really used.
8714 2019-01-02 Richard Biener <rguenther@suse.de>
8717 * tree-data-ref.c (analyze_subscript_affine_affine): Use
8718 widest_ints when mangling max_stmt_execution results.
8720 2019-01-02 Richard Biener <rguenther@suse.de>
8722 PR tree-optimization/88621
8723 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
8724 bitfields when canoncalizing.
8726 2019-01-02 Richard Biener <rguenther@suse.de>
8729 * config/i386/x86-tune-costs.h (intel_cost): Adjust
8730 cost of cheap SSE instruction.
8732 2019-01-02 Richard Biener <rguenther@suse.de>
8735 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
8736 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
8738 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
8739 set after UIDs before splitting them.
8741 2019-01-01 Martin Sebor <msebor@redhat.com>
8742 Jeff Law <law@redhat.com>
8744 * gimple-fold.c (get_range_strlen_tree): Record if the computed
8745 length is optimistic. If it is, then arrange to compute the
8746 conservative length as well.
8748 * gimple-fold.h (get_range_strlen): Update prototype.
8749 * builtins.c (check_access): Update call to get_range_strlen to use
8750 c_strlen_data pointer. Change various variable accesses to instead
8751 pull data from the c_strlen_data structure.
8752 (check_strncat_sizes, expand_builtin_strncat): Likewise.
8753 * calls.c (maybe_warn_nonstring_arg): Likewise.
8754 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
8755 minimum length if maximum lengh is unknown.
8756 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
8757 that used c_strlen, it's no longer needed. Restructure slightly.
8758 (format_string): Set unlikely range appropriately.
8759 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
8761 (get_range_strlen): Accept c_strlen_data pointer for external
8762 call sites as well. Pass through to call to internal get_range_strlen.
8763 Adjust minlen, maxlen and maxbound as needed.
8764 (get_maxval_strlen): Update comments.
8765 (gimple_fold_builtin_strlen): Update call to get_range_strlen
8766 to use c_strlen_data pointer. Change variable accesses to instead
8767 use c_strlen_data data members.
8769 * gimple-fold.c (get_range_strlen): Update prototype.
8770 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
8771 local variables. Use pdata to return information to caller.
8772 Update calls to get_range_strlen. Update pdata->maxbound.
8773 (get_range_strlen -- static version): Similarly.
8774 (get_range_strlen -- extern version): Update for internal
8775 get_range_strlen API change. Convert to external data format.
8776 (get_maxval_strlen): Similarly.
8778 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
8780 * coverage.c (get_coverage_counts): Use current_function_decl.
8781 * profile.c (read_thunk_profile): New function.
8782 (branch_prob): Add THUNK parameter.
8783 * tree-profile.c (tree_profiling): Handle thunks.
8784 * value-prof.c (init_node_map): Handle thunks.
8785 * value-prof.h (branch_prob): Upate prototype.
8786 (read_thunk_profile): Declare.
8788 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8790 Update copyright years.
8792 * gcc.c (process_command): Update copyright notice dates.
8793 * gcov-dump.c (print_version): Ditto.
8794 * gcov.c (print_version): Ditto.
8795 * gcov-tool.c (print_version): Ditto.
8796 * gengtype.c (create_file): Ditto.
8797 * doc/cpp.texi: Bump @copying's copyright year.
8798 * doc/cppinternals.texi: Ditto.
8799 * doc/gcc.texi: Ditto.
8800 * doc/gccint.texi: Ditto.
8801 * doc/gcov.texi: Ditto.
8802 * doc/install.texi: Ditto.
8803 * doc/invoke.texi: Ditto.
8805 Copyright (C) 2019 Free Software Foundation, Inc.
8807 Copying and distribution of this file, with or without modification,
8808 are permitted in any medium without royalty provided the copyright
8809 notice and this notice are preserved.