]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
trans.c (check_inlining_for_nested_subprog): Quote reserved names.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-05-16 Martin Sebor <msebor@redhat.com>
2
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.
22 (run_attempt): Same.
23 (driver::set_up_specs): Same.
24 (compare_debug_auxbase_opt_spec_function): Same.
25 * gcov-tool.c (unlink_gcda_file): Same.
26 (do_merge): Same.
27 (do_rewrite): 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.
51 (run_gcc): Same.
52 (main): Same.
53 * opts.c (print_specific_help): Same.
54 (parse_no_sanitize_attribute): Same.
55 (print_help): Same.
56 (handle_param): 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
62 issues.
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.
72 (do_compile): 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.
99 (verify_type): Same.
100 * value-prof.c (verify_histograms): Same.
101 * varasm.c (assemble_start_function): Same.
102
103 2019-05-16 Martin Sebor <msebor@redhat.com>
104
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.
117
118 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
119
120 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
121 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
122 and fpxx modes.
123
124 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
125
126 PR target/90497
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
130 check.
131 (*mmx_uavgv8qi3): Likewise.
132
133 2019-05-17 Richard Biener <rguenther@suse.de>
134
135 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
136 VEC_PERM_EXPR as __VEC_PERM with -gimple.
137
138 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
139
140 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
141 vec_sldw insn pattern.
142
143 2019-05-17 Richard Biener <rguenther@suse.de>
144
145 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
146
147 2019-05-17 Martin Liska <mliska@suse.cz>
148
149 PR driver/90496
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.
153
154 2019-05-16 Jakub Jelinek <jakub@redhat.com>
155
156 PR c++/90484
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.
159
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
166 member.
167 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
168 Define.
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
172 simd_if_cond.
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.
176
177 2019-05-16 Richard Biener <rguenther@suse.de>
178
179 * tree-affine.c (expr_to_aff_combination): New function split
180 out from...
181 (tree_to_aff_combination): ... here.
182 (aff_combination_expand): Avoid building a GENERIC tree.
183
184 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
185
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):
202 Likewise.
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):
217 Likewise.
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.
221
222 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
223
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.
229
230 2019-05-16 Martin Liska <mliska@suse.cz>
231
232 PR lto/90500
233 * multiple_target.c (expand_target_clones): Do not allow
234 target_clones being used with a symbol that is an alias.
235
236 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
237
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).
242
243 2019-05-16 Jakub Jelinek <jakub@redhat.com>
244
245 PR fortran/90329
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
252 stack.
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.
257
258 * lto-streamer.h (LTO_major_version): Bump to 9.
259
260 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
261
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
265 basic block.
266 (use_internal_fn): Pass internal function call to
267 shrink_wrap_one_built_in_call_with_conds.
268
269 2019-05-15 Jakub Jelinek <jakub@redhat.com>
270
271 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
272 max_vf to 1.
273 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
274 safelen_int and set loop->dont_vectorize.
275
276 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
277
278 PR target/89021
279 * config/i386/i386-builtin.def: Enable MMX intrinsics with
280 SSE/SSE2/SSSE3.
281 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
282 Likewise.
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__
286 is defined.
287
288 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
289
290 PR target/89021
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.
322
323 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
324
325 PR target/89021
326 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
327 TARGET_MMX_WITH_SSE.
328 (MMXMODE:*mov<mode>_internal): Likewise.
329 (MMXMODE:movmisalign<mode>): Likewise.
330
331 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
332
333 PR target/89021
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.
344
345 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
346
347 PR target/89021
348 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
349
350 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
351
352 PR target/89021
353 * config/i386/sse.md (ssse3_palignrdi): Changed to
354 define_insn_and_split to support SSE emulation.
355
356 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
357
358 PR target/89021
359 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
360
361 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
362
363 PR target/89021
364 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
365 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
366 SSE emulation.
367
368 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
369
370 PR target/89021
371 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
372 or TARGET_MMX_WITH_SSE.
373 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
374
375 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
376
377 PR target/89021
378 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
379
380 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
381
382 PR target/89021
383 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
384 Changed to define_insn_and_split to support SSE emulation.
385
386 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
387
388 PR target/89021
389 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
390 Changed to define_insn_and_split to support SSE emulation.
391
392 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
393
394 PR target/89021
395 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
396 (*mmx_<emms>): This.
397 (mmx_<emms>): New expander.
398
399 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
400
401 PR target/89021
402 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
403 support.
404 (*sse2_umulv1siv1di3): Add SSE2 emulation.
405
406 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
407
408 PR target/89021
409 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
410
411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
412
413 PR target/89021
414 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
415
416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
417
418 PR target/89021
419 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
420 TARGET_MMX_WITH_SSE.
421 (*mmx_uavgv4hi3): Add SSE emulation.
422
423 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
424
425 PR target/89021
426 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
427 and TARGET_MMX_WITH_SSE.
428 (*mmx_uavgv8qi3): Add SSE emulation.
429
430 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
431
432 PR target/89021
433 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
434 maskmovdqu for __MMX_WITH_SSE__.
435
436 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
437
438 PR target/89021
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.
442
443 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
444
445 PR target/89021
446 * config/i386/mmx.md (mmx_pmovmskb): Changed to
447 define_insn_and_split to support SSE emulation.
448
449 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
450
451 PR target/89021
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.
459
460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
461
462 PR target/89021
463 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
464 TARGET_MMX_WITH_SSE.
465 (*mmx_pinsrw): Add SSE emulation.
466
467 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
468
469 PR target/89021
470 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
471
472 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
473
474 PR target/89021
475 * config/i386/sse.md (sse_cvtpi2ps): Changed to
476 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
477 SSE emulation.
478
479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
480
481 PR target/89021
482 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
483 (sse_cvttps2pi): Likewise.
484
485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
486
487 PR target/89021
488 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
489 TARGET_MMX_WITH_SSE.
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.
493
494 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
495
496 PR target/89021
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.
501
502 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
503
504 PR target/89021
505 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
506 TARGET_MMX_WITH_SSE.
507 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
508 support.
509 (mmx_gt<mode>3): Likewise.
510
511 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
512
513 PR target/89021
514 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
515 TARGET_MMX_WITH_SSE. Add SSE support.
516
517 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
518
519 PR target/89021
520 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
521 TARGET_MMX_WITH_SSE.
522 (any_logic:<code><mode>3): New.
523 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
524 Add SSE support.
525
526 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
527
528 PR target/89021
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.
532 (ashr<mode>3): New.
533 (<shift_insn><mode>3): Likewise.
534
535 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
536
537 PR target/89021
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.
540
541 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
542
543 PR target/89021
544 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
545 TARGET_MMX_WITH_SSE.
546 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
547 SSE support.
548
549 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
550
551 PR target/89021
552 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
553 TARGET_MMX_WITH_SSE.
554 (mulv4hi3): New.
555 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
556 support.
557
558 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
559
560 PR target/89021
561 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
562 (plusminus:mmx_<plusminus_insn><mode>3): Check
563 TARGET_MMX_WITH_SSE.
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.
568
569 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
570
571 PR target/89021
572 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
573 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
574 prototype.
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.
582
583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
584 Uros Bizjak <ubizjak@gmail.com>
585
586 PR target/89021
587 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
588 New function.
589 (ix86_split_mmx_pack): Likewise.
590 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
591 New prototype.
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.
604
605 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
606
607 PR target/89021
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.
614
615 2019-05-15 Martin Liska <mliska@suse.cz>
616
617 PR middle-end/90478
618 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
619 Check for overflow.
620
621 2019-05-15 Richard Biener <rguenther@suse.de>
622
623 * tree-into-ssa.c (pass_build_ssa::execute): Run
624 update_address_taken before going into SSA.
625
626 2019-05-15 Richard Biener <rguenther@suse.de>
627
628 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
629 as __BIT_FIELD_REF with type with -gimple.
630
631 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
632
633 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
634 semantically equivalent branches (left over after prior refactorings).
635
636 2019-05-15 Richard Biener <rguenther@suse.de>
637
638 PR tree-optimization/88828
639 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
640 bogus check.
641
642 2019-05-14 Richard Biener <rguenther@suse.de>
643
644 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
645 as __VIEW_CONVERT with -gimple.
646
647 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
648
649 PR target/82920
650 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
651 Darwin.
652
653 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
654
655 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
656 define_split to become a define_insn_and_split.
657
658 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
659
660 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
661 arguments.
662 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
663 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
664 (sibcall_epilogue): Adjust.
665 (epilogue): Adjust.
666
667 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
668
669 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
670 to unsupported ones.
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]*
678 to *-*-solaris2*.
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.
691
692 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
693
694 * config/i386/i386.md (any_div): New code iterator.
695 (paired_mod): New code attribute.
696 (sgnprefix): Handle DIV and UDIV RTXes.
697 (u): Ditto.
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.
713
714 2019-05-14 Richard Biener <rguenther@suse.de>
715 H.J. Lu <hongjiu.lu@intel.com>
716
717 PR tree-optimization/88828
718 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
719 permuting in a single non-constant element not extracted
720 from a vector.
721
722 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
723
724 * internal-fn.def (SIGNBIT): New.
725 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
726 defined.
727 (signbitv4sf2): Likewise.
728
729 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
730
731 PR target/90357
732 * config/mips/mips.c (mips_split_move): Skip forward SRC into
733 next insn when the SRC reg is dead.
734
735 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
736
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.
746
747 2019-05-13 Nathan Sidwell <nathan@acm.org>
748
749 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
750 (run_attempt): Reformat line break.
751
752 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
753
754 PR target/90418
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.
758
759 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
760
761 PR target/89221
762 * configure.ac (--enable-frame-pointer):
763 Disable by default for cygwin and mingw.
764 * configure: Regenerate.
765
766 2019-05-13 Nathan Sidwell <nathan@acm.org>
767
768 * dwarf2out.c (breakout_comdat_types): Move comment to correct
769 piece of code.
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.
773
774 2019-05-13 Richard Biener <rguenther@suse.de>
775
776 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
777 VIEW_CONVERT_EXPR.
778 (vect_build_slp_tree_1): Likewise.
779
780 2019-05-13 Richard Biener <rguenther@suse.de>
781
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
785 as well.
786 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
787 processing PHIs.
788 (do_rpo_vn): Deal with multiple edges into the entry block
789 that are not backedges inside the region by skipping PHIs
790 of the entry block.
791
792 2019-05-13 Richard Biener <rguenther@suse.de>
793
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.
798
799 2019-05-13 Martin Liska <mliska@suse.cz>
800
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.
804
805 2019-05-13 Martin Liska <mliska@suse.cz>
806
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.
812
813 2019-05-13 Martin Liska <mliska@suse.cz>
814
815 PR gcov-profile/90380
816 * gcov.c (enum loop_type): Remove the enum and
817 the operator.
818 (handle_cycle): Assert that we should not reach
819 a negative count.
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
822 happen.
823
824 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
825
826 PR target/82920
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.
833
834 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
835
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.
849
850 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
851
852 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
853 is given, print the state of the EH "save world" computation for
854 Darwin.
855
856 2019-05-11 Jakub Jelinek <jakub@redhat.com>
857
858 PR c++/59813
859 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
860 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
861
862 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
863
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.
867
868 2019-05-10 Richard Biener <rguenther@suse.de>
869
870 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
871 (do_rpo_vn): Initialize next_value_id.
872
873 2019-05-10 Martin Liska <mliska@suse.cz>
874
875 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
876 Fix plural form.
877
878 2019-05-10 Jakub Jelinek <jakub@redhat.com>
879
880 PR tree-optimization/90385
881 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
882 arguments of the exit phis.
883
884 PR c++/90383
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
887 id->do_not_fold.
888 (copy_tree_body_r): Likewise.
889 (copy_fn): Set id.do_not_fold to true.
890
891 2019-05-10 Martin Liska <mliska@suse.cz>
892
893 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
894 Reapply changes from r269790.
895
896 2019-05-10 Martin Liska <mliska@suse.cz>
897
898 PR middle-end/90340
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):
903 Use it.
904 * tree-switch-conversion.h (struct jump_table_cluster):
905 Likewise.
906
907 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
908
909 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
910
911 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
912
913 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
914
915 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
916
917 PR rtl-optimization/88879
918 * sel-sched.c (sel_target_adjust_priority): Remove assert.
919
920 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
921
922 PR target/90405
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.
931
932 2019-05-09 Martin Liska <mliska@suse.cz>
933
934 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
935 and MAX_EXPR in GIMPLE FE format.
936
937 2019-05-09 Martin Liska <mliska@suse.cz>
938
939 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
940 * gimple-pretty-print.c (dump_gimple_bb_header):
941 Dump BB count.
942 (pp_cfg_jump): Dump edge probability.
943 * profile-count.c (profile_quality_as_string): Simplify
944 with a static array.
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):
951 New param.
952 * predict.c (get_hot_bb_threshold): Set from the new param.
953 (set_hot_bb_threshold): New.
954
955 2019-05-09 Richard Biener <rguenther@suse.de>
956
957 PR tree-optimization/90395
958 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
959 rewrite vector stores that throw internally.
960
961 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
962
963 * cif-code.def (CHKP): Remove.
964
965 PR target/89221
966 * configure.ac (--enable-frame-pointer): Disable by default for
967 GNU systems.
968 * configure: Regenerate.
969
970 2019-05-09 Alan Modra <amodra@gmail.com>
971
972 PR target/89271
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
985 alternatives.
986 (movsi_internal1): Don't disparage vector alternatives.
987 (mov<mode>_internal): Likewise, excepting alternative that
988 will be split.
989 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
990 we <- b alternative.
991
992 2019-05-08 Jakub Jelinek <jakub@redhat.com>
993
994 PR c++/59813
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
1007 member.
1008 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
1009 Perform variable life analysis to select variables that really need
1010 clobbers added.
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.
1014
1015 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
1016 Richard Earnshaw <rearnsha@arm.com>
1017
1018 PR target/88167
1019 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
1020 function.
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
1024 regs.
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.
1034
1035 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1036
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
1045 to int64_t.
1046 (struct ainc_cost_data, struct iv_ca): Promote type of member to
1047 int64_t.
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.
1052
1053 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
1054
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.
1064
1065 2019-05-08 Jakub Jelinek <jakub@redhat.com>
1066
1067 PR tree-optimization/90356
1068 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
1069
1070 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
1071
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
1077 to extra_headers.
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
1085 __AVX512BF16__.
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
1091 F_AVX512BF16.
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.
1103
1104 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
1105
1106 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
1107 Delete declaration.
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.
1117
1118 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
1119
1120 PR target/89765
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
1124 operands.
1125
1126 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1127
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.
1131
1132 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1133
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.
1141
1142 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
1143
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.
1150
1151 2019-05-07 Richard Biener <rguenther@suse.de>
1152
1153 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
1154 not specified still compute a comp_vectype for invariant
1155 compares.
1156
1157 2019-05-07 Richard Biener <rguenther@suse.de>
1158
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
1162 PHI continuation.
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.
1166
1167 2019-05-07 Martin Liska <mliska@suse.cz>
1168
1169 * bitmap.c (bitmap_register): Come up with
1170 alloc_descriptor_max_uid and assign it for
1171 a new bitmap.
1172 (register_overhead): Use get_descriptor as
1173 a descriptor.
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.
1182
1183 2019-05-07 Richard Biener <rguenther@suse.de>
1184
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.
1188
1189 2019-05-07 Richard Biener <rguenther@suse.de>
1190
1191 PR tree-optimization/90316
1192 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
1193 limit by reference.
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.
1207
1208 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
1209
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.
1213
1214 2019-05-07 Richard Biener <rguenther@suse.de>
1215
1216 PR lto/90369
1217 * lto-wrapper.c (debug_objcopy): Use the original filename
1218 including archive offset for the filename used for -save-temps.
1219
1220 2019-05-07 Li Jia He <helijia@linux.ibm.com>
1221
1222 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
1223 detection.
1224
1225 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1226
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
1235 fixed.
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):
1240 Adjust.
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
1246 instead of 67.
1247 (REGISTER_NAMES): Adjust.
1248 (ADDITIONAL_REGISTER_NAMES): Adjust.
1249 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
1250
1251 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1252
1253 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
1254 Delete.
1255 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
1256 (DWARF_FRAME_REGISTERS): Adjust.
1257 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
1258 Adjust.
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
1271 argument.
1272 (rs6000_dbx_register_number): Adjust.
1273
1274 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1275
1276 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
1277
1278 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
1279
1280 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
1281 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
1282
1283 2019-05-06 Jakub Jelinek <jakub@redhat.com>
1284
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
1290 variable.
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
1303 no elts.
1304 (pass_store_merging::process_store): Likewise.
1305
1306 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
1307
1308 PR target/89424
1309 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
1310 handling of V1TImode.
1311
1312 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
1313
1314 PR target/89221
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.
1324
1325 2019-05-06 Martin Liska <mliska@suse.cz>
1326
1327 * config.gcc: Append to target_gtfiles and fix indentation.
1328
1329 2019-05-06 Richard Biener <rguenther@suse.de>
1330
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.
1335
1336 2019-05-06 Richard Biener <rguenther@suse.de>
1337
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
1341 the constructor.
1342
1343 2019-05-06 Richard Biener <rguenther@suse.de>
1344
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.
1352
1353 2019-05-06 Richard Biener <rguenther@suse.de>
1354
1355 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
1356
1357 2019-05-06 Richard Biener <rguenther@suse.de>
1358
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
1364 quadratic.
1365
1366 2019-05-06 Martin Liska <mliska@suse.cz>
1367
1368 PR sanitizer/90312
1369 * config/i386/i386-options.c (ix86_option_override_internal): Error only
1370 when -mabi is selected to a non-default version.
1371
1372 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
1373 Martin Liska <mliska@suse.cz>
1374
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.
1386
1387 2019-05-06 Martin Liska <mliska@suse.cz>
1388
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
1398 target_gtfiles.
1399 * config/i386/i386.c: Split content of the file
1400 into newly introduced files.
1401 * config/i386/i386.h: Declare common variables
1402 and macros.
1403 * config/i386/t-i386: Define dependencies for new files.
1404
1405 >>>>>>> .r270937
1406 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
1407
1408 PR target/89400
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.
1415
1416 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
1417
1418 PR tree-optimization/90269
1419 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
1420 Ignore clobbers.
1421
1422 2019-05-03 Martin Liska <mliska@suse.cz>
1423
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.
1446
1447 2019-05-03 Richard Biener <rguenther@suse.de>
1448
1449 PR tree-optimization/90316
1450 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
1451 before running VN.
1452
1453 2019-05-03 Richard Biener <rguenther@suse.de>
1454
1455 * tree-vect-stmts.c (get_group_load_store_type): Avoid
1456 peeling for gaps by loading only lower halves of vectors
1457 if possible.
1458 (vectorizable_load): Likewise.
1459
1460 2019-05-03 Richard Biener <rguenther@suse.de>
1461
1462 PR middle-end/89518
1463 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
1464
1465 2019-05-03 Richard Biener <rguenther@suse.de>
1466
1467 PR middle-end/87314
1468 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
1469 Handle STRING_CST vs DECL or STRING_CST.
1470
1471 2019-05-03 Richard Biener <rguenther@suse.de>
1472
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
1477 stores.
1478
1479 2019-05-03 Jakub Jelinek <jakub@redhat.com>
1480
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
1485 here.
1486 * opts-global.c (decode_options): Adjust finish_option caller, call
1487 print_help here.
1488
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.
1492
1493 2019-05-03 Richard Biener <rguenther@suse.de>
1494
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.
1499
1500 2019-05-03 Richard Biener <rguenther@suse.de>
1501
1502 * passes.c (execute_function_todo): Remove dead code.
1503
1504 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
1505
1506 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
1507 the internal register number, for any "real" register.
1508
1509 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
1510
1511 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
1512 correct numbers for TFHAR, TFIAR, TEXASR.
1513
1514 2019-05-02 Richard Biener <rguenther@suse.de>
1515
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.
1520
1521 2019-05-02 Richard Biener <rguenther@suse.de>
1522
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.
1526
1527 2019-05-02 Richard Biener <rguenther@suse.de>
1528
1529 PR tree-optimization/90273
1530 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
1531 useless debug stmts.
1532
1533 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1534
1535 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
1536 ACLE branch.
1537 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
1538 SVE ACLE branch.
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
1544 function.
1545
1546 2019-05-02 Martin Liska <mliska@suse.cz>
1547
1548 * cgraphclones.c: Call valid_attribute_p with 1 for
1549 target_clone.
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):
1555 Likewise.
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.
1561
1562 2019-05-02 Martin Liska <mliska@suse.cz>
1563
1564 * gcc.c (process_command): Add dummy file only
1565 if n_infiles == 0.
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
1569 is set.
1570 (common_handle_option): Factor out content of OPT__help_
1571 into print_help.
1572 * opts.h (finish_options): Add new argument.
1573
1574 2019-05-02 Martin Liska <mliska@suse.cz>
1575
1576 PR target/88809
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.
1581
1582 2019-05-01 Jeff Law <law@redhat.com>
1583
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.
1587
1588 2019-04-30 Andrew Waterman <andrew@sifive.com>
1589 Jim Wilson <jimw@sifive.com>
1590
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.
1601 (mov<mode>cc): New.
1602 (mov<GPR:mode><X:mode>cc): Likewise.
1603 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
1604
1605 2019-04-30 Nathan Sidwell <nathan@acm.org>
1606
1607 * tree.h (MARK_TS_EXP): New.
1608
1609 2019-04-30 Martin Liska <mliska@suse.cz>
1610
1611 * opts.c (enable_warning_as_error): Provide hints
1612 for unknown options.
1613
1614 2019-04-30 Martin Liska <mliska@suse.cz>
1615
1616 PR debug/90288
1617 * doc/invoke.texi: Add missing dash for gas-locview-support
1618 and gno-as-locview-support.
1619
1620 2019-04-30 Jakub Jelinek <jakub@redhat.com>
1621
1622 PR target/89093
1623 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
1624 whitespace at the start of target attribute string.
1625
1626 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1627
1628 PR target/86538
1629 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
1630 Define __ARM_FEATURE_ATOMICS.
1631
1632 2019-04-30 Martin Liska <mliska@suse.cz>
1633
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.
1638
1639 2019-04-30 Martin Liska <mliska@suse.cz>
1640
1641 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
1642 DECL_FUNCTION_CODE into ix86_builtins enum before
1643 the switch statement.
1644
1645 2019-04-30 Jakub Jelinek <jakub@redhat.com>
1646
1647 PR tree-optimization/89475
1648 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
1649 calls.
1650
1651 2019-04-30 Martin Liska <mliska@suse.cz>
1652
1653 PR translation/90274
1654 * opts.c (print_filtered_help): Wrap string in _(...).
1655
1656 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
1657
1658 PR tree-optimization/90240
1659 Revert:
1660 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1661
1662 PR tree-optimization/90078
1663 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
1664 checks for infinite_cost overflow.
1665
1666 2019-04-29 Jeff Law <law@redhat.com>
1667
1668 * passes.def: Move -Wrestrict pass after copy propagation.
1669
1670 2019-04-29 Maya Rashish <coypu@sdf.org>
1671
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*.
1675
1676 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
1677
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.
1681
1682 2019-04-29 Richard Biener <rguenther@suse.de>
1683
1684 PR tree-optimization/90278
1685 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
1686 EH on comparison simplification.
1687
1688 2019-04-29 Jason Merrill <jason@redhat.com>
1689
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.
1693
1694 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
1695
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.
1701
1702 2019-04-29 Jakub Jelinek <jakub@redhat.com>
1703
1704 PR rtl-optimization/90257
1705 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
1706 return value.
1707
1708 Revert the revert:
1709 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
1710
1711 PR target/90178
1712 Revert:
1713 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
1714
1715 Revert the revert:
1716 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
1717
1718 Revert:
1719 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
1720
1721 * lra-spills.c (lra_final_code_change): Remove useless move insns.
1722
1723 2019-04-29 Richard Biener <rguenther@suse.de>
1724
1725 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
1726 rhs issue a reset.
1727
1728 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
1729
1730 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
1731 varasm.h, and netbsd-protos.h.
1732
1733 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
1734
1735 PR target/89261
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.
1740
1741 2019-04-27 Martin Liska <mliska@suse.cz>
1742
1743 PR middle-end/90258
1744 * opt-suggestions.c (option_proposer::build_option_suggestions):
1745 When get_valid_option_values returns empty values, add the
1746 misspelling candidate.
1747
1748 2019-04-26 Jim Wilson <jimw@sifive.com>
1749
1750 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
1751 parameter.
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
1760 riscv_move_integer.
1761
1762 2018-04-26 Eugene Sharygin <eush@ispras.ru>
1763
1764 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
1765 corrupt codes.
1766
1767 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
1768
1769 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
1770 commentary about the encoding of precision.
1771
1772 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
1773
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.
1777
1778 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
1779
1780 * doc/extend.texi (vector_size): Add missing comma after @xref.
1781
1782 2019-04-25 Jakub Jelinek <jakub@redhat.com>
1783
1784 * BASE-VER: Set to 10.0.0.
1785
1786 2019-04-25 Richard Biener <rguenther@suse.de>
1787
1788 PR middle-end/89765
1789 * gimplify.c (gimplify_expr): Avoid turning a lvalue
1790 VIEW_CONVERT_EXPR into one operating on an rvalue.
1791
1792 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
1793
1794 PR target/89929
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.
1806
1807 2019-04-25 Richard Biener <rguenther@suse.de>
1808
1809 * tree-pass.h (make_pass_phi_only_cprop): Remove.
1810 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
1811
1812 2019-04-24 Jeff Law <law@redhat.com>
1813
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.
1820
1821 2019-04-24 Richard Biener <rguenther@suse.de>
1822
1823 PR middle-end/90213
1824 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
1825 by size and BITS_PER_UNIT on poly-wide-ints.
1826
1827 2019-04-25 Richard Biener <rguenther@suse.de>
1828
1829 PR middle-end/90194
1830 * match.pd: Add pattern to simplify view-conversion of an
1831 empty constructor.
1832
1833 2019-04-24 Clement Chigot <clement.chigot@atos.net>
1834
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.
1839
1840 2019-04-24 Jakub Jelinek <jakub@redhat.com>
1841
1842 PR target/90193
1843 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
1844 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
1845
1846 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
1847
1848 PR target/89952
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.
1854
1855 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
1856
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.
1860
1861 2019-04-24 Jakub Jelinek <jakub@redhat.com>
1862
1863 PR target/90187
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.
1866
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.
1870
1871 PR tree-optimization/90211
1872 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
1873 which are not SSA_NAMEs.
1874
1875 2018-04-23 Sudakshina Das <sudi.das@arm.com>
1876
1877 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
1878 AArch64.
1879 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
1880
1881 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
1882
1883 PR rtl-optimization/87979
1884 * modulo-sched.c (sms_schedule): Start ii value "mii" should
1885 not equal zero.
1886
1887 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
1888
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
1892 schedule.
1893
1894 2019-04-23 Richard Biener <rguenther@suse.de>
1895
1896 PR debug/90131
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.
1901
1902 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1903 Bernd Edlinger <bernd.edlinger@hotmail.de>
1904 Jakub Jelinek <jakub@redhat.com>
1905
1906 PR target/89093
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
1910 general-regs-only.
1911 (arm_valid_target_attribute_rec): Handle general-regs-only.
1912 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
1913 general-regs-only.
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.
1921
1922 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1923
1924 PR tree-optimization/90078
1925 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
1926 checks for infinite_cost overflow.
1927
1928 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
1929
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.
1935
1936 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
1937
1938 PR target/90178
1939 Revert:
1940 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
1941
1942 Revert the revert:
1943 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
1944
1945 Revert:
1946 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
1947
1948 * lra-spills.c (lra_final_code_change): Remove useless move insns.
1949
1950 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
1951
1952 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
1953 names using operand format, rather than hard-wired.
1954 (speculation_barrier): Likewise.
1955
1956 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
1957
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.
1961
1962 2019-04-19 Jakub Jelinek <jakub@redhat.com>
1963
1964 PR middle-end/90139
1965 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
1966 assign_temp instead of gen_reg_rtx.
1967
1968 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
1969
1970 PR translation/90118
1971 * config/aarch64/aarch64.c (aarch64_override_options_internal):
1972 Add missing space before %<.
1973
1974 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
1975
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.
1979
1980 2019-04-18 Martin Sebor <msebor@redhat.com>
1981
1982 PR middle-end/89797
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.
1986
1987 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
1988
1989 PR ipa/85051
1990 * ipa-inline.c (flatten_function): New parameter UPDATE.
1991 (ipa_inline, early_inliner): Use it.
1992
1993 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
1994
1995 * fold-const.c (int_const_binop): Return early on failure.
1996
1997 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
1998
1999 PR middle-end/85164
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.
2003
2004 2019-04-18 Richard Biener <rguenther@suse.de>
2005
2006 PR debug/90131
2007 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
2008 out from ...
2009 (remove_forwarder_block): ... here.
2010 (remove_forwarder_block_with_phi): Also move debug stmts here.
2011
2012 2019-04-18 Jakub Jelinek <jakub@redhat.com>
2013
2014 PR translation/79183
2015 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
2016 inform where appropriate.
2017
2018 2019-04-18 Richard Biener <rguenther@suse.de>
2019
2020 * tree.c (get_qualified_type): Put found type variants at the
2021 head of the variant list.
2022
2023 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2024
2025 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
2026
2027 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
2028
2029 PR target/90125
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.
2035
2036 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
2037
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.
2041
2042 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2043
2044 * auto-inc-dec.c (attempt_change): Set the alignment of the
2045 temporary memory to that of the original.
2046
2047 2019-04-17 Joao Moreira <jmoreira@suse.de>
2048
2049 * targhooks.c (default_print_patchable_function_entry): Emit
2050 __patchable_function_entries section with writable flags to allow
2051 relocation resolution.
2052
2053 2019-04-17 Jonny Grant <jg@jguk.org>
2054
2055 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
2056
2057 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2058
2059 PR middle-end/90095
2060 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
2061 on lowpart SUBREGs.
2062
2063 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
2064
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.
2069
2070 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
2071
2072 PR target/17108
2073 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
2074 name.
2075 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
2076 name.
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
2082 use Pmode.
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.
2105
2106 2019-04-17 Jakub Jelinek <jakub@redhat.com>
2107
2108 PR target/89093
2109 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
2110 whitespace at the start of target attribute string.
2111
2112 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
2113
2114 PR target/84369
2115 * config/rs6000/power9.md: Add store forwarding bypass.
2116
2117 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
2118
2119 PR debug/89528
2120 * valtrack.c (dead_debug_insert_temp): Reset debug references
2121 to the return value of a call being removed.
2122
2123 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2124
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.
2133
2134 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2135
2136 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
2137 (sibcall_value_insn): Likewise.
2138 * config/arc/constraints.md (Rs5): Remove.
2139
2140 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2141
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.
2168 (LP_END): Likewise.
2169 (shift_si3_loop): Update pattern.
2170
2171 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
2172
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.
2178
2179 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
2180 Shiva Chen <shiva0217@gmail.com>
2181
2182 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
2183 code gen with large shift amount.
2184
2185 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
2186
2187 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
2188 subreg.
2189
2190 2019-04-16 Jakub Jelinek <jakub@redhat.com>
2191
2192 PR target/90096
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.
2200
2201 PR rtl-optimization/90082
2202 * dce.c (can_delete_call): New function.
2203 (deletable_insn_p, mark_insn): Use it.
2204
2205 PR tree-optimization/90090
2206 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
2207 throw internally.
2208 (is_division_by_square): Likewise. Formatting fix.
2209
2210 2019-04-16 Richard Biener <rguenther@suse.de>
2211
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.
2215
2216 2019-04-15 Jeff Law <law@redhat.com>
2217
2218 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
2219 size and alignment as unsigned.
2220
2221 2019-04-15 Richard Biener <rguenther@suse.de>
2222
2223 PR debug/90074
2224 * tree-loop-distribution.c (destroy_loop): Preserve correct
2225 debug info.
2226
2227 2019-04-15 Richard Biener <rguenther@suse.de>
2228
2229 PR tree-optimization/90071
2230 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
2231 abnormal operands from def stmts.
2232
2233 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
2234
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.
2241
2242 2019-04-15 Richard Biener <rguenther@suse.de>
2243
2244 PR ipa/88936
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
2249 member.
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
2257 a singleton.
2258
2259 2019-04-15 Martin Jambor <mjambor@suse.cz>
2260
2261 PR ipa/pr89693
2262 * cgraph.c (clone_of_p): Loop over clone chain for each step in
2263 the thunk chain.
2264
2265 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2266
2267 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
2268
2269 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
2270 Kito Cheng <kito.cheng@gmail.com>
2271 Shiva Chen <shiva0217@gmail.com>
2272
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
2281 relax_group_id.
2282 (nds32_group_tls_insn): Ditto.
2283 (nds32_group_float_insns): Ditto.
2284 * config/nds32/nds32.md (tls_le): New.
2285 (sym_got): Ditto.
2286
2287 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
2288
2289 * configure: Add nds32 target for dwarf2 debug_line checking.
2290 * configure.ac: Regenerated.
2291
2292 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
2293
2294 PR lto/89358
2295 * ipa-devirt.c (skip_in_fields_list_p): New.
2296 (odr_types_equivalent_p): Use it.
2297
2298 2019-04-13 Jakub Jelinek <jakub@redhat.com>
2299
2300 PR target/89093
2301 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
2302 instead of strncmp when checking for thumb and arm. Formatting fixes.
2303
2304 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
2305
2306 * doc/install.texi: Document --with-target-system-zlib.
2307
2308 2019-04-12 Martin Sebor <msebor@redhat.com>
2309
2310 PR c/88383
2311 PR c/89288
2312 PR c/89798
2313 PR c/89797
2314 * targhooks.c (default_vector_alignment): Avoid assuming
2315 argument fits in SHWI.
2316 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
2317 a shift expression.
2318 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
2319
2320 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2321
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.
2328
2329 * config/mips/loongson-mmiintrin.h: Fix up #error message.
2330
2331 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
2332
2333 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
2334 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
2335
2336 2019-04-12 Martin Liska <mliska@suse.cz>
2337
2338 PR middle-end/89970
2339 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
2340 in error message.
2341 (separate_attrs): Handle multiple 'default's.
2342 (expand_target_clones): Rework error handling code.
2343
2344 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
2345
2346 PR target/87532
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.
2351
2352 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2353
2354 PR target/52726
2355 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
2356 "invalid %%t operand" in output_operand_lossage message.
2357
2358 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
2359
2360 * config/s390/predicates.md (permute_pattern_operand): New
2361 predicate.
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
2367 already.
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.
2373
2374 2019-04-12 Jakub Jelinek <jakub@redhat.com>
2375
2376 PR c/89946
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.
2381
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.
2387
2388 2018-04-11 Steve Ellcey <sellcey@marvell.com>
2389
2390 PR rtl-optimization/87763
2391 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
2392 New Instruction.
2393
2394 2019-04-11 Tom de Vries <tdevries@suse.de>
2395
2396 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
2397 max macro using statement expression.
2398
2399 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
2400
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.
2406
2407 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
2408
2409 PR target/90016
2410 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
2411
2412 2019-04-11 Jakub Jelinek <jakub@redhat.com>
2413
2414 PR rtl-optimization/89965
2415 * dce.c (sp_based_mem_offset): New function.
2416 (find_call_stack_args): Use sp_based_mem_offset.
2417
2418 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
2419
2420 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
2421
2422 2019-04-11 Richard Biener <rguenther@suse.de>
2423
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
2432 return.
2433
2434 2019-04-11 Richard Biener <rguenther@suse.de>
2435
2436 PR tree-optimization/90018
2437 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
2438 Test both SLP and interleaving variants.
2439
2440 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
2441
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.
2453
2454 2018-04-10 Steve Ellcey <sellcey@marvell.com>
2455
2456 PR rtl-optimization/87763
2457 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
2458 New prototype.
2459 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
2460 New function.
2461 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
2462 New instruction.
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.
2467
2468 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
2469
2470 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
2471 "Although" in -fipa-icf documentation.
2472
2473 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
2474 of using multiple -g options.
2475
2476 2019-04-10 Martin Liska <mliska@suse.cz>
2477
2478 PR gcov-profile/89959
2479 * doc/gcov.texi: Make documentation of -x option
2480 more precise.
2481
2482 2019-04-10 Richard Biener <rguenther@suse.de>
2483
2484 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
2485 member.
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.
2492
2493 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
2494
2495 PR target/90016
2496 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
2497 obsolete reference to N.
2498
2499 2019-04-10 Jakub Jelinek <jakub@redhat.com>
2500
2501 PR middle-end/90025
2502 * expr.c (store_expr): Set properly size on the MEM passed to
2503 clear_storage.
2504
2505 PR c++/90010
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
2510 strncpy or strcat.
2511
2512 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
2513
2514 PR target/90024
2515 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
2516 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
2517 into three.
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.
2521
2522 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2523
2524 PR translation/90011
2525 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
2526 from diagnostics.
2527 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
2528 diagnostics.
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.
2533
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
2540 integer_type_node.
2541
2542 2019-04-09 Martin Liska <mliska@suse.cz>
2543
2544 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
2545 * doc/install.texi: Document the new config.
2546
2547 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
2548
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.
2553
2554 2019-04-09 Jakub Jelinek <jakub@redhat.com>
2555
2556 PR target/90015
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.
2560
2561 2019-04-08 wu yuan <wuyuan5@huawei.com>
2562
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.
2566
2567 2019-04-08 Richard Biener <rguenther@suse.de>
2568
2569 PR tree-optimization/90006
2570 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
2571 calls like lrint.
2572
2573 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
2574
2575 PR target/83033
2576 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
2577 construction.
2578 (fma_root_node): Likewise.
2579 (func_fma_steering): Likewise.
2580
2581 2019-04-08 Jakub Jelinek <jakub@redhat.com>
2582
2583 PR rtl-optimization/89865
2584 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
2585
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.
2592
2593 2019-04-08 Martin Liska <mliska@suse.cz>
2594
2595 PR gcov-profile/89961
2596 * doc/gcov.texi: Document data_file.
2597 * gcov.c (generate_results): Add data_info into JSON output.
2598
2599 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
2600
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.
2609
2610 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
2611
2612 PR target/89623
2613 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
2614 Mask.
2615
2616 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
2617
2618 PR target/89945
2619 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
2620 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
2621
2622 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
2623
2624 * sched-deps.c (sched_macro_fuse_insns): Check return value of
2625 targetm.fixed_condition_code_regs.
2626
2627 2019-04-05 Richard Biener <rguenther@suse.de>
2628
2629 PR debug/89892
2630 PR debug/89905
2631 * tree-cfgcleanup.c (remove_forwarder_block): Always move
2632 debug bind stmts but reset them if they are not valid at the
2633 destination.
2634
2635 2019-04-05 Martin Liska <mliska@suse.cz>
2636
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):
2647 Likewise.
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.
2673
2674 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
2675
2676 PR tree-optimization/89956
2677 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
2678 multiple negates of the same value.
2679
2680 2019-04-04 Martin Sebor <msebor@redhat.com>
2681
2682 PR middle-end/89957
2683 PR middle-end/89911
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.
2688
2689 2019-04-04 Martin Sebor <msebor@redhat.com>
2690
2691 PR middle-end/89934
2692 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
2693 out if the number of arguments is less than expected.
2694
2695 2019-04-04 Jeff Law <law@redhat.com>
2696
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.
2701
2702 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
2703
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
2708 to move_invariants.
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
2712 locally.
2713
2714 2019-04-03 qing zhao <qing.zhao@oracle.com>
2715
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.
2722
2723 2019-04-03 Jeff Law <law@redhat.com>
2724
2725 PR rtl-optimization/81025
2726 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
2727
2728 2019-04-03 Richard Biener <rguenther@suse.de>
2729
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.
2737
2738 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
2739
2740 * config/s390/s390.c (s390_legitimate_address_p): Reject long
2741 displacement addresses for vector mode operands.
2742
2743 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
2744
2745 * config/arc/arc.c (GMASK_LEN): Define.
2746 (arc_restore_callee_saves): Restore first blink when
2747 !optimize_size.
2748
2749 2019-04-03 Sudakshina Das <sudi.das@arm.com>
2750
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.
2754
2755 2019-04-03 Richard Biener <rguenther@suse.de>
2756
2757 PR lto/89896
2758 * lto-wrapper.c (run_gcc): Avoid implicit rules making
2759 the all target phony.
2760
2761 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
2762
2763 PR target/89902
2764 PR target/89903
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.
2773
2774 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
2775
2776 PR rtl-optimization/84206
2777 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
2778 iterating over loop headers.
2779
2780 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
2781
2782 PR rtl-optimization/85876
2783 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
2784 beyond the original fence.
2785
2786 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
2787
2788 * config.gcc: Mark spu* targets as deprecated/obsolete.
2789
2790 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2791
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"):
2804 Remove expanders.
2805
2806 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2807
2808 * config/s390/s390-builtin-types.def: New builtin function type
2809 definitions.
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
2819 expanders.
2820 ("vec_vstrs<mode>"): New insn definition.
2821
2822 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2823
2824 * config/s390/s390-builtin-types.def: Add new builtin function
2825 types.
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
2829 s390_vsrd.
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
2834 definitions.
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.
2838
2839 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2840
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.
2845
2846 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2847
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.
2853
2854 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2855
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
2864 insn definitions.
2865
2866 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2867
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
2871 instructions.
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.
2876
2877 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2878
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__.
2882
2883 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2884
2885 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
2886 iterators.
2887 (SFSI): New mode attribute.
2888 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
2889 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
2890 rename to ...
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.
2895
2896 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2897
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
2900 mode iterators.
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"):
2908 ... to these.
2909
2910 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2911
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.
2915
2916 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2917
2918 * config/s390/s390.md ("*popcountdi_arch13_cc")
2919 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
2920 definition.
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.
2927
2928 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2929
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.
2945
2946 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
2947
2948 * common/config/s390/s390-common.c (processor_flags_table): New
2949 entry for arch13.
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
2959 definitions.
2960 * config/s390/s390.opt: Support arch13 as processor type in
2961 command line options.
2962
2963 2019-04-02 Martin Liska <mliska@suse.cz>
2964
2965 PR translation/89912
2966 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
2967 Fix param description of graphite-max-arrays-per-scop.
2968
2969 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
2970
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.
2974
2975 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2976
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.
2980
2981 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2982
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.
2987
2988 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
2989
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.
2993
2994 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
2995
2996 PR rtl-optimization/87273
2997 * sel-sched-ir.c (merge_fences): Remove assert.
2998
2999 2019-04-01 Richard Biener <rguenther@suse.de>
3000
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.
3010
3011 2019-04-01 Martin Liska <mliska@suse.cz>
3012
3013 PR driver/89861
3014 * opt-suggestions.c (option_proposer::build_option_suggestions):
3015 Add variant without any argument in order to provide better
3016 hints.
3017
3018 2019-04-01 Richard Biener <rguenther@suse.de>
3019
3020 PR c/71598
3021 * gimple.c: Include langhooks.h.
3022 (gimple_get_alias_set): Treat enumeral types as the underlying
3023 integer type.
3024
3025 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
3026 Eric Botcazou <ebotcazou@adacore.com>
3027
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
3031 architectures.
3032
3033 2019-03-29 Jim Wilson <jimw@sifive.com>
3034
3035 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
3036 Clear MASK_RVC and then set if C subset supported.
3037
3038 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3039
3040 PR c/89872
3041 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
3042 non-addressable complit into its initializer if it is volatile.
3043
3044 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
3045
3046 * opts-common.c (integral_argument): Set errno properly in one case.
3047
3048 2019-03-29 Martin Liska <mliska@suse.cz>
3049
3050 * doc/invoke.texi: Remove -Wchkp from documentation.
3051
3052 2019-03-29 Martin Liska <mliska@suse.cz>
3053
3054 * dbgcnt.c (print_limit_reach): New function.
3055 (dbg_cnt): Use it.
3056
3057 2019-03-29 Martin Liska <mliska@suse.cz>
3058
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.
3062
3063 2019-03-29 Jakub Jelinek <jakub@redhat.com>
3064
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).
3068
3069 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3070
3071 PR middle-end/89621
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.
3080
3081 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3082
3083 PR target/89865
3084 * config/i386/i386.md (RMW operation with LEA peephole):
3085 Use LEAMODE mode attribute instead of SWI mode iterator for
3086 LEA pattern.
3087
3088 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
3089
3090 PR target/89848
3091 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
3092 Also process XEXP (src, 0) of a shift insn.
3093
3094 2019-03-28 David Malcolm <dmalcolm@redhat.com>
3095
3096 PR middle-end/89725
3097 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
3098 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
3099
3100 2019-03-28 Jakub Jelinek <jakub@redhat.com>
3101
3102 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
3103 test.
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
3110 insns again.
3111
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.
3115
3116 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
3117
3118 PR c/79022
3119 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
3120 definition.
3121
3122 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
3123
3124 PR target/85667
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.
3128
3129 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
3130
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.
3134
3135 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
3136
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.
3142
3143 2019-03-27 Jeff Law <law@redhat.com>
3144
3145
3146 PR rtl-optimization/87761
3147 PR rtl-optimization/89826
3148 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
3149 slightly later.
3150 (pass_cprop_hardreg::execute): Call df_analyze after adding the
3151 note problem to get REG_DEAD/REG_UNUSED notes updated.
3152
3153 2019-03-27 Richard Biener <rguenther@suse.de>
3154
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
3161 PHIs.
3162
3163 2019-03-27 Alan Modra <amodra@gmail.com>
3164
3165 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
3166 throughout file.
3167 * config/rs6000/darwin.h: Likewise.
3168 * config/rs6000/rs6000.c: Likewise.
3169
3170 2019-03-27 Alan Modra <amodra@gmail.com>
3171
3172 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
3173 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
3174
3175 2019-03-26 Andrew Waterman <andrew@sifive.com>
3176 Jim Wilson <jimw@sifive.com>
3177
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
3187 field.
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
3192 entries.
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.
3197 (type): Add auipc.
3198 (tune): New.
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.
3203
3204 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
3205
3206 PR target/89827
3207 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
3208 Also process XEXP (src, 0) of a shift insn.
3209
3210 2019-03-26 Richard Biener <rguenther@suse.de>
3211
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.
3218
3219 2019-03-26 Jakub Jelinek <jakub@redhat.com>
3220
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.
3225
3226 2019-03-26 Jason Merrill <jason@redhat.com>
3227 Jakub Jelinek <jakub@redhat.com>
3228
3229 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
3230 method.
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.
3235
3236 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
3237
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.
3242
3243 2019-03-26 Alan Modra <amodra@gmail.com>
3244
3245 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
3246 rs6000_vector_mem init. Correct wI and wJ comment.
3247
3248 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
3249
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.
3254
3255 2019-03-25 Martin Sebor <msebor@redhat.com>
3256
3257 PR c/89812
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.
3261
3262 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
3263
3264 PR debug/86964
3265 * dwarf2out.c (premark_used_variables): New function.
3266 (prune_unused_types_walk): Do not mark not premarked external
3267 variables.
3268 (prune_unused_types): Call premark_used_variables.
3269
3270 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
3271
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
3275 registers.
3276
3277 2019-03-25 Martin Sebor <msebor@redhat.com>
3278
3279 * doc/extend.texi (Common Type Attributes): Document vector_size.
3280 (Common Variable Attributes): Mention size constraint. Correct
3281 quoting and typos.
3282 (Vector Extensions): Use @dfn when defining bas type. Clarify
3283 base type and size constraints.
3284
3285 2019-03-25 Richard Biener <rguenther@suse.de>
3286
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.
3290
3291 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
3292
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.
3297
3298 2019-03-25 Richard Biener <rguenther@suse.de>
3299
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.
3306
3307 2019-03-25 Richard Biener <rguenther@suse.de>
3308
3309 PR tree-optimization/89802
3310 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
3311 move EH data to folded stmt.
3312
3313 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3314
3315 * config/s390/s390-builtin-types.def: Remove few unused types and
3316 fix sort order for others.
3317
3318 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
3319
3320 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
3321 expected and found types with -mdebug during builtin matching.
3322
3323 2019-03-25 Richard Biener <rguenther@suse.de>
3324
3325 PR middle-end/89790
3326 * fold-const.c (operand_equal_p): Revert last change with
3327 updated comment.
3328
3329 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
3330
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.
3334
3335 2019-03-24 Jeff Law <law@redhat.com>
3336
3337 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
3338
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
3342 as needed.
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
3346 insns.
3347
3348 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
3349
3350 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
3351 big endian.
3352
3353 2019-03-22 Andrew Pinski <apinski@marvell.com>
3354
3355 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
3356 attrribute for uxtw.
3357
3358 2019-03-26 Jeff Law <law@redhat.com>
3359
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.
3366
3367 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
3368
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.
3372
3373 2019-03-22 Jakub Jelinek <jakub@redhat.com>
3374
3375 PR c++/87481
3376 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
3377
3378 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
3379
3380 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
3381
3382 2019-03-22 Jakub Jelinek <jakub@redhat.com>
3383
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.
3396
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.
3417
3418 PR target/89784
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.
3459
3460 2019-03-21 Martin Sebor <msebor@redhat.com>
3461
3462 PR tree-optimization/89350
3463 * builtins.c (compute_objsize): Also ignore offsets whose upper
3464 bound is negative.
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.
3480
3481 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
3482 Jakub Jelinek <jakub@redhat.com>
3483
3484 PR lto/89692
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).
3491
3492 2019-03-21 Jakub Jelinek <jakub@redhat.com>
3493
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
3503 false.
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.
3512
3513 2019-03-21 Richard Biener <rguenther@suse.de>
3514
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
3518 type.
3519 * fold-const.c (operand_equal_p): Likewise.
3520
3521 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
3522
3523 PR target/89775
3524 * config/s390/s390.c (global_not_special_regno_p): Move to make it
3525 available to ...
3526 (s390_optimize_register_info): Use global_not_special_regno_p to
3527 check for global regs.
3528
3529 2019-03-20 Jakub Jelinek <jakub@redhat.com>
3530
3531 PR target/89752
3532 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
3533 update this_alternative nor this_alternative_set.
3534
3535 2019-03-19 Jim Wilson <jimw@sifive.com>
3536
3537 PR target/89411
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
3540 comment.
3541 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
3542
3543 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3544
3545 PR rtl-optimization/89768
3546 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
3547 instead of GEN_INT.
3548 (unroll_loop_runtime_iterations): Likewise.
3549
3550 2019-03-19 Martin Sebor <msebor@redhat.com>
3551
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.
3555
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.
3559
3560 2019-03-19 Martin Liska <mliska@suse.cz>
3561
3562 PR middle-end/89737
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.
3565
3566 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
3567
3568 PR target/89746
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.
3572
3573 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3574
3575 PR target/89378
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.
3579
3580 2019-03-19 Richard Biener <rguenther@suse.de>
3581
3582 PR debug/88389
3583 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
3584
3585 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
3586
3587 PR lto/87809
3588 PR lto/89335
3589 * tree.c (free_lang_data_in_decl): Do not free context of C++
3590 destrutors.
3591
3592 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3593
3594 PR target/89506
3595 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
3596 subs for the first alternative except when operands[3] is 1.
3597
3598 PR target/89752
3599 * gimplify.c (gimplify_asm_expr): For output argument with
3600 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
3601 diagnose error.
3602
3603 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
3604
3605 PR rtl-optimization/89753
3606 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
3607 explicit unrolling factor even more robust.
3608
3609 2019-03-19 Jakub Jelinek <jakub@redhat.com>
3610
3611 PR target/89726
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.
3615
3616 2019-03-18 Martin Sebor <msebor@redhat.com>
3617
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.
3621
3622 2019-03-18 Richard Biener <rguenther@suse.de>
3623
3624 PR middle-end/88945
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.
3629
3630 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
3631
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.
3643
3644 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
3645
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.
3649
3650 2019-03-18 Martin Jambor <mjambor@suse.cz>
3651
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.
3655
3656 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
3657
3658 PR target/89627
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.
3662
3663 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3664
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
3675 operation does.
3676
3677 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3678
3679 * config/arc/arc.md (tst_movb): Fix constraint.
3680
3681 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3682
3683 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
3684
3685 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
3686
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
3693 order.
3694 (ADJUST_REG_ALLOC_ORDER): Define.
3695 (HONOR_REG_ALLOC_ORDER): Likewise.
3696
3697 2019-03-18 Richard Biener <rguenther@suse.de>
3698
3699 PR target/87561
3700 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
3701 loads and stores a bit more.
3702
3703 2019-03-18 Richard Biener <rguenther@suse.de>
3704
3705 PR target/87561
3706 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
3707 load pessimization to stores as well.
3708
3709 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
3710
3711 PR middle-end/86979
3712 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
3713 successor, use NULL as its av set.
3714
3715 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3716
3717 PR rtl-optimization/89721
3718 * lra-constraints (invariant_p): Return false if side_effects_p holds.
3719
3720 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
3721
3722 PR target/87532
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
3733 compute index.
3734
3735 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
3736
3737 PR c++/88534
3738 PR c++/88537
3739 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
3740 VAR_DECL args.
3741
3742 2019-03-15 Jakub Jelinek <jakub@redhat.com>
3743
3744 PR c++/89709
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.
3748
3749 PR debug/89704
3750 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
3751 SIGN_EXTEND and ZERO_EXTEND.
3752
3753 2019-03-14 Jason Merrill <jason@redhat.com>
3754 Jakub Jelinek <jakub@redhat.com>
3755
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.
3762
3763 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
3764
3765 PR target/89650
3766 * config/i386/i386.c (remove_partial_avx_dependency): Handle
3767 REG_EH_REGION note.
3768
3769 2019-03-14 Martin Liska <mliska@suse.cz>
3770
3771 PR other/89712
3772 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
3773
3774 2019-03-14 Richard Biener <rguenther@suse.de>
3775
3776 PR target/89711
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.
3780
3781 2019-03-14 Richard Biener <rguenther@suse.de>
3782
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.
3794
3795 2019-03-14 Jakub Jelinek <jakub@redhat.com>
3796
3797 PR ipa/89684
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.
3802
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.
3806
3807 2019-03-14 Richard Biener <rguenther@suse.de>
3808
3809 PR tree-optimization/89710
3810 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
3811 safe_dyn_cast.
3812
3813 2019-03-14 Martin Liska <mliska@suse.cz>
3814
3815 * coverage.c (coverage_begin_function): Stream also
3816 end_column.
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
3824 fields.
3825 (read_graph_file): Read end_column.
3826
3827 2019-03-14 Richard Biener <rguenther@suse.de>
3828
3829 PR middle-end/89698
3830 * fold-const.c (operand_equal_p): For INDIRECT_REF check
3831 that the access types are similar.
3832
3833 2019-03-14 Jakub Jelinek <jakub@redhat.com>
3834
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}.
3840
3841 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
3842
3843 PR target/89523
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
3847 "%M2" to opcode.
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.
3863
3864 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
3865
3866 PR target/85860
3867 * lra-constraints.c (inherit_in_ebb): Update
3868 potential_reload_hard_regs along with live_hard_regs.
3869
3870 2019-03-13 Jakub Jelinek <jakub@redhat.com>
3871
3872 PR debug/89498
3873 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
3874 DWARF_OFFSET_SIZE.
3875 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
3876
3877 2019-03-13 Martin Sebor <msebor@redhat.com>
3878
3879 PR tree-optimization/89662
3880 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
3881 has a size.
3882
3883 2019-03-13 Richard Biener <rguenther@suse.de>
3884
3885 PR middle-end/89677
3886 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
3887 throw FP expressions at tree-affine.
3888
3889 2019-03-14 Richard Biener <rguenther@suse.de>
3890
3891 * tree-pretty-print.c (dump_generic_node): For -gimple properly
3892 dump negative integer constants using _Literal (type) -num.
3893
3894 2019-03-13 Jakub Jelinek <jakub@redhat.com>
3895
3896 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
3897 nonlocal_value member.
3898
3899 PR middle-end/88588
3900 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
3901 (ipa_simd_modify_function_body): Handle PHIs.
3902
3903 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3904
3905 * config/s390/s390.c (s390_option_override_internal): Use more
3906 aggressive inlining parameters.
3907
3908 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3909
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.
3931
3932 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
3933
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.
3941
3942 2019-03-12 Martin Liska <mliska@suse.cz>
3943
3944 * config/i386/i386.c: Reword an error message.
3945
3946 2019-03-12 Martin Jambor <mjambor@suse.cz>
3947
3948 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
3949 terminate with newline.
3950
3951 2019-03-12 Jakub Jelinek <jakub@redhat.com>
3952
3953 PR target/52726
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
3959 's with %< and %>.
3960
3961 PR middle-end/89663
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.
3965
3966 2019-03-12 Richard Biener <rguenther@suse.de>
3967
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.
3971
3972 2019-03-11 Jakub Jelinek <jakub@redhat.com>
3973
3974 PR middle-end/89655
3975 PR bootstrap/89656
3976 * vr-values.c (vr_values::update_value_range): If
3977 old_vr->varying_p (), don't update it, make new_vr also VARYING
3978 and return false.
3979
3980 2019-03-11 Martin Liska <mliska@suse.cz>
3981
3982 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3983 Fix double string quoting.
3984
3985 2019-03-11 Martin Liska <mliska@suse.cz>
3986
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.
4001
4002 2019-03-11 Martin Liska <mliska@suse.cz>
4003
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):
4019 Likewise.
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.
4141
4142 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
4143
4144 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
4145 only on the else branch.
4146
4147 2019-03-11 Martin Liska <mliska@suse.cz>
4148
4149 * gcov.c (output_intermediate_json_line): Print function
4150 name of each line.
4151 (output_json_intermediate_file): Add new argument.
4152 * doc/gcov.texi: Document the change.
4153
4154 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
4155
4156 PR rtl-optimization/89588
4157 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
4158 explicit unrolling factor more robust.
4159
4160 2019-03-11 Richard Biener <rguenther@suse.de>
4161
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.
4169
4170 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
4171
4172 PR target/68924
4173 * config/i386/sse.md (*vec_extractv2di_0_sse):
4174 Add (=r,x) alternative and corresponding splitter.
4175
4176 2019-03-10 Martin Jambor <mjambor@suse.cz>
4177
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
4185 both rhs and lhs.
4186
4187 2019-03-09 Jakub Jelinek <jakub@redhat.com>
4188
4189 PR c/88568
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.
4192
4193 PR target/79645
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,
4206 mnewlib): Likewise.
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
4211 a colon.
4212 * config/i386/i386.opt (prefer_vector_width, instrument_return):
4213 Likewise.
4214 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
4215 text.
4216
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.
4220
4221 2019-03-08 David Malcolm <dmalcolm@redhat.com>
4222
4223 PR target/79926
4224 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
4225 messages more amenable to translation, and improve wording.
4226
4227 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
4228
4229 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
4230 ud- and du-chains between phases.
4231
4232 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
4233
4234 PR debug/89631
4235 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
4236 instead of POLY_INT_CST.
4237
4238 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
4239
4240 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
4241 requirement.
4242
4243 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
4244
4245 PR target/68924
4246 PR target/78782
4247 PR target/87558
4248 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
4249 (_mm_storeu_si64): Ditto.
4250
4251 2019-03-08 Martin Liska <mliska@suse.cz>
4252
4253 PR target/86952
4254 * config/i386/i386.c (ix86_option_override_internal): Disable
4255 jump tables when retpolines are used.
4256
4257 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
4258
4259 PR go/63560
4260 * ipa-split.c (execute_split_functions): Do not split
4261 'noinline' or 'section' function.
4262
4263 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4264
4265 PR target/79846
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.
4269
4270 PR ipa/80000
4271 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4272 from diagnostics. Formatting fixes.
4273
4274 PR target/85665
4275 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
4276 warn_odr diagnostics.
4277
4278 PR other/80058
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
4281 literal.
4282 * attribs.c (handle_dll_attribute): Likewise.
4283 * config/avr/avr-devices.c (avr_texinfo): Likewise.
4284
4285 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
4286 warning_at or inform messages in G_() if there is no ?:.
4287
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.
4295
4296 2019-03-08 Richard Biener <rguenther@suse.de>
4297
4298 PR middle-end/89578
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
4302 cliques.
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.
4306
4307 2019-03-08 Jakub Jelinek <jakub@redhat.com>
4308
4309 PR target/80190
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.
4313
4314 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4315
4316 PR target/80003
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.
4327
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.
4332
4333 PR target/89602
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.
4345
4346 2019-03-07 Martin Jambor <mjambor@suse.cz>
4347
4348 PR lto/87525
4349 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
4350 for extern inline functions.
4351
4352 2019-03-07 Martin Jambor <mjambor@suse.cz>
4353
4354 PR ipa/88235
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.
4360
4361 2019-03-07 Martin Liska <mliska@suse.cz>
4362
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.
4367
4368 2019-01-25 Jason Merrill <jason@redhat.com>
4369
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.
4373
4374 2019-04-07 Richard Biener <rguenther@suse.de>
4375
4376 PR middle-end/89618
4377 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
4378 * tree-inline.c (copy_loops): Simplify.
4379
4380 2019-03-07 Martin Liska <mliska@suse.cz>
4381
4382 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
4383
4384 2019-03-07 Richard Biener <rguenther@suse.de>
4385
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
4390 already advanced.
4391 (dom_opt_dom_walker::before_dom_children): Re-iterate over
4392 stmts created by folding.
4393
4394 2019-03-07 Jakub Jelinek <jakub@redhat.com>
4395
4396 PR c++/89585
4397 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
4398 at toplevel.
4399
4400 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
4401
4402 PR rtl-optimization/88845
4403 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
4404 LRA.
4405 * lra.c (remove_scratches_1): New function.
4406 (remove_scratches): Use it.
4407 (lra_emit_move): Likewise.
4408
4409 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
4410
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.
4416
4417 2019-03-06 Martin Liska <mliska@suse.cz>
4418
4419 PR gcov-profile/89577
4420 * doc/gcov.texi: Prefer to use --coverage.
4421 * doc/sourcebuild.texi: Likewise.
4422
4423 2019-03-02 Jason Merrill <jason@redhat.com>
4424
4425 PR c++/86485 - -Wmaybe-unused with empty class ?:
4426 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
4427
4428 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4429
4430 PR target/89587
4431 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
4432 if_multiarch.
4433
4434 PR middle-end/89590
4435 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
4436 exactly one argument.
4437
4438 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4439 Richard Sandiford <richard.sandiford@arm.com>
4440
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).
4444
4445 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
4446
4447 PR target/89222
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.
4452
4453 2019-03-05 Richard Biener <rguenther@suse.de>
4454
4455 PR tree-optimization/89594
4456 * tree-if-conv.c (pass_if_conversion::execute): Handle
4457 case where .LOOP_VECTORIZED_FUNCTION was removed.
4458
4459 2019-03-05 Jakub Jelinek <jakub@redhat.com>
4460
4461 PR bootstrap/89560
4462 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
4463 instead alloca it only when needed with the needed size.
4464
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.
4468
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.
4475
4476 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
4477
4478 PR tree-optimization/89437
4479 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
4480
4481 2019-03-04 Richard Biener <rguenther@suse.de>
4482
4483 PR middle-end/89572
4484 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
4485 safe_dyn_cast.
4486
4487 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
4488
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.
4496
4497 2019-03-02 Jakub Jelinek <jakub@redhat.com>
4498
4499 PR target/89506
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.
4506
4507 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
4508 Monk Chiang <sh.chiang04@gmail.com>
4509
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=
4514 * config.in: Regen.
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
4522 * configure: Regen.
4523 * doc/install.texi: Document --with-riscv-attribute.
4524 * doc/invoke.texi: Document -mriscv-attribute.
4525
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
4545 parse.
4546
4547 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
4548
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.
4552
4553 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
4554
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.
4558
4559 2019-03-01 Tamar Christina <tamar.christina@arm.com>
4560
4561 PR target/89517
4562 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
4563 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
4564
4565 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
4566
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.
4571
4572 2019-03-01 Richard Biener <rguenther@suse.de>
4573
4574 PR middle-end/89541
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.
4578
4579 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4580
4581 PR middle-end/89503
4582 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
4583 on DECL_P and EXPR_P.
4584
4585 2019-03-01 Richard Biener <rguenther@suse.de>
4586
4587 PR middle-end/89497
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
4594 form if requested.
4595 (cleanup_tree_cfg): Get and pass down SSA update flags.
4596
4597 2019-03-01 Jakub Jelinek <jakub@redhat.com>
4598
4599 PR bootstrap/89539
4600 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
4601 early_lto_debug argument.
4602
4603 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
4604
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.
4608
4609 2019-02-28 Marek Polacek <polacek@redhat.com>
4610
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
4615 a switch.
4616
4617 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
4618
4619 PR lto/88585
4620 * tree.c (find_atomic_core_type): Move ahead in file.
4621 (check_base_type): Correctly compare alignments of atomic types.
4622
4623 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
4624
4625 PR target/89455
4626 * config/i386/i386.c (get_builtin_code_for_version): Identify
4627 Westmere from PCLMUL, instead of AES.
4628
4629 2019-02-28 Jakub Jelinek <jakub@redhat.com>
4630
4631 PR target/89434
4632 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
4633 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
4634 -UINTVAL (...).
4635
4636 2019-02-28 Tamar Christina <tamar.christina@arm.com>
4637
4638 PR target/88530
4639 * config/aarch64/aarch64-option-extensions.def: Document it.
4640 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
4641 if empty hwcaps.
4642
4643 2019-02-28 Jakub Jelinek <jakub@redhat.com>
4644
4645 PR c/89520
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.
4648 Formatting fixes.
4649
4650 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
4651
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.
4656
4657 2019-02-27 Jakub Jelinek <jakub@redhat.com>
4658
4659 PR target/70341
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
4667 define_insn to ...
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.
4671
4672 2019-02-27 Richard Biener <rguenther@suse.de>
4673
4674 PR debug/88878
4675 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
4676
4677 2019-02-27 Richard Biener <rguenther@suse.de>
4678
4679 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
4680 building.
4681
4682 2019-02-27 Richard Biener <rguenther@suse.de>
4683
4684 PR debug/88878
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.
4689
4690 2019-02-27 Richard Biener <rguenther@suse.de>
4691
4692 PR debug/89514
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.
4696
4697 2019-02-27 Martin Jambor <mjambor@suse.cz>
4698 Martin Sebor <msebor@redhat.com>
4699
4700 * doc/invoke.texi (Warning Options): Reword description of
4701 -Wno-absolute-value.
4702
4703 2019-02-27 Jakub Jelinek <jakub@redhat.com>
4704
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
4713 blocks.
4714
4715 2018-02-26 Steve Ellcey <sellcey@marvell.com>
4716
4717 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
4718 New function.
4719 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
4720
4721 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4722
4723 PR c++/89507
4724 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
4725 with types other than sizetype/ssizetype.
4726
4727 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
4728
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.
4734 (mtune): Likewise.
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.
4752
4753 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4754
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.
4763
4764 2019-02-26 Martin Liska <mliska@suse.cz>
4765
4766 * alloc-pool.h (struct pool_usage): Remove extra
4767 print_dash_line.
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.
4779
4780 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
4781
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
4788 in the list.
4789
4790 2019-02-26 Jeff Law <law@redhat.com>
4791
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.
4795
4796 2019-02-26 Richard Biener <rguenther@suse.de>
4797
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
4801 correctly.
4802
4803 2019-02-26 Richard Biener <rguenther@suse.de>
4804
4805 PR tree-optimization/89489
4806 * tree-parloops.c (create_loop_fn): Copy over last_clique.
4807
4808 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
4809
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.
4814
4815 2019-02-26 Jakub Jelinek <jakub@redhat.com>
4816
4817 PR target/89474
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.
4822
4823 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4824
4825 PR c/80409
4826 * doc/extend.texi (Variadic Pointer Args): New section.
4827
4828 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
4829 Martin Sebor <msebor@gmail.com>
4830
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).
4838
4839 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
4840
4841 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
4842 (_mm_cvtpd_ps): Likewise.
4843 (_mm_cvttpd_epi32): Likewise.
4844
4845 PR target/89338
4846 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
4847 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
4848
4849 PR target/89339
4850 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
4851
4852 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4853
4854 PR target/88530
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
4872 SYNTHETIC.
4873
4874 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4875
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):
4884 Rename ...
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.
4894
4895 2019-02-25 Tamar Christina <tamar.christina@arm.com>
4896
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):
4905 Rename ...
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.
4914
4915 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
4916
4917 PR rtl-optimization/86096
4918 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
4919 comparing mw_order values.
4920
4921 2019-02-25 Jakub Jelinek <jakub@redhat.com>
4922
4923 PR target/89434
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
4933 of operands[2].
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.
4939
4940 PR target/89438
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.
4944
4945 2019-02-24 Jakub Jelinek <jakub@redhat.com>
4946
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.
4955
4956 2019-02-23 Martin Sebor <msebor@redhat.com>
4957
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.
4962
4963 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
4964
4965 PR driver/69471
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
4971 and RejectNegative.
4972
4973 2019-02-22 Martin Sebor <msebor@redhat.com>
4974
4975 * doc/extend.texi (Other Builtins): Add
4976 __builtin_is_constant_evaluated.
4977
4978 2019-02-22 Richard Biener <rguenther@suse.de>
4979
4980 PR tree-optimization/87609
4981 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
4982
4983 2019-02-22 Jeff Law <law@redhat.com>
4984
4985 PR rtl-optimization/87761
4986 * config/mips/mips.md: Add new combiner pattern to recognize
4987 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
4988
4989 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
4990
4991 PR target/89324
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.
5005
5006 2019-02-22 Martin Sebor <msebor@redhat.com>
5007
5008 PR tree-optimization/88993
5009 PR tree-optimization/88853
5010 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
5011 New helper.
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.
5016
5017 2019-02-22 Martin Sebor <msebor@redhat.com>
5018
5019 PR c/89425
5020 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
5021 unreachable subexpressions.
5022
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>
5026
5027 PR target/87007
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):
5033 New function.
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.
5042
5043 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
5044
5045 PR middle-end/85598
5046 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
5047 analysis for pass.
5048
5049 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
5050
5051 PR target/89444
5052 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
5053 (PTA_SKYLAKE): Add PTA_AES.
5054 (PTA_GOLDMONT): Likewise.
5055
5056 2019-02-22 Sudakshina Das <sudi.das@arm.com>
5057
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.
5061
5062 2019-02-22 Richard Biener <rguenther@suse.de>
5063
5064 PR tree-optimization/89440
5065 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
5066 not necessary assert.
5067
5068 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
5069
5070 PR fortran/72741
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.
5075
5076 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5077
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.
5083
5084 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5085
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.
5089
5090 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5091
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.
5098
5099 2019-02-22 Richard Biener <rguenther@suse.de>
5100
5101 PR middle-end/87609
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.
5112
5113 2019-02-22 Richard Biener <rguenther@suse.de>
5114
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).
5123
5124 2019-02-21 Martin Sebor <msebor@redhat.com>
5125
5126 * doc/extend.texi (__clear_cache): Correct signature.
5127
5128 2019-02-21 Ian Lance Taylor <iant@golang.org>
5129
5130 PR go/89170
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.
5136
5137 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5138
5139 PR c++/89285
5140 * builtins.c (fold_builtin_arith_overflow): If first two args are
5141 INTEGER_CSTs, set intres and ovfres to constants rather than calls
5142 to ifn.
5143
5144 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
5145
5146 PR target/87412
5147 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
5148 error for -mindirect-branch/-mfunction-return with incompatible
5149 -fcf-protection.
5150
5151 2019-02-21 Jakub Jelinek <jakub@redhat.com>
5152
5153 PR bootstrap/88714
5154 * constraints.md (q): Remove.
5155 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
5156 instead of q.
5157
5158 2019-02-21 Martin Jambor <mjambor@suse.cz>
5159
5160 PR hsa/89302
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.
5167
5168 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5169
5170 PR middle-end/89412
5171 * expr.c (expand_assignment): If result is a MEM, use change_address
5172 instead of simplify_gen_subreg.
5173
5174 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5175 David Malcolm <dmalcolm@redhat.com>
5176
5177 PR middle-end/89091
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.
5181
5182 2019-02-20 Jakub Jelinek <jakub@redhat.com>
5183
5184 PR middle-end/88074
5185 PR middle-end/89415
5186 * toplev.c (do_compile): Double the emin/emax exponents to workaround
5187 buggy mpc_norm.
5188
5189 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
5190
5191 PR target/89397
5192 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
5193 TARGET_SSE in addition to TARGET_SSE_MATH.
5194
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.
5199
5200 2019-02-20 David Malcolm <dmalcolm@redhat.com>
5201
5202 PR c/89410
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.
5208
5209 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
5210
5211 PR target/86487
5212 * lra-constraints.c(uses_hard_regs_p): Fix handling of
5213 paradoxical SUBREGS.
5214
5215 2019-02-20 Li Jia He <helijia@linux.ibm.com>
5216
5217 PR target/88100
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
5221 range checking it.
5222
5223 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
5224
5225 * config/gcn/gcn.c (print_operand): Fix typo.
5226
5227 2019-02-19 Richard Biener <rguenther@suse.de>
5228
5229 PR middle-end/88074
5230 * toplev.c (do_compile): Initialize mpfr's exponent range
5231 based on available float modes.
5232
5233 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
5234
5235 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
5236 as long as the epilogue isn't completed.
5237
5238 2019-02-18 Martin Sebor <msebor@redhat.com>
5239
5240 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
5241 __has_cpp_attribute, and __has_include.
5242
5243 2019-02-18 Martin Sebor <msebor@redhat.com>
5244
5245 * doc/invoke.texi (-Wreturn-type): Correct and expand.
5246
5247 2019-02-18 Martin Sebor <msebor@redhat.com>
5248
5249 PR middle-end/89294
5250 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
5251 expression.
5252 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
5253
5254 2019-02-18 Richard Biener <rguenther@suse.de>
5255
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.
5259
5260 2019-02-18 Jakub Jelinek <jakub@redhat.com>
5261
5262 PR bootstrap/88714
5263 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
5264 "q" constraint.
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].
5268
5269 PR target/89369
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].
5275
5276 PR target/89361
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.
5283
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
5293 instead of 1UL.
5294 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
5295 instead of 1ul.
5296
5297 2019-02-18 Martin Jambor <mjambor@suse.cz>
5298
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
5302 a register type.
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.
5307
5308 2019-02-18 Martin Liska <mliska@suse.cz>
5309
5310 PR ipa/89306
5311 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
5312 by default.
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
5316 by default.
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.
5337
5338 2019-02-18 Martin Liska <mliska@suse.cz>
5339
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
5346 suffixes.
5347
5348 2019-02-17 Alan Modra <amodra@gmail.com>
5349
5350 PR target/89271
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.
5354
5355 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
5356
5357 PR target/89372
5358 * config/i386/sse.md (ssedoublemode): Remove V4HI.
5359 (PMULHRSW): Likewise.
5360 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
5361 TARGET_AVX2.
5362 (ssse3_pmulhrswv4hi3): New expander.
5363
5364 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
5365
5366 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
5367 MMX. Add isa attribute.
5368
5369 2019-02-16 Jakub Jelinek <jakub@redhat.com>
5370
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.
5381
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.
5388
5389 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5390
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.
5396
5397 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5398
5399 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
5400 the base address on 64-bit strict-alignment platforms.
5401
5402 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
5403
5404 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
5405
5406 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5407
5408 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
5409
5410 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
5411
5412 PR rtl-optimization/88308
5413 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
5414 on copied instruction.
5415
5416 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
5417
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
5428 for the GR6.
5429 (output_branch): Adjust threshold for long branch instruction.
5430 * config/visium/visium.md (cpu): Move around.
5431 (length): Adjust for the GR6.
5432
5433 2019-02-15 Richard Biener <rguenther@suse.de>
5434 Jakub Jelinek <jakub@redhat.com>
5435
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.
5441
5442 2019-02-15 Jakub Jelinek <jakub@redhat.com>
5443
5444 PR other/89342
5445 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
5446 optimize_debug.
5447 * opth-gen.awk: Likewise.
5448
5449 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
5450
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.
5455
5456 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5457
5458 PR rtl-optimization/89354
5459 * combine.c (make_extraction): Punt if extraction_mode is narrower
5460 than len bits.
5461
5462 2019-02-14 Maya Rashish <coypu@sdf.org>
5463
5464 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
5465 * config/netbsd-d.c: New file.
5466 * config/t-netbsd: Add netbsd-d.o
5467
5468 2018-02-14 Steve Ellcey <sellcey@marvell.com>
5469
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.
5474
5475 2019-02-14 Tamar Christina <tamar.christina@arm.com>
5476
5477 PR target/88850
5478 * config/arm/iterators.md (ANY64): Add V4HF.
5479
5480 2019-02-14 Martin Liska <mliska@suse.cz>
5481
5482 PR rtl-optimization/89242
5483 * dce.c (delete_unmarked_insns): Call free_dominance_info we
5484 process a transformation.
5485
5486 2019-02-14 Jakub Jelinek <jakub@redhat.com>
5487
5488 PR tree-optimization/89314
5489 * fold-const.c (fold_binary_loc): Cast strlen argument to
5490 const char * before dereferencing it. Formatting fixes.
5491
5492 PR middle-end/89284
5493 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
5494
5495 2019-02-13 Ian Lance Taylor <iant@golang.org>
5496
5497 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
5498 and set current index for other optimizations.
5499
5500 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
5501
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.
5511
5512 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
5513
5514 PR target/89190
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.
5519
5520 2019-02-13 Tamar Christina <tamar.christina@arm.com>
5521
5522 PR target/88847
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.
5527
5528 2019-02-13 Martin Liska <mliska@suse.cz>
5529
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
5534 fields.
5535 * cgraph.h (struct cgraph_thunk_info): Remove
5536 add_pointer_bounds_args.
5537 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
5538 fields.
5539 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
5540 fields.
5541 * config/i386/i386.c (ix86_function_arg_advance): Remove
5542 unrelated comment.
5543 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
5544 (def_builtin): Remove usage of dead
5545 fields.
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
5559 assign_stmts.
5560 * tree-inline.h (struct copy_body_data): Likewise.
5561 * varpool.c (varpool_node::dump): Likewise.
5562
5563 2019-02-13 Jakub Jelinek <jakub@redhat.com>
5564
5565 PR middle-end/89303
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.
5569
5570 PR middle-end/89281
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.
5574
5575 PR target/89290
5576 * config/i386/predicates.md (x86_64_immediate_operand): Allow
5577 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
5578 -mcmodel=large.
5579
5580 2019-02-13 Martin Liska <mliska@suse.cz>
5581
5582 PR lto/88858
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.
5586
5587 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
5588
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):
5595 New BU_CRYPTO_2.
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.
5602
5603 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
5604
5605 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
5606 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
5607
5608 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
5609
5610 PR target/89229
5611 * config/i386/i386.md (*movoi_internal_avx): Revert revision
5612 268678 and revision 268657.
5613 (*movti_internal): Likewise.
5614
5615 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
5616
5617 PR target/89233
5618 * config/s390/s390.c (s390_decompose_address): Update comment.
5619 (s390_check_qrst_address): Reject invalid address forms after
5620 LRA.
5621
5622 2019-02-12 Martin Liska <mliska@suse.cz>
5623
5624 PR lto/88876
5625 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
5626 we need default values of funct_state for a function that
5627 is not optimized.
5628
5629 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
5630
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.
5633
5634 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
5635 (*movdi_insn_sp32): Likewise.
5636 (*movdi_insn_sp64): Likewise.
5637
5638 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
5639
5640 PR lto/88677
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.
5644
5645 2019-02-12 Richard Biener <rguenther@suse.de>
5646
5647 PR tree-optimization/89253
5648 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
5649 duplicate the loop.
5650
5651 2019-02-11 David Malcolm <dmalcolm@redhat.com>
5652
5653 PR lto/88147
5654 * input.c (selftest::test_line_offset_overflow): New selftest.
5655 (selftest::input_c_tests): Call it.
5656
5657 2019-02-11 Martin Sebor <msebor@redhat.com>
5658
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.
5669
5670 2019-02-11 Martin Sebor <msebor@redhat.com>
5671
5672 PR c++/87996
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.
5677
5678 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
5679
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.
5683
5684 2019-02-11 Alan Modra <amodra@gmail.com>
5685
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.
5707
5708 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5709
5710 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
5711 Solaris ld.
5712 * configure: Regenerate.
5713
5714 2019-02-11 Jakub Jelinek <jakub@redhat.com>
5715
5716 PR bootstrap/88714
5717 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
5718 instead of r.
5719
5720 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
5721
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.
5726
5727 2019-02-11 Martin Liska <mliska@suse.cz>
5728
5729 PR ipa/89009
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.
5741
5742 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
5743
5744 * config/nds32/nds32.md (call_internal, call_value_internal,
5745 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
5746
5747 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
5748
5749 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
5750 typo.
5751
5752 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
5753
5754 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
5755 in comments
5756
5757 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
5758
5759 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
5760
5761 2019-02-10 Jakub Jelinek <jakub@redhat.com>
5762
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.
5766
5767 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5768
5769 PR lto/89272
5770 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
5771 polymorphic types.
5772
5773 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
5774
5775 * config/nds32/nds32.md (trap): New pattern.
5776
5777 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
5778
5779 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
5780 dwarf span.
5781
5782 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
5783
5784 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
5785 to split POST_INC.
5786
5787 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5788
5789 * ipa-visibility.c (localize_node): Also do not localize
5790 LDPR_PREVAILING_DEF_IRONLY_EXP.
5791
5792 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5793
5794 PR lto/87957
5795 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
5796 instead of type_with_linkage.
5797
5798 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
5799
5800 PR ipa/88755
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.
5804
5805 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
5806
5807 * config/rs6000/rs6000-string.c (expand_compare_loop,
5808 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
5809 memcmp/strncmp.
5810
5811 2019-02-09 Jakub Jelinek <jakub@redhat.com>
5812
5813 PR middle-end/89246
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.
5817
5818 2019-02-09 Alan Modra <amodra@gmail.com>
5819
5820 PR target/88343
5821 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
5822 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
5823 setup.
5824
5825 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
5826
5827 PR middle-end/88560
5828 * lra-constraints.c (process_alt_operands): Don't increase reject
5829 for memory when offset memory is required.
5830
5831 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
5832
5833 * config/s390/vector.md: Implement vector copysign.
5834
5835 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
5836
5837 * expr.c (expand_constructor): Correct indentations.
5838
5839 2019-02-08 Richard Biener <rguenther@suse.de>
5840
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.
5849
5850 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
5851
5852 * config/s390/constraints.md (jdd): New constraint.
5853
5854 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
5855
5856 PR target/89229
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.
5860
5861 2019-02-08 Jakub Jelinek <jakub@redhat.com>
5862
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.
5867
5868 2019-02-08 Richard Biener <rguenther@suse.de>
5869
5870 PR middle-end/89223
5871 * tree-data-ref.c (initialize_matrix_A): Fail if constant
5872 doesn't fit in HWI.
5873 (analyze_subscript_affine_affine): Handle failure from
5874 initialize_matrix_A.
5875
5876 2019-02-08 Jakub Jelinek <jakub@redhat.com>
5877
5878 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
5879 cfun everywhere.
5880
5881 2019-02-07 David Malcolm <dmalcolm@redhat.com>
5882
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
5887 purged on exit.
5888 * tree-vectorizer.c
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
5893 reset.
5894 * tree-vectorizer.h (class auto_purge_vect_location): New class.
5895
5896 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5897
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
5904 MINUS (MAX MIN).
5905
5906 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
5907
5908 PR target/89229
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.
5912
5913 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
5914
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
5919 float.
5920 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
5921 a new vector type with the alignment of the scalar memory operand.
5922
5923 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
5924 Jakub Jelinek <jakub@redhat.com>
5925
5926 PR bootstrap/88714
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
5930 MINUS.
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.
5935
5936 2019-02-07 Tamar Christina <tamar.christina@arm.com>
5937
5938 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
5939 Make it a C initializer.
5940
5941 2019-02-07 Tamar Christina <tamar.christina@arm.com>
5942
5943 PR/target 88850
5944 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
5945
5946 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5947
5948 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
5949 Use neon_dot<q> for type.
5950 (neon_<sup>dot_lane<vsi2qi>): Likewise.
5951
5952 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5953
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.
5958
5959 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
5960
5961 PR rtl-optimization/89225
5962 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
5963 sizes check.
5964
5965 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
5966
5967 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
5968 after restoring registers saved to allocate the frame on Windows.
5969
5970 2019-02-06 Richard Biener <rguenther@suse.de>
5971
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):
5982 Simplify.
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.
5990
5991 2019-02-06 Jakub Jelinek <jakub@redhat.com>
5992
5993 PR middle-end/89210
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.
5998
5999 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
6000
6001 PR target/88856
6002 * config/s390/s390.md: Remove load and test FP splitter.
6003
6004 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6005
6006 PR target/89112
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.
6013
6014 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
6015
6016 PR target/89112
6017 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
6018 for the long branch case.
6019
6020 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6021
6022 PR target/89188
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.
6028
6029 PR rtl-optimization/89195
6030 * combine.c (make_extraction): For MEMs, don't extract bytes outside
6031 of the original MEM.
6032
6033 2019-02-05 Martin Liska <mliska@suse.cz>
6034
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.
6040
6041 2019-02-05 Jakub Jelinek <jakub@redhat.com>
6042
6043 PR target/89186
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).
6046
6047 2019-02-05 Richard Biener <rguenther@suse.de>
6048
6049 PR middle-end/89150
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.
6054
6055 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
6056
6057 PR c/88698
6058 * doc/extend.texi (Vector Extensions): Add an example of using vector
6059 types together with x86 intrinsics.
6060
6061 2019-02-04 Alan Modra <amodra@gmail.com>
6062
6063 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
6064 str[] size to 160, and comment.
6065
6066 2019-02-04 Alan Modra <amodra@gmail.com>
6067
6068 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
6069 (rs6000_pltseq_template): Guard output of TLS markers with
6070 TARGET_TLS_MARKERS.
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.
6077
6078 2019-02-04 Martin Liska <mliska@suse.cz>
6079
6080 PR ipa/88985
6081 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
6082 out when ipa_fn_summaries does not contain entry for callee.
6083
6084 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
6085
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.
6099
6100 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
6101
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".
6104
6105 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6106
6107 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
6108 into consideration.
6109
6110 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
6111
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.
6116
6117 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
6118
6119 PR target/89071
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.
6126
6127 2019-02-03 Richard Biener <rguenther@suse.de>
6128
6129 PR debug/87295
6130 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
6131 orig.
6132
6133 2019-02-02 Jakub Jelinek <jakub@redhat.com>
6134
6135 PR middle-end/87887
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.
6139
6140 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
6141
6142 * combine.c (try_combine): Do not print "Can't combine" messages unless
6143 printing failed combination attempts.
6144
6145 2019-02-01 Martin Jambor <mjambor@suse.cz>
6146
6147 PR hsa/87863
6148 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
6149 segment and global segment variables before making them static.
6150
6151 2019-02-01 Martin Jambor <mjambor@suse.cz>
6152
6153 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
6154 missed optimization dump with dump_enabled_p.
6155
6156 2019-02-01 Richard Biener <rguenther@suse.de>
6157
6158 PR middle-end/88597
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.
6166
6167 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
6168
6169 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
6170
6171 2019-02-01 Jakub Jelinek <jakub@redhat.com>
6172
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.
6177
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.
6184
6185 2019-02-01 Richard Biener <rguenth@suse.de>
6186
6187 PR rtl-optimization/88593
6188 * mode-switching.c (optimize_mode_switching): Free dominators before
6189 calling cleanup_cfg.
6190
6191 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
6192
6193 PR tree-optimization/88932
6194 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
6195
6196 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6197
6198 PR middle-end/89137
6199 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
6200 bogus clang warning.
6201
6202 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
6203
6204 PR target/89071
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.
6209
6210 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
6211
6212 PR tree-optimization/89008
6213 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
6214 process anything of the form X * 0.
6215
6216 2019-01-31 Richard Biener <rguenther@suse.de>
6217
6218 PR tree-optimization/89135
6219 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
6220 with abnormal preds.
6221
6222 2019-01-31 Jakub Jelinek <jakub@redhat.com>
6223
6224 PR sanitizer/89124
6225 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
6226 always_inline callees into no_sanitize_address callers.
6227
6228 2019-01-31 Richard Biener <rguenther@suse.de>
6229
6230 PR rtl-optimization/89115
6231 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
6232
6233 2019-01-30 Martin Sebor <msebor@redhat.com>
6234
6235 PR other/89106
6236 * doc/extend.texi (cast to a union): Correct and expand.
6237
6238 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
6239
6240 PR rtl-optimization/87246
6241 * lra-constraints.c (simplify_operand_subreg): Reload memory
6242 in subreg if the address became invalid.
6243
6244 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
6245
6246 PR target/87064
6247 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
6248 Disable for little-endian.
6249
6250 2019-01-30 Richard Biener <rguenther@suse.de>
6251
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
6256 to the default.
6257
6258 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
6259
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
6263 move.
6264
6265 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
6266
6267 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
6268
6269 2019-01-30 Richard Biener <rguenther@suse.de>
6270
6271 PR tree-optimization/89111
6272 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
6273 canonicalization to appropriately sized access types.
6274
6275 2019-01-30 Jakub Jelinek <jakub@redhat.com>
6276
6277 PR c++/89105
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.
6281
6282 2019-01-30 Ulrich Drepper <drepper@redhat.com>
6283
6284 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
6285 after '='.
6286
6287 2019-01-29 Martin Sebor <msebor@redhat.com>
6288
6289 PR c/88956
6290 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
6291
6292 2019-01-29 Jakub Jelinek <jakub@redhat.com>
6293
6294 PR c++/66676
6295 PR ipa/89104
6296 * omp-simd-clone.c (simd_clone_clauses_extract)
6297 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
6298 OMP_CLAUSE_ALIGNED_ALIGNMENT.
6299
6300 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
6301
6302 * config.gcc: Force .init_array for ARC.
6303
6304 2019-01-29 Richard Biener <rguenther@suse.de>
6305
6306 PR debug/87295
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.
6311
6312 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6313
6314 PR middle-end/89002
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
6318 sequence.
6319
6320 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
6321
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.
6325
6326 2019-01-28 Jakub Jelinek <jakub@redhat.com>
6327
6328 PR target/89073
6329 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
6330 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
6331 x86 ISA options.
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.
6343
6344 2019-01-28 Richard Biener <rguenther@suse.de>
6345
6346 PR debug/89076
6347 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
6348 support removal.
6349
6350 2019-01-28 Richard Biener <rguenther@suse.de>
6351
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.
6359
6360 2019-01-27 Jakub Jelinek <jakub@redhat.com>
6361
6362 PR target/87214
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.
6370
6371 2019-01-26 Martin Jambor <mjambor@suse.cz>
6372
6373 PR ipa/88933
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
6378 all callers.
6379 * tree-cfgcleanup.c: Include cgraph.h.
6380 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
6381 Declare.
6382 * ipa-prop.c: Include tree-cfgcleanup.h.
6383 (ipcp_transform_function): Call
6384 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
6385
6386 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
6387
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.
6393
6394 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
6395
6396 PR target/88469
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.
6403
6404 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6405
6406 PR middle-end/89037
6407 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
6408 instead of accessing TREE_INT_CST_ELT directly.
6409
6410 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
6411
6412 * doc/sourcebuild.texi (Environment attributes): Add fenv and
6413 fenv_exceptions description.
6414
6415 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
6416
6417 PR rtl-optimization/87763
6418 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
6419 Allow SUBREG when matching CC_NZmode compare.
6420
6421 2019-01-25 Richard Biener <rguenther@suse.de>
6422
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.
6426
6427 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
6428
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.
6432
6433 2019-01-25 Richard Biener <rguenther@suse.de>
6434
6435 PR tree-optimization/86865
6436 * graphite-scop-detection.c (scop_detection::can_represent_loop):
6437 Reject non-do-while loops.
6438
6439 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
6440
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):
6462 Use CONST_INT_P.
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):
6474 Use CONST_INT_P.
6475 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
6476 Use CONST_DOUBLE_P.
6477 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
6478 CONST_WIDE_INT_P.
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
6483 reg_or_subregno:
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
6499 SYMBOL_REF_P.
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
6509 reg_or_subregno.
6510 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
6511 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
6512 MEM_P and REG_P.
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.
6544
6545 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
6546
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.
6554
6555 2019-01-24 Jakub Jelinek <jakub@redhat.com>
6556
6557 PR debug/89006
6558 * config/i386/i386.c (ix86_pic_register_p): Return true for
6559 UNSPEC_SET_GOT too.
6560
6561 PR tree-optimization/88964
6562 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
6563 punt if HONOR_SNANS (chrec).
6564
6565 PR middle-end/89015
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
6570 or GIMPLE_OMP_TASK.
6571
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.
6575
6576 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
6577
6578 PR target/88469
6579 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
6580 force the alignment of m_val.
6581
6582 2019-01-24 Richard Biener <rguenther@suse.de>
6583
6584 PR lto/87187
6585 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
6586 When in "legacy" debug mode make sure to reset self-origins.
6587
6588 2019-01-24 Martin Liska <mliska@suse.cz>
6589
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.
6595
6596 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
6597
6598 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
6599 * vr-values.c (find_case_label_ranges): Fix a comment typo.
6600
6601 2019-01-23 Bin Cheng <bin.cheng@arm.com>
6602 Steve Ellcey <sellcey@marvell.com>
6603
6604 PR target/85711
6605 * recog.c (address_operand): Return false on wrong mode for address.
6606 (constrain_operands): Check for mode with 'p' constraint.
6607
6608 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
6609
6610 PR target/88998
6611 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
6612 Disparage MMX alternative.
6613 (sse2_cvtpd2pi): Ditto.
6614 (sse2_cvttpd2pi): Ditto.
6615
6616 2019-01-23 David Malcolm <dmalcolm@redhat.com>
6617
6618 PR driver/89014
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.
6622
6623 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6624
6625 PR c/44715
6626 * doc/extend.texi: Document break and continue behavior in
6627 statement expressions.
6628
6629 2019-01-23 Richard Biener <rguenther@suse.de>
6630
6631 PR tree-optimization/89008
6632 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
6633 not leave another stray operand.
6634
6635 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6636
6637 * BASE-VER: Bump to 9.0.1.
6638
6639 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
6640
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.
6644
6645 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
6646
6647 * config/arc/atomic.md: Add operand to DMB instruction.
6648
6649 2019-01-23 Jakub Jelinek <jakub@redhat.com>
6650
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.
6655
6656 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
6657
6658 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
6659
6660 2019-01-22 Jakub Jelinek <jakub@redhat.com>
6661
6662 PR target/88965
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.
6666
6667 PR middle-end/88968
6668 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
6669 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
6670
6671 PR target/87064
6672 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
6673 Disable for little endian.
6674
6675 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
6676
6677 PR target/88469
6678 * config/arm/arm.c (arm_needs_double_word_align): Check
6679 DECL_BIT_FIELD_TYPE.
6680
6681 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
6682 H.J. Lu <hongjiu.lu@intel.com>
6683
6684 PR target/88909
6685 * config/i386/i386-builtin.def: Add mask2 to all builtin
6686 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
6687 SPECIAL_ARGS.
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
6700 support.
6701 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
6702
6703 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
6704
6705 PR target/88954
6706 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
6707 noplt attribute.
6708
6709 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
6710
6711 PR target/88469
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.
6718
6719 2019-01-22 Richard Biener <rguenther@suse.de>
6720
6721 PR tree-optimization/88862
6722 * graphite-scop-detection.c
6723 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
6724
6725 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
6726
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.
6731
6732 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
6733
6734 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
6735 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
6736
6737 2019-01-22 Jakub Jelinek <jakub@redhat.com>
6738
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.
6743
6744 PR rtl-optimization/88904
6745 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
6746 any nonequal registers before processing BB_END (b).
6747
6748 PR target/88905
6749 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
6750 GET_MODE (op0).
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.
6754
6755 PR rtl-optimization/49429
6756 PR target/49454
6757 PR rtl-optimization/86334
6758 PR target/88906
6759 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
6760 addressable from here...
6761 (emit_block_op_via_libcall): ... to here.
6762
6763 2019-01-22 Richard Biener <rguenther@suse.de>
6764
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
6769 gather SLP defs.
6770
6771 2019-01-22 Alan Modra <amodra@gmail.com>
6772
6773 PR target/88614
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,
6785 delete split..
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.
6797
6798 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
6799
6800 PR target/88938
6801 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
6802 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
6803
6804 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
6805
6806 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
6807 string contents as hash_map keys.
6808
6809 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
6810
6811 PR c/88928
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.
6818
6819 2019-01-21 Richard Biener <rguenther@suse.de>
6820
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.
6825
6826 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
6827
6828 PR target/71659
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.
6848
6849 2019-01-20 Martin Jambor <mjambor@suse.cz>
6850
6851 PR ipa/87615
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
6860 unmodified_parm.
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
6872 fbi, limit AA walk.
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
6881 get_dynamic_type.
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.
6888
6889 2019-01-19 Jakub Jelinek <jakub@redhat.com>
6890
6891 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
6892 outside of #if CHECKING_P code.
6893
6894 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
6895
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.
6904
6905 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
6906
6907 PR target/88892
6908 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
6909 operands.
6910
6911 2019-01-18 Richard Biener <rguenther@suse.de>
6912
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
6916 shifts by scalars.
6917
6918 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
6919
6920 PR target/88799
6921 * config/arm/arm-cpus.in (mp): New feature.
6922 (sec): 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.
6936
6937 2019-01-18 Martin Liska <mliska@suse.cz>
6938
6939 * params.def: Fix comment.
6940 * tree-profile.c (gimple_init_gcov_profiler): Bump function
6941 name.
6942 (gimple_gen_ic_func_profiler): Likewise.
6943
6944 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6945
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.
6958
6959 2019-01-18 Jakub Jelinek <jakub@redhat.com>
6960
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.
6969
6970 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
6971
6972 PR target/85596
6973 * doc/install.texi (with-multilib-list): Document for aarch64.
6974
6975 2019-01-18 Jakub Jelinek <jakub@redhat.com>
6976
6977 PR target/88734
6978 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
6979 (("..."))) with ("...").
6980
6981 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
6982
6983 * doc/extend.texi (Built-in Functions for Memory Model Aware
6984 Atomic Operations): Document atomic fetch and nand.
6985
6986 2019-01-18 Martin Liska <mliska@suse.cz>
6987 Richard Biener <rguenther@suse.de>
6988
6989 PR middle-end/88587
6990 * cgraph.h (create_version_clone_with_body): Add new argument
6991 with attributes.
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
6997 for declaration.
6998 (expand_target_clones): Do not call valid_attribute_p, it must
6999 be already done.
7000 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
7001 vector types.
7002
7003 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7004
7005 PR target/88734
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.
7009
7010 2019-01-17 Martin Sebor <msebor@redhat.com>
7011
7012 PR middle-end/88273
7013 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
7014 Handle anti-ranges the same as no range at all.
7015
7016 2018-01-17 Steve Ellcey <sellcey@cavium.com>
7017
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
7030 call.
7031
7032 2019-01-17 Martin Sebor <msebor@redhat.com>
7033
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
7040 disabled.
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.
7048
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>
7053
7054 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
7055
7056 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
7057
7058 * doc/sourcebuild.texi: Document dg-require-effective-target
7059 llvm_binutils and offload_gcn.
7060
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>
7065
7066 * doc/sourcebuild.texi: Document dg-required-effective-target
7067 exceptions.
7068
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>
7075
7076 * config.gcc: Add amdgcn*-*-amdhsa configuration.
7077 * configure.ac: Check for dlopen.
7078 * configure: Regenerate.
7079
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>
7086
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.
7101
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>
7108
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.
7113
7114 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
7115
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.
7120
7121 2019-01-17 Tamar Christina <tamar.christina@arm.com>
7122
7123 PR target/88851
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.
7127
7128 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7129
7130 * config/aarch64/aarch64.c (ares_tunings): Define.
7131 * config/aarch64/aarch64-cores.def (ares): Use the above.
7132
7133 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7134
7135 PR target/88794
7136 Revert:
7137 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
7138
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.
7192
7193 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7194
7195 PR target/88794
7196 Revert:
7197 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
7198
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.
7206
7207 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
7208
7209 PR target/88794
7210 Revert:
7211 2018-12-15 Jakub Jelinek <jakub@redhat.com>
7212
7213 PR target/88489
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.
7217
7218 2019-01-17 Richard Biener <rguenther@suse.de>
7219
7220 PR lto/86736
7221 * dwarf2out.c (want_pubnames): Never generate pubnames sections
7222 and friends for the LTO part of debug info.
7223
7224 2019-01-17 Jakub Jelinek <jakub@redhat.com>
7225
7226 PR tree-optimization/86214
7227 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
7228 if x == y.
7229
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.
7234
7235 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
7236
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.
7242
7243 2019-01-16 David Malcolm <dmalcolm@redhat.com>
7244
7245 PR target/88861
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
7249 returns true.
7250
7251 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7252
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
7258 lane endianness.
7259
7260 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
7261
7262 * config/alpha/alpha.c (alpha_gimplify_va_arg):
7263 Handle split indirect COMPLEX_TYPE arguments.
7264
7265 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
7266
7267 PR target/86891
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
7275 CC_ADCmode.
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.
7293
7294 2019-01-16 Tamar Christina <tamar.christina@arm.com>
7295
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.
7300
7301 2019-01-16 Martin Liska <mliska@suse.cz>
7302
7303 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
7304 for GCC driver.
7305 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
7306 a new argument.
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.
7311
7312 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
7313
7314 * godump.c (go_output_typedef): When outputting a typedef, refer
7315 to the underlying type by its name and not its structure.
7316
7317 2019-01-15 David Malcolm <dmalcolm@redhat.com>
7318
7319 PR c++/88795
7320 * tree.c (build_function_type): Assert that arg_types is not
7321 error_mark_node.
7322
7323 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
7324
7325 PR inline-asm/52813
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.
7332
7333 2019-01-15 Richard Biener <rguenther@suse.de>
7334
7335 PR debug/88046
7336 * dwarf2out.c (gen_member_die): Do not generate inheritance
7337 DIEs late.
7338
7339 2019-01-15 Richard Biener <rguenther@suse.de>
7340
7341 PR tree-optimization/88855
7342 * tree-if-conv.c (combine_blocks): Collect
7343 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
7344
7345 2019-01-15 Tom de Vries <tdevries@suse.de>
7346
7347 PR target/80547
7348 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
7349 lhs == NULL_TREE for gang-level reduction.
7350
7351 2019-01-15 Richard Biener <rguenther@suse.de>
7352 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7353
7354 PR ipa/88788
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.
7358
7359 2019-01-15 Jakub Jelinek <jakub@redhat.com>
7360
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.
7367
7368 2019-01-14 Andi Kleen <ak@linux.intel.com>
7369
7370 * Makefile.in: Lower autofdo sampling rate by 10x.
7371 * Makefile.tpl: Dito.
7372
7373 2019-01-14 Tom Honermann <tom@honermann.net>
7374
7375 * defaults.h: Define CHAR8_TYPE.
7376
7377 2019-01-14 Martin Sebor <msebor@redhat.com>
7378
7379 PR target/88638
7380 * doc/extend.texi (Darwin Format Checks): Clarify.
7381
7382 2019-01-14 Richard Biener <rguenther@suse.de>
7383
7384 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
7385 whether we are in (simplify ...) or (match ...) context.
7386
7387 2019-01-14 Jakub Jelinek <jakub@redhat.com>
7388
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.
7400
7401 2019-01-12 Tom de Vries <tdevries@suse.de>
7402
7403 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
7404 vector length using -fopenacc-dim.
7405
7406 2019-01-12 Tom de Vries <tdevries@suse.de>
7407
7408 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
7409 lengths into account.
7410
7411 2019-01-12 Svante Signell <svante.signell@gmail.com>
7412
7413 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
7414 (TARGET_CAN_SPLIT_STACK): Define.
7415 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
7416
7417 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
7418
7419 * params.def (inline-unit-growth): Set to 40.
7420
7421 2019-01-12 Jakub Jelinek <jakub@redhat.com>
7422
7423 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
7424
7425 2019-01-12 Tom de Vries <tdevries@suse.de>
7426
7427 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
7428 region calling vector-partitionable routine, set default_vector_length
7429 to WARP_SIZE.
7430
7431 2019-01-12 Tom de Vries <tdevries@suse.de>
7432
7433 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
7434 variable default_vector_length.
7435
7436 2019-01-12 Tom de Vries <tdevries@suse.de>
7437
7438 PR middle-end/88703
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
7441 dimensions limits.
7442
7443 2019-01-12 Tom de Vries <tdevries@suse.de>
7444
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
7451 parameter.
7452 * target.def (validate_dims): Add used parameter in DEFHOOK.
7453 * targhooks.h (default_goacc_validate_dims): Add used parameter.
7454
7455 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7456
7457 PR middle-end/85956
7458 PR lto/88733
7459 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
7460 field.
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.
7465
7466 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
7467
7468 PR rtl-optimization/87305
7469 * lra-assigns.c
7470 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
7471 for little endian pseudos used as paradoxical subreg.
7472
7473 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7474
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.
7479
7480 2019-01-11 Alan Modra <amodra@gmail.com>
7481
7482 PR 88777
7483 PR 88614
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.
7488
7489 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7490
7491 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
7492
7493 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7494
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
7500 argument.
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
7520 to false.
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.
7539
7540 2019-01-11 Steve Ellcey <sellcey@marvell.com>
7541
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.
7551
7552 2019-01-11 Jakub Jelinek <jakub@redhat.com>
7553
7554 PR bootstrap/88714
7555 * passes.c (finish_optimization_passes): Call print_combine_total_stats
7556 inside of pass_combine_1 dump rather than pass_profile_1.
7557
7558 2019-01-11 Tom de Vries <tdevries@suse.de>
7559
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
7564 num_workers 16.
7565
7566 2019-01-11 Tom de Vries <tdevries@suse.de>
7567
7568 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
7569
7570 2019-01-11 Jan Beulich <jbeulich@suse.com>
7571
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
7576 syntax.
7577
7578 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7579
7580 PR target/88785
7581 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
7582 define_expand.
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".
7589
7590 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7591
7592 * config/aarch64/aarch64-builtins.c
7593 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
7594 (aarch64_init_simd_builtins): ...Here
7595
7596 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
7597
7598 PR rtl-optimization/87305
7599 * lra-assigns.c
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.
7604
7605 2019-01-10 Richard Biener <rguenther@suse.de>
7606
7607 PR tree-optimization/88792
7608 * tree-ssa-pre.c (get_representative_for): Do not return a
7609 value-number here.
7610
7611 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7612
7613 PR middle-end/84877
7614 PR bootstrap/88450
7615 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
7616 (assign_parm_setup_block): Do the argument slot realignment here
7617 instead.
7618
7619 2019-01-10 Stefan Agner <stefan@agner.ch>
7620
7621 PR target/88648
7622 * config/arm/arm.c (arm_option_override_internal): Force
7623 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
7624
7625 2019-01-10 Jakub Jelinek <jakub@redhat.com>
7626
7627 PR c/88568
7628 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
7629 DECL_EXTERNAL.
7630
7631 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7632
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.
7646 (vcmla_f16): New.
7647 (vcmlaq_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.
7674 (vcmla_f32): New.
7675 (vcmlaq_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>):
7712 New.
7713 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
7714 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
7715
7716 2019-01-10 Tamar Christina <tamar.christina@arm.com>
7717
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):
7725 New.
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.
7754 (vcmla_f16): New.
7755 (vcmlaq_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.
7784 (vcmla_f32): New.
7785 (vcmlaq_f32): New.
7786 (vcmlaq_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.
7816 (rot): New.
7817 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
7818
7819 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
7820
7821 PR other/16615
7822
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.
7833
7834 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
7835
7836 PR other/16615
7837
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.
7891 * dse.c: Likewise.
7892 * emit-rtl.c: Likewise.
7893 * emit-rtl.h: Likewise.
7894 * except.c: Likewise.
7895 * expmed.c: Likewise.
7896 * expr.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.
7916 * ipa.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.
7923 * ira.c: Likewise.
7924 * ira.h: 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.
7934 * lra.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.
7942 * ree.c: Likewise.
7943 * reload.c: Likewise.
7944 * reload1.c: Likewise.
7945 * reorg.c: Likewise.
7946 * resource.c: Likewise.
7947 * rtl.def: Likewise.
7948 * rtl.h: 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.
7986 * tree.c: Likewise.
7987 * tree.h: Likewise.
7988 * vr-values.c: Likewise.
7989
7990 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
7991
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.
8000
8001 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8002
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.
8030
8031 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8032 James Clarke <jrtc27@jrtc27.com>
8033
8034 PR target/84010
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.
8120
8121 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8122
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.
8129
8130 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8131 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8132
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
8136 if bti is enabled.
8137 * config/aarch64/aarch64-bti-insert.c: New file.
8138 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
8139 pass.
8140 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
8141 new bti pass.
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.
8146
8147 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8148
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.
8159
8160 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8161
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.
8169
8170 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8171
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.
8180
8181 2018-01-09 Sudakshina Das <sudi.das@arm.com>
8182
8183 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
8184 ARMv8.5-A.
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.
8188
8189 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
8190
8191 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
8192 (xorsign<mode>3): Likewise.
8193
8194 2019-01-09 Jelinek <jakub@redhat.com>
8195
8196 PR middle-end/88758
8197 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
8198 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
8199
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.
8203
8204 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
8205
8206 * doc/invoke.texi (-Os): Remove trailing spaces.
8207 (-finline-functions): Remove reference to -O2.
8208
8209 2019-01-08 Jakub Jelinek <jakub@redhat.com>
8210
8211 PR rtl-optimization/79593
8212 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
8213
8214 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
8215 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
8216
8217 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
8218
8219 PR bootstrap/88721
8220 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
8221 to -1 on entry.
8222
8223 PR debug/88723
8224 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
8225 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
8226
8227 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
8228
8229 PR target/88717
8230 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
8231 ix86_avx_u128_mode_entry.
8232
8233 2019-01-08 Martin Liska <mliska@suse.cz>
8234
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.
8239
8240 2019-01-08 Richard Biener <rguenther@suse.de>
8241
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.
8248
8249 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
8250
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.
8271
8272 2019-01-08 Alan Modra <amodra@gmail.com>
8273
8274 PR target/88614
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.
8283
8284 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8285
8286 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
8287 optimization for masked stores.
8288
8289 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8290
8291 PR middle-end/88567
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.
8296
8297 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
8298
8299 PR target/86891
8300 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
8301 unsigned_p. Handle signed and unsigned overflow correction as
8302 required.
8303 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
8304 prototype.
8305 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
8306 for operand 2.
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
8325 operands.
8326 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
8327 patterns.
8328 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
8329 patterns.
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.
8335
8336 2019-01-07 Richard Biener <rguenther@suse.de>
8337
8338 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
8339 of tree_operand_hash.
8340
8341 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8342
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.
8348
8349 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
8350
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, ... }.
8358
8359 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
8360
8361 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
8362 with x86_64-pc-linux-gnu.
8363
8364 2019-01-07 Tom de Vries <tdevries@suse.de>
8365
8366 PR target/85486
8367 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
8368 function.
8369 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
8370 routines.
8371
8372 2019-01-07 Jakub Jelinek <jakub@redhat.com>
8373
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.
8377
8378 PR debug/88723
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.
8384
8385 PR tree-optimization/88676
8386 * tree-ssa-phiopt.c (two_value_replacement): New function.
8387 (tree_ssa_phiopt_worker): Call it.
8388
8389 PR sanitizer/88619
8390 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
8391 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
8392
8393 PR c++/85052
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.
8407
8408 2019-01-07 Tom de Vries <tdevries@suse.de>
8409
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
8424 vectors.
8425 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
8426 large vectors.
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.
8437
8438 2019-01-07 Tom de Vries <tdevries@suse.de>
8439
8440 PR target/85381
8441 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
8442 empty loops.
8443
8444 2019-01-07 Tom de Vries <tdevries@suse.de>
8445
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
8452 to propagate state.
8453 (nvptx_shared_propagate): Initialize vector bcast partition and
8454 synchronization state.
8455 (nvptx_single): Generalize to enable vectors to use shared-memory
8456 to propagate state.
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.
8461
8462 2019-01-07 Tom de Vries <tdevries@suse.de>
8463
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
8467 PTX_WARP_SIZE.
8468
8469 2019-01-07 Tom de Vries <tdevries@suse.de>
8470
8471 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
8472 as late as possible.
8473
8474 2019-01-07 Tom de Vries <tdevries@suse.de>
8475
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.
8481
8482 2019-01-07 Tom de Vries <tdevries@suse.de>
8483
8484 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
8485
8486 2019-01-07 Tom de Vries <tdevries@suse.de>
8487
8488 * omp-offload.c (oacc_get_min_dim): New function.
8489 * omp-offload.h (oacc_get_min_dim): Declare.
8490
8491 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
8492
8493 PR target/88521
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.
8496
8497 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8498
8499 PR tree-opt/86020
8500 Revert:
8501 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
8502
8503 * ipa-inline.c (edge_badness): Use inlined_time instead of
8504 inline_summaries->get.
8505
8506 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8507
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.
8512
8513 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8514
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.
8522
8523 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8524
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
8532 new parameters.
8533 * ipa-inline.c (can_inline_edge_by_limits_p,
8534 want_inline_small_function_p): Use new parameters.
8535
8536 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
8537
8538 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
8539
8540 2019-01-05 Jakub Jelinek <jakub@redhat.com>
8541
8542 PR middle-end/82564
8543 PR target/88620
8544 * expr.c (expand_assignment): For calls returning VLA structures
8545 if to_rtx is not a MEM, force it into a stack temporary.
8546
8547 PR debug/88635
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
8555 2018-11-09 changes.
8556
8557 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
8558
8559 * params.def (hot-bb-count-ws-permille): Set to 990.
8560
8561 2019-01-04 Martin Sebor <msebor@redhat.com>
8562
8563 PR c/88546
8564 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
8565 leaf.
8566
8567 2019-01-04 Martin Sebor <msebor@redhat.com>
8568
8569 PR c/88363
8570 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
8571
8572 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8573
8574 * gdbinit.in: Turn off pagination for the skip commands, restore
8575 it to previous state afterwards.
8576
8577 2019-01-04 Jakub Jelinek <jakub@redhat.com>
8578
8579 PR target/88594
8580 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
8581 of GET_MODE (opN) as modes of the libcall arguments.
8582
8583 2019-01-04 Jan Beulich <jbeulich@suse.com>
8584
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
8612 instead of =Yk.
8613
8614 2019-01-03 Martin Sebor <msebor@redhat.com>
8615
8616 PR tree-optimization/88659
8617 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
8618
8619 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8620
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.
8624
8625 2019-01-03 Tom de Vries <tdevries@suse.de>
8626
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
8629 function.
8630 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
8631
8632 2019-01-03 Tom de Vries <tdevries@suse.de>
8633
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.
8638
8639 2019-01-03 Tom de Vries <tdevries@suse.de>
8640
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.
8644
8645 2019-01-03 Tom de Vries <tdevries@suse.de>
8646
8647 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
8648 factored out of ...
8649 (nvptx_goacc_validate_dims): ... here.
8650
8651 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
8652
8653 PR tree-optimization/85574
8654 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
8655 structure.
8656 (struct ssa_equip_hash_traits): Declare.
8657 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
8658
8659 2019-01-03 Jakub Jelinek <jakub@redhat.com>
8660
8661 PR debug/88644
8662 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
8663 change it to qualified_type.
8664
8665 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
8666
8667 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
8668 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
8669
8670 2019-01-02 Martin Sebor <msebor@redhat.com>
8671 Jeff Law <law@redhat.com>
8672
8673 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
8674 (get_range_strlen_tree): Update appropriately.
8675 (get_range_strlen)
8676 * gimple-fold.h (get_range_strlen): Drop unused last argument.
8677
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.
8686
8687 PR middle-end/88663
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
8694 return value.
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.
8701
8702 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
8703
8704 PR lto/88130
8705 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
8706 false at WPA time when body was removed.
8707
8708 2019-01-02 Martin Liska <mliska@suse.cz>
8709
8710 PR tree-optimization/88650
8711 * predict.c (set_even_probabilities): Calculate probability
8712 remainer only when really used.
8713
8714 2019-01-02 Richard Biener <rguenther@suse.de>
8715
8716 PR middle-end/88651
8717 * tree-data-ref.c (analyze_subscript_affine_affine): Use
8718 widest_ints when mangling max_stmt_execution results.
8719
8720 2019-01-02 Richard Biener <rguenther@suse.de>
8721
8722 PR tree-optimization/88621
8723 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
8724 bitfields when canoncalizing.
8725
8726 2019-01-02 Richard Biener <rguenther@suse.de>
8727
8728 PR target/87545
8729 * config/i386/x86-tune-costs.h (intel_cost): Adjust
8730 cost of cheap SSE instruction.
8731
8732 2019-01-02 Richard Biener <rguenther@suse.de>
8733
8734 PR ipa/85574
8735 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
8736 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
8737 function.
8738 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
8739 set after UIDs before splitting them.
8740
8741 2019-01-01 Martin Sebor <msebor@redhat.com>
8742 Jeff Law <law@redhat.com>
8743
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.
8747
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
8760 formatting issues.
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.
8768
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.
8777
8778 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
8779
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.
8787
8788 2019-01-01 Jakub Jelinek <jakub@redhat.com>
8789
8790 Update copyright years.
8791
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.
8804 \f
8805 Copyright (C) 2019 Free Software Foundation, Inc.
8806
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.