Split up value_range::intersect into base (value_range_base) and
[gcc.git] / gcc / ChangeLog
1 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
2
3 * tree-vrp.h (value_range_base::intersect): New.
4 (value_range::intersect_helper): Move from here...
5 (value_range_base::intersect_helper): ...to here.
6 * tree-vrp.c (value_range::intersect_helper): Rename to...
7 (value_range_base::intersect_helper): ...this, and rewrite to
8 return a value instead of modifying THIS in place.
9 Also, move equivalence handling...
10 (value_range::intersect): ...here, while calling intersect_helper.
11 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
12 calling intersect.
13 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
14 Same.
15 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
16
17 2019-06-07 Jakub Jelinek <jakub@redhat.com>
18
19 * Makefile.in (genprogerr): Add condmd.
20 (genprog): Remove it here.
21
22 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
23
24 * doc/invoke.texi (AMD GCN Options): Add gfx906.
25
26 2019-06-07 Richard Biener <rguenther@suse.de>
27
28 PR debug/90574
29 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
30 that appear after user labels.
31
32 2019-06-07 Martin Liska <mliska@suse.cz>
33
34 * cselib.c (cselib_init): Disable hash table
35 sanitization.
36 * hash-set.h: Pass new default argument to m_table.
37 * hash-table.c: Add global variable with hash table
38 sanitization limit.
39 * hash-table.h (Allocator>::hash_table): Add new argument
40 to ctor.
41 (hashtab_chk_error): New.
42 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
43 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
44 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
45
46 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
47
48 * common.opt (flto-odr-type-merging): Ignore.
49 * invoke.texi (-flto-odr-type-merging): Remove.
50 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
51 (can_be_vtable_hashed_p): Remove.
52 (hash_odr_vtable): Remove.
53 (odr_vtable_hasher::hash): Remove.
54 (types_same_for_odr): Remove.
55 (types_odr_comparable): Remove.
56 (odr_vtable_hasher::equal): Remove.
57 (odr_vtable_hash_type, odr_vtable_hash): Remove.
58 (add_type_duplicate): Do not synchronize vtable and name hashtables.
59 (get_odr_type): Do not use vtable hash.
60 (dump_odr_type): Remove commented out code.
61 (build_type_inheritance_graph): Do not allocate vtable hash.
62 (rebuild_type_inheritance_graph): Do not delete vtable hash.
63 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
64 (odr_type_p): Likewise.
65 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
66 test.
67
68 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
69
70 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
71 immediately after same_types_for_tbaa_p returns -1 and continue
72 looking for possible exact match; if matching types are arrays
73 watch for partial overlaps.
74 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
75 (indirect_refs_may_alias_p): Do type based disambiguation first;
76 update comment.
77
78 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
79
80 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
81
82 2019-06-07 Martin Liska <mliska@suse.cz>
83
84 * doc/invoke.texi: Remove param.
85 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
86 Remove.
87 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
88 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
89 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
90 * profile.c (instrument_values): Remove
91 HIST_TYPE_INDIR_CALL_TOPN.
92 * tree-profile.c (init_ic_make_global_vars):
93 Always build __gcov_indirect_call only.
94 (gimple_init_gcov_profiler): Remove usage
95 of PARAM_INDIR_CALL_TOPN_PROFILE.
96 (gimple_gen_ic_profiler): Likewise.
97 * value-prof.c (dump_histogram_value): Likewise.
98 (stream_in_histogram_value): Likewise.
99 (gimple_indirect_call_to_profile): Likewise.
100 (gimple_find_values_to_profile): Likewise.
101 * value-prof.h (enum hist_type): Likewise.
102
103 2019-06-07 Martin Liska <mliska@suse.cz>
104
105 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
106 function.
107
108 2019-06-07 Martin Liska <mliska@suse.cz>
109
110 PR tree-optimization/78902
111 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
112 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
113 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
114 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
115 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
116 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
117 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
118 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
119 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
120 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
121 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
122 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
123 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
124 New.
125 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
126 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
127 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
128 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
129 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
130 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
131 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
132 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
133 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
134 warn_unused_result attribute.
135 (BUILT_IN_STRDUP): Likewise.
136 (BUILT_IN_STRNDUP): Likewise.
137 (BUILT_IN_ALLOCA): Likewise.
138 (BUILT_IN_CALLOC): Likewise.
139 (BUILT_IN_MALLOC): Likewise.
140 (BUILT_IN_REALLOC): Likewise.
141
142 2019-06-06 Jim Wilson <jimw@sifive.com>
143
144 PR target/89955
145 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
146 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
147 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
148
149 2019-06-06 Martin Sebor <msebor@redhat.com>
150
151 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
152 (handle_builtin_malloc): Remove trailing spaces.
153 (handle_builtin_memset): Same.
154 (handle_builtin_memcmp): Same.
155 (compute_string_length): Same.
156 (determine_min_objsize): Same.
157 (handle_builtin_string_cmp): Same.
158 (handle_char_store): Same. Break up excessively long line.
159
160 2019-06-06 Martin Jambor <mjambor@suse.cz>
161
162 * tree-sra.c (build_reconstructed_reference): Drop the alignment
163 check.
164
165 2019-06-06 Martin Jambor <mjambor@suse.cz>
166
167 * tree-sra.c (struct access): New field grp_same_access_path.
168 (dump_access): Dump it.
169 (build_reconstructed_reference): New function.
170 (build_ref_for_model): Use it if possible.
171 (path_comparable_for_same_access): New function.
172 (same_access_path_p): Likewise.
173 (sort_and_splice_var_accesses): Set the new flag.
174 (analyze_access_subtree): Likewise.
175 (propagate_subaccesses_across_link): Propagate zero value of the new
176 flag down the access tree.
177
178 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
179
180 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
181 * config/gcn/gcn.opt (gpu_type): Add gfx906.
182 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
183 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
184 Add gfx906.
185
186 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
187
188 PR tree-optimization/90332
189 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
190 Handle VALS containing two vectors.
191 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
192 to...
193 (@aarch64_combinez<mode>): ... This.
194 (*aarch64_combinez_be<mode>): Rename to...
195 (@aarch64_combinez_be<mode>): ... This.
196 (vec_init<mode><Vhalf>): New define_expand.
197 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
198
199 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
200
201 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
202 library functions only when not optimizing for size.
203 (ashlsi3): Likewise.
204 (ashrhi3): Likewise.
205 (ashrsi3): Likewise.
206 (lshrhi3): Likewise.
207 (lshrsi3): Likewise.
208
209 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
210
211 PR rtl-optimization/88751
212 * ira.c (ira): Use the number of the actually referenced registers
213 when calculating the threshold.
214
215 2019-06-06 Jakub Jelinek <jakub@redhat.com>
216
217 * configure: Regenerate.
218
219 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
220
221 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
222 register if it is in memory, so the shift can be emulated with a rotate
223 instruction.
224 (ashrhi3): Likewise.
225 (lshrhi3): Likewise.
226
227 2019-06-06 Martin Liska <mliska@suse.cz>
228
229 PR tree-optimization/87954
230 * match.pd: Simplify mult where both arguments are 0 or 1.
231
232 2019-06-06 Richard Biener <rguenther@suse.de>
233
234 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
235 put equivalences on UNDEFINED ranges.
236 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
237 Make sure to drop defs of stmts added during simplification
238 to VARYING.
239
240 2019-06-06 Richard Biener <rguenther@suse.de>
241
242 * tree-ssa-structalias.c: Include tree-cfg.h.
243 (make_heapvar): Do not make heap vars artificial.
244 (find_func_aliases_for_builtin_call): Handle stack allocation
245 functions.
246 (find_func_aliases): Delay processing of simple enough returns
247 in non-IPA mode.
248 (set_uids_in_ptset): Adjust.
249 (find_what_var_points_to): Likewise.
250 (solve_constraints): Do not dump points-to sets here.
251 (compute_points_to_sets): Post-process return statements,
252 amending the escaped solution. Dump points-to sets afterwards.
253 (ipa_pta_execute): Dump points-to sets.
254
255 2019-06-06 Martin Liska <mliska@suse.cz>
256
257 PR web/87933
258 * doc/install.texi: Fix HTML headers and
259 titles for 'Installing GCC' pages.
260
261 2019-06-06 Martin Liska <mliska@suse.cz>
262
263 * ipa-icf-gimple.h (dump_message_1): Remove.
264 (dump_message): Likewise.
265 (return_false_with_message_1): Print also file.
266 (return_false_with_msg): Likewise.
267 (return_with_result): Likewise.
268 (return_with_debug): Likewise.
269 * ipa-icf.c (sem_function::equals_private): Remove call
270 to dump_message.
271
272 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
273
274 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
275 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
276 memory operand for it.
277 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
278
279 2019-06-05 Martin Sebor <msebor@redhat.com>
280
281 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
282 Adjust quoting and hyphenation.
283 * convert.c (convert_to_real_1): Same.
284 * gcc.c (driver_wrong_lang_callback): Same.
285 (driver::handle_unrecognized_options): Same.
286 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
287 * opts-common.c (cmdline_handle_error): Same.
288 (read_cmdline_option): Same.
289 * opts-global.c (complain_wrong_lang): Same.
290 (print_ignored_options): Same.
291 (handle_common_deferred_options): Same.
292 * pretty-print.h: Same.
293 * print-rtl.c (debug_bb_n_slim): Same.
294 * sched-rgn.c (make_pass_sched_fusion): Same.
295 * tree-cfg.c (verify_gimple_assign_unary): Same.
296 (verify_gimple_label): Same.
297 * tree-ssa-operands.c (verify_ssa_operands): Same.
298 * varasm.c (do_assemble_alias): Same.
299 (assemble_alias): Same.
300
301 2019-06-05 Richard Henderson <rth@twiddle.net>
302
303 * config/alpha/alpha.c (direct_return): Move down after
304 struct machine_function definition; use saved frame_size;
305 return bool.
306 (struct machine_function): Add sa_mask, sa_size, frame_size.
307 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
308 (alpha_compute_frame_layout): ... new function.
309 (TARGET_COMPUTE_FRAME_LAYOUT): New.
310 (alpha_initial_elimination_offset): Use saved sa_size.
311 (alpha_vms_initial_elimination_offset): Likewise.
312 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
313 (alpha_expand_prologue): Use saved frame data. Merge integer
314 and fp register save loops.
315 (alpha_expand_epilogue): Likewise.
316 (alpha_start_function): Use saved frame data.
317 * config/alpha/alpha-protos.h (direct_return): Update.
318 (alpha_sa_size): Remove.
319
320 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
321
322 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
323 multiplication by a power-of-two value.
324 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
325 and turn the modulo operation into a masking operation.
326
327 2019-06-05 Jakub Jelinek <jakub@redhat.com>
328
329 PR debug/90733
330 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
331 with VOIDmode inner operands.
332
333 2019-06-05 Richard Biener <rguenther@suse.de>
334
335 PR middle-end/90726
336 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
337 turn an expression graph into a tree.
338
339 2019-06-05 Jakub Jelinek <jakub@redhat.com>
340
341 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
342 member.
343 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
344 treat it like explicit monotonic schedule modifier.
345 (expand_omp_for): Initialize has_lastprivate_conditional.
346 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
347 schedule modifier.
348
349 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
350 references, lookup in in hash map MEM_REF operand instead of the
351 MEM_REF itself.
352 (lower_omp_1): When looking for lastprivate conditional assignments,
353 handle MEM_REFs with REFERENCE_TYPE operands.
354
355 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
356 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
357 and references a VLA. Handle references to non-VLAs if is_simd
358 all privatization clauses like reductions.
359 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
360 If omp_is_reference, use always omp simd arrays and set
361 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
362 fails, emit reference initialization.
363
364 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
365
366 PR target/89803
367 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
368 _mm_mask_fpclass_sd_mask): New intrinsics.
369 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
370 * config/i386/i386-builtin.def
371 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
372 New builtins.
373 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
374 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
375 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
376 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
377 case QI_FTYPE_V2SF_INT): Ditto.
378 * config/i386/sse.md
379 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
380 Extended to insnstructions with mask operands.
381
382 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
383
384 * config/rs6000/constraints.md (define_register_constraint "wp"):
385 Delete.
386 (define_register_constraint "wq"): Delete.
387 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
388 (rs6000_init_hard_regno_mode_ok): Adjust.
389 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
390 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
391 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
392 (define_mode_attr VSa): Delete.
393 (define_mode_attr VSisa): New.
394 (rest of file): Adjust.
395 * doc/md.texi (Machine Constraints): Adjust.
396
397 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
398
399 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
400 (define_attr "enabled"): Handle those new isa values.
401
402 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
403
404 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
405 (define_mode_attr VSr5): Delete.
406 (define_mode_attr VStype_sqrt): Delete.
407 (define_mode_iterator VSX_SPDP): Delete.
408 (define_mode_attr VS_spdp_res): Delete.
409 (define_mode_attr VS_spdp_insn): Delete.
410 (define_mode_attr VS_spdp_type): Delete.
411 (*vsx_sqrt<mode>2): Adjust.
412 (vsx_<VS_spdp_insn>): Delete, split to...
413 (vsx_xscvdpsp): ... this. New. And...
414 (vsx_xvcvspdp): ... this. New. And...
415 (vsx_xvcvdpsp): ... this. New.
416
417 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
418
419 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
420 and V2DF.
421 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
422 (rest of file): Adjust.
423
424 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
425
426 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
427 (vsx_extract_<mode>_var): Ditto.
428
429 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
430
431 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
432 with just "wa".
433
434 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
435
436 * config/rs6000/constraints.md (define_register_constraint "ww"):
437 Delete.
438 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
439 (rs6000_init_hard_regno_mode_ok): Adjust.
440 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
441 RS6000_CONSTRAINT_ww.
442 * config/rs6000/rs6000.md: Adjust.
443 * config/rs6000/vsx.md: Adjust.
444 * doc/md.texi (Machine Constraints): Adjust.
445
446 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
447
448 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
449 (define_mode_attr sd): New.
450 (define_mode_attr s): New.
451 (define_mode_attr Ftrad): Delete.
452 (define_mode_attr Fvsx): Delete.
453 (define_mode_attr Fs): Delete.
454 (rest of file): Use the new mode attributes.
455 * config.rs6000/vsx.md: Use the new mode attributes.
456
457 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
458
459 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
460 with just "wa".
461
462 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
463
464 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
465 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
466 used with VSX_B, VSX_D, or VSX_F, with just "wa".
467
468 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
469
470 PR target/78263
471 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
472 C++ with strict ANSI requirements.
473
474 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
475
476 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
477 computations when step is 1.
478
479 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
480
481 * config/rs6000/constraints.md (define_register_constraint "wf"):
482 Delete.
483 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
484 (rs6000_init_hard_regno_mode_ok): Adjust.
485 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
486 RS6000_CONSTRAINT_wf.
487 * config/rs6000/rs6000.md: Adjust.
488 * config/rs6000/vsx.md: Adjust.
489 * doc/md.texi (Machine Constraints): Adjust.
490
491 2019-06-04 Andrew Pinski <apinski@marvell.com>
492
493 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
494 Fix ILP32 value.
495
496 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
497
498 * config/rs6000/constraints.md (define_register_constraint "wd"):
499 Delete.
500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
501 (rs6000_init_hard_regno_mode_ok): Adjust.
502 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
503 RS6000_CONSTRAINT_wd.
504 * config/rs6000/rs6000.md: Adjust.
505 * config/rs6000/vsx.md: Adjust.
506 * doc/md.texi (Machine Constraints): Adjust.
507
508 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
509
510 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
511 (rest of file): Adjust.
512
513 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
514
515 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
516 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
517 (vsx_splat_<mode>_reg): Adjust.
518
519 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
520
521 * config/rs6000/constraints.md (define_register_constraint "ws"):
522 Delete.
523 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
524 (rs6000_init_hard_regno_mode_ok): Adjust.
525 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
526 RS6000_CONSTRAINT_ws.
527 * config/rs6000/rs6000.md: Adjust.
528 * config/rs6000/vsx.md: Adjust.
529 * doc/md.texi (Machine Constraints): Adjust.
530
531 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
532
533 * config/rs6000/constraints.md (define_register_constraint "wv"):
534 Delete.
535 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
536 (rs6000_init_hard_regno_mode_ok): Adjust.
537 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
538 RS6000_CONSTRAINT_wv.
539 * config/rs6000/rs6000.md: Adjust.
540 * config/rs6000/vsx.md: Adjust.
541 * doc/md.texi (Machine Constraints): Adjust.
542
543 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
544
545 * config/rs6000/constraints.md (define_register_constraint "wi"):
546 Delete.
547 (define_register_constraint "wt"): Delete.
548 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
549 (rs6000_init_hard_regno_mode_ok): Adjust.
550 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
551 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
552 * config/rs6000/rs6000.md: Adjust.
553 * config/rs6000/vsx.md: Adjust.
554 * doc/md.texi (Machine Constraints): Adjust.
555
556 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
557
558 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
559 const.
560 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
561 default_elf_asm_output_external.
562
563 2019-06-04 Martin Liska <mliska@suse.cz>
564
565 * ipa-icf.c (INCLUDE_LIST): Remove.
566 (sem_item_optimizer::execute): Remove call to init_wpa.
567 * ipa-icf.h (init_wpa): Remove.
568
569 2019-06-04 Jakub Jelinek <jakub@redhat.com>
570
571 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
572 conditional on combined for simd.
573 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
574 member.
575 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
576 constructs, don't remove lastprivate_conditional_map, but instead set
577 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
578 to parent construct temporaries.
579 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
580 like !ctx->lastprivate_conditional_map.
581 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
582 use up->outer context instead of up.
583 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
584 gimple_omp_for_combined_p.
585 (expand_omp_for_static_nochunk): Likewise.
586 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
587 probably moved over into expand_omp_for_generic rather than being copied
588 there.
589
590 2019-06-04 Martin Liska <mliska@suse.cz>
591
592 * value-prof.c (dump_histogram_value): Fix typo.
593 (gimple_mod_subtract_transform): Likewise.
594
595 2019-06-04 Richard Biener <rguenther@suse.de>
596
597 PR middle-end/90726
598 * tree-chrec.c (chrec_contains_symbols): Add to visited.
599 (tree_contains_chrecs): Likewise.
600 (chrec_contains_symbols_defined_in_loop): Move here and avoid
601 exponential behaivor from ...
602 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
603 ... here.
604 (expression_expensive_p): Avoid exponential behavior and compute
605 expanded size, rejecting any expansion.
606 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
607 (idx_contains_abnormal_ssa_name_p): Likewise.
608 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
609 (contains_abnormal_ssa_name_p): Simplify and use
610 walk_tree_without_duplicates.
611
612 2019-06-04 Richard Biener <rguenther@suse.de>
613
614 PR tree-optimization/90738
615 Revert
616 2019-06-03 Richard Biener <rguenther@suse.de>
617
618 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
619 full reference tree and record in ref->ref.
620 (vn_reference_lookup_3): Pass in original ref to
621 ao_ref_init_from_vn_reference.
622 (vn_reference_lookup): Likewise.
623 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
624 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
625 Handle non-decl bases in the original reference.
626
627 2019-06-04 Martin Liska <mliska@suse.cz>
628
629 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
630 number of references.
631 (sem_item_optimizer::do_congruence_step):
632 (sem_item_optimizer::worklist_push): Dump how references
633 a class has.
634 (sem_item_optimizer::worklist_pop): Use heap.
635 (sem_item_optimizer::process_cong_reduction): Likewise.
636 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
637
638 2019-06-04 Martin Liska <mliska@suse.cz>
639
640 * ipa-icf.h (struct sem_usage_pair_hash): New.
641 (sem_usage_pair_hash::hash): Likewise.
642 (sem_usage_pair_hash::equal): Likewise.
643 (struct sem_usage_hash): Likewise.
644 * ipa-icf.c (sem_item::sem_item): Initialize
645 referenced_by_count.
646 (sem_item::add_reference): Register a reference
647 in ref_map and not in target->usages.
648 (sem_item::setup): Remove initialization of
649 dead vectors.
650 (sem_item::~sem_item): Remove usage of dead vectors.
651 (sem_item::dump): Remove dump of references.
652 (sem_item_optimizer::sem_item_optimizer): Initialize
653 m_references.
654 (sem_item_optimizer::read_section): Remove useless
655 dump.
656 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
657 (sem_item_optimizer::build_graph): Pass m_references
658 to ::add_reference.
659 (sem_item_optimizer::verify_classes): Remove usage of dead
660 vectors.
661 (sem_item_optimizer::traverse_congruence_split): Return true
662 when a class is split.
663 (sem_item_optimizer::do_congruence_step_for_index): Use
664 hash_map for look up of (sem_item *, index). That brings
665 significant speed up.
666 (sem_item_optimizer::do_congruence_step): Return true
667 when a split is done.
668 (congruence_class::is_class_used): Use referenced_by_count.
669
670 2019-06-04 Alan Modra <amodra@gmail.com>
671
672 PR target/90689
673 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
674 error.
675
676 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
677
678 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
679 * config/rs6000/rs6000.c (direct_move_p): Adjust.
680 (rs6000_secondary_reload_simple_move): Adjust.
681 (rs6000_opt_masks): Neuter the "mfpgpr" option.
682 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
683 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
684 comment.
685 (power6x): Adjust.
686 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
687 (floatunssi<mode>2_lfiwzx): Adjust.
688 (fix_trunc<mode>si2_stfiwx): Adjust.
689 (fixuns_trunc<mode>si2_stfiwx): Adjust.
690 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
691 (mfpgpr): Mark as deprecated.
692 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
693 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
694 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
695
696 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
697
698 * config/rs6000/constraints.md (define_register_constraint "wg"):
699 Delete.
700 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
701 RS6000_CONSTRAINT_wg.
702 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
703 (rs6000_init_hard_regno_mode_ok): Adjust.
704 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
705 Delete "wg" alternatives.
706 * doc/md.texi (Machine Constraints): Adjust.
707
708 2019-06-03 Alan Modra <amodra@gmail.com>
709
710 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
711 (get_uncond_jump_length): Assert length less than INT_MAX and
712 non-negative.
713
714 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
715
716 PR middle-end/64242
717 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
718 block.
719 (expand_builtin_nonlocal_goto): Likewise.
720
721 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
722
723 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
724 (aarch64_asm_output_external): Declare.
725 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
726 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
727 (aarch64_asm_output_alias): New.
728 (aarch64_asm_output_external): New.
729 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
730 (ASM_OUTPUT_EXTERNAL): Define.
731
732 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
733 * tree-vrp.h (value_range_base::nonzero_p): New.
734 (value_range_base::set_nonnull): Rename to...
735 (value_range_base::set_nonzero): ...this.
736 (value_range_base::set_null): Rename to...
737 (value_range_base::set_zero): ...this.
738 (value_range::set_nonnull): Remove.
739 (value_range::set_null): Remove.
740 * tree-vrp.c (range_is_null): Remove.
741 (range_is_nonnull): Remove.
742 (extract_range_from_binary_expr): Use value_range_base::*zero_p
743 instead of range_is_*null.
744 (extract_range_from_unary_expr): Same.
745 (value_range_base::set_nonnull): Rename to...
746 (value_range_base::set_nonzero): ...this.
747 (value_range::set_nonnull): Remove.
748 (value_range_base::set_null): Rename to...
749 (value_range_base::set_zero): ...this.
750 (value_range::set_null): Remove.
751 (extract_range_from_binary_expr): Rename set_*null uses to
752 set_*zero.
753 (extract_range_from_unary_expr): Same.
754 (union_helper): Same.
755 * vr-values.c (get_value_range): Use set_*zero instead of
756 set_*null.
757 (vr_values::extract_range_from_binary_expr): Same.
758 (vr_values::extract_range_basic): Same.
759
760 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
761
762 PR driver/90684
763 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
764
765 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
766
767 * config/aarch64/iterators.md (MAX_OPP): New code attr.
768 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
769 (aarch64_<su>abd<mode>_3): ... This.
770 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
771
772 2019-06-03 Richard Biener <rguenther@suse.de>
773
774 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
775 full reference tree and record in ref->ref.
776 (vn_reference_lookup_3): Pass in original ref to
777 ao_ref_init_from_vn_reference.
778 (vn_reference_lookup): Likewise.
779 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
780 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
781 Handle non-decl bases in the original reference.
782
783 2019-06-03 Martin Liska <mliska@suse.cz>
784
785 * doc/generic.texi: Remove Java Trees.
786
787 2019-06-03 Martin Liska <mliska@suse.cz>
788
789 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
790 returns 0 when operands are equal.
791
792 2019-06-03 Richard Biener <rguenther@suse.de>
793
794 PR tree-optimization/90716
795 * tree-loop-distribution.c (destroy_loop): Process blocks in
796 correct order.
797
798 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
799
800 PR target/88837
801 * vector-builder.h (vector_builder::count_dups): New method.
802 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
803 Declare prototype.
804 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
805 (vec_init<mode><Vel>): New pattern.
806 * config/aarch64/aarch64.c (emit_insr): New function.
807 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
808 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
809 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
810 (aarch64_sve_expand_vector_init): Define two overloaded functions.
811
812 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
813
814 PR tree-optimization/90681
815 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
816 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
817 special case for SLP, but fail on non-groupped loads.
818
819 2019-06-03 Martin Liska <mliska@suse.cz>
820
821 * cfg.c (debug): Use TDF_DETAILS for debug and
822 print edge info only once.
823
824 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
825
826 PR fortran/90539
827 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
828
829 2019-06-01 Martin Sebor <msebor@redhat.com>
830
831 PR middle-end/90694
832 * tree-pretty-print.c (dump_generic_node): Add parentheses.
833
834 2019-05-31 Jan Hubicka <jh@suse.cz>
835
836 * alias.c: Include ipa-utils.h.
837 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
838 * ipa-devirt.c (prevailing_odr_type): New.
839 * ipa-utils.h (previaling_odr_type): Declare.
840
841 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
842 Hongtao Liu <hongtao.liu@intel.com>
843
844 PR target/89355
845 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
846 NOTE_INSN_DELETED_LABEL check.
847
848 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
849 Robert Suchanek <robert.suchanek@mips.com>
850
851 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
852 and 3rd operands of the fmadd/fmsub/maddv builtin.
853
854 2019-05-31 Jakub Jelinek <jakub@redhat.com>
855
856 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
857 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
858 on OMP_SIMD if not nested inside of worksharing loop that also has
859 lastprivate conditional clause for the same decl.
860 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
861 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
862 on simd.
863 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
864 on simd construct.
865 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
866 on simd construct.
867 (lower_lastprivate_clauses): Likewise.
868 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
869 calling lower_rec_input_clauses.
870 (lower_omp_for): Likewise.
871 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
872 clause on simd construct.
873 * omp-expand.c (expand_omp_simd): Initialize cond_var if
874 OMP_CLAUSE__CONDTEMP_ clause is present.
875
876 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
877 ivar and lvar.
878
879 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
880
881 PR c/43673
882 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
883 TEX_D32, TEX_D64 or TEX_D128.
884
885 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
886
887 * match.pd (~(vec?cst1:cst2)): New transformation.
888
889 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
890
891 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
892 ((size_t)(A /[ex] B) CMP C): New transformation.
893
894 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
895
896 * doc/md.texi: Document define_insn_and_rewrite.
897 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
898 * gensupport.c (queue_elem): Update comment.
899 (replace_operands_with_dups): New function.
900 (gen_rewrite_sequence): Likewise.
901 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
902 * read-rtl.c (apply_subst_iterator): Likewise.
903 (add_condition_to_rtx, named_rtx_p): Likewise.
904 (rtx_reader::read_rtx_operand): Likewise.
905 * config/aarch64/aarch64-sve.md
906 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
907 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
908 define_insn_and_rewrite.
909 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
910 Remove separate define_split.
911
912 2019-05-31 Jan Hubicka <jh@suse.cz>
913
914 * tree-ssa-alias.c (type_has_components_p): New function.
915 (aliasing_component_refs_p): Use it.
916
917 2019-05-31 Martin Liska <mliska@suse.cz>
918
919 * gdbhooks.py: Add const_tree to TreePrinter.
920
921 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
922
923 PR debug/86964
924 * common.opt (feliminate-unused-debug-symbols): Enable by default.
925 * doc/invoke.texi (Debugging Options): Document new default of
926 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
927
928 2019-05-31 Jakub Jelinek <jakub@redhat.com>
929
930 PR tree-optimization/90671
931 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
932 template_block used to be empty on the first call, don't use
933 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
934 seq with bb_seq and set it with set_bb_seq.
935
936 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
937
938 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
939
940 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
941 Michael Meissner <meissner@linux.ibm.com>
942
943 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
944 (prefixed_mem_operand): Likewise.
945 (non_prefixed_mem_operand): Likewise.
946 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
947 prototype.
948 * config/rs6000/rs6000.c (print_operand_address): Handle
949 PC-relative addresses.
950 (mode_supports_prefixed_address_p): New function.
951 (rs6000_prefixed_address): New function.
952 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
953 (SYMBOL_REF_PCREL_P): Likewise.
954
955 2019-05-30 Jakub Jelinek <jakub@redhat.com>
956
957 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
958 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
959 (gimplify_omp_for): If worksharing loop with lastprivate conditional
960 is nested inside of parallel region, add _condtemp_ clause to both.
961 * tree-nested.c (convert_nonlocal_omp_clauses,
962 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
963 assertion failure.
964 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
965 member.
966 * omp-general.c (omp_extract_for_data): Compute it.
967 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
968 (lower_rec_input_clauses): Likewise.
969 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
970 clause is already present, just add one further one after it.
971 (lower_lastprivate_clauses): Handle cond_ptr with array type.
972 (lower_send_shared_vars): Clear _condtemp_ vars.
973 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
974 or section or taskgroup.
975 * omp-expand.c (determine_parallel_type): Disallow combining only if
976 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
977 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
978 (expand_omp_for_generic, expand_omp_for_static_nochunk,
979 expand_omp_for_static_chunk, expand_omp_for): Use
980 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
981 determine if a special set of API routines are needed and if condtemp
982 needs to be initialized, while always initialize cond_var if
983 fd->lastprivate_conditional is non-zero.
984
985 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
986 Michael Meissner <meissner@linux.ibm.com>
987
988 * config/rs6000/constraints.md (eI): New constraint.
989 * config/rs6000/predicates.md (cint34_operand): New predicate.
990 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
991 (SIGNED_34BIT_OFFSET_P): Likewise.
992 * doc/md.texi (eI): Document constraint.
993
994 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
995
996 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
997
998 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
999 Michael Meissner <meissner@linux.ibm.com>
1000
1001 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
1002 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
1003 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
1004 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
1005 (OTHER_FUTURE_MASKS): Likewise.
1006 (POWERPC_MASKS): Likewise.
1007 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
1008 specified without -mprefixed-addr or -mcpu=future. Error if
1009 -mprefixed-addr is specified without -mcpu=future.
1010 (rs6000_opt_masks): Add entry for prefixed-addr.
1011 * rs6000.opt (mprefixed-addr): New option.
1012
1013 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
1014
1015 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
1016 cfun->is_thunk check.
1017
1018 2019-05-30 Jakub Jelinek <jakub@redhat.com>
1019
1020 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
1021 to length.
1022
1023 2019-05-30 Martin Liska <mliska@suse.cz>
1024
1025 * gdbinit.in: Fix 'ptc' command. Add trt
1026 that prints TREE_TYPE($).
1027
1028 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
1029 Alan Modra <amodra@gmail.com>
1030
1031 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
1032 calls here...
1033 (rs6000_indirect_call_template_1): ...and here.
1034 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
1035 plt16_ha, plt16_lo, mtctr indirect calls. Use
1036 rs6000_pltseq_enum.
1037 (rs6000_decl_ok_for_sibcall): New function.
1038 (rs6000_function_ok_for_sibcall): Refactor.
1039 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
1040 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
1041 when pcrel. Reorganize.
1042 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
1043 * rs6000.h (rs6000_pltseq_enum): New enum.
1044 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
1045 (*pltseq_tocsave): Use rs6000_pltseq_enum.
1046 (*pltseq_plt16_ha): Likewise.
1047 (*pltseq_plt16_lo): Likewise.
1048 (*pltseq_mtctr): Likewise.
1049 (*pltseq_plt_pcrel): New insn.
1050 (*call_local_aix): Handle @notoc calls.
1051 (*call_value_local_aix): Likewise.
1052 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
1053 (*call_value_nonlocal_aix): Likewise.
1054 (*call_indirect_pcrel): New insn.
1055 (*call_value_indirect_pcrel): Likewise.
1056
1057
1058 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
1059
1060 * config/i386/sse.md (*save_multiple<mode>): Rename from
1061 save_multiple<mode>.
1062 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
1063 (*restore_multiple_and_return<mode>): Rename from
1064 restore_multiple_and_return<mode>.
1065 (*restore_multiple_leave_return<mode>): Rename from
1066 restore_multiple_leave_return<mode>.
1067
1068 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
1069
1070 * config.gcc (rx-*-linux*): New target.
1071 * config/rx/elf.opt: New file.
1072 * config/rx/linux.h: Likewise.
1073 * config/rx/t-linux: Likewise.
1074 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
1075 make it zero.
1076 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
1077 (ASM_APP_OFF): Likewise.
1078 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
1079 moved elsewhere.
1080
1081 2019-05-29 Jan Hubicka <jh@suse.cz>
1082
1083 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
1084 variants are pointer equivalent.
1085
1086 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1087
1088 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
1089 * config/aarch64/aarch64-sve2.md: New file.
1090 (<u>avg<mode>3_floor): New pattern.
1091 (<u>avg<mode>3_ceil): Likewise.
1092 (*<sur>h<addsub><mode>): Likewise.
1093 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
1094 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
1095
1096 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1097
1098 PR bootstrap/90543
1099 * optc-save-gen.awk: In cl_optimization_print, use correct condition
1100 for var_opt_string printing. In cl_optimization_print_diff, print
1101 (null) instead of invoking undefined behavior if one of the
1102 var_opt_string pointers is NULL and use && instead of first || in the
1103 guarding condition. For var_target_other options, handle const char *
1104 target variables similarly to const char * optimize node variables.
1105
1106 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
1107
1108 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
1109 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
1110 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
1111 Add autib1716 and pacib1716 initialisation.
1112 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
1113 for autib1716 and pacib1716.
1114 * config/aarch64/aarch64-protos.h (aarch64_key_type,
1115 aarch64_post_cfi_startproc): Define.
1116 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
1117 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
1118 aarch64_handle_pac_ret_protection): Set default sign key to A.
1119 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
1120 aarch64_expand_prologue): Add check for b-key.
1121 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
1122 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
1123 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
1124 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
1125 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
1126 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
1127 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
1128 * config/aarch64/aarch64.md (do_return): Add check for b-key.
1129 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
1130 pauth_hint_num_a with pauth_hint_num.
1131 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
1132 pauth_hint_num_a with pauth_hint_num.
1133 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
1134 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
1135 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
1136 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
1137 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
1138 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
1139 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
1140 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
1141 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
1142 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
1143 UNSPEC_AUTIA1716 respectively.
1144 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
1145 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
1146 * doc/invoke.texi (-mbranch-protection): Add b-key type.
1147 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
1148 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
1149
1150 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1151
1152 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
1153 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
1154 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
1155 explicit clause on combined parallel into implicit shared clause.
1156 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
1157 and firstprivate if the decl has one too from combined parallel to
1158 the worksharing construct.
1159
1160 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
1161 Michael Meissner <meissner@linux.ibm.com>
1162
1163 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
1164
1165 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
1166
1167 * rtl.h (LABEL_REF_P): New #define.
1168
1169 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
1170
1171 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
1172
1173 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1174
1175 * internal-fn.c: Marked mask_load_direct as vectorizable.
1176 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
1177 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
1178 combined even if masks different with allow_slp_p param.
1179 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
1180 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
1181 dissolve SLP-only vectorizable groups when SLP has been discarded.
1182 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
1183 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
1184 masks.
1185 (vect_build_slp_tree_1): Fixed comment typo.
1186 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
1187 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
1188 loads for SLP only.
1189 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
1190 vectorizable.
1191 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
1192
1193 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1194
1195 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
1196 Remove obsolete use_thunk reference.
1197 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
1198 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1199 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
1200 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
1201 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1202 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1203 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1204 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
1205 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
1206
1207 2019-05-28 Nathan Sidwell <nathan@acm.org>
1208
1209 * tree.h (IDENTIFIER_ANON_P): New.
1210 (anon_aggrname_format, anon_aggname_p): Don't declare.
1211 (make_anon_name): Declare.
1212 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
1213 (hash_tree): Likewise.
1214 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
1215 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
1216 (anon_cnt, make_anon_name): New.
1217
1218 2019-05-28 Martin Liska <mliska@suse.cz>
1219
1220 PR other/90315
1221 * opts-global.c (decode_options): Print help for all
1222 help_option_arguments.
1223 * opts.c (print_help): Add new argument.
1224 (common_handle_option): Remember all values into
1225 help_option_arguments.
1226 * opts.h (print_help): Add new argument.
1227
1228 2019-05-28 Martin Liska <mliska@suse.cz>
1229
1230 PR ipa/90555
1231 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
1232 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
1233 (func_checker::compare_bb): Call compare_loops.
1234
1235 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1236
1237 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
1238 on sections construct.
1239 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
1240 construct.
1241 (lower_omp_sections): Handle lastprivate conditional.
1242 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
1243 lastprivate_conditional_map.
1244 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
1245
1246 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
1247 critical, taskgroup and section regions when looking for a region
1248 with non-NULL lastprivate_conditional_map.
1249
1250 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1251
1252 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
1253 (*ix86_gen_sub3): Ditto.
1254 (*ix86_gen_sub3_carry): Ditto.
1255 (*ix86_gen_one_cmpl2): Ditto.
1256 (*ix86_gen_andsp): Ditto.
1257 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
1258 (gen_and2_insn): New static function.
1259 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
1260 Use gen_add3_insn instead of ix86_gen_add3.
1261 (ix86_expand_split_stack_prologue): Use gen_add2_insn
1262 instead of ix86_gen_add3.
1263 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
1264 Use gen_sub3_insn instead of ix86_gen_sub3.
1265 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
1266 instead of ix86_gen_add3.
1267 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
1268 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
1269 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
1270 * config/i386/i386-options.c (ix86_option_override_internal):
1271 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1272 ix86_gen_one_cmpl2 and ix86_gen_andsp.
1273
1274 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1275
1276 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
1277 and DW_OP_GNU_const_index opcodes.
1278
1279 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1280
1281 * config/i386/i386.h (STACK_SIZE_MODE): Define.
1282
1283 2019-05-27 Richard Biener <rguenther@suse.de>
1284
1285 PR tree-optimization/90637
1286 * tree-ssa-sink.c (statement_sink_location): Honor the
1287 computed sink location for single-uses.
1288
1289 2019-05-27 Richard Biener <rguenther@suse.de>
1290
1291 PR middle-end/90610
1292 * match.pd (vec_perm): Avoid clobbering op0 when not generating
1293 a bit-insert.
1294
1295 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1296
1297 * config/i386/i386.md (@sub<mode>3_carry): Rename
1298 from sub<mode>3_carry.
1299 (@leave_<mode>): New expander.
1300 (*leave): Rename from leave.
1301 (*leave_rex64): Rename from leave_rex64.
1302 (@monitorx_<mode>): Rename from monitorx_<mode>.
1303 (@clzero_<mode>): Rename from clzero_<mode>.
1304 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
1305 from sse3_monitor_<mode>.
1306 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
1307 (*ix86_gen_leave): Ditto.
1308 (*ix86_gen_monitor): Ditto.
1309 (*ix86_gen_monitorx): Ditto.
1310 (*ix86_gen_clzero): Ditto.
1311 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
1312 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
1313 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
1314 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
1315 Use gen_sse3_monitor instead of ix86_gen_monitor.
1316 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
1317 instead of ix86_gen_monitorx.
1318 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
1319 instead of ix86_gen_clzero.
1320 * config/i386/i386-options.c (ix86_option_override_internal):
1321 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
1322 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
1323
1324 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1325
1326 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
1327 Rename from tls_global_dynamic_64_<mode>.
1328 (@tls_local_dynamic_base_64_<mode>): Rename from
1329 tls_local_dynamic_base_64_<mode>.
1330 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
1331 Remove indirect function.
1332 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
1333 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
1334 instead of ix86_gen_tls_global_dynamic_64.
1335 Use gen_tls_local_dynamic_base_64 instead of
1336 ix86_gen_tls_local_dynamic_base_64.
1337 * config/i386/i386-options.c (ix86_option_override_internal):
1338 Do not initialize ix86_gen_tls_global_dynamic_64 and
1339 ix86_gen_tls_local_dynamic_base_64.
1340
1341 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1342
1343 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
1344 Rename from pro_epilogue_adjust_stack_<mode>_add.
1345 (@pro_epilogue_adjust_stack_sub_<mode>)
1346 Rename from pro_epilogue_adjust_stack_<mode>_sub.
1347 (@allocate_stack_worker_probe_<mode>):
1348 Rename from allocate_stack_worker_probe_<mode>.
1349 (allocate_stack): Use gen_allocate_stack_worker_probe.
1350 (probe_stack): Use gen_probe_stack_1.
1351 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
1352 (@adjust_stack_and_probe_<mode>): Rename from
1353 adjust_stack_and_probe<mode>.
1354 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
1355 (stack_protect_set): Use gen_stack_protect_set_1.
1356 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
1357 (stack_protect_test): Use gen_stack_protect_test_1.
1358 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
1359 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
1360 Remove indirect function.
1361 (*ix86_gen_adjust_stack_and_probe): Ditto.
1362 (*ix86_gen_probe_stack_range): Ditto.
1363 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
1364 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
1365 (ix86_adjust_stack_and_probe_stack_clash): Use
1366 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
1367 (ix86_adjust_stack_and_probe): Ditto.
1368 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
1369 of ix86_gen_probe_stack_range.
1370 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
1371 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
1372 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
1373 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
1374 CODE_FOR_stack_protect_test_{si,di}.
1375 * config/i386/i386-options.c (ix86_option_override_internal):
1376 Do not initialize ix86_gen_allocate_stack_worker,
1377 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1378
1379 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
1380
1381 * doc/invoke.texi (Link Options): Many editorial changes around
1382 -flinker-output.
1383
1384 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1385
1386 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
1387 pre-Solaris 11 referene and most Studio compiler details.
1388
1389 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
1390
1391 PR target/90530
1392 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
1393 DImode to SImode in floating-point registers on 64-bit target.
1394 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
1395 register_operand in xmpyu patterns.
1396
1397 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1398
1399 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
1400 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
1401 OMP_CLAUSE__REDUCTEMP_.
1402 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1403 OMP_CLAUSE__CONDTEMP_.
1404 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
1405 * tree-pretty-print.c (dump_omp_clause): Likewise.
1406 * tree-nested.c (convert_nonlocal_omp_clauses,
1407 convert_local_omp_clauses): Likewise.
1408 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
1409 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
1410 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
1411 on OMP_FOR.
1412 (gimplify_omp_for): Warn and disable conditional modifier from
1413 lastprivate on loop iterators.
1414 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
1415 member.
1416 * omp-general.c (omp_extract_for_data): Initialize it.
1417 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
1418 member.
1419 (delete_omp_context): Delete it.
1420 (lower_lastprivate_conditional_clauses): New function.
1421 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
1422 handle lastprivate conditional clauses.
1423 (lower_reduction_clauses): Add CLIST argument, emit it into
1424 the critical section if any.
1425 (lower_omp_sections): Adjust lower_lastprivate_clauses and
1426 lower_reduction_clauses callers.
1427 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
1428 to lower_lastprivate_clauses.
1429 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
1430 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
1431 clist into a critical section if not emitted there already by
1432 lower_reduction_clauses.
1433 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
1434 callers.
1435 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
1436 conditional variables.
1437 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
1438 clause is present.
1439 (expand_omp_for_generic, expand_omp_for_static_nochunk,
1440 expand_omp_for_static_chunk): Handle lastprivate conditional.
1441 (expand_omp_for): Handle fd.lastprivate_conditional like
1442 fd.have_reductemp.
1443
1444 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1445
1446 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
1447 kernel does not exit cleanly.
1448 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
1449
1450 2019-05-24 Jason Merrill <jason@redhat.com>
1451
1452 Revert:
1453 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1454
1455 2019-05-24 Richard Biener <rguenther@suse.de>
1456
1457 PR testsuite/90607
1458 * tree-loop-distribution.c (struct partition): Add location
1459 member.
1460 (partition_alloc): Initialize all fields.
1461 (generate_memset_builtin): Use the location recorded in the
1462 partition for the generated call.
1463 (generate_memcpy_builtin): Likewise.
1464 (classify_partition): Record the location of a single store
1465 as location for the partition.
1466
1467 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1468
1469 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
1470 for lo-part.
1471
1472 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
1473
1474 PR target/90588
1475 * common/config/aarch64/aarch64-common.c
1476 (aarch64_rewrite_selected_cpu): Change local temporary variable
1477 type from unsigned long to uint64_t.
1478 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
1479 aarch64_get_extension_string_for_isa_flags): Change declaration to
1480 match new definition by replacing unsigned long with uint64_t.
1481
1482 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1483
1484 PR target/90568
1485 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
1486 gen_attr_type just once instead of 4-7 times. Formatting fixes.
1487 Handle stack_protect_test_<mode> codegen similarly to corresponding
1488 sub instruction.
1489
1490 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
1491
1492 * config/i386/darwin.h: Reject -mfentry*.
1493 * doc/sourcebuild.texi: Document mfentry target support.
1494
1495 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1496
1497 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
1498 Rename to rs6000_global_entry_point_prologue_needed_p. Return
1499 false for PC-relative functions.
1500 (rs6000_output_function_prologue): Change called function name to
1501 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
1502 name,1" for PC-relative functions.
1503 (rs6000_elf_declare_function_name): Change called function name to
1504 rs6000_global_entry_point_prologue_needed_p.
1505
1506 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
1507
1508 PR target/90552
1509 * config/i386/i386.c (gen_rtx_cost):
1510 Use ix86_tune_cost instead of ix86_cost.
1511
1512 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1513 Michael Meissner <meissner@linux.ibm.com>
1514 Segher Boessenkool <segher@kernel.crashing.org>
1515
1516 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
1517 OPTION_MASK_PCREL.
1518 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
1519 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
1520 (rs6000_fndecl_pcrel_p): Likewise.
1521 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
1522 error if -mpcrel is requested without -mcpu=future.
1523 (rs6000_opt_masks): Add entry for pcrel.
1524 (rs6000_fndecl_pcrel_p): New function.
1525 (rs6000_pcrel_p): Likewise.
1526 * config/rs6000/rs6000.opt (mpcrel): New option.
1527 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
1528
1529 2019-05-23 Jan Hubicka <jh@suse.cz>
1530 Martin Liska <mliska@suse.cz>
1531
1532 PR tree-optimization/90576
1533 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
1534 poly_int_tree_p.
1535 (aliasing_component_refs_p): Fix three way size compare conditional;
1536 give up earlier in case we can not decide on equivalence.
1537
1538 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1539 Michael Meissner <meissner@linux.ibm.com>
1540 Segher Boessenkool <segher@kernel.crashing.org>
1541
1542 * config.gcc: Add future cpu.
1543 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
1544 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
1545 #define.
1546 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
1547 (RS6000_CPU): New instantiation for future cpu.
1548 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1549 PROCESSOR_FUTURE.
1550 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
1551 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
1552 * config/rs6000/rs6000-tables.opt: Regenerate.
1553 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
1554 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
1555 (rs6000_machine_from_flags): Handle future cpu.
1556 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
1557 PROCESSOR_POWER9 for now.
1558 (rs6000_adjust_cost): Likewise.
1559 (rs6000_issue_rate): Likewise.
1560 (rs6000_register_move_cost): Likewise.
1561 (rs6000_opt_masks): Add entry for future.
1562 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
1563 (MASK_FUTURE): New #define.
1564 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
1565 * config/rs6000/rs6000.opt (mfuture): New target option.
1566 * doc/invoke.texi (mcpu): Add future cpu.
1567
1568 2019-05-23 Martin Liska <mliska@suse.cz>
1569
1570 PR c++/90587
1571 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
1572 operation points to a temporary (pointed via tree_to_wide_ref)
1573 that is out of scope after the &.
1574
1575 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1576
1577 PR c++/90592
1578 * doc/extend.texi (Function Names): Add missing word.
1579
1580 2019-05-23 Richard Biener <rguenther@suse.de>
1581
1582 PR tree-optimization/88440
1583 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
1584 at -O[2s]+.
1585 * tree-loop-distribution.c (generate_memset_builtin): Fold the
1586 generated call.
1587 (generate_memcpy_builtin): Likewise.
1588 (distribute_loop): Pass in whether to only distribute patterns.
1589 (prepare_perfect_loop_nest): Also allow size optimization.
1590 (pass_loop_distribution::execute): When optimizing a loop
1591 nest for size allow pattern replacement.
1592
1593 2019-05-23 Jakub Jelinek <jakub@redhat.com>
1594
1595 PR target/90568
1596 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
1597 of xor.
1598
1599 2019-05-23 Martin Liska <mliska@suse.cz>
1600
1601 PR sanitizer/90570
1602 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
1603 expression similarly to gimplify_decl_expr.
1604
1605 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1606
1607 * cse.c (cse_dump_path): s/dump_file/f.
1608
1609 2019-05-22 David Malcolm <dmalcolm@redhat.com>
1610
1611 PR c++/90462
1612 * diagnostic-format-json.cc: Include "selftest.h".
1613 (json_from_expanded_location): Only add "file" key for non-NULL
1614 file strings.
1615 (json_from_location_range): Don't add "start" and "finish"
1616 children if they are UNKNOWN_LOCATION.
1617 (selftest::test_unknown_location): New selftest.
1618 (selftest::test_bad_endpoints): New selftest.
1619 (selftest::diagnostic_format_json_cc_tests): New function.
1620 * json.cc (json::object::get): New function.
1621 (selftest::test_object_get): New selftest.
1622 (selftest::json_cc_tests): Call it.
1623 * json.h (json::object::get): New decl.
1624 * selftest-run-tests.c (selftest::run_tests): Call
1625 selftest::diagnostic_format_json_cc_tests.
1626 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
1627 decl.
1628
1629 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1630 Andrew Stubbs <amd@codesourcery.com>
1631
1632 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
1633 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
1634 (kernel): Rename to...
1635 (main_kernel): ... this.
1636 (load_image): Load _init_array and _fini_array kernels.
1637 (run): Add argument for kernel to run.
1638 (main): Run init_array_kernel before main_kernel, and
1639 fini_array_kernel after.
1640 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
1641 amdgpu_hsa_kernel attribute on functions.
1642 (gcn_disable_constructors): Delete.
1643 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
1644 * config/gcn/crt0.c (size_t): Define.
1645 (_init_array, _fini_array): New.
1646 (__preinit_array_start, __preinit_array_end,
1647 __init_array_start, __init_array_end,
1648 __fini_array_start, __fini_array_end): Declare weak references.
1649
1650 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
1651
1652 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
1653
1654 2019-05-22 Jason Merrill <jason@redhat.com>
1655
1656 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1657
1658 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
1659
1660 PR target/88483
1661 * config/i386/i386-options.c (ix86_init_machine_status): Set
1662 stack_frame_required to true.
1663 * config/i386/i386.c (ix86_get_frame_size): New function.
1664 (ix86_frame_pointer_required): Replace get_frame_size with
1665 ix86_get_frame_size.
1666 (ix86_compute_frame_layout): Likewise.
1667 (ix86_find_max_used_stack_alignment): Changed to void. Set
1668 stack_frame_required.
1669 (ix86_finalize_stack_frame_flags): Always call
1670 ix86_find_max_used_stack_alignment. Replace get_frame_size with
1671 ix86_get_frame_size.
1672 * config/i386/i386.h (machine_function): Add stack_frame_required.
1673
1674 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
1675
1676 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
1677
1678 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
1679
1680 * common/config/aarch64/aarch64-common.c
1681 (struct aarch64_option_extension, struct processor_name_to_arch,
1682 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
1683 aarch64_contains_opt,
1684 aarch64_get_extension_string_for_isa_flags): Change type of
1685 variables storing flags to uint64_t.
1686 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
1687 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
1688 * config/aarch64/aarch64.c (struct processor,
1689 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
1690 aarch64_validate_march, aarch64_override_options,
1691 aarch64_option_print, aarch64_handle_attr_isa_flags,
1692 aarch64_declare_function_name, aarch64_start_file): Make flag
1693 variables uint64_t.
1694 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
1695 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
1696 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
1697 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
1698 * config/aarch64/driver-aarch64.c
1699 (struct aarch64_arch_extension, struct aarch64_core_data,
1700 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
1701 flag variables uint64_t.
1702 * doc/invoke.texi: Add documentation for new arguments.
1703
1704 2019-05-22 Richard Biener <rguenther@suse.de>
1705
1706 * alias.c (ao_ref_from_mem): Move stack-slot sharing
1707 rewrite ...
1708 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
1709
1710 2019-05-22 Martin Liska <mliska@suse.cz>
1711
1712 PR lto/90500
1713 * doc/extend.texi: Document the change.
1714
1715 2019-05-22 Richard Biener <rguenther@suse.de>
1716
1717 PR tree-optimization/90450
1718 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1719 (mem_ref_hasher::equal): Check it.
1720 (mem_ref_alloc): Initialize it.
1721 (gather_mem_refs_stmt): Set it.
1722
1723 2019-05-22 Richard Biener <rguenther@suse.de>
1724
1725 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1726 Add ABS_EXPR.
1727 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1728 as ABSU_EXPR.
1729
1730 2019-05-22 Alan Modra <amodra@gmail.com>
1731
1732 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1733 (ASM_CPU_SPEC): Conditionally add -many.
1734 * config/rs6000/rs6000.c (rs6000_machine): New static var.
1735 (rs6000_machine_from_flags, emit_asm_machine): New functions..
1736 (rs6000_file_start): ..extracted from here, and modified to
1737 test all ISA bits.
1738 (rs6000_output_function_prologue): Emit .machine as necessary.
1739 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1740 power mnemonics.
1741 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1742 added by check_vect_support_and_set_flags.
1743 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1744 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1745
1746 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
1747
1748 PR middle-end/90553
1749 * ira-lives.c (process_bb_node_lives): Consider defs
1750 for a call insn to be die before the call, not after.
1751
1752 * function.c (assign_parm_setup_block): Raise alignment of
1753 stacked parameter only for STRICT_ALIGNMENT targets.
1754
1755 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1756
1757 * config/rs6000/constraints.md (define_register_constraint "wz"):
1758 Delete.
1759 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1760 RS6000_CONSTRAINT_wz.
1761 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1762 (rs6000_init_hard_regno_mode_ok): Adjust.
1763 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1764 * doc/md.texi (Machine Constraints): Adjust.
1765
1766 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1767
1768 * config/rs6000/constraints.md (define_register_constraint "wl"):
1769 Delete.
1770 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1771 RS6000_CONSTRAINT_wl.
1772 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1773 (rs6000_init_hard_regno_mode_ok): Adjust.
1774 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1775 * doc/md.texi (Machine Constraints): Adjust.
1776
1777 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1778
1779 * config/rs6000/constraints.md (define_register_constraint "wm"):
1780 Delete.
1781 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1782 RS6000_CONSTRAINT_wm.
1783 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1784 (rs6000_init_hard_regno_mode_ok): Adjust.
1785 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1786 * doc/md.texi (Machine Constraints): Adjust.
1787
1788 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1789
1790 * config/rs6000/constraints.md (define_register_constraint "wk"):
1791 Delete.
1792 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1793 RS6000_CONSTRAINT_wk.
1794 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1795 (rs6000_init_hard_regno_mode_ok): Adjust.
1796 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1797 * doc/md.texi (Machine Constraints): Adjust.
1798
1799 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1800
1801 * config/rs6000/constraints.md (define_register_constraint "wj"):
1802 Delete.
1803 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1804 RS6000_CONSTRAINT_wj.
1805 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1806 (rs6000_init_hard_regno_mode_ok): Adjust.
1807 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1808 (VS_64dm): Delete.
1809 * config/rs6000/vsx.md: Ditto.
1810 * doc/md.texi (Machine Constraints): Adjust.
1811
1812 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1813
1814 * config/rs6000/constraints.md (define_register_constraint "wh"):
1815 Delete.
1816 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1817 RS6000_CONSTRAINT_wh.
1818 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1819 (rs6000_init_hard_regno_mode_ok): Adjust.
1820 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1821 * doc/md.texi (Machine Constraints): Adjust.
1822
1823 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1824
1825 PR target/90547
1826 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1827 Avoid calling gen_lowpart with CONST operand.
1828
1829 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
1830
1831 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1832 field template_last_to_copy.
1833 (ssa_create_duplicates): Set it, and use it. Attempt to
1834 preserve more debug stmts.
1835
1836 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1837
1838 * config/i386/sse.md (VF1_AVX2): New mode iterator.
1839 (signbit<mode>2): New expander
1840
1841 2019-05-21 James Clarke <jrtc27@jrtc27.com>
1842
1843 PR bootstrap/87338
1844 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1845 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1846
1847 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1848
1849 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1850 %ebx and %ecx bafore calling cpuid with leaf 1 or
1851 non-constant leaf argument.
1852
1853 2019-05-21 Alan Modra <amodra@gmail.com>
1854
1855 PR target/90545
1856 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1857 power9 direct move cost.
1858 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1859 Correct comments and rename functions to suit parameters.
1860
1861 2019-05-21 Richard Biener <rguenther@suse.de>
1862
1863 PR middle-end/90510
1864 * fold-const.c (fold_read_from_vector): New function.
1865 * fold-const.h (fold_read_from_vector): Declare.
1866 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1867 single-element insert permutations. Canonicalize selector
1868 further and fix issue with last commit.
1869
1870 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1871
1872 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1873 parameter with default value false to declaration.
1874 (split_edges_for_insertion): New inline function. Wrapper for
1875 split_critical_edges with for_edge_insertion_p = true.
1876 * tree-cfg.c (split_critical_edges): Don't split non-critical
1877 edges if for_edge_insertion_p is false. Fix whitespace.
1878 * tree-ssa-pre.c (pass_pre::execute): Call
1879 split_edges_for_insertion instead of split_critical_edges.
1880 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1881 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1882 (pass_data_sink_code): Update function name in the comment.
1883
1884 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1885
1886 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1887 around is_value_included_in that knows how to handle BIT_AND_EXPR.
1888 (is_pred_expr_subset_of): Use the new function. Handle more cases where
1889 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1890 positives.
1891
1892 2019-05-21 Martin Liska <mliska@suse.cz>
1893
1894 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1895 an extra newline.
1896 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1897 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1898 vec_lvsr.
1899 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1900 Quote a C type.
1901 (rs6000_function_arg): Likewise.
1902 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1903 (rs6000_expand_ternop_builtin): Use interval syntax.
1904 (get_element_number): Likewise.
1905 (altivec_expand_builtin): Likewise.
1906 (rs6000_get_function_versions_dispatcher): Quote target_clones.
1907
1908 Fix test-suite.
1909
1910 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1911
1912 PR c++/59813
1913 PR target/90418
1914 * function.h (struct function): Add calls_eh_return member.
1915 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1916 gimplifying __builtin_eh_return call.
1917 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1918 to cfun.
1919 (expand_call_inline): Or in src_cfun->calls_eh_return into
1920 dst_cfun->calls_eh_return.
1921 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1922 cfun->calls_eh_return.
1923 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1924 * lto-streamer-out.c (output_struct_function_base): Write
1925 calls_eh_return.
1926
1927 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
1928
1929 PR rtl-optimization/43147
1930 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1931 IX86_BUILTIN_SHUFPD.
1932
1933 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1934
1935 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1936 (refs_may_alias_p_1): ... here; update stats.
1937 (refs_may_alias_p): Do not update stats here.
1938
1939 2019-05-20 Richard Biener <rguenther@suse.de>
1940
1941 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1942 doesn't produce pointers.
1943 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1944 the first operand points to.
1945
1946 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1947
1948 * tree-ssa-alias.c (compare_sizes): New function.
1949 (sompare_type_sizes): New function
1950 (aliasing_component_refs_p): Use it.
1951 (indirect_ref_may_alias_decl_p): Likewise.
1952
1953 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1954
1955 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
1956
1957 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1958
1959 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
1960 (LIBLSAN_EARLY_SPEC): Likewise.
1961 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
1962
1963 2019-05-20 Martin Liska <mliska@suse.cz>
1964
1965 * config/i386/i386.c (ix86_libc_has_fast_function):
1966 Add ATTRIBUTE_UNUSED for the argument.
1967
1968 2019-05-20 Richard Biener <rguenther@suse.de>
1969
1970 * gimple-match-head.c: Include vec-perm-indices.h.
1971 * generic-match-head.c: Likewise.
1972 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
1973 is included.
1974 * fold-const.c (fold_vec_perm): Export.
1975 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
1976 (match.pd): ...here.
1977
1978 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1979
1980 * cfgloop.h (struct loop): Add simdlen member.
1981 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
1982 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
1983 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
1984 as new argument to autovectorize_vector_sizes target hook. If
1985 loop->simdlen, pick up vector size where the vectorization factor
1986 is equal to loop->simd, and if there is none, fall back to the first
1987 successful one.
1988 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
1989 caller.
1990 * omp-low.c (omp_clause_aligned_alignment): Likewise.
1991 * omp-general.c (omp_max_vf): Likewise.
1992 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
1993 * tree-vect-slp.c (vect_slp_bb): Likewise.
1994 * target.def (autovectorize_vector_sizes): Add ALL argument and
1995 document it.
1996 * doc/tm.texi: Adjust documentation.
1997 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1998 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1999 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
2000 bool argument.
2001 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
2002 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
2003 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
2004 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
2005 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
2006 preferred vector size is not 512-bit or 256-bit, just put those
2007 unpreferred ones last.
2008
2009 2019-05-20 Martin Liska <mliska@suse.cz>
2010
2011 * targhooks.c (default_libc_has_fast_function): New function.
2012 * targhooks.h (default_libc_has_fast_function): Likewise.
2013
2014 2019-05-20 Martin Liska <mliska@suse.cz>
2015
2016 PR middle-end/90263
2017 * builtins.c (expand_builtin_memory_copy_args): When having a
2018 target with fast mempcpy implementation do now use memcpy.
2019 * config/i386/i386.c (ix86_libc_has_fast_function): New.
2020 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
2021 * doc/tm.texi: Likewise.
2022 * doc/tm.texi.in: Likewise.
2023 * target.def:
2024 * expr.c (emit_block_move_hints): Add 2 new arguments.
2025 * expr.h (emit_block_move_hints): Bail out when libcall
2026 to memcpy would be used.
2027
2028 2019-05-20 Martin Liska <mliska@suse.cz>
2029
2030 * profile-count.c: Add vertical spacing in order
2031 to separate functions.
2032 * profile-count.h: Likewise.
2033
2034 2019-05-20 Martin Liska <mliska@suse.cz>
2035
2036 * profile-count.h: Do not use full qualified
2037 names if possible.
2038 * profile-count.c (profile_count::to_frequency): Likewise.
2039
2040 2019-05-20 Martin Liska <mliska@suse.cz>
2041
2042 * profile-count.h (enum profile_quality): Use capital letters
2043 for enum value names. Use the adjusted names.
2044 * profile-count.c: Use the adjusted names.
2045
2046 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2047
2048 * config/rs6000/constraints.md (define_register_constraint "wH"):
2049 Delete.
2050 (define_register_constraint "wI"): Delete.
2051 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2052 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
2053 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2054 (rs6000_init_hard_regno_mode_ok): Adjust.
2055 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
2056 resp. "d", or with "wa" as appropriate, all with "p8v".
2057 * config/rs6000/vsx.md: Ditto.
2058 * doc/md.texi (Machine Constraints): Adjust.
2059
2060 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2061
2062 * config/rs6000/constraints.md (define_register_constraint "wy"):
2063 Delete.
2064 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2065 RS6000_CONSTRAINT_wy.
2066 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2067 (rs6000_init_hard_regno_mode_ok): Adjust.
2068 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
2069 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
2070 (define_mode_attr Fisa): New.
2071 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
2072 * doc/md.texi (Machine Constraints): Adjust.
2073
2074 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2075
2076 * config/rs6000/constraints.md (define_register_constraint "wu"):
2077 Delete.
2078 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2079 RS6000_CONSTRAINT_wu.
2080 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2081 (rs6000_init_hard_regno_mode_ok): Adjust.
2082 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
2083 both with "p8v".
2084 (define_mode_attr Fa): Delete.
2085 * config/rs6000/vsx.md: Ditto.
2086 * doc/md.texi (Machine Constraints): Adjust.
2087
2088 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2089
2090 * config/rs6000/constraints.md (define_register_constraint "wJ"):
2091 Delete.
2092 (define_register_constraint "wK"): Delete.
2093 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2094 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
2095 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2096 (rs6000_init_hard_regno_mode_ok): Adjust.
2097 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
2098 Replace "wK" constraint by "wH" with "p9v".
2099 * config/rs6000/vsx.md: Ditto.
2100 * doc/md.texi (Machine Constraints): Adjust.
2101
2102 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2103
2104 * config/rs6000/constraints.md (define_register_constraint "wb"):
2105 Delete.
2106 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2107 RS6000_CONSTRAINT_wb.
2108 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2109 (rs6000_init_hard_regno_mode_ok): Adjust.
2110 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
2111 * config/rs6000/vsx.md: Ditto.
2112 * doc/md.texi (Machine Constraints): Adjust.
2113
2114 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2115
2116 * config/rs6000/constraints.md (define_register_constraint "wo"):
2117 Delete.
2118 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2119 RS6000_CONSTRAINT_wo.
2120 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2121 (rs6000_init_hard_regno_mode_ok): Adjust.
2122 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
2123 * config/rs6000/altivec.md: Ditto.
2124 * doc/md.texi (Machine Constraints): Adjust.
2125
2126 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
2127
2128 * config/darwin-c.c (darwin_register_objc_includes): Do not
2129 prepend the sysroot when building gnu-runtime header search
2130 paths.
2131
2132 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
2133
2134 * config/darwin.c (darwin_file_end): Use switch_to_section ()
2135 instead of direct output of the asm.
2136
2137 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
2138
2139 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
2140 argument to be type bool (was int before).
2141 (rs6000_emit_epilogue): Simplify some code. Declare some variables
2142 at first use. Use type bool for some variables. Fix a theoretical
2143 eh_return bug for svr4.
2144
2145 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
2146
2147 * config/rs6000/rs6000.md (isa): New attribute.
2148 (enabled): New attribute.
2149
2150 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
2151
2152 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
2153 assemble_start_function and assemble_end_function.
2154
2155 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2156
2157 PR middle-end/89433
2158 * omp-general.c (oacc_verify_routine_clauses): Change formal
2159 parameters. Add checking if already marked with an OpenACC
2160 'routine' directive. Adjust all users.
2161
2162 PR middle-end/89433
2163 * omp-general.c (oacc_build_routine_dims): Move some of its
2164 processing into...
2165 (oacc_verify_routine_clauses): ... this new function.
2166 * omp-general.h (oacc_verify_routine_clauses): New prototype.
2167
2168 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
2169
2170 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
2171 formating of picbase labels to match other ports.
2172
2173 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
2174
2175 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
2176 in the generated code.
2177
2178 2019-05-16 Martin Sebor <msebor@redhat.com>
2179
2180 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
2181 identifiers, keywords, operators, and types in diagnostics. Correct
2182 quoting, spelling, and sentence capitalization issues.
2183 (expand_builtin_atomic_is_lock_free): Same.
2184 (fold_builtin_next_arg): Same.
2185 * cfgexpand.c (expand_one_var): Same.
2186 (tree_conflicts_with_clobbers_p): Same.
2187 (expand_asm_stmt): Same.
2188 (verify_loop_structure): Same.
2189 * cgraphunit.c (process_function_and_variable_attributes): Same.
2190 * collect-utils.c (collect_execute): Same.
2191 * collect2.c (maybe_run_lto_and_relink): Same.
2192 (is_lto_object_file): Same.
2193 (scan_prog_file): Same.
2194 * convert.c (convert_to_real_1): Same.
2195 * dwarf2out.c (dwarf2out_begin_prologue): Same.
2196 * except.c (verify_eh_tree): Same.
2197 * gcc.c (execute): Same.
2198 (eval_spec_function): Same.
2199 (run_attempt): Same.
2200 (driver::set_up_specs): Same.
2201 (compare_debug_auxbase_opt_spec_function): Same.
2202 * gcov-tool.c (unlink_gcda_file): Same.
2203 (do_merge): Same.
2204 (do_rewrite): Same.
2205 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
2206 * gimplify.c (gimplify_asm_expr): Same.
2207 (gimplify_adjust_omp_clauses): Same.
2208 * hsa-gen.c (gen_hsa_addr_insns): Same.
2209 (gen_hsa_insns_for_load): Same.
2210 (gen_hsa_cmp_insn_from_gimple): Same.
2211 (gen_hsa_insns_for_operation_assignment): Same.
2212 (gen_get_level): Same.
2213 (gen_hsa_alloca): Same.
2214 (omp_simple_builtin::generate): Same.
2215 (gen_hsa_atomic_for_builtin): Same.
2216 (gen_hsa_insns_for_call): Same.
2217 * input.c (dump_location_info): Same.
2218 * ipa-devirt.c (compare_virtual_tables): Same.
2219 * ira.c (ira_setup_eliminable_regset): Same.
2220 * lra-assigns.c (lra_assign): Same.
2221 * lra-constraints.c (lra_constraints): Same.
2222 * lto-streamer-in.c (lto_input_mode_table): Same.
2223 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
2224 (merge_and_complain): Same.
2225 (compile_offload_image): Same.
2226 (compile_images_for_offload_targets): Same.
2227 (debug_objcopy): Same.
2228 (run_gcc): Same.
2229 (main): Same.
2230 * opts.c (print_specific_help): Same.
2231 (parse_no_sanitize_attribute): Same.
2232 (print_help): Same.
2233 (handle_param): Same.
2234 * plugin.c (add_new_plugin): Same.
2235 (parse_plugin_arg_opt): Same.
2236 (try_init_one_plugin): Same.
2237 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
2238 operators, and types in diagnostics. Correct quoting and spelling
2239 issues.
2240 * read-rtl-function.c (parse_edge_flag_token): Same.
2241 (function_reader::parse_enum_value): Same.
2242 * reg-stack.c (check_asm_stack_operands): Same.
2243 * regcprop.c (validate_value_data): Same.
2244 * sched-rgn.c (make_pass_sched_fusion): Same.
2245 * stmt.c (check_unique_operand_names): Same.
2246 * targhooks.c (default_target_option_pragma_parse): Same.
2247 * tlink.c (recompile_files): Same.
2248 * toplev.c (process_options): Same.
2249 (do_compile): Same.
2250 * trans-mem.c (diagnose_tm_1): Same.
2251 (ipa_tm_scan_irr_block): Same.
2252 (ipa_tm_diagnose_transaction): Same.
2253 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
2254 format a tree code name in a diagnostic.
2255 (verify_types_in_gimple_min_lval): Same.
2256 (verify_types_in_gimple_reference): Same.
2257 (verify_gimple_call): Same.
2258 (verify_gimple_assign_unary): Same.
2259 (verify_gimple_assign_binary): Same.
2260 (verify_gimple_assign_ternary): Same.
2261 (verify_gimple_assign_single): Same.
2262 (verify_gimple_switch): Same.
2263 (verify_gimple_label): Same.
2264 (verify_gimple_phi): Same.
2265 (verify_gimple_in_seq): Same.
2266 (verify_eh_throw_stmt_node): Same.
2267 (collect_subblocks): Same.
2268 (gimple_verify_flow_info): Same.
2269 (do_warn_unused_result): Same.
2270 * tree-inline.c (expand_call_inline): Same.
2271 * tree-into-ssa.c (update_ssa): Same.
2272 * tree.c (tree_int_cst_elt_check_failed): Same.
2273 (tree_vec_elt_check_failed): Same.
2274 (omp_clause_operand_check_failed): Same.
2275 (verify_type_variant): Same.
2276 (verify_type): Same.
2277 * value-prof.c (verify_histograms): Same.
2278 * varasm.c (assemble_start_function): Same.
2279
2280 2019-05-16 Martin Sebor <msebor@redhat.com>
2281
2282 * config/i386/i386-expand.c (get_element_number): Quote keywords
2283 and other internal names in diagnostics. Adjust other diagnostic
2284 formatting issues noted by -Wformat-diag.
2285 * config/i386/i386-features.c
2286 (ix86_mangle_function_version_assembler_name): Same.
2287 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
2288 * config/i386/i386.c (ix86_function_type_abi): Same.
2289 (ix86_function_ms_hook_prologue): Same.
2290 (classify_argument): Same.
2291 (ix86_expand_prologue): Same.
2292 (ix86_md_asm_adjust): Same.
2293 (ix86_memmodel_check): Same.
2294
2295 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2296
2297 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
2298 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
2299 and fpxx modes.
2300
2301 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
2302
2303 PR target/90497
2304 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
2305 intrinsics without SSE/SSE2/SSSE3.
2306 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
2307 check.
2308 (*mmx_uavgv8qi3): Likewise.
2309
2310 2019-05-17 Richard Biener <rguenther@suse.de>
2311
2312 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
2313 VEC_PERM_EXPR as __VEC_PERM with -gimple.
2314
2315 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
2316
2317 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
2318 vec_sldw insn pattern.
2319
2320 2019-05-17 Richard Biener <rguenther@suse.de>
2321
2322 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
2323
2324 2019-05-17 Martin Liska <mliska@suse.cz>
2325
2326 PR driver/90496
2327 * toplev.c (output_stack_usage): With LTO and sanitizer it
2328 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
2329 has no file location.
2330
2331 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2332
2333 PR c++/90484
2334 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
2335 sz0 is equal to sz1, instead return false in that case.
2336
2337 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
2338 has non-constant expression, force sctx.lane and use two
2339 argument IFN_GOMP_SIMD_LANE instead of single argument.
2340 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
2341 two argument IFN_GOMP_SIMD_LANE without lhs.
2342 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
2343 member.
2344 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
2345 Define.
2346 (LOOP_REQUIRES_VERSIONING): Or in
2347 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
2348 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2349 simd_if_cond.
2350 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
2351 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
2352 from simd if clause if needed.
2353
2354 2019-05-16 Richard Biener <rguenther@suse.de>
2355
2356 * tree-affine.c (expr_to_aff_combination): New function split
2357 out from...
2358 (tree_to_aff_combination): ... here.
2359 (aff_combination_expand): Avoid building a GENERIC tree.
2360
2361 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
2362
2363 * cgraphunit.c (cgraph_node::expand_thunk): Remove
2364 assemble_start_function and assemble_end_function calls.
2365 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2366 assemble_start_function and assemble_end_function.
2367 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
2368 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
2369 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
2370 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
2371 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
2372 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
2373 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
2374 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
2375 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
2376 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2377 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2378 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
2379 Likewise.
2380 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2381 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
2382 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
2383 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
2384 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
2385 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
2386 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
2387 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
2388 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2389 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2390 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2391 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2392 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
2393 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
2394 Likewise.
2395 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
2396 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
2397 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
2398
2399 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
2400
2401 * tree-ssa-alias.c (alias_stats): Add
2402 aliasing_component_refs_p_may_alias and
2403 aliasing_component_refs_p_no_alias.
2404 (dump_alias_stats): Print aliasing_component_refs_p stats.
2405 (aliasing_component_refs_p): Update stats.
2406
2407 2019-05-16 Martin Liska <mliska@suse.cz>
2408
2409 PR lto/90500
2410 * multiple_target.c (expand_target_clones): Do not allow
2411 target_clones being used with a symbol that is an alias.
2412
2413 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
2414
2415 PR tree-optimization/90394
2416 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
2417 positives rather than ICE for cases where (code2 == NE_EXPR
2418 && code1 == BIT_AND_EXPR).
2419
2420 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2421
2422 PR fortran/90329
2423 * tree-core.h (struct tree_decl_common): Document
2424 decl_nonshareable_flag for PARM_DECLs.
2425 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
2426 * calls.c (expand_call): Don't try tail call if caller
2427 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
2428 passed on the stack and callee needs to pass any arguments on the
2429 stack.
2430 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2431 else if instead of series of mutually exclusive ifs. Handle
2432 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
2433 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2434
2435 * lto-streamer.h (LTO_major_version): Bump to 9.
2436
2437 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
2438
2439 PR tree-optimization/90106
2440 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
2441 new parameter as new internal function call, also move it to new
2442 basic block.
2443 (use_internal_fn): Pass internal function call to
2444 shrink_wrap_one_built_in_call_with_conds.
2445
2446 2019-05-15 Jakub Jelinek <jakub@redhat.com>
2447
2448 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
2449 max_vf to 1.
2450 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
2451 safelen_int and set loop->dont_vectorize.
2452
2453 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2454
2455 PR target/89021
2456 * config/i386/i386-builtin.def: Enable MMX intrinsics with
2457 SSE/SSE2/SSSE3.
2458 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
2459 Likewise.
2460 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
2461 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
2462 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
2463 is defined.
2464
2465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2466
2467 PR target/89021
2468 * config/i386/mmx.md (*vec_dupv2sf): Changed to
2469 define_insn_and_split to support SSE emulation.
2470 (*vec_extractv2sf_0): Likewise.
2471 (*vec_extractv2sf_1): Likewise.
2472 (*vec_extractv2si_0): Likewise.
2473 (*vec_extractv2si_1): Likewise.
2474 (*vec_extractv2si_zext_mem): Likewise.
2475 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
2476 (vec_extractv2sf_1 splitter): Likewise.
2477 (vec_extractv2sfsf): Likewise.
2478 (vec_setv2si): Likewise.
2479 (vec_extractv2si_1 splitter): Likewise.
2480 (vec_extractv2sisi): Likewise.
2481 (vec_setv4hi): Likewise.
2482 (vec_extractv4hihi): Likewise.
2483 (vec_setv8qi): Likewise.
2484 (vec_extractv8qiqi): Likewise.
2485 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2486 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
2487 (vec_extractv2sisi): Likewise.
2488 (vec_extractv4hihi): Likewise.
2489 (vec_extractv8qiqi): Likewise.
2490 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2491 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
2492 (vec_initv2sisi): Likewise.
2493 (vec_initv4hihi): Likewise.
2494 (vec_initv8qiqi): Likewise.
2495 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
2496 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
2497 (vec_setv4hi): Likewise.
2498 (vec_setv8qi): Likewise.
2499
2500 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2501
2502 PR target/89021
2503 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
2504 TARGET_MMX_WITH_SSE.
2505 (MMXMODE:*mov<mode>_internal): Likewise.
2506 (MMXMODE:movmisalign<mode>): Likewise.
2507
2508 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
2509
2510 PR target/89021
2511 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
2512 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
2513 (sse2_cvtpd2pi): Ditto.
2514 (sse2_cvttpd2pi): Ditto.
2515 (*vec_concatv2sf_sse4_1): Ditto.
2516 (*vec_concatv2sf_sse): Ditto.
2517 (*vec_concatv2si_sse4_1): Ditto.
2518 (*vec_concatv2si): Ditto.
2519 (*vec_concatv4si_0): Ditto.
2520 (*vec_concatv2di_0): Ditto.
2521
2522 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2523
2524 PR target/89021
2525 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
2526
2527 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2528
2529 PR target/89021
2530 * config/i386/sse.md (ssse3_palignrdi): Changed to
2531 define_insn_and_split to support SSE emulation.
2532
2533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2534
2535 PR target/89021
2536 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
2537
2538 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2539
2540 PR target/89021
2541 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
2542 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2543 SSE emulation.
2544
2545 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2546
2547 PR target/89021
2548 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
2549 or TARGET_MMX_WITH_SSE.
2550 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
2551
2552 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2553
2554 PR target/89021
2555 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
2556
2557 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2558
2559 PR target/89021
2560 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
2561 Changed to define_insn_and_split to support SSE emulation.
2562
2563 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2564
2565 PR target/89021
2566 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
2567 Changed to define_insn_and_split to support SSE emulation.
2568
2569 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2570
2571 PR target/89021
2572 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
2573 (*mmx_<emms>): This.
2574 (mmx_<emms>): New expander.
2575
2576 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2577
2578 PR target/89021
2579 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
2580 support.
2581 (*sse2_umulv1siv1di3): Add SSE2 emulation.
2582
2583 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2584
2585 PR target/89021
2586 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
2587
2588 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2589
2590 PR target/89021
2591 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
2592
2593 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2594
2595 PR target/89021
2596 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
2597 TARGET_MMX_WITH_SSE.
2598 (*mmx_uavgv4hi3): Add SSE emulation.
2599
2600 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2601
2602 PR target/89021
2603 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
2604 and TARGET_MMX_WITH_SSE.
2605 (*mmx_uavgv8qi3): Add SSE emulation.
2606
2607 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2608
2609 PR target/89021
2610 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
2611 maskmovdqu for __MMX_WITH_SSE__.
2612
2613 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2614
2615 PR target/89021
2616 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
2617 TARGET_MMX and TARGET_MMX_WITH_SSE.
2618 (*mmx_umulv4hi3_highpart): Add SSE emulation.
2619
2620 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2621
2622 PR target/89021
2623 * config/i386/mmx.md (mmx_pmovmskb): Changed to
2624 define_insn_and_split to support SSE emulation.
2625
2626 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2627
2628 PR target/89021
2629 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
2630 and TARGET_MMX_WITH_SSE.
2631 (mmx_<code>v8qi3): Likewise.
2632 (smaxmin:<code>v4hi3): New.
2633 (umaxmin:<code>v8qi3): Likewise.
2634 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
2635 (umaxmin:*mmx_<code>v8qi3): Likewise.
2636
2637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2638
2639 PR target/89021
2640 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
2641 TARGET_MMX_WITH_SSE.
2642 (*mmx_pinsrw): Add SSE emulation.
2643
2644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2645
2646 PR target/89021
2647 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
2648
2649 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2650
2651 PR target/89021
2652 * config/i386/sse.md (sse_cvtpi2ps): Changed to
2653 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2654 SSE emulation.
2655
2656 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2657
2658 PR target/89021
2659 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
2660 (sse_cvttps2pi): Likewise.
2661
2662 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2663
2664 PR target/89021
2665 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
2666 TARGET_MMX_WITH_SSE.
2667 (mmx_pshufw_1): Add SSE emulation.
2668 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
2669 TARGET_MMX_WITH_SSE to support SSE emulation.
2670
2671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2672
2673 PR target/89021
2674 * config/i386/constraints.md (Yw): New constraint.
2675 * config/i386/mmx.md (*vec_dupv2si): Changed to
2676 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
2677 support SSE emulation.
2678
2679 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2680
2681 PR target/89021
2682 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
2683 TARGET_MMX_WITH_SSE.
2684 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2685 support.
2686 (mmx_gt<mode>3): Likewise.
2687
2688 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2689
2690 PR target/89021
2691 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
2692 TARGET_MMX_WITH_SSE. Add SSE support.
2693
2694 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2695
2696 PR target/89021
2697 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
2698 TARGET_MMX_WITH_SSE.
2699 (any_logic:<code><mode>3): New.
2700 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
2701 Add SSE support.
2702
2703 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2704
2705 PR target/89021
2706 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
2707 TARGET_MMX_WITH_SSE. Add SSE emulation.
2708 (mmx_<shift_insn><mode>3): Likewise.
2709 (ashr<mode>3): New.
2710 (<shift_insn><mode>3): Likewise.
2711
2712 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2713
2714 PR target/89021
2715 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2716 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
2717
2718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2719
2720 PR target/89021
2721 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2722 TARGET_MMX_WITH_SSE.
2723 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2724 SSE support.
2725
2726 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2727
2728 PR target/89021
2729 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2730 TARGET_MMX_WITH_SSE.
2731 (mulv4hi3): New.
2732 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2733 support.
2734
2735 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2736
2737 PR target/89021
2738 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2739 (plusminus:mmx_<plusminus_insn><mode>3): Check
2740 TARGET_MMX_WITH_SSE.
2741 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2742 (<plusminus_insn><mode>3): New.
2743 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2744 (*mmx_<plusminus_insn><mode>3): Likewise.
2745
2746 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2747
2748 PR target/89021
2749 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2750 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2751 prototype.
2752 * config/i386/mmx.m (mmx_punpckhbw): Changed to
2753 define_insn_and_split to support SSE emulation.
2754 (mmx_punpcklbw): Likewise.
2755 (mmx_punpckhwd): Likewise.
2756 (mmx_punpcklwd): Likewise.
2757 (mmx_punpckhdq): Likewise.
2758 (mmx_punpckldq): Likewise.
2759
2760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2761 Uros Bizjak <ubizjak@gmail.com>
2762
2763 PR target/89021
2764 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2765 New function.
2766 (ix86_split_mmx_pack): Likewise.
2767 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2768 New prototype.
2769 (ix86_split_mmx_pack): Likewise.
2770 * config/i386/i386.md (mmx_isa): New.
2771 (enabled): Also check mmx_isa.
2772 * config/i386/mmx.md (any_s_truncate): New code iterator.
2773 (s_trunsuffix): New code attr.
2774 (mmx_packsswb): Removed.
2775 (mmx_packssdw): Likewise.
2776 (mmx_packuswb): Likewise.
2777 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2778 MMX packsswb/packuswb with SSE2.
2779 (mmx_packssdw): Likewise.
2780 * config/i386/predicates.md (register_mmxmem_operand): New.
2781
2782 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2783
2784 PR target/89021
2785 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2786 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2787 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2788 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2789 (ix86_vector_mode_supported_p): Likewise.
2790 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2791
2792 2019-05-15 Martin Liska <mliska@suse.cz>
2793
2794 PR middle-end/90478
2795 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2796 Check for overflow.
2797
2798 2019-05-15 Richard Biener <rguenther@suse.de>
2799
2800 * tree-into-ssa.c (pass_build_ssa::execute): Run
2801 update_address_taken before going into SSA.
2802
2803 2019-05-15 Richard Biener <rguenther@suse.de>
2804
2805 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2806 as __BIT_FIELD_REF with type with -gimple.
2807
2808 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
2809
2810 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2811 semantically equivalent branches (left over after prior refactorings).
2812
2813 2019-05-15 Richard Biener <rguenther@suse.de>
2814
2815 PR tree-optimization/88828
2816 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2817 bogus check.
2818
2819 2019-05-14 Richard Biener <rguenther@suse.de>
2820
2821 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2822 as __VIEW_CONVERT with -gimple.
2823
2824 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2825
2826 PR target/82920
2827 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2828 Darwin.
2829
2830 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2831
2832 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2833 define_split to become a define_insn_and_split.
2834
2835 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2836
2837 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2838 arguments.
2839 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2840 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2841 (sibcall_epilogue): Adjust.
2842 (epilogue): Adjust.
2843
2844 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2845
2846 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2847 to unsupported ones.
2848 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2849 * config.host: Likewise.
2850 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2851 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2852 __svr4__]: Remove "brand" fallback.
2853 [!KSTAT_DATA_STRING]: Remove.
2854 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2855 to *-*-solaris2*.
2856 (comdat_group): Likewise.
2857 (set_have_as_tls): Likewise.
2858 (gcc_cv_target_dl_iterate_phdr): Likewise.
2859 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2860 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2861 * configure: Regenerate.
2862 * doc/install.texi: Simplify Solaris target triplets.
2863 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2864 (Specific, *-*-solaris2*): Document Solaris 10 removal.
2865 Remove Solaris 10 references.
2866 Remove obsolete Solaris bug reference.
2867 (Specific, sparc-sun-solaris2.10): Remove.
2868
2869 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
2870
2871 * config/i386/i386.md (any_div): New code iterator.
2872 (paired_mod): New code attribute.
2873 (sgnprefix): Handle DIV and UDIV RTXes.
2874 (u): Ditto.
2875 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2876 and udivmod<mode>4 patterns using any_div code iterator.
2877 (divmod splitters): Macroize splitters using any_div code iterator.
2878 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2879 (*udivmodsi4_pow2_zext_2): Ditto.
2880 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2881 and *udivmod<mode>4_noext patterns using any_div code iterator.
2882 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2883 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2884 patterns using any_div code iterator.
2885 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2886 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2887 patterns using any_div code iterator.
2888 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2889 udivmodhiqi3 patterns using any_extend code iterator.
2890
2891 2019-05-14 Richard Biener <rguenther@suse.de>
2892 H.J. Lu <hongjiu.lu@intel.com>
2893
2894 PR tree-optimization/88828
2895 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2896 permuting in a single non-constant element not extracted
2897 from a vector.
2898
2899 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2900
2901 * internal-fn.def (SIGNBIT): New.
2902 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2903 defined.
2904 (signbitv4sf2): Likewise.
2905
2906 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
2907
2908 PR target/90357
2909 * config/mips/mips.c (mips_split_move): Skip forward SRC into
2910 next insn when the SRC reg is dead.
2911
2912 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
2913
2914 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2915 (alloc_cand_and_find_basis): Ditto.
2916 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2917 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2918 (create_add_imm_cand, slsr_process_cast): Ditto.
2919 (slsr_process_copy, replace_mult_candidate): Ditto.
2920 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2921 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2922 (pass_strength_reduction::execute): Init the first NULL element.
2923
2924 2019-05-13 Nathan Sidwell <nathan@acm.org>
2925
2926 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
2927 (run_attempt): Reformat line break.
2928
2929 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
2930
2931 PR target/90418
2932 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2933 data registers in sibcall epilogues.
2934 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2935
2936 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
2937
2938 PR target/89221
2939 * configure.ac (--enable-frame-pointer):
2940 Disable by default for cygwin and mingw.
2941 * configure: Regenerate.
2942
2943 2019-05-13 Nathan Sidwell <nathan@acm.org>
2944
2945 * dwarf2out.c (breakout_comdat_types): Move comment to correct
2946 piece of code.
2947 (const_ok_for_output_1): Balance parens around #if/#else/#endif
2948 (gen_member_die): Move abstract origin check earlier. Only VARs
2949 can be static_inline_p. Simplify splicing control flow.
2950
2951 2019-05-13 Richard Biener <rguenther@suse.de>
2952
2953 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2954 VIEW_CONVERT_EXPR.
2955 (vect_build_slp_tree_1): Likewise.
2956
2957 2019-05-13 Richard Biener <rguenther@suse.de>
2958
2959 PR tree-optimization/90402
2960 * tree-if-conv.c (tree_if_conversion): Value number only
2961 the loop body by making the latch an exit of the region
2962 as well.
2963 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
2964 processing PHIs.
2965 (do_rpo_vn): Deal with multiple edges into the entry block
2966 that are not backedges inside the region by skipping PHIs
2967 of the entry block.
2968
2969 2019-05-13 Richard Biener <rguenther@suse.de>
2970
2971 PR tree-optimization/90316
2972 * tree-ssa-pre.c (insert_aux): Fold into ...
2973 (insert): ... this function. Use a RPO walk to reduce the
2974 number of required iterations.
2975
2976 2019-05-13 Martin Liska <mliska@suse.cz>
2977
2978 PR tree-optimization/90416
2979 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
2980 string instead of passing the second part as va_arg argument.
2981
2982 2019-05-13 Martin Liska <mliska@suse.cz>
2983
2984 PR gcov-profile/90380
2985 * gcov.c (handle_cycle): Do not support zero cycle count,
2986 it should not be possible.
2987 (path_contains_zero_cycle_arc): New function.
2988 (circuit): Ignore zero cycle arc counts.
2989
2990 2019-05-13 Martin Liska <mliska@suse.cz>
2991
2992 PR gcov-profile/90380
2993 * gcov.c (enum loop_type): Remove the enum and
2994 the operator.
2995 (handle_cycle): Assert that we should not reach
2996 a negative count.
2997 (circuit): Use loop_found instead of a tri-state loop_type.
2998 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2999 happen.
3000
3001 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
3002
3003 PR target/82920
3004 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
3005 (ix86_output_indirect_branch_via_reg): Use output mechanism
3006 accounting for __USER_LABEL_PREFIX__.
3007 (ix86_output_indirect_branch_via_push): Likewise.
3008 (ix86_output_function_return): Likewise.
3009 (ix86_output_indirect_function_return): Likewise.
3010
3011 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
3012
3013 * doc/md.texi: Document use of code attributes in rtx patterns.
3014 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
3015 * read-rtl.c (find_code): Split out search loops into...
3016 (maybe_find_code): ...this new function.
3017 (check_code_iterator): Make the error message more informative.
3018 (check_code_attribute): New function.
3019 (rtx_reader::rtx_alloc_for_name): Likewise.
3020 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
3021 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
3022 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
3023 <max_opp> directly as an rtx code instead of via a match_operator.
3024 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
3025 (<su>abd<mode>_3): Update accordingly.
3026
3027 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
3028
3029 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
3030 is given, print the state of the EH "save world" computation for
3031 Darwin.
3032
3033 2019-05-11 Jakub Jelinek <jakub@redhat.com>
3034
3035 PR c++/59813
3036 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
3037 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
3038
3039 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
3040
3041 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
3042 Use pinsrd for TARGET_SSE4_1.
3043 * config/i386/sse.md (movdi_to_sse): Ditto.
3044
3045 2019-05-10 Richard Biener <rguenther@suse.de>
3046
3047 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
3048 (do_rpo_vn): Initialize next_value_id.
3049
3050 2019-05-10 Martin Liska <mliska@suse.cz>
3051
3052 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
3053 Fix plural form.
3054
3055 2019-05-10 Jakub Jelinek <jakub@redhat.com>
3056
3057 PR tree-optimization/90385
3058 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
3059 arguments of the exit phis.
3060
3061 PR c++/90383
3062 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
3063 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
3064 id->do_not_fold.
3065 (copy_tree_body_r): Likewise.
3066 (copy_fn): Set id.do_not_fold to true.
3067
3068 2019-05-10 Martin Liska <mliska@suse.cz>
3069
3070 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
3071 Reapply changes from r269790.
3072
3073 2019-05-10 Martin Liska <mliska@suse.cz>
3074
3075 PR middle-end/90340
3076 * doc/invoke.texi: New params.
3077 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
3078 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
3079 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
3080 Use it.
3081 * tree-switch-conversion.h (struct jump_table_cluster):
3082 Likewise.
3083
3084 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
3085
3086 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
3087
3088 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
3089
3090 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
3091
3092 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
3093
3094 PR rtl-optimization/88879
3095 * sel-sched.c (sel_target_adjust_priority): Remove assert.
3096
3097 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
3098
3099 PR target/90405
3100 * config/arm/arm.c (callee_saved_reg_p): Move before
3101 thumb_find_work_register.
3102 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
3103 thumb_find_work_register. Only call df_get_live_out once.
3104 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
3105 (thumb_find_work_register): Use
3106 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
3107 algorithms to locate a spare call clobbered reg.
3108
3109 2019-05-09 Martin Liska <mliska@suse.cz>
3110
3111 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
3112 and MAX_EXPR in GIMPLE FE format.
3113
3114 2019-05-09 Martin Liska <mliska@suse.cz>
3115
3116 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
3117 * gimple-pretty-print.c (dump_gimple_bb_header):
3118 Dump BB count.
3119 (pp_cfg_jump): Dump edge probability.
3120 * profile-count.c (profile_quality_as_string): Simplify
3121 with a static array.
3122 (parse_profile_quality): New function.
3123 (profile_count::dump): Simplify with a static array.
3124 (profile_count::from_gcov_type): Add new argument.
3125 * profile-count.h (parse_profile_quality): Likewise.
3126 * predict.h (set_hot_bb_threshold): New.
3127 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
3128 New param.
3129 * predict.c (get_hot_bb_threshold): Set from the new param.
3130 (set_hot_bb_threshold): New.
3131
3132 2019-05-09 Richard Biener <rguenther@suse.de>
3133
3134 PR tree-optimization/90395
3135 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
3136 rewrite vector stores that throw internally.
3137
3138 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
3139
3140 * cif-code.def (CHKP): Remove.
3141
3142 PR target/89221
3143 * configure.ac (--enable-frame-pointer): Disable by default for
3144 GNU systems.
3145 * configure: Regenerate.
3146
3147 2019-05-09 Alan Modra <amodra@gmail.com>
3148
3149 PR target/89271
3150 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
3151 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
3152 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
3153 cost for general <-> vsx when direct moves are available.
3154 Cost union classes at minimal cost for any reg in the class.
3155 Correct calculation for moves between vsx, float, and altivec.
3156 Don't return a low cost for moves between special regs. Don't
3157 use hard coded register numbers.
3158 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
3159 (rs6000_ira_change_pseudo_allocno_class): New function.
3160 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
3161 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
3162 alternatives.
3163 (movsi_internal1): Don't disparage vector alternatives.
3164 (mov<mode>_internal): Likewise, excepting alternative that
3165 will be split.
3166 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
3167 we <- b alternative.
3168
3169 2019-05-08 Jakub Jelinek <jakub@redhat.com>
3170
3171 PR c++/59813
3172 PR tree-optimization/89060
3173 * tree-ssa-live.h (live_vars_map): New typedef.
3174 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
3175 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
3176 (struct compute_live_vars_data): New type.
3177 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
3178 live_vars_at_stmt, destroy_live_vars): New functions.
3179 * tree-tailcall.c: Include tree-ssa-live.h.
3180 (live_vars, live_vars_vec): New global variables.
3181 (find_tail_calls): Perform variable life analysis before punting.
3182 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
3183 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
3184 member.
3185 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
3186 Perform variable life analysis to select variables that really need
3187 clobbers added.
3188 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
3189 instead set id->eh_landing_pad_dest and assert it is the same.
3190 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
3191
3192 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
3193 Richard Earnshaw <rearnsha@arm.com>
3194
3195 PR target/88167
3196 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
3197 function.
3198 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
3199 (thumb1_compute_save_core_reg_mask): Don't force a spare work
3200 register if both the epilogue and prologue can use call-clobbered
3201 regs.
3202 (thumb1_unexpanded_epilogue): Use
3203 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
3204 picking temporaries for restoring high regs to match that of the
3205 prologue where possible.
3206 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
3207 the list of work registers. Detect if the return address is still live
3208 at the end of the prologue and avoid using it for a work register if so.
3209 If the return address is not live, add LR to the list of pushable regs
3210 after the first pass.
3211
3212 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
3213
3214 PR tree-optimization/90078
3215 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
3216 (INFTY): Increase the value for infinite cost.
3217 (struct comp_cost): Promote type of members to int64_t.
3218 (infinite_cost): Don't set complexity in initialization.
3219 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
3220 overflows to infinite_cost.
3221 (adjust_setup_cost): Promote type of parameter and cost computation
3222 to int64_t.
3223 (struct ainc_cost_data, struct iv_ca): Promote type of member to
3224 int64_t.
3225 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
3226 cost computation to int64_t.
3227 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
3228 int64_t's format specifier in dump.
3229
3230 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
3231
3232 PR tree-optimization/90240
3233 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
3234 with respect to scaling factor pre-computed for each basic block.
3235 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
3236 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
3237 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
3238 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
3239 live range for array of loop's basic blocks. Cleanup aux field of
3240 loop's basic blocks.
3241
3242 2019-05-08 Jakub Jelinek <jakub@redhat.com>
3243
3244 PR tree-optimization/90356
3245 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
3246
3247 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
3248
3249 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
3250 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
3251 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
3252 (ix86_handle_option): Handle -mavx512bf16.
3253 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
3254 to extra_headers.
3255 * config/i386/avx512bf16vlintrin.h: New.
3256 * config/i386/avx512bf16intrin.h: New.
3257 * config/i386/cpuid.h (bit_AVX512BF16): New.
3258 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
3259 * config/i386/i386-builtin-types.def: Add new types.
3260 * config/i386/i386-builtin.def: Add new builtins.
3261 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3262 __AVX512BF16__.
3263 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
3264 (ix86_option_override_internal): Handle BF16.
3265 (ix86_valid_target_attribute_inner_p): Ditto.
3266 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
3267 * config/i386/i386-builtin.c (enum processor_features): Add
3268 F_AVX512BF16.
3269 (static const _isa_names_table isa_names_table): Ditto.
3270 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
3271 (PTA_AVX512BF16): Ditto.
3272 * config/i386/i386.opt: Add -mavx512bf16.
3273 * config/i386/immintrin.h: Include avx512bf16intrin.h
3274 and avx512bf16vlintrin.h.
3275 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
3276 avx512f_cvtneps2bf16_<mode><mask_name>,
3277 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
3278 * config/i386/subst.md (mask_half): Add new subst.
3279 * doc/invoke.texi: Document -mavx512bf16.
3280
3281 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
3282
3283 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
3284 Delete declaration.
3285 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
3286 (rs6000_debug_legitimize_reload_address): Delete.
3287 (rs6000_legitimize_reload_address_ptr): Delete.
3288 (rs6000_option_override_internal): Adjust.
3289 (mem_operand_gpr): Adjust comment.
3290 (legitimate_lo_sum_address_p): Ditto.
3291 (rs6000_legitimize_reload_address): Delete.
3292 (rs6000_debug_legitimize_reload_address): Delete.
3293 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
3294
3295 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
3296
3297 PR target/89765
3298 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3299 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
3300 to compute vector element selector for both constant and variable
3301 operands.
3302
3303 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3304
3305 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
3306 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
3307 ashrdi3_cvt using SWI48 mode iterator.
3308
3309 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3310
3311 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
3312 (aarch64_<su>abd<mode>_3): Likewise.
3313 (*aarch64_<su>abd<mode>_3): New define_insn.
3314 (<sur>sad<vsi2qi>): New define_expand.
3315 * config/aarch64/iterators.md: Added MAX_OPP attribute.
3316 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
3317 (build_vect_cond_expr): Likewise.
3318
3319 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3320
3321 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
3322 clobbers outside of accessible_reg_set.
3323 * config/i386/i386.c (ix86_conditional_register_usage):
3324 Disable register sets by clearing corresponding bits in
3325 accessible_reg_set. Do not set corresponding bits in fixed_regs,
3326 call_used_regs and don't clear corresponding reg_names array members.
3327
3328 2019-05-07 Richard Biener <rguenther@suse.de>
3329
3330 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
3331 not specified still compute a comp_vectype for invariant
3332 compares.
3333
3334 2019-05-07 Richard Biener <rguenther@suse.de>
3335
3336 PR tree-optimization/90316
3337 * tree-ssa-pre.c (translate_vuse_through_block): When
3338 same_valid is NULL do not bother to search for a virtual
3339 PHI continuation.
3340 (phi_translate_1): When operands changed we cannot keep
3341 the same value-number so do not bother to ask whether
3342 that's possible from translate_vuse_through_block.
3343
3344 2019-05-07 Martin Liska <mliska@suse.cz>
3345
3346 * bitmap.c (bitmap_register): Come up with
3347 alloc_descriptor_max_uid and assign it for
3348 a new bitmap.
3349 (register_overhead): Use get_descriptor as
3350 a descriptor.
3351 (release_overhead): New.
3352 (bitmap_elem_to_freelist): Call it.
3353 (bitmap_elt_clear_from): Likewise.
3354 (bitmap_obstack_free): Likewise.
3355 (bitmap_move): Sensitively release memory.
3356 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
3357 (bitmap_initialize): Initialize alloc_descriptor to zero.
3358 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
3359
3360 2019-05-07 Richard Biener <rguenther@suse.de>
3361
3362 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
3363 we build a SLP node. Remove max_size and limiting.
3364 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
3365
3366 2019-05-07 Richard Biener <rguenther@suse.de>
3367
3368 PR tree-optimization/90316
3369 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
3370 limit by reference.
3371 (walk_non_aliased_vuses): Take walking limit argument.
3372 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
3373 walking if it is reached instead of just counting.
3374 (get_continuation_for_phi): Likewise.
3375 (walk_non_aliased_vuses): Likewise, instead of leaving counter
3376 limiting to the callback.
3377 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
3378 (vn_reference_lookup_3): Likewise.
3379 (vn_reference_lookup_pieces): Likewise.
3380 (vn_reference_lookup): Likewise.
3381 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
3382 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
3383 (avail_exprs_stack::lookup_avail_expr): Likewise.
3384
3385 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
3386
3387 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
3388 for comparaible types in the second direction even if first one
3389 hits incomparable type.
3390
3391 2019-05-07 Richard Biener <rguenther@suse.de>
3392
3393 PR lto/90369
3394 * lto-wrapper.c (debug_objcopy): Use the original filename
3395 including archive offset for the filename used for -save-temps.
3396
3397 2019-05-07 Li Jia He <helijia@linux.ibm.com>
3398
3399 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
3400 detection.
3401
3402 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
3403 Hongtao Liu <hongtao.liu@intel.com>
3404
3405 PR target/89750
3406 PR target/86444
3407 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
3408 Modified, original implementation isn't correct.
3409
3410 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3411
3412 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
3413 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
3414 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
3415 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
3416 (FRAME_POINTER_REGNUM): Change numbering.
3417 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
3418 (alt_reg_names): Adjust.
3419 (rs6000_conditional_register_usage): Don't mark hard register 64 as
3420 fixed.
3421 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3422 (DWARF_FRAME_REGISTERS): Delete.
3423 (DWARF2_FRAME_REG_OUT): Fix whitespace.
3424 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3425 Adjust.
3426 (REG_ALLOC_ORDER): Adjust.
3427 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
3428 (REG_CLASS_CONTENTS): Adjust.
3429 (RETURN_ADDR_RTX): Change comment.
3430 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
3431 instead of 67.
3432 (REGISTER_NAMES): Adjust.
3433 (ADDITIONAL_REGISTER_NAMES): Adjust.
3434 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3435
3436 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3437
3438 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
3439 Delete.
3440 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3441 (DWARF_FRAME_REGISTERS): Adjust.
3442 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3443 Adjust.
3444 (REG_ALLOC_ORDER): Adjust.
3445 (enum reg_class): Delete SPR_REGS.
3446 (REG_CLASS_NAMES): Delete SPR_REGS.
3447 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
3448 (REGISTER_NAMES): Adjust.
3449 (ADDITIONAL_REGISTER_NAMES): Adjust.
3450 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3451 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
3452 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
3453 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
3454 (htm_spr_regno): Delete.
3455 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
3456 argument.
3457 (rs6000_dbx_register_number): Adjust.
3458
3459 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3460
3461 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
3462
3463 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3464
3465 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
3466 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
3467
3468 2019-05-06 Jakub Jelinek <jakub@redhat.com>
3469
3470 PR tree-optimization/88709
3471 PR tree-optimization/90271
3472 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
3473 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
3474 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
3475 variable.
3476 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
3477 of the store merging group is larger than
3478 PARAM_STORE_MERGING_MAX_SIZE parameter.
3479 (split_group): Add bzero_first argument. If set, always emit first
3480 the first store which must be = {} of the whole area and then for the
3481 rest of the stores consider all zero bytes as paddings.
3482 (imm_store_chain_info::output_merged_store): Check if first store
3483 is = {} of the whole area and if yes, determine which setting of
3484 bzero_first for split_group gives smaller number of stores. Adjust
3485 split_group callers.
3486 (lhs_valid_for_store_merging_p): Allow decls.
3487 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
3488 no elts.
3489 (pass_store_merging::process_store): Likewise.
3490
3491 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3492
3493 PR target/89424
3494 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3495 handling of V1TImode.
3496
3497 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
3498
3499 PR target/89221
3500 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
3501 and enable_frame_pointer ...
3502 * configure.ac: ... here. Update help strings for
3503 --enable-frame-pointer.
3504 * configure: Regenerate.
3505 * config/i386/i386-options.c (ix86_option_override_internal): Remove
3506 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
3507 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
3508 (USE_X86_64_FRAME_POINTER): Ditto.
3509
3510 2019-05-06 Martin Liska <mliska@suse.cz>
3511
3512 * config.gcc: Append to target_gtfiles and fix indentation.
3513
3514 2019-05-06 Richard Biener <rguenther@suse.de>
3515
3516 PR tree-optimization/90358
3517 * tree-vect-stmts.c (get_group_load_store_type): Properly
3518 detect unused upper half of load.
3519 (vectorizable_load): Likewise.
3520
3521 2019-05-06 Richard Biener <rguenther@suse.de>
3522
3523 PR tree-optimization/88828
3524 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
3525 (simplify_vector_constructor): ...here. Handle constants in
3526 the constructor.
3527
3528 2019-05-06 Richard Biener <rguenther@suse.de>
3529
3530 PR tree-optimization/90328
3531 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
3532 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
3533 is valid in the loop nest before using it.
3534 (initialize_data_dependence_relation): Adjust.
3535 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
3536 loop as loop-nest to dr_may_alias_p.
3537
3538 2019-05-06 Richard Biener <rguenther@suse.de>
3539
3540 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
3541
3542 2019-05-06 Richard Biener <rguenther@suse.de>
3543
3544 PR tree-optimization/90316
3545 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
3546 compute target on demand.
3547 (get_continuation_for_phi): Remove code walking stmts to
3548 get to a target virtual operand which could end up being
3549 quadratic.
3550
3551 2019-05-06 Martin Liska <mliska@suse.cz>
3552
3553 PR sanitizer/90312
3554 * config/i386/i386-options.c (ix86_option_override_internal): Error only
3555 when -mabi is selected to a non-default version.
3556
3557 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
3558 Martin Liska <mliska@suse.cz>
3559
3560 * Makefile.in: Add lto-dump.texi.
3561 * cgraph.h: Add new functions get_visibility_string and
3562 get_symtab_type_string.
3563 * doc/gcc.texi: Include lto-dump section.
3564 * doc/lto-dump.texi: New file.
3565 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
3566 (parse_dump_option): Factor out this function.
3567 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
3568 (parse_dump_option): Export the function.
3569 * symtab.c (symtab_node::get_visibility_string): New function.
3570 (symtab_node::get_symtab_type_string): Likewise.
3571
3572 2019-05-06 Martin Liska <mliska@suse.cz>
3573
3574 * config/i386/i386-builtins.c: New file.
3575 * config/i386/i386-builtins.h: New file.
3576 * config/i386/i386-expand.c: New file.
3577 * config/i386/i386-expand.h: New file.
3578 * config/i386/i386-features.c: New file.
3579 * config/i386/i386-features.h: New file.
3580 * config/i386/i386-options.c: New file.
3581 * config/i386/i386-options.h: New file.
3582 * config.gcc: Add new files into extra_objs and
3583 target_gtfiles.
3584 * config/i386/i386.c: Split content of the file
3585 into newly introduced files.
3586 * config/i386/i386.h: Declare common variables
3587 and macros.
3588 * config/i386/t-i386: Define dependencies for new files.
3589
3590 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
3591
3592 PR target/89400
3593 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
3594 Restrict 'all' variant to 32-bit configurations.
3595 (unaligned_loadhiu): Likewise.
3596 (unaligned_storehi): Likewise.
3597 (unaligned_storesi): Likewise.
3598 (unaligned_loadhis): Disable when compiling for thumb1.
3599
3600 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
3601
3602 PR tree-optimization/90269
3603 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
3604 Ignore clobbers.
3605
3606 2019-05-03 Martin Liska <mliska@suse.cz>
3607
3608 * hash-map.h: Add is_empty function.
3609 * hash-set.h: Likewise.
3610 * hash-table.h: Likewise.
3611 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
3612 elements () == 0 (and similar usages).
3613 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
3614 * gimplify.c (gimplify_bind_expr): Likewise.
3615 (gimplify_switch_expr): Likewise.
3616 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
3617 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
3618 * postreload-gcse.c (dump_hash_table): Likewise.
3619 (gcse_after_reload_main): Likewise.
3620 * predict.c (combine_predictions_for_bb): Likewise.
3621 * tree-parloops.c (reduction_phi): Likewise.
3622 (separate_decls_in_region): Likewise.
3623 (transform_to_exit_first_loop): Likewise.
3624 (gen_parallel_loop): Likewise.
3625 (gather_scalar_reductions): Likewise.
3626 (try_create_reduction_list): Likewise.
3627 * var-tracking.c (dump_vars): Likewise.
3628 (emit_notes_for_changes): Likewise.
3629 (vt_emit_notes): Likewise.
3630
3631 2019-05-03 Richard Biener <rguenther@suse.de>
3632
3633 PR tree-optimization/90316
3634 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
3635 before running VN.
3636
3637 2019-05-03 Richard Biener <rguenther@suse.de>
3638
3639 * tree-vect-stmts.c (get_group_load_store_type): Avoid
3640 peeling for gaps by loading only lower halves of vectors
3641 if possible.
3642 (vectorizable_load): Likewise.
3643
3644 2019-05-03 Richard Biener <rguenther@suse.de>
3645
3646 PR middle-end/89518
3647 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
3648
3649 2019-05-03 Richard Biener <rguenther@suse.de>
3650
3651 PR middle-end/87314
3652 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
3653 Handle STRING_CST vs DECL or STRING_CST.
3654
3655 2019-05-03 Richard Biener <rguenther@suse.de>
3656
3657 PR tree-optimization/88963
3658 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
3659 vector loads feeding only BIT_FIELD_REFs to component
3660 loads. Rewrite stores fed by CONSTRUCTORs to component
3661 stores.
3662
3663 2019-05-03 Jakub Jelinek <jakub@redhat.com>
3664
3665 * opts.h (finish_options): Remove lang_mask argument.
3666 (print_help, help_option_argument): Declare.
3667 * opts.c (print_help): Remove forward declaration, no longer static.
3668 (finish_options): Remove lang_mask argument, don't call print_help
3669 here.
3670 * opts-global.c (decode_options): Adjust finish_option caller, call
3671 print_help here.
3672
3673 PR tree-optimization/90303
3674 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
3675 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
3676
3677 2019-05-03 Richard Biener <rguenther@suse.de>
3678
3679 PR tree-optimization/89698
3680 * gimple-fold.c (canonicalize_constructor_val): Early out
3681 for constants, handle unfolded INTEGER_CSTs as they appear in
3682 C++ virtual table ctors.
3683
3684 2019-05-03 Richard Biener <rguenther@suse.de>
3685
3686 * passes.c (execute_function_todo): Remove dead code.
3687
3688 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3689
3690 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
3691 the internal register number, for any "real" register.
3692
3693 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3694
3695 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
3696 correct numbers for TFHAR, TFIAR, TEXASR.
3697
3698 2019-05-02 Richard Biener <rguenther@suse.de>
3699
3700 PR tree-optimization/89653
3701 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
3702 update-address-taken before the pass.
3703 * passes.def (pass_tree_loop_init): Put comment before it.
3704
3705 2019-05-02 Richard Biener <rguenther@suse.de>
3706
3707 PR tree-optimization/89509
3708 * tree-ssa-structalias.c (compute_dependence_clique): Look
3709 at the first subvar when determining whether it is restrict.
3710
3711 2019-05-02 Richard Biener <rguenther@suse.de>
3712
3713 PR tree-optimization/90273
3714 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3715 useless debug stmts.
3716
3717 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3718
3719 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3720 ACLE branch.
3721 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3722 SVE ACLE branch.
3723 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3724 VEC_COND_EXPR be inserted to emulate a conditional internal function.
3725 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3726 (vectorizable_reduction): Use the functions above to vectorize in a
3727 fully masked loop codes that don't have a conditional internal
3728 function.
3729
3730 2019-05-02 Martin Liska <mliska@suse.cz>
3731
3732 * cgraphclones.c: Call valid_attribute_p with 1 for
3733 target_clone.
3734 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3735 it's for target attribute.
3736 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3737 Add new boolean argument.
3738 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3739 Likewise.
3740 (ix86_valid_target_attribute_tree): Pass target_clone_attr
3741 to ix86_valid_target_attribute_inner_p.
3742 (ix86_valid_target_attribute_p): Pass flags argument to
3743 ix86_valid_target_attribute_inner_p.
3744 (get_builtin_code_for_version): Use 0 as it's target attribute.
3745
3746 2019-05-02 Martin Liska <mliska@suse.cz>
3747
3748 * gcc.c (process_command): Add dummy file only
3749 if n_infiles == 0.
3750 * opts-global.c (decode_options): Pass lang_mask.
3751 * opts.c (print_help): New function.
3752 (finish_options): Print --help if help_option_argument
3753 is set.
3754 (common_handle_option): Factor out content of OPT__help_
3755 into print_help.
3756 * opts.h (finish_options): Add new argument.
3757
3758 2019-05-02 Martin Liska <mliska@suse.cz>
3759
3760 PR target/88809
3761 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3762 With -minline-all-stringops use inline expansion using 4B loop.
3763 * doc/invoke.texi: Document the change of
3764 -minline-all-stringops.
3765
3766 2019-05-01 Jeff Law <law@redhat.com>
3767
3768 PR tree-optimization/88797
3769 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3770 PHI feeds a conditional on the RHS of an assignment.
3771
3772 2019-04-30 Andrew Waterman <andrew@sifive.com>
3773 Jim Wilson <jimw@sifive.com>
3774
3775 * config/riscv/constraints.md (L): New.
3776 * config/riscv/predicates.md (lui_operand): New.
3777 (sfb_alu_operand): New.
3778 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3779 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3780 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3781 * config/riscv/risc.md (type): Add sfb_alu.
3782 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
3783 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
3784 (branch_zero<mode>): Delete.
3785 (mov<mode>cc): New.
3786 (mov<GPR:mode><X:mode>cc): Likewise.
3787 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
3788
3789 2019-04-30 Nathan Sidwell <nathan@acm.org>
3790
3791 * tree.h (MARK_TS_EXP): New.
3792
3793 2019-04-30 Martin Liska <mliska@suse.cz>
3794
3795 * opts.c (enable_warning_as_error): Provide hints
3796 for unknown options.
3797
3798 2019-04-30 Martin Liska <mliska@suse.cz>
3799
3800 PR debug/90288
3801 * doc/invoke.texi: Add missing dash for gas-locview-support
3802 and gno-as-locview-support.
3803
3804 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3805
3806 PR target/89093
3807 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3808 whitespace at the start of target attribute string.
3809
3810 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3811
3812 PR target/86538
3813 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3814 Define __ARM_FEATURE_ATOMICS.
3815
3816 2019-04-30 Martin Liska <mliska@suse.cz>
3817
3818 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3819 into built_in_function enum. Remove code for endp == 2 and
3820 use BUILT_IN_* constants.
3821 (gimple_fold_builtin): Call the function with fcode.
3822
3823 2019-04-30 Martin Liska <mliska@suse.cz>
3824
3825 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3826 DECL_FUNCTION_CODE into ix86_builtins enum before
3827 the switch statement.
3828
3829 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3830
3831 PR tree-optimization/89475
3832 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3833 calls.
3834
3835 2019-04-30 Martin Liska <mliska@suse.cz>
3836
3837 PR translation/90274
3838 * opts.c (print_filtered_help): Wrap string in _(...).
3839
3840 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
3841
3842 PR tree-optimization/90240
3843 Revert:
3844 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3845
3846 PR tree-optimization/90078
3847 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3848 checks for infinite_cost overflow.
3849
3850 2019-04-29 Jeff Law <law@redhat.com>
3851
3852 * passes.def: Move -Wrestrict pass after copy propagation.
3853
3854 2019-04-29 Maya Rashish <coypu@sdf.org>
3855
3856 * config.gcc (default_gnu_indirect_function): Default to yes
3857 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3858 sparc*-*-netbsd*, x86_64-*-netbsd*.
3859
3860 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
3861
3862 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3863 where cond2 is NE_EXPR.
3864 (is_value_included_in): Update comment.
3865
3866 2019-04-29 Richard Biener <rguenther@suse.de>
3867
3868 PR tree-optimization/90278
3869 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3870 EH on comparison simplification.
3871
3872 2019-04-29 Jason Merrill <jason@redhat.com>
3873
3874 PR c++/82081 - tail call optimization breaks noexcept
3875 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3876 nothrow function to a might-throw function into a tail call.
3877
3878 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
3879
3880 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3881 (DDR_INNER_LOOP): Likewise.
3882 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3883 (initialize_data_dependence_relation): Likewise.
3884 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3885
3886 2019-04-29 Jakub Jelinek <jakub@redhat.com>
3887
3888 PR rtl-optimization/90257
3889 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3890 return value.
3891
3892 Revert the revert:
3893 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3894
3895 PR target/90178
3896 Revert:
3897 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3898
3899 Revert the revert:
3900 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3901
3902 Revert:
3903 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3904
3905 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3906
3907 2019-04-29 Richard Biener <rguenther@suse.de>
3908
3909 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3910 rhs issue a reset.
3911
3912 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
3913
3914 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
3915 varasm.h, and netbsd-protos.h.
3916
3917 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
3918
3919 PR target/89261
3920 * config/i386/i386-protos.h (ix86_data_alignment): Change
3921 the second argument type to unsigned int.
3922 * config/i386/i386.c (ix86_data_alignment): Change "align"
3923 argument type to unsigned int.
3924
3925 2019-04-27 Martin Liska <mliska@suse.cz>
3926
3927 PR middle-end/90258
3928 * opt-suggestions.c (option_proposer::build_option_suggestions):
3929 When get_valid_option_values returns empty values, add the
3930 misspelling candidate.
3931
3932 2019-04-26 Jim Wilson <jimw@sifive.com>
3933
3934 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3935 parameter.
3936 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3937 Pass orig_mode to riscv_build_integer.
3938 (riscv_split_integer): Pass mode to riscv_move_integer.
3939 (riscv_legitimize_const_move): Likewise.
3940 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3941 promoted_mode. Replace force_reg call with code to load constant into
3942 promoted reg and then subreg it for the store.
3943 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3944 riscv_move_integer.
3945
3946 2018-04-26 Eugene Sharygin <eush@ispras.ru>
3947
3948 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
3949 corrupt codes.
3950
3951 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
3952
3953 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
3954 commentary about the encoding of precision.
3955
3956 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
3957
3958 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
3959 * config/i386/t-freebsd64: New file.
3960 * config.gcc: Add the t-freebsd64 for multilib support.
3961
3962 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
3963
3964 * doc/extend.texi (vector_size): Add missing comma after @xref.
3965
3966 2019-04-25 Jakub Jelinek <jakub@redhat.com>
3967
3968 * BASE-VER: Set to 10.0.0.
3969
3970 2019-04-25 Richard Biener <rguenther@suse.de>
3971
3972 PR middle-end/89765
3973 * gimplify.c (gimplify_expr): Avoid turning a lvalue
3974 VIEW_CONVERT_EXPR into one operating on an rvalue.
3975
3976 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
3977
3978 PR target/89929
3979 * config/i386/i386.c (feature_priority): Moved to file scope.
3980 (processor_features): Likewise.
3981 (processor_model): Likewise.
3982 (_arch_names_table): Likewise.
3983 (arch_names_table): Likewise.
3984 (_feature_list): Removed.
3985 (feature_list): Likewise.
3986 (_isa_names_table): Moved to file scope. Add priority.
3987 (isa_names_table): Likewise.
3988 (get_builtin_code_for_version): Replace feature_list with
3989 isa_names_table. Update error message for P_ZERO priority.
3990
3991 2019-04-25 Richard Biener <rguenther@suse.de>
3992
3993 * tree-pass.h (make_pass_phi_only_cprop): Remove.
3994 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
3995
3996 2019-04-24 Jeff Law <law@redhat.com>
3997
3998 PR tree-optimization/90037
3999 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
4000 * passes.def: Replace all instance of phi-only cprop with the
4001 lattice propagator. Move propagation pass from after erroneous
4002 path isolation to before erroneous path isolation.
4003 * tree-ssa-phionlycprop.c: Remove.
4004
4005 2019-04-24 Richard Biener <rguenther@suse.de>
4006
4007 PR middle-end/90213
4008 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
4009 by size and BITS_PER_UNIT on poly-wide-ints.
4010
4011 2019-04-25 Richard Biener <rguenther@suse.de>
4012
4013 PR middle-end/90194
4014 * match.pd: Add pattern to simplify view-conversion of an
4015 empty constructor.
4016
4017 2019-04-24 Clement Chigot <clement.chigot@atos.net>
4018
4019 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
4020 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
4021 for Go on 32 bit AIX.
4022 * config/rs6000/aix72.h: Likewise.
4023
4024 2019-04-24 Jakub Jelinek <jakub@redhat.com>
4025
4026 PR target/90193
4027 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
4028 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
4029
4030 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
4031
4032 PR target/89952
4033 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
4034 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
4035 for restored hard frame pointer.
4036 (s390_sched_dependencies_evaluation): Implement new target hook.
4037 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
4038
4039 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
4040
4041 * config/arc/arc-options.def: Fix typos and spelling mistakes.
4042 * config/arc/arc.c (arc_init): Cleanup warning message.
4043 (arc_override_options): Likewise.
4044
4045 2019-04-24 Jakub Jelinek <jakub@redhat.com>
4046
4047 PR target/90187
4048 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
4049 a register if both if_true and if_false are MEMs.
4050
4051 PR tree-optimization/90208
4052 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
4053 after labels of new_bb, not before them.
4054
4055 PR tree-optimization/90211
4056 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
4057 which are not SSA_NAMEs.
4058
4059 2018-04-23 Sudakshina Das <sudi.das@arm.com>
4060
4061 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
4062 AArch64.
4063 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
4064
4065 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
4066
4067 PR rtl-optimization/87979
4068 * modulo-sched.c (sms_schedule): Start ii value "mii" should
4069 not equal zero.
4070
4071 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
4072
4073 PR rtl-optimization/84032
4074 * modulo-sched.c (ps_insn_find_column): Change condition so that
4075 branch will always be the last insn in a row inside partial
4076 schedule.
4077
4078 2019-04-23 Richard Biener <rguenther@suse.de>
4079
4080 PR debug/90131
4081 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
4082 dest_single_pred_p argument.
4083 (remove_forwarder_block): Adjust.
4084 (remove_forwarder_block_with_phi): Likewise.
4085
4086 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4087 Bernd Edlinger <bernd.edlinger@hotmail.de>
4088 Jakub Jelinek <jakub@redhat.com>
4089
4090 PR target/89093
4091 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
4092 if used with general-regs-only.
4093 (arm_conditional_register_usage): Don't add non-general regs if
4094 general-regs-only.
4095 (arm_valid_target_attribute_rec): Handle general-regs-only.
4096 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
4097 general-regs-only.
4098 (TARGET_HARD_FLOAT_SUB): Define.
4099 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
4100 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
4101 (TARGET_REALLY_IWMMXT2): Likewise.
4102 * config/arm/arm.opt: Add -mgeneral-regs-only.
4103 * doc/extend.texi: Document ARM general-regs-only target.
4104 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
4105
4106 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
4107
4108 PR tree-optimization/90078
4109 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
4110 checks for infinite_cost overflow.
4111
4112 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
4113
4114 PR tree-optimization/90021
4115 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
4116 and check univariate against it.
4117 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
4118 * tree-data-ref.c (add_other_self_distances): Pass new argument.
4119
4120 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
4121
4122 PR target/90178
4123 Revert:
4124 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
4125
4126 Revert the revert:
4127 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
4128
4129 Revert:
4130 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
4131
4132 * lra-spills.c (lra_final_code_change): Remove useless move insns.
4133
4134 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
4135
4136 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
4137 names using operand format, rather than hard-wired.
4138 (speculation_barrier): Likewise.
4139
4140 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
4141
4142 PR tree-optimization/88055
4143 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
4144 (gen_one_condition): Use it if !HONOR_NANS.
4145
4146 2019-04-19 Jakub Jelinek <jakub@redhat.com>
4147
4148 PR middle-end/90139
4149 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
4150 assign_temp instead of gen_reg_rtx.
4151
4152 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
4153
4154 PR translation/90118
4155 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4156 Add missing space before %<.
4157
4158 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
4159
4160 PR rtl-optimization/87871
4161 * ira-lives.c (make_object_dead): Don't add conflicts to
4162 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
4163
4164 2019-04-18 Martin Sebor <msebor@redhat.com>
4165
4166 PR middle-end/89797
4167 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
4168 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
4169 assuming type size fits in SHWI.
4170
4171 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
4172
4173 PR ipa/85051
4174 * ipa-inline.c (flatten_function): New parameter UPDATE.
4175 (ipa_inline, early_inliner): Use it.
4176
4177 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
4178
4179 * fold-const.c (int_const_binop): Return early on failure.
4180
4181 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
4182
4183 PR middle-end/85164
4184 * combine.c (force_int_to_mode): Cast the argument rather than
4185 the result of known_alignment.
4186 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
4187
4188 2019-04-18 Richard Biener <rguenther@suse.de>
4189
4190 PR debug/90131
4191 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
4192 out from ...
4193 (remove_forwarder_block): ... here.
4194 (remove_forwarder_block_with_phi): Also move debug stmts here.
4195
4196 2019-04-18 Jakub Jelinek <jakub@redhat.com>
4197
4198 PR translation/79183
4199 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
4200 inform where appropriate.
4201
4202 2019-04-18 Richard Biener <rguenther@suse.de>
4203
4204 * tree.c (get_qualified_type): Put found type variants at the
4205 head of the variant list.
4206
4207 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4208
4209 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
4210
4211 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
4212
4213 PR target/90125
4214 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
4215 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
4216 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
4217 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
4218 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
4219
4220 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
4221
4222 * ira-conflicts.c (print_allocno_conflicts): Always print something,
4223 even for allocno's with no conflicts.
4224 (print_conflicts): Print an extra newline.
4225
4226 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4227
4228 * auto-inc-dec.c (attempt_change): Set the alignment of the
4229 temporary memory to that of the original.
4230
4231 2019-04-17 Joao Moreira <jmoreira@suse.de>
4232
4233 * targhooks.c (default_print_patchable_function_entry): Emit
4234 __patchable_function_entries section with writable flags to allow
4235 relocation resolution.
4236
4237 2019-04-17 Jonny Grant <jg@jguk.org>
4238
4239 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
4240
4241 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4242
4243 PR middle-end/90095
4244 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
4245 on lowpart SUBREGs.
4246
4247 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
4248
4249 * config/arc/arc.c (arc_init): Format diagnostic string.
4250 (arc_override_options): Likewise.
4251 (check_if_valid_regno_const): Likewise.
4252 (arc_reorg): Likewise.
4253
4254 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4255
4256 PR target/17108
4257 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
4258 name.
4259 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
4260 name.
4261 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
4262 (*movdi_update1): Use Pmode.
4263 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
4264 (movdi_<mode>_update_stack): Rename to ...
4265 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
4266 use Pmode.
4267 (*movsi_update1): Use Pmode.
4268 (*movsi_update2): Use Pmode.
4269 (movsi_update): Rename to ...
4270 (movsi_<mode>_update): ... this. Use Pmode.
4271 (movsi_update_stack): Fix condition.
4272 (*movhi_update1): Use Pmode. Fix argument to
4273 avoiding_indexed_address_p.
4274 (*movhi_update2): Ditto.
4275 (*movhi_update3): Ditto.
4276 (*movhi_update4): Ditto.
4277 (*movqi_update1): Ditto.
4278 (*movqi_update2): Ditto.
4279 (*movqi_update3): Ditto.
4280 (*movsf_update1, *movdf_update1): Merge, rename to...
4281 (*mov<mode>_update1): This. Use Pmode. Fix argument to
4282 avoiding_indexed_address_p. Add "size" attribute.
4283 (*movsf_update2, *movdf_update2): Merge, rename to...
4284 (*mov<mode>_update2): This. Ditto.
4285 (*movsf_update3): Use Pmode. Fix argument to
4286 avoiding_indexed_address_p.
4287 (*movsf_update4): Ditto.
4288 (allocate_stack): Simplify condition. Adjust pattern names.
4289
4290 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4291
4292 PR target/89093
4293 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
4294 whitespace at the start of target attribute string.
4295
4296 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
4297
4298 PR target/84369
4299 * config/rs6000/power9.md: Add store forwarding bypass.
4300
4301 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
4302
4303 PR debug/89528
4304 * valtrack.c (dead_debug_insert_temp): Reset debug references
4305 to the return value of a call being removed.
4306
4307 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4308
4309 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
4310 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
4311 implement target hook.
4312 (arc_memory_move_cost): New function.
4313 (TARGET_REGISTER_MOVE_COST): Define.
4314 (TARGET_MEMORY_MOVE_COST): Likewise.
4315 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
4316 (MEMORY_MOVE_COST): Likewise.
4317
4318 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4319
4320 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
4321 (sibcall_value_insn): Likewise.
4322 * config/arc/constraints.md (Rs5): Remove.
4323
4324 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4325
4326 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
4327 for last two fake registers.
4328 (arc_conditional_register_usage): Make sure fake frame and arg
4329 pointer regs are in general regs class.
4330 (FRAME_POINTER_MASK): Remove.
4331 (RETURN_ADDR_MASK): Remove.
4332 (arc_must_save_register): Use hard frame regnum.
4333 (frame_restore_reg): Use hard_frame_pointer_rtx.
4334 (arc_save_callee_saves): Likewise.
4335 (arc_restore_callee_saves): Likewise.
4336 (arc_save_callee_enter): Likewise.
4337 (arc_restore_callee_leave): Likewise.
4338 (arc_save_callee_milli): Likewise.
4339 (arc_eh_return_address_location): Likewise.
4340 (arc_check_multi): Use hard frame regnum.
4341 (arc_can_eliminate): Likewise.
4342 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
4343 for register allocator.
4344 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
4345 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
4346 (FRAME_POINTER_REGNUM): Change it to a fake register.
4347 (HARD_FRAME_POINTER_REGNUM): Defined.
4348 (ARG_POINTER_REGNUM): Change it to a new fake register.
4349 (ELIMINABLE_REGS): Update.
4350 (REGISTER_NAMES): Update names.
4351 * config/arc/arc.md (LP_START): Remove.
4352 (LP_END): Likewise.
4353 (shift_si3_loop): Update pattern.
4354
4355 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4356
4357 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
4358 to avoid delay slot scheduling.
4359 (arc_must_save_register): Don't save SP.
4360 * config/arc/arc.md (stack_tie): Remove.
4361 (UNSPEC_ARC_STKTIE): Likewise.
4362
4363 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
4364 Shiva Chen <shiva0217@gmail.com>
4365
4366 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
4367 code gen with large shift amount.
4368
4369 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
4370
4371 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
4372 subreg.
4373
4374 2019-04-16 Jakub Jelinek <jakub@redhat.com>
4375
4376 PR target/90096
4377 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
4378 print -m64/-mx32/-m32 if it is true.
4379 (ix86_debug_options, ix86_function_specific_print): Pass true as
4380 ADD_ABI_P to ix86_target_string.
4381 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
4382 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
4383 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
4384
4385 PR rtl-optimization/90082
4386 * dce.c (can_delete_call): New function.
4387 (deletable_insn_p, mark_insn): Use it.
4388
4389 PR tree-optimization/90090
4390 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
4391 throw internally.
4392 (is_division_by_square): Likewise. Formatting fix.
4393
4394 2019-04-16 Richard Biener <rguenther@suse.de>
4395
4396 PR tree-optimization/56049
4397 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
4398 equality check if alias-set zero will prevail.
4399
4400 2019-04-15 Jeff Law <law@redhat.com>
4401
4402 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
4403 size and alignment as unsigned.
4404
4405 2019-04-15 Richard Biener <rguenther@suse.de>
4406
4407 PR debug/90074
4408 * tree-loop-distribution.c (destroy_loop): Preserve correct
4409 debug info.
4410
4411 2019-04-15 Richard Biener <rguenther@suse.de>
4412
4413 PR tree-optimization/90071
4414 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
4415 abnormal operands from def stmts.
4416
4417 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
4418
4419 PR rtl-optimization/89794
4420 * combine.c (count_auto_inc): New function.
4421 (try_combine): Count how many auto_inc expressions there were in the
4422 original instructions. Ensure we have the same number in the new
4423 instructions. Remove the code that tried to ensure auto_inc side
4424 effects on i1 and i0 are not lost.
4425
4426 2019-04-15 Richard Biener <rguenther@suse.de>
4427
4428 PR ipa/88936
4429 * tree.h (auto_var_p): Declare.
4430 * tree.c (auto_var_p): New function, split out from ...
4431 (auto_var_in_fn_p): ... here.
4432 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
4433 member.
4434 (new_var_info): Initialize it.
4435 (set_uids_in_ptset): Also set the shadow variable uid if required.
4436 (ipa_pta_execute): Postprocess points-to solutions assigning
4437 shadow variable uids for locals that may reach their containing
4438 function recursively.
4439 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
4440 assert but instead check whether the points-to solution is
4441 a singleton.
4442
4443 2019-04-15 Martin Jambor <mjambor@suse.cz>
4444
4445 PR ipa/pr89693
4446 * cgraph.c (clone_of_p): Loop over clone chain for each step in
4447 the thunk chain.
4448
4449 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4450
4451 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
4452
4453 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4454 Kito Cheng <kito.cheng@gmail.com>
4455 Shiva Chen <shiva0217@gmail.com>
4456
4457 * config/nds32/nds32-md-auxiliary.c
4458 (nds32_legitimize_pic_address): Use new PIC pattern.
4459 (nds32_legitimize_tls_address): Use new TLS pattern.
4460 (nds32_output_symrel): New.
4461 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
4462 (nds32_alloc_relax_group_id): Ditto.
4463 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
4464 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
4465 relax_group_id.
4466 (nds32_group_tls_insn): Ditto.
4467 (nds32_group_float_insns): Ditto.
4468 * config/nds32/nds32.md (tls_le): New.
4469 (sym_got): Ditto.
4470
4471 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
4472
4473 * configure: Add nds32 target for dwarf2 debug_line checking.
4474 * configure.ac: Regenerated.
4475
4476 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
4477
4478 PR lto/89358
4479 * ipa-devirt.c (skip_in_fields_list_p): New.
4480 (odr_types_equivalent_p): Use it.
4481
4482 2019-04-13 Jakub Jelinek <jakub@redhat.com>
4483
4484 PR target/89093
4485 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
4486 instead of strncmp when checking for thumb and arm. Formatting fixes.
4487
4488 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
4489
4490 * doc/install.texi: Document --with-target-system-zlib.
4491
4492 2019-04-12 Martin Sebor <msebor@redhat.com>
4493
4494 PR c/88383
4495 PR c/89288
4496 PR c/89798
4497 PR c/89797
4498 * targhooks.c (default_vector_alignment): Avoid assuming
4499 argument fits in SHWI.
4500 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
4501 a shift expression.
4502 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
4503
4504 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4505
4506 PR rtl-optimization/89965
4507 * dce.c: Include rtl-iter.h.
4508 (struct check_argument_load_data): New type.
4509 (check_argument_load): New function.
4510 (find_call_stack_args): Check for loads from stack slots still tracked
4511 in sp_bytes and punt if any is found.
4512
4513 * config/mips/loongson-mmiintrin.h: Fix up #error message.
4514
4515 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
4516
4517 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
4518 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
4519
4520 2019-04-12 Martin Liska <mliska@suse.cz>
4521
4522 PR middle-end/89970
4523 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
4524 in error message.
4525 (separate_attrs): Handle multiple 'default's.
4526 (expand_target_clones): Rework error handling code.
4527
4528 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
4529
4530 PR target/87532
4531 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
4532 mode of vector rather than mode of destination for move instruction.
4533 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
4534 Use QI inner mode with V16QI vector mode.
4535
4536 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4537
4538 PR target/52726
4539 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
4540 "invalid %%t operand" in output_operand_lossage message.
4541
4542 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
4543
4544 * config/s390/predicates.md (permute_pattern_operand): New
4545 predicate.
4546 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
4547 operand for the permute pattern.
4548 ("*vec_perm<mode>"): New insn definition.
4549 ("bswap<mode>"): Generate the permute pattern operand in the
4550 expander and perform the operand reloads for pre arch13 level
4551 already.
4552 ("*bswap<mode>_emu"): Rename to ...
4553 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
4554 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
4555 Add the USE operand for the permute pattern.
4556 ("*vec_set_bswap_vec<mode>"): Likewise.
4557
4558 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4559
4560 PR c/89946
4561 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
4562 and gcc_unreachable if it fails, just call tree_to_uhwi which
4563 verifies that too. Test TREE_CHAIN instead of list_length > 1.
4564 Start warning message with a lower-case letter. Formatting fixes.
4565
4566 PR rtl-optimization/90026
4567 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
4568 successors, look for BARRIERs inside of the whole BB_FOOTER chain
4569 rather than just at the start of it. If e->src BB_FOOTER is not NULL
4570 in cfglayout mode, use emit_barrier_after_bb.
4571
4572 2018-04-11 Steve Ellcey <sellcey@marvell.com>
4573
4574 PR rtl-optimization/87763
4575 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
4576 New Instruction.
4577
4578 2019-04-11 Tom de Vries <tdevries@suse.de>
4579
4580 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
4581 max macro using statement expression.
4582
4583 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
4584
4585 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
4586 * xcoffout.c (xcoff_private_rodata_section_name): Define.
4587 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
4588 read_only_private_data_section using xcoff_private_rodata_section_name.
4589 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
4590
4591 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
4592
4593 PR target/90016
4594 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
4595
4596 2019-04-11 Jakub Jelinek <jakub@redhat.com>
4597
4598 PR rtl-optimization/89965
4599 * dce.c (sp_based_mem_offset): New function.
4600 (find_call_stack_args): Use sp_based_mem_offset.
4601
4602 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
4603
4604 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
4605
4606 2019-04-11 Richard Biener <rguenther@suse.de>
4607
4608 PR tree-optimization/90020
4609 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
4610 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
4611 * tree-ssa-pre.c (compute_avail): Use it to not put
4612 possibly trapping references after a call that might not
4613 return into EXP_GEN.
4614 * gcse.c (compute_hash_table_work): Do not elide
4615 marking a block containing a call if the call might not
4616 return.
4617
4618 2019-04-11 Richard Biener <rguenther@suse.de>
4619
4620 PR tree-optimization/90018
4621 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
4622 Test both SLP and interleaving variants.
4623
4624 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
4625
4626 * config/s390/8561.md: New file.
4627 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4628 Add arch13 cpu model.
4629 * config/s390/s390-opts.h (enum processor_type): Likewise.
4630 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
4631 (s390_get_unit_mask): Likewise.
4632 (s390_is_fpd): Likewise.
4633 (s390_is_fxd): Likewise.
4634 * config/s390/s390.h (s390_tune_attr): Likewise.
4635 * config/s390/s390.md: Include arch13 pipeline description.
4636 * config/s390/s390.opt: Add arch13.
4637
4638 2018-04-10 Steve Ellcey <sellcey@marvell.com>
4639
4640 PR rtl-optimization/87763
4641 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
4642 New prototype.
4643 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
4644 New function.
4645 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
4646 New instruction.
4647 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
4648 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
4649 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
4650 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
4651
4652 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
4653
4654 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
4655 "Although" in -fipa-icf documentation.
4656
4657 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
4658 of using multiple -g options.
4659
4660 2019-04-10 Martin Liska <mliska@suse.cz>
4661
4662 PR gcov-profile/89959
4663 * doc/gcov.texi: Make documentation of -x option
4664 more precise.
4665
4666 2019-04-10 Richard Biener <rguenther@suse.de>
4667
4668 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
4669 member.
4670 (DR_GROUP_SAME_DR_STMT): Remove.
4671 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
4672 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
4673 replace with assert.
4674 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
4675 (vect_record_grouped_load_vectors): Remove unreachable code.
4676
4677 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
4678
4679 PR target/90016
4680 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
4681 obsolete reference to N.
4682
4683 2019-04-10 Jakub Jelinek <jakub@redhat.com>
4684
4685 PR middle-end/90025
4686 * expr.c (store_expr): Set properly size on the MEM passed to
4687 clear_storage.
4688
4689 PR c++/90010
4690 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
4691 with strlen in between hostsz-3 and hostsz-1 inclusive when no
4692 translation is needed, and when translation is needed, only append
4693 ... if the string length is hostsz or more bytes long. Avoid using
4694 strncpy or strcat.
4695
4696 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
4697
4698 PR target/90024
4699 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
4700 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
4701 into three.
4702 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
4703 differences directly.
4704 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
4705
4706 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4707
4708 PR translation/90011
4709 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4710 from diagnostics.
4711 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4712 diagnostics.
4713 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4714 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4715 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4716 trailing space from -gsplit-dwarf diagnostics.
4717
4718 PR tree-optimization/89998
4719 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4720 instead of integer_type_node if possible, don't add ranges if return
4721 type is not compatible with int.
4722 * gimple-fold.c (gimple_fold_builtin_sprintf,
4723 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4724 integer_type_node.
4725
4726 2019-04-09 Martin Liska <mliska@suse.cz>
4727
4728 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4729 * doc/install.texi: Document the new config.
4730
4731 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
4732
4733 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4734 use gimple_expr_type for load and store calls. Skip over the
4735 condition argument in a conditional internal function.
4736 Protect use of TREE_INT_CST_LOW.
4737
4738 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4739
4740 PR target/90015
4741 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4742 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
4743 trailing period from it too.
4744
4745 2019-04-08 wu yuan <wuyuan5@huawei.com>
4746
4747 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4748 * config/aarch64/aarch64.md : Add "tsv110.md"
4749 * config/aarch64/tsv110.md: New file.
4750
4751 2019-04-08 Richard Biener <rguenther@suse.de>
4752
4753 PR tree-optimization/90006
4754 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4755 calls like lrint.
4756
4757 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
4758
4759 PR target/83033
4760 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4761 construction.
4762 (fma_root_node): Likewise.
4763 (func_fma_steering): Likewise.
4764
4765 2019-04-08 Jakub Jelinek <jakub@redhat.com>
4766
4767 PR rtl-optimization/89865
4768 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4769
4770 PR rtl-optimization/89865
4771 * config/i386/i386.md
4772 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4773 numbers not to clash with the additional operands[4].
4774 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4775 with extra register copy in the middle.
4776
4777 2019-04-08 Martin Liska <mliska@suse.cz>
4778
4779 PR gcov-profile/89961
4780 * doc/gcov.texi: Document data_file.
4781 * gcov.c (generate_results): Add data_info into JSON output.
4782
4783 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4784
4785 PR tree-optimization/89725
4786 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
4787 loop's chrec as invariant symbol.
4788 * tree-chrec.h (chrec_contains_symbols): New parameter.
4789 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4790 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4791 function of loops not in DDR's loop_nest.
4792 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4793
4794 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
4795
4796 PR target/89623
4797 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4798 Mask.
4799
4800 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
4801
4802 PR target/89945
4803 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4804 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4805
4806 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
4807
4808 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4809 targetm.fixed_condition_code_regs.
4810
4811 2019-04-05 Richard Biener <rguenther@suse.de>
4812
4813 PR debug/89892
4814 PR debug/89905
4815 * tree-cfgcleanup.c (remove_forwarder_block): Always move
4816 debug bind stmts but reset them if they are not valid at the
4817 destination.
4818
4819 2019-04-05 Martin Liska <mliska@suse.cz>
4820
4821 PR translation/89936
4822 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4823 order to wrap keywords or arguments.
4824 * collect2.c (main): Likewise.
4825 (scan_prog_file): Likewise.
4826 (scan_libraries): Likewise.
4827 * common/config/riscv/riscv-common.c
4828 (riscv_subset_list::parsing_subset_version): Likewise.
4829 (riscv_subset_list::parse_std_ext): Likewise.
4830 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4831 Likewise.
4832 * config/arm/arm.c (arm_option_override): Likewise.
4833 * config/cris/cris.c (cris_print_operand): Likewise.
4834 * config/darwin-c.c (darwin_pragma_options): Likewise.
4835 (darwin_pragma_unused): Likewise.
4836 (darwin_pragma_ms_struct): Likewise.
4837 * config/ft32/ft32.c (ft32_print_operand): Likewise.
4838 * config/i386/i386.c (print_reg): Likewise.
4839 (ix86_print_operand): Likewise.
4840 * config/i386/xm-djgpp.h: Likewise.
4841 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4842 * config/m32c/m32c.c (m32c_option_override): Likewise.
4843 * config/msp430/msp430.c (msp430_option_override): Likewise.
4844 * config/nds32/nds32.c (nds32_option_override): Likewise.
4845 * config/nvptx/mkoffload.c (main): Likewise.
4846 * config/rx/rx.c (rx_print_operand): Likewise.
4847 (valid_psw_flag): Likewise.
4848 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4849 (vms_pragma_nomember_alignment): Likewise.
4850 (vms_pragma_extern_model): Likewise.
4851 * lto-wrapper.c (compile_offload_image): Likewise.
4852 * omp-offload.c (oacc_parse_default_dims): Likewise.
4853 * symtab.c (symtab_node::verify_base): Likewise.
4854 * tlink.c (recompile_files): Likewise.
4855 (start_tweaking): Likewise.
4856 * tree-profile.c (parse_profile_filter): Likewise.
4857
4858 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
4859
4860 PR tree-optimization/89956
4861 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4862 multiple negates of the same value.
4863
4864 2019-04-04 Martin Sebor <msebor@redhat.com>
4865
4866 PR middle-end/89957
4867 PR middle-end/89911
4868 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4869 have the same precision since the function crashes otherwise.
4870 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4871 has non-zero arguments.
4872
4873 2019-04-04 Martin Sebor <msebor@redhat.com>
4874
4875 PR middle-end/89934
4876 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4877 out if the number of arguments is less than expected.
4878
4879 2019-04-04 Jeff Law <law@redhat.com>
4880
4881 PR rtl-optimization/89399
4882 * ree.c (combine_set_extension): Use single_set rather than
4883 digging into PATTERN for items on the candidate list.
4884 (combine_reaching_defs): Likewise.
4885
4886 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
4887
4888 PR rtl-optimization/46590
4889 * loop-invariant.c (find_defs): Move df_remove_problem and
4890 df_process_deferred_rescans to move_invariants.
4891 Move df_live_add_problem and df_live_set_all_dirty calls
4892 to move_invariants.
4893 (move_invariants): Likewise.
4894 (move_loop_invariants): Likewise, making the df_live calls
4895 conditional on -O. Remove the problem again if we added it
4896 locally.
4897
4898 2019-04-03 qing zhao <qing.zhao@oracle.com>
4899
4900 PR tree-optimization/89730
4901 * ipa-inline.c (can_inline_edge_p): Delete the checking for
4902 -flive-patching=inline-only-static.
4903 (can_inline_edge_by_limits_p): Add the checking for
4904 -flive-patching=inline-only-static and grant always_inline
4905 even when -flive-patching=inline-only-static is specified.
4906
4907 2019-04-03 Jeff Law <law@redhat.com>
4908
4909 PR rtl-optimization/81025
4910 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4911
4912 2019-04-03 Richard Biener <rguenther@suse.de>
4913
4914 PR tree-optimization/84101
4915 * tree-vect-stmts.c: Include explow.h for hard_function_value,
4916 regs.h for hard_regno_nregs.
4917 (cfun_returns): New helper.
4918 (vect_model_store_cost): When vectorizing a store to a decl
4919 we return and the function ABI returns in a multi-reg location
4920 account for the possible spilling that will happen.
4921
4922 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
4923
4924 * config/s390/s390.c (s390_legitimate_address_p): Reject long
4925 displacement addresses for vector mode operands.
4926
4927 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
4928
4929 * config/arc/arc.c (GMASK_LEN): Define.
4930 (arc_restore_callee_saves): Restore first blink when
4931 !optimize_size.
4932
4933 2019-04-03 Sudakshina Das <sudi.das@arm.com>
4934
4935 * doc/extend.texi: Add deprecated comment on sign-return-address
4936 function attribute and add mbranch-protection.
4937 * doc/invoke.texi: Add bti to the options for mbranch-protection.
4938
4939 2019-04-03 Richard Biener <rguenther@suse.de>
4940
4941 PR lto/89896
4942 * lto-wrapper.c (run_gcc): Avoid implicit rules making
4943 the all target phony.
4944
4945 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
4946
4947 PR target/89902
4948 PR target/89903
4949 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4950 Return false for variable DImode shifts.
4951 (dimode_scalar_chain::compute_convert_gain): Do not handle
4952 register count operand in variable DImode shifts.
4953 (dimode_scalar_chain::make_vector_copies): Remove support to copy
4954 count argument of a variable shift instruction to a vector register.
4955 (dimode_scalar_chain::convert_reg): Remove support to convert
4956 count argument of a variable shift instruction.
4957
4958 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4959
4960 PR rtl-optimization/84206
4961 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
4962 iterating over loop headers.
4963
4964 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4965
4966 PR rtl-optimization/85876
4967 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
4968 beyond the original fence.
4969
4970 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
4971
4972 * config.gcc: Mark spu* targets as deprecated/obsolete.
4973
4974 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4975
4976 * config/s390/s390-builtin-types.def: New builtin function type
4977 definitions. Remove unused types.
4978 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
4979 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
4980 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
4981 overloaded builtins.
4982 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
4983 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
4984 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
4985 (vec_double, vec_signed, vec_unsigned): Define to use the new
4986 overloaded builtins.
4987 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
4988 Remove expanders.
4989
4990 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4991
4992 * config/s390/s390-builtin-types.def: New builtin function type
4993 definitions.
4994 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
4995 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
4996 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
4997 (s390_vstrszh, s390_vstrszf): New low-level builtins.
4998 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
4999 constant definitions.
5000 * config/s390/vecintrin.h (vec_search_string_cc)
5001 (vec_search_string_until_zero_cc): New builtin name definitions.
5002 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
5003 expanders.
5004 ("vec_vstrs<mode>"): New insn definition.
5005
5006 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5007
5008 * config/s390/s390-builtin-types.def: Add new builtin function
5009 types.
5010 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
5011 New overloaded builtins.
5012 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
5013 s390_vsrd.
5014 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
5015 (UNSPEC_VEC_SLDBYTE): ... this.
5016 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
5017 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
5018 definitions.
5019 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
5020 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
5021 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
5022
5023 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5024
5025 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
5026 New insn definition.
5027 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
5028 * config/s390/vector.md (V_HW_HSD): ... here.
5029
5030 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5031
5032 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
5033 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
5034 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
5035 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
5036 New insn definitions.
5037
5038 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5039
5040 * config/s390/s390-builtin-types.def: Add new builtin function type.
5041 * config/s390/s390-builtins.def: Add overloaded builtin
5042 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
5043 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
5044 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
5045 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
5046 ("eltswap<mode>"): New expander.
5047 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
5048 insn definitions.
5049
5050 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5051
5052 * config/s390/s390-builtin-types.def: Add new builtin function types.
5053 * config/s390/s390-builtins.def: Add overloaded builtin
5054 s390_vec_revb. Add low-level builtins for vlbr and vstbr
5055 instructions.
5056 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
5057 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
5058 ("bswap<mode>"): New expander.
5059 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
5060
5061 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5062
5063 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
5064 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
5065 vector builtin version number in __VEC__.
5066
5067 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5068
5069 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
5070 iterators.
5071 (SFSI): New mode attribute.
5072 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
5073 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
5074 rename to ...
5075 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
5076 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
5077 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
5078 ("floatsi<mode>2"): Add wcefb instruction.
5079
5080 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5081
5082 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
5083 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
5084 mode iterators.
5085 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
5086 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
5087 support 32 bit fp-int conversions. Rename to ...
5088 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
5089 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
5090 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
5091 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
5092 ... to these.
5093
5094 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5095
5096 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
5097 if-then-else constructs if we can use the select instruction.
5098 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
5099
5100 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5101
5102 * config/s390/s390.md ("*popcountdi_arch13_cc")
5103 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
5104 definition.
5105 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
5106 Append _z196 to make it ...
5107 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
5108 ("popcounthi2_z196"): ... this.
5109 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
5110 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
5111
5112 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5113
5114 * config/s390/s390.c (s390_canonicalize_comparison): Convert
5115 certain compares for arch13 in order to make use of the condition
5116 code result produced by the new instructions.
5117 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
5118 nxrk, and nxgrk instruction patterns.
5119 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
5120 (inv_no): Add new code iterator together with some attributes.
5121 ("*andc_split_<mode>"): Disable splitter for arch13.
5122 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
5123 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
5124 ("*<ANDOR:bitops_name>c<GPR:mode>")
5125 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
5126 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
5127 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
5128 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
5129
5130 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5131
5132 * common/config/s390/s390-common.c (processor_flags_table): New
5133 entry for arch13.
5134 * config.gcc: Support arch13 with the --with-arch= configure flag.
5135 * config/s390/driver-native.c (s390_host_detect_local_cpu):
5136 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
5137 * config/s390/s390.c (s390_get_sched_attrmask)
5138 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
5139 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
5140 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
5141 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
5142 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
5143 definitions.
5144 * config/s390/s390.opt: Support arch13 as processor type in
5145 command line options.
5146
5147 2019-04-02 Martin Liska <mliska@suse.cz>
5148
5149 PR translation/89912
5150 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
5151 Fix param description of graphite-max-arrays-per-scop.
5152
5153 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
5154
5155 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
5156 (ASAN_CC1_SPEC): Use it in 64-bit mode.
5157 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
5158
5159 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5160
5161 PR rtl-optimization/85412
5162 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
5163 sel_sched_region_1, not after.
5164
5165 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5166
5167 PR rtl-optimization/86928
5168 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
5169 compute_live if necessary.
5170 (sel_redirect_edge_and_branch): Likewise.
5171
5172 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
5173
5174 PR rtl-optimization/89865
5175 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
5176 register if it is a part of small class.
5177
5178 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5179
5180 PR rtl-optimization/87273
5181 * sel-sched-ir.c (merge_fences): Remove assert.
5182
5183 2019-04-01 Richard Biener <rguenther@suse.de>
5184
5185 PR tree-optimization/46590
5186 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
5187 (dom_walker::m_reachability): Add in place of...
5188 (dom_walker::m_skip_unreachable_blocks): ...this.
5189 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
5190 Move complex initialization ...
5191 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
5192 lazily and initialize edge flags on each invocation.
5193 (dom_walker::bb_reachable): Use m_reachability.
5194
5195 2019-04-01 Martin Liska <mliska@suse.cz>
5196
5197 PR driver/89861
5198 * opt-suggestions.c (option_proposer::build_option_suggestions):
5199 Add variant without any argument in order to provide better
5200 hints.
5201
5202 2019-04-01 Richard Biener <rguenther@suse.de>
5203
5204 PR c/71598
5205 * gimple.c: Include langhooks.h.
5206 (gimple_get_alias_set): Treat enumeral types as the underlying
5207 integer type.
5208
5209 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
5210 Eric Botcazou <ebotcazou@adacore.com>
5211
5212 PR rtl-optimization/89862
5213 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
5214 that operates on the full registers for WORD_REGISTER_OPERATIONS
5215 architectures.
5216
5217 2019-03-29 Jim Wilson <jimw@sifive.com>
5218
5219 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
5220 Clear MASK_RVC and then set if C subset supported.
5221
5222 2019-03-29 Jakub Jelinek <jakub@redhat.com>
5223
5224 PR c/89872
5225 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
5226 non-addressable complit into its initializer if it is volatile.
5227
5228 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
5229
5230 * opts-common.c (integral_argument): Set errno properly in one case.
5231
5232 2019-03-29 Martin Liska <mliska@suse.cz>
5233
5234 * doc/invoke.texi: Remove -Wchkp from documentation.
5235
5236 2019-03-29 Martin Liska <mliska@suse.cz>
5237
5238 * dbgcnt.c (print_limit_reach): New function.
5239 (dbg_cnt): Use it.
5240
5241 2019-03-29 Martin Liska <mliska@suse.cz>
5242
5243 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
5244 (dbg_cnt_process_opt): Parse first tokens aas
5245 dbg_cnt_process_single_pair is also using strtok.
5246
5247 2019-03-29 Jakub Jelinek <jakub@redhat.com>
5248
5249 PR rtl-optimization/87485
5250 * function.c (expand_function_end): Move stack_protect_epilogue
5251 before loading of return value into hard register(s).
5252
5253 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5254
5255 PR middle-end/89621
5256 * tree-inline.h (struct copy_body_data): Add
5257 dont_remap_vla_if_no_change flag.
5258 * tree-inline.c (remap_type_3, remap_type_2): New functions.
5259 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
5260 and remap_type_2 returns false.
5261 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
5262 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
5263 only from where it is copied to nested contexts.
5264
5265 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5266
5267 PR target/89865
5268 * config/i386/i386.md (RMW operation with LEA peephole):
5269 Use LEAMODE mode attribute instead of SWI mode iterator for
5270 LEA pattern.
5271
5272 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5273
5274 PR target/89848
5275 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
5276 Also process XEXP (src, 0) of a shift insn.
5277
5278 2019-03-28 David Malcolm <dmalcolm@redhat.com>
5279
5280 PR middle-end/89725
5281 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
5282 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
5283
5284 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5285
5286 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
5287 test.
5288 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
5289 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
5290 immediately after first one with df_analyze in between, but rather
5291 process all bbs, queueing ones that need second pass in a worklist,
5292 df_analyze, process queued debug insn changes and if second pass is
5293 needed, process bbs from worklist, df_analyze, process queued debug
5294 insns again.
5295
5296 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
5297 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
5298 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
5299
5300 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
5301
5302 PR c/79022
5303 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
5304 definition.
5305
5306 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
5307
5308 PR target/85667
5309 * config/i386/i386.c (ix86_function_value_1): Call the newly added
5310 function for 32-bit MS_ABI.
5311 (function_value_ms_32): New function.
5312
5313 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
5314
5315 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
5316 (movdi): Call gen_movdi_symbol_save_scc.
5317 (gen_movdi_symbol_save_scc): New insn and split.
5318
5319 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
5320
5321 PR rtl-optimization/89313
5322 * function.c (matching_constraint_num): New static function.
5323 (match_asm_constraints_1): Use it. Fixup white space and comment.
5324 Don't replace inputs with non-matching constraints which conflict
5325 with early clobber outputs.
5326
5327 2019-03-27 Jeff Law <law@redhat.com>
5328
5329
5330 PR rtl-optimization/87761
5331 PR rtl-optimization/89826
5332 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
5333 slightly later.
5334 (pass_cprop_hardreg::execute): Call df_analyze after adding the
5335 note problem to get REG_DEAD/REG_UNUSED notes updated.
5336
5337 2019-03-27 Richard Biener <rguenther@suse.de>
5338
5339 PR tree-optimization/89463
5340 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
5341 queue edges to remove.
5342 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
5343 dead stmts. Delay edge removal until PHIs are removed to
5344 make debug-stmt creation not confused by seemingly degenerate
5345 PHIs.
5346
5347 2019-03-27 Alan Modra <amodra@gmail.com>
5348
5349 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
5350 throughout file.
5351 * config/rs6000/darwin.h: Likewise.
5352 * config/rs6000/rs6000.c: Likewise.
5353
5354 2019-03-27 Alan Modra <amodra@gmail.com>
5355
5356 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
5357 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
5358
5359 2019-03-26 Andrew Waterman <andrew@sifive.com>
5360 Jim Wilson <jimw@sifive.com>
5361
5362 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
5363 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
5364 (generic_idivdi, generic_fmul_single, generic_fmul_double)
5365 (generic_fdiv, generic_fsqrt): Add check for generic tune.
5366 (generic_alu): Add auipc to type list.
5367 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
5368 (riscv_microarchitecture): Declare.
5369 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
5370 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
5371 field.
5372 (riscv_microarchitecture): New.
5373 (sifive_7_tune_info): New.
5374 (riscv_cpu_info_table): Add microarchitecture value for rocket and
5375 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
5376 entries.
5377 (riscv_store_data_bypass_p): New.
5378 (riscv_option_override): Set riscv_microarchitecture from
5379 cpu->microarchitecture.
5380 * config/riscv/riscv.md: Include sifive-7.md.
5381 (type): Add auipc.
5382 (tune): New.
5383 (auipc<mode>): Change type to auipc.
5384 (restore_stack_nonlocal): New.
5385 * config/riscv/sifive-7.md: New.
5386 * doc/invoke.texi (RISC-V Options): Update mtune docs.
5387
5388 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
5389
5390 PR target/89827
5391 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
5392 Also process XEXP (src, 0) of a shift insn.
5393
5394 2019-03-26 Richard Biener <rguenther@suse.de>
5395
5396 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
5397 (copy_debug_stmt): Likewise.
5398 (expand_call_inline): Likewise.
5399 (copy_bb): Avoid redundant lookup & set of gimple_block.
5400 * gimple-low.c (lower_gimple_return): Likewise.
5401 (lower_builtin_setjmp): Likewise.
5402
5403 2019-03-26 Jakub Jelinek <jakub@redhat.com>
5404
5405 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
5406 is constant 0, turn into static const data member initialized to false.
5407 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
5408 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
5409
5410 2019-03-26 Jason Merrill <jason@redhat.com>
5411 Jakub Jelinek <jakub@redhat.com>
5412
5413 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
5414 method.
5415 (mem_alloc_description::release_object_overhead): Fix comment typos.
5416 * hash-table.h (hash_table::~hash_table): Call
5417 release_instance_overhead only if m_entries is non-NULL, otherwise
5418 call unregister_descriptor.
5419
5420 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
5421
5422 PR tree-optimization/81740
5423 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5424 In case of outer loop vectorization, check for backward dependence
5425 at the inner loop if outer loop dependence is reversed.
5426
5427 2019-03-26 Alan Modra <amodra@gmail.com>
5428
5429 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
5430 rs6000_vector_mem init. Correct wI and wJ comment.
5431
5432 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
5433
5434 PR rtl-optimization/88347
5435 PR rtl-optimization/88423
5436 * sched-deps.c (sched_analyze_insn): Take into account that for
5437 tablejumps the barrier appears after a label and a jump_table_data.
5438
5439 2019-03-25 Martin Sebor <msebor@redhat.com>
5440
5441 PR c/89812
5442 * c-common.c (check_user_alignment): Rename local. Correct maximum
5443 alignment in diagnostic. Avoid assuming argument fits in SHWI,
5444 convert it to UHWI when it fits.
5445
5446 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
5447
5448 PR debug/86964
5449 * dwarf2out.c (premark_used_variables): New function.
5450 (prune_unused_types_walk): Do not mark not premarked external
5451 variables.
5452 (prune_unused_types): Call premark_used_variables.
5453
5454 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
5455
5456 PR rtl-optimization/89676
5457 * lra-constraints.c (curr_insn_transform): Do match reload for
5458 early clobbers when the match was successful only for different
5459 registers.
5460
5461 2019-03-25 Martin Sebor <msebor@redhat.com>
5462
5463 * doc/extend.texi (Common Type Attributes): Document vector_size.
5464 (Common Variable Attributes): Mention size constraint. Correct
5465 quoting and typos.
5466 (Vector Extensions): Use @dfn when defining bas type. Clarify
5467 base type and size constraints.
5468
5469 2019-03-25 Richard Biener <rguenther@suse.de>
5470
5471 PR tree-optimization/89789
5472 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
5473 changes from non-undefined back to undefined.
5474
5475 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
5476
5477 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
5478 heap string and a gc string, but since this variable is unknown to
5479 ggc the gc string might get reused and corrupted. Fixed by always
5480 using a heap string.
5481
5482 2019-03-25 Richard Biener <rguenther@suse.de>
5483
5484 PR tree-optimization/89779
5485 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
5486 to remove IV defs, delay actual removal.
5487 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
5488 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
5489 very end, properly also reset loop control IV information.
5490
5491 2019-03-25 Richard Biener <rguenther@suse.de>
5492
5493 PR tree-optimization/89802
5494 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
5495 move EH data to folded stmt.
5496
5497 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5498
5499 * config/s390/s390-builtin-types.def: Remove few unused types and
5500 fix sort order for others.
5501
5502 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5503
5504 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
5505 expected and found types with -mdebug during builtin matching.
5506
5507 2019-03-25 Richard Biener <rguenther@suse.de>
5508
5509 PR middle-end/89790
5510 * fold-const.c (operand_equal_p): Revert last change with
5511 updated comment.
5512
5513 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
5514
5515 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
5516 notes for the result of the __tls_get_addr calls.
5517 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
5518
5519 2019-03-24 Jeff Law <law@redhat.com>
5520
5521 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
5522
5523 PR rtl-optimization/87761
5524 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
5525 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
5526 as needed.
5527 (pass_cprop_hardreg::execute): Add df note problem and defer insn
5528 rescans. Reprocess blocks as needed, calling df_analyze before
5529 reprocessing. Always call df_analyze before fixing up debug bind
5530 insns.
5531
5532 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
5533
5534 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
5535 big endian.
5536
5537 2019-03-22 Andrew Pinski <apinski@marvell.com>
5538
5539 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
5540 attrribute for uxtw.
5541
5542 2019-03-26 Jeff Law <law@redhat.com>
5543
5544 PR rtl-optimization/87761
5545 * config/mips/mips-protos.h (mips_split_move): Add new argument.
5546 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
5547 (mips_split_move): Accept new INSN argument. Try to forward SRC
5548 into the next instruction.
5549 (mips_split_move_insn): Pass INSN through to mips_split_move.
5550
5551 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
5552
5553 PR rtl-optimization/89676
5554 * lra-constraints.c (curr_insn_transform): Do match reload for
5555 early clobbers even if the match was successful.
5556
5557 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5558
5559 PR c++/87481
5560 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
5561
5562 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
5563
5564 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
5565
5566 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5567
5568 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
5569 <avx512>_fmsub_<mode>_mask3<round_name>,
5570 <avx512>_fnmadd_<mode>_mask3<round_name>,
5571 <avx512>_fnmsub_<mode>_mask3<round_name>,
5572 avx512f_vmfmadd_<mode>_mask3<round_name>,
5573 avx512f_vmfmsub_<mode>_mask3<round_name>,
5574 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
5575 instead of register_operand and %v instead of v for match_operand 1.
5576 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
5577 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
5578 <round_nimm_predicate> instead of register_operand and %v instead of v
5579 for match_operand 1.
5580
5581 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
5582 <avx512>_fmadd_<mode>_mask3<round_name>,
5583 <avx512>_fmsub_<mode>_mask<round_name>,
5584 <avx512>_fmsub_<mode>_mask3<round_name>,
5585 <avx512>_fnmadd_<mode>_mask<round_name>,
5586 <avx512>_fnmadd_<mode>_mask3<round_name>,
5587 <avx512>_fnmsub_<mode>_mask<round_name>,
5588 <avx512>_fnmsub_<mode>_mask3<round_name>,
5589 <avx512>_fmaddsub_<mode>_mask<round_name>,
5590 <avx512>_fmaddsub_<mode>_mask3<round_name>,
5591 <avx512>_fmsubadd_<mode>_mask<round_name>,
5592 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
5593 <round_nimm_predicate> instead of nonimmediate_operand.
5594 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5595 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
5596 Use register_operand instead of <round_nimm_predicate> for the
5597 operand that needs to match output.
5598 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5599 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
5600 Likewise. Formatting fixes.
5601
5602 PR target/89784
5603 * config/i386/i386.c (enum ix86_builtins): Remove
5604 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
5605 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
5606 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
5607 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
5608 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
5609 __builtin_ia32_vfmsubss3_mask3): New builtins.
5610 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
5611 avx512f_vmfmadd_<mode>_mask3<round_name>,
5612 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5613 *avx512f_vmfmsub_<mode>_mask<round_name>,
5614 avx512f_vmfmsub_<mode>_mask3<round_name>,
5615 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
5616 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5617 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5618 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5619 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5620 avx512f_vmfnmsub_<mode>_mask3<round_name>,
5621 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
5622 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
5623 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
5624 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
5625 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
5626 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
5627 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
5628 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
5629 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
5630 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
5631 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
5632 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
5633 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
5634 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
5635 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
5636 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
5637 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
5638 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
5639 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
5640 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
5641 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
5642 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
5643
5644 2019-03-21 Martin Sebor <msebor@redhat.com>
5645
5646 PR tree-optimization/89350
5647 * builtins.c (compute_objsize): Also ignore offsets whose upper
5648 bound is negative.
5649 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
5650 (builtin_memref::builtin_memref): Initialize new member.
5651 Allow EXPR to be null.
5652 (builtin_memref::extend_offset_range): Replace local with a member.
5653 Avoid assuming pointer offsets are unsigned.
5654 (builtin_memref::set_base_and_offset): Determine base object
5655 before computing offset range.
5656 (builtin_access::builtin_access): Handle memset.
5657 (builtin_access::generic_overlap): Replace local with a member.
5658 (builtin_access::strcat_overlap): Same.
5659 (builtin_access::overlap): Same.
5660 (maybe_diag_overlap): Same.
5661 (maybe_diag_access_bounds): Same.
5662 (wrestrict_dom_walker::check_call): Handle memset.
5663 (check_bounds_or_overlap): Same.
5664
5665 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
5666 Jakub Jelinek <jakub@redhat.com>
5667
5668 PR lto/89692
5669 * tree.c (fld_type_variant, fld_incomplete_type_of,
5670 fld_process_array_type): Call fld->pset.add and don't call
5671 add_tree_to_fld_list if it returns true.
5672 (free_lang_data_in_type): Similarly with self-recursive call. Purge
5673 non-marked types from TYPE_NEXT_VARIANT list.
5674 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
5675
5676 2019-03-21 Jakub Jelinek <jakub@redhat.com>
5677
5678 * hash-table.h (hash_table): Add Lazy template parameter defaulted
5679 to false, if true, don't alloc_entries during construction, but defer
5680 it to the first method that needs m_entries allocated.
5681 (hash_table::hash_table, hash_table::~hash_table,
5682 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
5683 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
5684 hash_table::clear_slot, hash_table::traverse_noresize,
5685 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
5686 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
5687 false.
5688 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
5689 NO_INSERT instead of find_with_hash.
5690 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
5691 hash_set::m_table): Add Lazy to template params of hash_table.
5692 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
5693 * attribs.c (test_attribute_exclusions): Likewise.
5694 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
5695 hash_set. Add tests for hash_set with Lazy = true.
5696
5697 2019-03-21 Richard Biener <rguenther@suse.de>
5698
5699 PR tree-optimization/89779
5700 * tree.c (tree_nop_conversion): Consolidate and fix defensive
5701 checks with respect to released SSA names now having error_mark_node
5702 type.
5703 * fold-const.c (operand_equal_p): Likewise.
5704
5705 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
5706
5707 PR target/89775
5708 * config/s390/s390.c (global_not_special_regno_p): Move to make it
5709 available to ...
5710 (s390_optimize_register_info): Use global_not_special_regno_p to
5711 check for global regs.
5712
5713 2019-03-20 Jakub Jelinek <jakub@redhat.com>
5714
5715 PR target/89752
5716 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5717 update this_alternative nor this_alternative_set.
5718
5719 2019-03-19 Jim Wilson <jimw@sifive.com>
5720
5721 PR target/89411
5722 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
5723 align, size, offset. Use them to handle a BLKmode reference. Update
5724 comment.
5725 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5726
5727 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5728
5729 PR rtl-optimization/89768
5730 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5731 instead of GEN_INT.
5732 (unroll_loop_runtime_iterations): Likewise.
5733
5734 2019-03-19 Martin Sebor <msebor@redhat.com>
5735
5736 PR tree-optimization/89644
5737 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5738 rather than endptr as an indicator of nul-termination.
5739
5740 PR tree-optimization/89644
5741 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5742 arrays in determining sequence sizes in strncpy and stpncpy.
5743
5744 2019-03-19 Martin Liska <mliska@suse.cz>
5745
5746 PR middle-end/89737
5747 * predict.c (combine_predictions_for_bb): Empty likely_edges and
5748 unlikely_edges if there's an edge that belongs to both these sets.
5749
5750 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
5751
5752 PR target/89746
5753 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5754 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5755 go via a stack temporary.
5756
5757 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5758
5759 PR target/89378
5760 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5761 instead of gen_rtx_SUBREG.
5762 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5763
5764 2019-03-19 Richard Biener <rguenther@suse.de>
5765
5766 PR debug/88389
5767 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5768
5769 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
5770
5771 PR lto/87809
5772 PR lto/89335
5773 * tree.c (free_lang_data_in_decl): Do not free context of C++
5774 destrutors.
5775
5776 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5777
5778 PR target/89506
5779 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5780 subs for the first alternative except when operands[3] is 1.
5781
5782 PR target/89752
5783 * gimplify.c (gimplify_asm_expr): For output argument with
5784 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5785 diagnose error.
5786
5787 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
5788
5789 PR rtl-optimization/89753
5790 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5791 explicit unrolling factor even more robust.
5792
5793 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5794
5795 PR target/89726
5796 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5797 compensation use x2 += 1 instead of x2 -= -1 and when honoring
5798 signed zeros, do another copysign after the compensation.
5799
5800 2019-03-18 Martin Sebor <msebor@redhat.com>
5801
5802 PR tree-optimization/89720
5803 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5804 more conservatively, the same as anti-range.
5805
5806 2019-03-18 Richard Biener <rguenther@suse.de>
5807
5808 PR middle-end/88945
5809 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5810 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5811 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
5812 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5813
5814 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
5815
5816 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5817 Extend queue to 1024 entries.
5818 Add "consumed" field.
5819 (gomp_print_output): Remove print_index parameter.
5820 Add final parameter.
5821 Change limit to unsigned.
5822 Use consumed field to implement circular buffer.
5823 Detect interrupted print in final pass.
5824 Flush output at the end.
5825 (run): Update gomp_print_output usage.
5826 (main): Initialize kernargs->output_data.consumed.
5827
5828 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
5829
5830 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5831 calculation of the minimum number of scalar iterations for
5832 fully-predicated loops.
5833
5834 2019-03-18 Martin Jambor <mjambor@suse.cz>
5835
5836 PR tree-optimization/89546
5837 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5838 any propagation to its children took place.
5839
5840 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
5841
5842 PR target/89627
5843 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5844 parameter, and make use of it.
5845 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5846
5847 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5848
5849 * config/arc/arc.opt (mcode-density-frame): Get the inital value
5850 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5851 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5852 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5853 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5854 match what the ops is doing.
5855 (push_multi_fp_blink): Likewise.
5856 * config/arc/arc.c (arc_override_options): Enable enter/leave when
5857 compiling for size and elf target.
5858 (arc_save_callee_enter): Adjust note to match what enter/leave
5859 operation does.
5860
5861 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5862
5863 * config/arc/arc.md (tst_movb): Fix constraint.
5864
5865 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5866
5867 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5868
5869 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5870
5871 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5872 * config/arc/arc.c (arc_conditional_register_usage): Remove all
5873 reg_alloc_order references.
5874 (size_alloc_order): Define.
5875 (arc_adjust_reg_alloc_order): New function.
5876 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5877 order.
5878 (ADJUST_REG_ALLOC_ORDER): Define.
5879 (HONOR_REG_ALLOC_ORDER): Likewise.
5880
5881 2019-03-18 Richard Biener <rguenther@suse.de>
5882
5883 PR target/87561
5884 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5885 loads and stores a bit more.
5886
5887 2019-03-18 Richard Biener <rguenther@suse.de>
5888
5889 PR target/87561
5890 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5891 load pessimization to stores as well.
5892
5893 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
5894
5895 PR middle-end/86979
5896 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5897 successor, use NULL as its av set.
5898
5899 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5900
5901 PR rtl-optimization/89721
5902 * lra-constraints (invariant_p): Return false if side_effects_p holds.
5903
5904 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
5905
5906 PR target/87532
5907 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5908 When handling vec_extract, use modular arithmetic to allow
5909 constant selectors greater than vector length.
5910 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5911 V1TImode vectors to have constant selector values greater than 0.
5912 Use modular arithmetic to compute vector index.
5913 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5914 index for in-memory vectors. Correct code generation for
5915 in-register vectors.
5916 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5917 compute index.
5918
5919 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
5920
5921 PR c++/88534
5922 PR c++/88537
5923 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5924 VAR_DECL args.
5925
5926 2019-03-15 Jakub Jelinek <jakub@redhat.com>
5927
5928 PR c++/89709
5929 * tree.c (inchash::add_expr): Strip any location wrappers.
5930 * fold-const.c (operand_equal_p): Move stripping of location wrapper
5931 after hash verification.
5932
5933 PR debug/89704
5934 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5935 SIGN_EXTEND and ZERO_EXTEND.
5936
5937 2019-03-14 Jason Merrill <jason@redhat.com>
5938 Jakub Jelinek <jakub@redhat.com>
5939
5940 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5941 than if is_empty (*slot).
5942 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5943 existing elt and for elt removal.
5944 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5945 of already removed elt.
5946
5947 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
5948
5949 PR target/89650
5950 * config/i386/i386.c (remove_partial_avx_dependency): Handle
5951 REG_EH_REGION note.
5952
5953 2019-03-14 Martin Liska <mliska@suse.cz>
5954
5955 PR other/89712
5956 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
5957
5958 2019-03-14 Richard Biener <rguenther@suse.de>
5959
5960 PR target/89711
5961 * config/i386/i386.c (make_resolver_func): Properly set
5962 DECL_CONTEXT on the RESULT_DECL.
5963 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
5964
5965 2019-03-14 Richard Biener <rguenther@suse.de>
5966
5967 * gimple-pretty-print.c: Include cfgloop.h.
5968 (dump_gimple_phi): Adjust.
5969 (dump_gimple_bb_header): Dump loop header for GIMPLE.
5970 (pp_cfg_jump): Adjust.
5971 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
5972 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
5973 (lower_phi_internal_fn): Remove.
5974 (verify_gimple_call): Remove IFN_PHI special-casing.
5975 (dump_function_to_file): Dump IL state.
5976 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
5977 done to deal with PHI nodes being present in non-SSA state.
5978
5979 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5980
5981 PR ipa/89684
5982 * multiple_target.c (create_dispatcher_calls): Change
5983 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
5984 In the node->iterate_referring loop, push *ref rather than ref, call
5985 ref->remove_reference () and always pass 0 to iterate_referring.
5986
5987 PR rtl-optimization/89679
5988 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
5989 would contain a paradoxical SUBREG.
5990
5991 2019-03-14 Richard Biener <rguenther@suse.de>
5992
5993 PR tree-optimization/89710
5994 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
5995 safe_dyn_cast.
5996
5997 2019-03-14 Martin Liska <mliska@suse.cz>
5998
5999 * coverage.c (coverage_begin_function): Stream also
6000 end_column.
6001 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
6002 documentation about function declaration location.
6003 * gcov-dump.c (tag_function): Print whole range
6004 of function declaration.
6005 * gcov.c (struct function_info): Add end_column field.
6006 (function_info::function_info): Initialize it.
6007 (output_json_intermediate_file): Output {start,end}_column
6008 fields.
6009 (read_graph_file): Read end_column.
6010
6011 2019-03-14 Richard Biener <rguenther@suse.de>
6012
6013 PR middle-end/89698
6014 * fold-const.c (operand_equal_p): For INDIRECT_REF check
6015 that the access types are similar.
6016
6017 2019-03-14 Jakub Jelinek <jakub@redhat.com>
6018
6019 PR tree-optimization/89703
6020 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
6021 aren't compatible also with builtin_decl_explicit. Check pure
6022 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
6023 and BUILT_IN_STPNCPY{,_CHK}.
6024
6025 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
6026
6027 PR target/89523
6028 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
6029 addr32 prefix to VSIB address for X32.
6030 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
6031 "%M2" to opcode.
6032 (*avx512pf_gatherpf<mode>df_mask): Likewise.
6033 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
6034 (*avx512pf_scatterpf<mode>df_mask): Likewise.
6035 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
6036 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
6037 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
6038 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
6039 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
6040 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
6041 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
6042 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
6043 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
6044 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
6045 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
6046 (*avx512f_scatterdi<mode>): Likewise.
6047
6048 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
6049
6050 PR target/85860
6051 * lra-constraints.c (inherit_in_ebb): Update
6052 potential_reload_hard_regs along with live_hard_regs.
6053
6054 2019-03-13 Jakub Jelinek <jakub@redhat.com>
6055
6056 PR debug/89498
6057 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
6058 DWARF_OFFSET_SIZE.
6059 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
6060
6061 2019-03-13 Martin Sebor <msebor@redhat.com>
6062
6063 PR tree-optimization/89662
6064 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
6065 has a size.
6066
6067 2019-03-13 Richard Biener <rguenther@suse.de>
6068
6069 PR middle-end/89677
6070 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
6071 throw FP expressions at tree-affine.
6072
6073 2019-03-14 Richard Biener <rguenther@suse.de>
6074
6075 * tree-pretty-print.c (dump_generic_node): For -gimple properly
6076 dump negative integer constants using _Literal (type) -num.
6077
6078 2019-03-13 Jakub Jelinek <jakub@redhat.com>
6079
6080 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
6081 nonlocal_value member.
6082
6083 PR middle-end/88588
6084 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
6085 (ipa_simd_modify_function_body): Handle PHIs.
6086
6087 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
6088
6089 * config/s390/s390.c (s390_option_override_internal): Use more
6090 aggressive inlining parameters.
6091
6092 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
6093
6094 * config/s390/3906.md: New file.
6095 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
6096 (LONGRUNNING_THRESHOLD): Remove.
6097 (MAX_SCHED_MIX_SCORE): Decrease.
6098 (MAX_SCHED_MIX_DISTANCE): Decrease.
6099 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
6100 (struct s390_sched_state): New struct to hold scheduling state.
6101 (S390_SCHED_STATE_NORMAL): Remove.
6102 (S390_SCHED_STATE_CRACKED): Remove.
6103 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
6104 (s390_get_sched_attrmask): Use new attribute.
6105 (s390_get_unit_mask): Use new units.
6106 (s390_is_fpd): New function.
6107 (s390_is_fxd): New function.
6108 (s390_is_longrunning): New function.
6109 (s390_sched_score): Use new functions.
6110 (s390_sched_reorder): Likewise.
6111 (s390_sched_variable_issue): Rework and use new functions.
6112 (s390_sched_init): Use new functions.
6113 * config/s390/s390.h (s390_tune_attr): Add z14.
6114 * config/s390/s390.md: Add z14.
6115
6116 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
6117
6118 * config/s390/2964.md: Update pipeline description.
6119 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
6120 (LONGRUNNING_THRESHOLD): Remove.
6121 (LATENCY_FACTOR): Remove.
6122 (s390_get_unit_mask): Add unit.
6123 (s390_sched_score): Use fxd/fpd.
6124 (s390_sched_variable_issue): Use fxd/fpd.
6125
6126 2019-03-12 Martin Liska <mliska@suse.cz>
6127
6128 * config/i386/i386.c: Reword an error message.
6129
6130 2019-03-12 Martin Jambor <mjambor@suse.cz>
6131
6132 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
6133 terminate with newline.
6134
6135 2019-03-12 Jakub Jelinek <jakub@redhat.com>
6136
6137 PR target/52726
6138 * config/s390/s390.md (tabort): Use %wd instead of
6139 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
6140 letters and periods.
6141 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
6142 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
6143 's with %< and %>.
6144
6145 PR middle-end/89663
6146 * builtins.c (expand_builtin_int_roundingfn,
6147 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
6148 gcc_unreachable if validate_arglist fails.
6149
6150 2019-03-12 Richard Biener <rguenther@suse.de>
6151
6152 PR tree-optimization/89664
6153 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
6154 free the occurance tree after the early out.
6155
6156 2019-03-11 Jakub Jelinek <jakub@redhat.com>
6157
6158 PR middle-end/89655
6159 PR bootstrap/89656
6160 * vr-values.c (vr_values::update_value_range): If
6161 old_vr->varying_p (), don't update it, make new_vr also VARYING
6162 and return false.
6163
6164 2019-03-11 Martin Liska <mliska@suse.cz>
6165
6166 * config/aarch64/aarch64.c (aarch64_override_options_internal):
6167 Fix double string quoting.
6168
6169 2019-03-11 Martin Liska <mliska@suse.cz>
6170
6171 * collect-utils.c (collect_wait): Wrap apostrophes
6172 in gcc internal format with %'.
6173 * collect2.c (main): Likewise.
6174 (scan_prog_file): Likewise.
6175 (scan_libraries): Likewise.
6176 * config/i386/i386.c (ix86_expand_call): Likewise.
6177 (ix86_handle_interrupt_attribute): Likewise.
6178 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6179 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
6180 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
6181 * lto-wrapper.c (find_crtoffloadtable): Likewise.
6182 * symtab.c (symtab_node::verify_base): Likewise.
6183 * tree-cfg.c (verify_gimple_label): Likewise.
6184 * tree.c (verify_type_variant): Likewise.
6185
6186 2019-03-11 Martin Liska <mliska@suse.cz>
6187
6188 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
6189 in a string format message and fix GNU coding style.
6190 (expand_builtin_set_thread_pointer): Likewise.
6191 * common/config/aarch64/aarch64-common.c
6192 (aarch64_rewrite_selected_cpu): Likewise.
6193 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
6194 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
6195 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
6196 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
6197 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
6198 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
6199 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
6200 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
6201 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
6202 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
6203 Likewise.
6204 * common/config/riscv/riscv-common.c
6205 (riscv_subset_list::parsing_subset_version): Likewise.
6206 (riscv_subset_list::parse_std_ext): Likewise.
6207 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6208 (riscv_subset_list::parse): Likewise.
6209 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
6210 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
6211 (aarch64_override_options_internal): Likewise.
6212 (aarch64_validate_mcpu): Likewise.
6213 (aarch64_validate_march): Likewise.
6214 (aarch64_validate_mtune): Likewise.
6215 (aarch64_override_options): Likewise.
6216 * config/alpha/alpha.c (alpha_option_override): Likewise.
6217 * config/arc/arc.c (arc_init): Likewise.
6218 (parse_mrgf_banked_regs_option): Likewise.
6219 (arc_override_options): Likewise.
6220 (arc_expand_builtin_aligned): Likewise.
6221 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
6222 (arm_expand_builtin): Likewise.
6223 * config/arm/arm.c (arm_option_check_internal): Likewise.
6224 (arm_configure_build_target): Likewise.
6225 (arm_option_override): Likewise.
6226 (arm_options_perform_arch_sanity_checks): Likewise.
6227 (arm_handle_cmse_nonsecure_entry): Likewise.
6228 (arm_handle_cmse_nonsecure_call): Likewise.
6229 (arm_tls_referenced_p): Likewise.
6230 (thumb1_expand_prologue): Likewise.
6231 * config/avr/avr.c (avr_option_override): Likewise.
6232 * config/bfin/bfin.c (bfin_option_override): Likewise.
6233 * config/c6x/c6x.c (c6x_option_override): Likewise.
6234 * config/cr16/cr16.c (cr16_override_options): Likewise.
6235 * config/cris/cris.c (cris_option_override): Likewise.
6236 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
6237 * config/darwin-c.c (macosx_version_as_macro): Likewise.
6238 * config/darwin.c (darwin_override_options): Likewise.
6239 * config/frv/frv.c (frv_expand_builtin): Likewise.
6240 * config/h8300/h8300.c (h8300_option_override): Likewise.
6241 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
6242 (ix86_option_override_internal): Likewise.
6243 (warn_once_call_ms2sysv_xlogues): Likewise.
6244 (ix86_expand_prologue): Likewise.
6245 (split_stack_prologue_scratch_regno): Likewise.
6246 (ix86_warn_parameter_passing_abi): Likewise.
6247 * config/ia64/ia64.c (fix_range): Likewise.
6248 * config/m68k/m68k.c (m68k_option_override): Likewise.
6249 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
6250 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
6251 (mips_set_compression_mode): Likewise.
6252 * config/mmix/mmix.c (mmix_option_override): Likewise.
6253 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
6254 * config/msp430/msp430.c (msp430_option_override): Likewise.
6255 * config/nds32/nds32.c (nds32_option_override): Likewise.
6256 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
6257 (nios2_option_override): Likewise.
6258 (nios2_expand_custom_builtin): Likewise.
6259 * config/nvptx/mkoffload.c (main): Likewise.
6260 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
6261 * config/pa/pa.c (fix_range): Likewise.
6262 (pa_option_override): Likewise.
6263 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
6264 (riscv_option_override): Likewise.
6265 * config/rl78/rl78.c (rl78_option_override): Likewise.
6266 * config/rs6000/aix61.h: Likewise.
6267 * config/rs6000/aix71.h: Likewise.
6268 * config/rs6000/aix72.h: Likewise.
6269 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
6270 * config/rs6000/freebsd64.h: Likewise.
6271 * config/rs6000/linux64.h: Likewise.
6272 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
6273 (rs6000_expand_zeroop_builtin): Likewise.
6274 (rs6000_expand_mtfsb_builtin): Likewise.
6275 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
6276 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
6277 (rs6000_invalid_builtin): Likewise.
6278 (rs6000_expand_split_stack_prologue): Likewise.
6279 * config/rs6000/rtems.h: Likewise.
6280 * config/rx/rx.c (valid_psw_flag): Likewise.
6281 (rx_expand_builtin): Likewise.
6282 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6283 * config/s390/s390.c (s390_expand_builtin): Likewise.
6284 (s390_function_profiler): Likewise.
6285 (s390_option_override_internal): Likewise.
6286 (s390_option_override): Likewise.
6287 * config/sh/sh.c (sh_option_override): Likewise.
6288 (sh_builtin_saveregs): Likewise.
6289 (sh_fix_range): Likewise.
6290 * config/sh/vxworks.h: Likewise.
6291 * config/sparc/sparc.c (sparc_option_override): Likewise.
6292 * config/spu/spu.c (spu_option_override): Likewise.
6293 (fix_range): Likewise.
6294 * config/visium/visium.c (visium_option_override): Likewise.
6295 (visium_handle_interrupt_attr): Likewise.
6296 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
6297 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
6298 (dbg_cnt_process_opt): Likewise.
6299 * dwarf2out.c (output_dwarf_version): Likewise.
6300 * except.c (expand_eh_return): Likewise.
6301 * gcc.c (defined): Likewise.
6302 (driver_handle_option): Likewise.
6303 (process_command): Likewise.
6304 (compare_files): Likewise.
6305 (driver::prepare_infiles): Likewise.
6306 (driver::do_spec_on_infiles): Likewise.
6307 (driver::maybe_run_linker): Likewise.
6308 * omp-offload.c (oacc_parse_default_dims): Likewise.
6309 * opts-global.c (handle_common_deferred_options): Likewise.
6310 * opts.c (parse_sanitizer_options): Likewise.
6311 (common_handle_option): Likewise.
6312 (enable_warning_as_error): Likewise.
6313 * passes.c (enable_disable_pass): Likewise.
6314 * plugin.c (parse_plugin_arg_opt): Likewise.
6315 (default_plugin_dir_name): Likewise.
6316 * targhooks.c (default_expand_builtin_saveregs): Likewise.
6317 (default_pch_valid_p): Likewise.
6318 * toplev.c (init_asm_output): Likewise.
6319 (process_options): Likewise.
6320 (toplev::run_self_tests): Likewise.
6321 * tree-cfg.c (verify_gimple_call): Likewise.
6322 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
6323 (tree_inlinable_function_p): Likewise.
6324 * var-tracking.c (vt_find_locations): Likewise.
6325
6326 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
6327
6328 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
6329 only on the else branch.
6330
6331 2019-03-11 Martin Liska <mliska@suse.cz>
6332
6333 * gcov.c (output_intermediate_json_line): Print function
6334 name of each line.
6335 (output_json_intermediate_file): Add new argument.
6336 * doc/gcov.texi: Document the change.
6337
6338 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
6339
6340 PR rtl-optimization/89588
6341 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
6342 explicit unrolling factor more robust.
6343
6344 2019-03-11 Richard Biener <rguenther@suse.de>
6345
6346 PR tree-optimization/89649
6347 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6348 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
6349 on the prolog and epilog loops.
6350 (vect_loop_versioning): Return copy of loop.
6351 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
6352 on the non-vectorized version of the loop.
6353
6354 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
6355
6356 PR target/68924
6357 * config/i386/sse.md (*vec_extractv2di_0_sse):
6358 Add (=r,x) alternative and corresponding splitter.
6359
6360 2019-03-10 Martin Jambor <mjambor@suse.cz>
6361
6362 PR tree-optimization/85762
6363 PR tree-optimization/87008
6364 PR tree-optimization/85459
6365 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
6366 it points to if there is a type changing MEM_REF. Adjust all callers.
6367 (build_accesses_from_assign): Disable total scalarization if
6368 contains_vce_or_bfcref_p returns true through the new parameter, for
6369 both rhs and lhs.
6370
6371 2019-03-09 Jakub Jelinek <jakub@redhat.com>
6372
6373 PR c/88568
6374 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
6375 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
6376
6377 PR target/79645
6378 * common.opt (fdiagnostics-show-labels,
6379 fdiagnostics-show-line-numbers, fdiagnostics-format=,
6380 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
6381 gas-locview-support, ginline-points, ginternal-reset-location-views):
6382 Terminate description text with a dot.
6383 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
6384 * config/mcore/mcore.opt (m210, m340): Likewise.
6385 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
6386 mnops=): Start description text with a capital letter.
6387 * config/arc/arc.opt (msize-level=): Likewise.
6388 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
6389 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
6390 mnewlib): Likewise.
6391 * config/ft32/ft32.opt (msim): Likewise.
6392 (mft32b, mcompress): Likewise. Terminate description text with a dot.
6393 (mnodiv, mnopm): Terminate description text with a dot.
6394 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
6395 a colon.
6396 * config/i386/i386.opt (prefer_vector_width, instrument_return):
6397 Likewise.
6398 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
6399 text.
6400
6401 PR rtl-optimization/89634
6402 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
6403 are modified in BB_END (e->src) instruction.
6404
6405 2019-03-08 David Malcolm <dmalcolm@redhat.com>
6406
6407 PR target/79926
6408 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
6409 messages more amenable to translation, and improve wording.
6410
6411 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
6412
6413 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
6414 ud- and du-chains between phases.
6415
6416 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
6417
6418 PR debug/89631
6419 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
6420 instead of POLY_INT_CST.
6421
6422 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
6423
6424 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
6425 requirement.
6426
6427 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
6428
6429 PR target/68924
6430 PR target/78782
6431 PR target/87558
6432 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
6433 (_mm_storeu_si64): Ditto.
6434
6435 2019-03-08 Martin Liska <mliska@suse.cz>
6436
6437 PR target/86952
6438 * config/i386/i386.c (ix86_option_override_internal): Disable
6439 jump tables when retpolines are used.
6440
6441 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
6442
6443 PR go/63560
6444 * ipa-split.c (execute_split_functions): Do not split
6445 'noinline' or 'section' function.
6446
6447 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6448
6449 PR target/79846
6450 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
6451 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
6452 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
6453
6454 PR ipa/80000
6455 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6456 from diagnostics. Formatting fixes.
6457
6458 PR target/85665
6459 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
6460 warn_odr diagnostics.
6461
6462 PR other/80058
6463 * lra-constraints.c (process_alt_operands): Avoid one space before
6464 " at the end of line and another after " on another line in a string
6465 literal.
6466 * attribs.c (handle_dll_attribute): Likewise.
6467 * config/avr/avr-devices.c (avr_texinfo): Likewise.
6468
6469 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
6470 warning_at or inform messages in G_() if there is no ?:.
6471
6472 PR tree-optimization/89550
6473 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
6474 returned true. Formatting fixes.
6475 (expand_builtin_strnlen): Formatting fixes.
6476 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
6477 if warning_at returned true.
6478 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
6479
6480 2019-03-08 Richard Biener <rguenther@suse.de>
6481
6482 PR middle-end/89578
6483 * cfgloop.h (struct loop): Add owned_clique field.
6484 * cfgloopmanip.c (copy_loop_info): Copy it.
6485 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
6486 cliques.
6487 * tree-inline.c (copy_loops): Remap owned_clique.
6488 * lto-streamer-in.c (input_cfg): Stream owned_clique.
6489 * lto-streamer-out.c (output_cfg): Likewise.
6490
6491 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6492
6493 PR target/80190
6494 * config/darwin.c: Include intl.h.
6495 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
6496 composing the message out of two separate parts.
6497
6498 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6499
6500 PR target/80003
6501 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
6502 doesn't start with a capital letter and doesn't end with a dot.
6503 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
6504 with a capital letter.
6505 (ix86_mangle_function_version_assembler_name): Likewise.
6506 (ix86_generate_version_dispatcher_body): Likewise.
6507 (fold_builtin_cpu): Likewise.
6508 (get_builtin_code_for_version): Likewise. Remove extraneous space.
6509 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
6510 translators, wrap full type name in %qs.
6511
6512 PR translation/79999
6513 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
6514 depend clause with source (or sink) modifier.
6515 * omp-expand.c (expand_omp_ordered_sink): Likewise.
6516
6517 PR target/89602
6518 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
6519 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
6520 (avx512f_load<mode>_mask): New define_expand.
6521 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
6522 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
6523 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
6524 __builtin_ia32_movess_mask): New builtins.
6525 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
6526 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
6527 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
6528 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
6529
6530 2019-03-07 Martin Jambor <mjambor@suse.cz>
6531
6532 PR lto/87525
6533 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
6534 for extern inline functions.
6535
6536 2019-03-07 Martin Jambor <mjambor@suse.cz>
6537
6538 PR ipa/88235
6539 * cgraph.h (cgraph_node): New inline method former_thunk_p.
6540 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
6541 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
6542 have multiple callees. At the end check if declarations match as
6543 opposed to cgraph_nodes.
6544
6545 2019-03-07 Martin Liska <mliska@suse.cz>
6546
6547 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
6548 which is equivalent to searching for this in clones chain.
6549 * symtab.c (symtab_node::verify_base): Similarly compare ASM
6550 names with a neighbour and special case first node in a chain.
6551
6552 2019-01-25 Jason Merrill <jason@redhat.com>
6553
6554 PR c++/80916 - spurious "static but not defined" warning.
6555 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
6556 for an internal symbol with DECL_EXTERNAL.
6557
6558 2019-04-07 Richard Biener <rguenther@suse.de>
6559
6560 PR middle-end/89618
6561 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
6562 * tree-inline.c (copy_loops): Simplify.
6563
6564 2019-03-07 Martin Liska <mliska@suse.cz>
6565
6566 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
6567
6568 2019-03-07 Richard Biener <rguenther@suse.de>
6569
6570 PR tree-optimization/89595
6571 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
6572 stmt iterator as reference, take boolean output parameter to
6573 indicate whether the stmt was removed and thus the iterator
6574 already advanced.
6575 (dom_opt_dom_walker::before_dom_children): Re-iterate over
6576 stmts created by folding.
6577
6578 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6579
6580 PR c++/89585
6581 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
6582 at toplevel.
6583
6584 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
6585
6586 PR rtl-optimization/88845
6587 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
6588 LRA.
6589 * lra.c (remove_scratches_1): New function.
6590 (remove_scratches): Use it.
6591 (lra_emit_move): Likewise.
6592
6593 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
6594
6595 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
6596 unaligned_access variable.
6597 * config/arc/arc.c (arc_override_options): Set unaligned access
6598 default on for HS CPUs.
6599 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
6600
6601 2019-03-06 Martin Liska <mliska@suse.cz>
6602
6603 PR gcov-profile/89577
6604 * doc/gcov.texi: Prefer to use --coverage.
6605 * doc/sourcebuild.texi: Likewise.
6606
6607 2019-03-02 Jason Merrill <jason@redhat.com>
6608
6609 PR c++/86485 - -Wmaybe-unused with empty class ?:
6610 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
6611
6612 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6613
6614 PR target/89587
6615 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
6616 if_multiarch.
6617
6618 PR middle-end/89590
6619 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
6620 exactly one argument.
6621
6622 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6623 Richard Sandiford <richard.sandiford@arm.com>
6624
6625 PR tree-optimization/89570
6626 * match.pd (vec_cond into cond_op simplification): Don't use
6627 get_conditional_internal_fn, use as_internal_fn (cond_op).
6628
6629 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
6630
6631 PR target/89222
6632 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
6633 to decide when to split off a non-zero offset from a symbol.
6634 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
6635 in function symbols.
6636
6637 2019-03-05 Richard Biener <rguenther@suse.de>
6638
6639 PR tree-optimization/89594
6640 * tree-if-conv.c (pass_if_conversion::execute): Handle
6641 case where .LOOP_VECTORIZED_FUNCTION was removed.
6642
6643 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6644
6645 PR bootstrap/89560
6646 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
6647 instead alloca it only when needed with the needed size.
6648
6649 PR tree-optimization/89570
6650 * match.pd (vec_cond into cond_op simplification): Guard with
6651 vectorized_internal_fn_supported_p test and #if GIMPLE.
6652
6653 PR tree-optimization/89566
6654 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
6655 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
6656 Punt if get_user_idx_format succeeds, but idx_format argument is
6657 not provided or doesn't have pointer type, or if idx_args is above
6658 number of provided arguments.
6659
6660 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
6661
6662 PR tree-optimization/89437
6663 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
6664
6665 2019-03-04 Richard Biener <rguenther@suse.de>
6666
6667 PR middle-end/89572
6668 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
6669 safe_dyn_cast.
6670
6671 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
6672
6673 PR tree-optimization/89487
6674 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
6675 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
6676 (distribute_loop): Don't do runtime alias check if there is non-
6677 addressable data reference.
6678 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
6679 is a register variable.
6680
6681 2019-03-02 Jakub Jelinek <jakub@redhat.com>
6682
6683 PR target/89506
6684 * config/arm/arm.md (cmpsi2_addneg): Use
6685 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
6686 If operands[2] is 0 or INT_MIN, force use of subs.
6687 (*compare_scc splitter): Use gen_int_mode.
6688 (*negscc): Likewise.
6689 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
6690
6691 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
6692 Monk Chiang <sh.chiang04@gmail.com>
6693
6694 * common/config/riscv/riscv-common.c: Include sstream.
6695 (riscv_subset_list::to_string): New.
6696 (riscv_arch_str): Likewise.
6697 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
6698 * config.in: Regen.
6699 * config/riscv/riscv-protos.h (riscv_arch_str): New.
6700 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
6701 (riscv_emit_attribute): New.
6702 (riscv_file_start): Emit attribute if needed.
6703 (riscv_option_override): Init riscv_emit_attribute_p.
6704 * config/riscv/riscv.opt (mriscv-attribute): New option.
6705 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
6706 * configure: Regen.
6707 * doc/install.texi: Document --with-riscv-attribute.
6708 * doc/invoke.texi: Document -mriscv-attribute.
6709
6710 * common/config/riscv/riscv-common.c:
6711 Include config/riscv/riscv-protos.h.
6712 (INCLUDE_STRING): Defined.
6713 (RISCV_DONT_CARE_VERSION): Defined.
6714 (riscv_subset_t): Declare.
6715 (riscv_subset_t::riscv_subset_t): New.
6716 (riscv_subset_list): Declare.
6717 (riscv_subset_list::riscv_subset_list): New.
6718 (riscv_subset_list::~riscv_subset_list): Likewise.
6719 (riscv_subset_list::parsing_subset_version): Likewise.
6720 (riscv_subset_list::parse_std_ext): Likewise.
6721 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6722 (riscv_subset_list::add): Likewise.
6723 (riscv_subset_list::lookup): Likewise.
6724 (riscv_subset_list::xlen): Likewise.
6725 (riscv_subset_list::parse): Likewise.
6726 (riscv_supported_std_ext): Likewise.
6727 (current_subset_list): Likewise.
6728 (riscv_parse_arch_string): Using riscv_subset_list::parse to
6729 parse.
6730
6731 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
6732
6733 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6734 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6735 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6736
6737 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
6738
6739 PR rtl-optimization/85899
6740 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6741 fallthru edges leading to the exit block.
6742
6743 2019-03-01 Tamar Christina <tamar.christina@arm.com>
6744
6745 PR target/89517
6746 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6747 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6748
6749 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
6750
6751 PR tree-optimization/89535
6752 * tree-vect-stmts.c (vectorizable_call): Record the vector types
6753 for each operand. Calculate the fallback choice for mask operands
6754 and pass it to vect_get_vec_def_for_operand.
6755
6756 2019-03-01 Richard Biener <rguenther@suse.de>
6757
6758 PR middle-end/89541
6759 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6760 get virtual operands.
6761 (get_expr_operands): Handle CONST_DECL like other decls.
6762
6763 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6764
6765 PR middle-end/89503
6766 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6767 on DECL_P and EXPR_P.
6768
6769 2019-03-01 Richard Biener <rguenther@suse.de>
6770
6771 PR middle-end/89497
6772 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6773 argument, defaulted to zero.
6774 * passes.c (execute_function_todo): Pass down SSA update flags
6775 to cleanup_tree_cfg.
6776 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6777 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6778 form if requested.
6779 (cleanup_tree_cfg): Get and pass down SSA update flags.
6780
6781 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6782
6783 PR bootstrap/89539
6784 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6785 early_lto_debug argument.
6786
6787 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
6788
6789 PR tree-optimization/89536
6790 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6791 only whether bit #0 of the value is 0 instead of the entire value.
6792
6793 2019-02-28 Marek Polacek <polacek@redhat.com>
6794
6795 PR c++/87068 - missing diagnostic with fallthrough statement.
6796 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6797 at the end of a seq, save its location to walk_stmt_info.
6798 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6799 a switch.
6800
6801 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
6802
6803 PR lto/88585
6804 * tree.c (find_atomic_core_type): Move ahead in file.
6805 (check_base_type): Correctly compare alignments of atomic types.
6806
6807 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
6808
6809 PR target/89455
6810 * config/i386/i386.c (get_builtin_code_for_version): Identify
6811 Westmere from PCLMUL, instead of AES.
6812
6813 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6814
6815 PR target/89434
6816 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6817 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6818 -UINTVAL (...).
6819
6820 2019-02-28 Tamar Christina <tamar.christina@arm.com>
6821
6822 PR target/88530
6823 * config/aarch64/aarch64-option-extensions.def: Document it.
6824 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6825 if empty hwcaps.
6826
6827 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6828
6829 PR c/89520
6830 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6831 builtins if they don't have a single scalar floating point argument.
6832 Formatting fixes.
6833
6834 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6835
6836 PR rtl-optimization/89490
6837 * varasm.c (get_block_for_section): Bail out for mergeable sections.
6838 (default_use_anchors_for_symbol_p, output_object_block): Assert the
6839 block section is not mergeable.
6840
6841 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6842
6843 PR target/70341
6844 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
6845 old define_insn to ...
6846 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
6847 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6848 Rename old define_insn to ...
6849 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
6850 (thumb2_casesi_internal_pic): New define_expand. Rename old
6851 define_insn to ...
6852 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
6853 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6854 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6855
6856 2019-02-27 Richard Biener <rguenther@suse.de>
6857
6858 PR debug/88878
6859 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6860
6861 2019-02-27 Richard Biener <rguenther@suse.de>
6862
6863 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6864 building.
6865
6866 2019-02-27 Richard Biener <rguenther@suse.de>
6867
6868 PR debug/88878
6869 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6870 parameter, prefix section name with .gnu.debuglto_ if true.
6871 (dwarf2out_finish): Pass false to output_comdat_type_unit.
6872 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6873
6874 2019-02-27 Richard Biener <rguenther@suse.de>
6875
6876 PR debug/89514
6877 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6878 rather than on use_debug_types, doing what output_die does.
6879 (value_format): Likewise.
6880
6881 2019-02-27 Martin Jambor <mjambor@suse.cz>
6882 Martin Sebor <msebor@redhat.com>
6883
6884 * doc/invoke.texi (Warning Options): Reword description of
6885 -Wno-absolute-value.
6886
6887 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6888
6889 PR tree-optimization/89280
6890 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6891 builtin_setjmp_setup_bb): New functions.
6892 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6893 When visiting __builtin_setjmp_setup block, queue in special
6894 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6895 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
6896 from visited after the loop if they don't have any visited successor
6897 blocks.
6898
6899 2018-02-26 Steve Ellcey <sellcey@marvell.com>
6900
6901 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6902 New function.
6903 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6904
6905 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6906
6907 PR c++/89507
6908 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6909 with types other than sizetype/ssizetype.
6910
6911 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6912
6913 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6914 (enum sparc_processor_type): ...this.
6915 (enum sparc_code_model_type): New enumeration type.
6916 (enum sparc_memory_model_type): Tweak comments.
6917 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6918 (mtune): Likewise.
6919 (mcmodel): Use sparc_code_model enumeration and variable.
6920 (sparc_code_model): New enumeration.
6921 (mdebug): Add Undocumented marker.
6922 * config/sparc/sparc.h (enum cmodel): Delete.
6923 (sparc_cmodel): Likewise.
6924 (TARGET_CM_MEDLOW): Adjust to above renaming.
6925 (TARGET_CM_MEDMID): Likewise.
6926 (TARGET_CM_MEDANY): Likewise.
6927 (TARGET_CM_EMBMEDANY): Likewise.
6928 * config/sparc/sparc.c (sparc_cmodel): Delete.
6929 (sparc_option_override): Remove string/value mapping support for the
6930 code model. Move code and memory model support to after the handling
6931 of target flags. Do private machine setup last.
6932 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6933 (sparc_legitimize_reload_address): Likewise.
6934 (sparc_output_mi_thunk): Likewise.
6935 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6936
6937 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6938
6939 PR tree-optimization/89500
6940 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6941 (handle_builtin_strlen): Remove noncst_bound variable. Always
6942 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
6943 cst if the first cst bytes starting at x are known to be non-zero,
6944 even if the string is not zero terminated. Don't try to modify
6945 *si for strnlen. Update strlen_to_stridx only for strlen or if
6946 we can prove strnlen returns the same value as strlen would.
6947
6948 2019-02-26 Martin Liska <mliska@suse.cz>
6949
6950 * alloc-pool.h (struct pool_usage): Remove extra
6951 print_dash_line.
6952 * bitmap.h (struct bitmap_usage): Likewise.
6953 * ggc-common.c (struct ggc_usage): Likewise.
6954 * mem-stats.h (struct mem_usage): Likewise.
6955 (mem_alloc_description::dump): Print dash lines
6956 here and repeat header at the end of a table report.
6957 It's then more readable.
6958 * tree-phinodes.c (phinodes_print_statistics): Make
6959 horizontal alignment.
6960 * tree-ssanames.c (ssanames_print_statistics): Likewise.
6961 * vec.c (struct vec_usage): Remove extra print_dash_line.
6962 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
6963
6964 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
6965
6966 * doc/extend.texi (__builtin_object_size):
6967 Use @pxref instead of @xref inside parenthesis.
6968 (__builtin_has_attribute): Add missing comma after @xref.
6969 (__builtin_object_size): Ditto.
6970 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
6971 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
6972 in the list.
6973
6974 2019-02-26 Jeff Law <law@redhat.com>
6975
6976 PR rtl-optimization/87761
6977 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
6978 detect obviously dead insns and delete them.
6979
6980 2019-02-26 Richard Biener <rguenther@suse.de>
6981
6982 PR tree-optimization/89505
6983 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
6984 to handle restrict pointed-to vars with multiple subvars
6985 correctly.
6986
6987 2019-02-26 Richard Biener <rguenther@suse.de>
6988
6989 PR tree-optimization/89489
6990 * tree-parloops.c (create_loop_fn): Copy over last_clique.
6991
6992 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6993
6994 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
6995 and move around comment.
6996 <BIT_AND_EXPR>: Likewise.
6997 <BIT_NOT_EXPR>: Add specific handling for boolean types.
6998
6999 2019-02-26 Jakub Jelinek <jakub@redhat.com>
7000
7001 PR target/89474
7002 * config/i386/i386.c (remove_partial_avx_dependency): Call
7003 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
7004 after changing possibly many instructions to use that pseudo. Fix up
7005 insertion of v4sf_const0 setter at the start of bb.
7006
7007 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
7008
7009 PR c/80409
7010 * doc/extend.texi (Variadic Pointer Args): New section.
7011
7012 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
7013 Martin Sebor <msebor@gmail.com>
7014
7015 * common.opt (Wattribute-alias): Likewise.
7016 * doc/invoke.texi (Option Summary): List general form of
7017 -Wattribute-alias=. List positive form of -Wmissing-attributes.
7018 (-Wmissing-attributes): Invert entry, rewrite and correct default.
7019 Add cross-references.
7020 (-Wattribute-alias): Rewrite and correct default. Mention
7021 considered attributes (same as for -Wmissing-attributes).
7022
7023 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
7024
7025 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
7026 (_mm_cvtpd_ps): Likewise.
7027 (_mm_cvttpd_epi32): Likewise.
7028
7029 PR target/89338
7030 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
7031 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
7032
7033 PR target/89339
7034 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
7035
7036 2019-02-25 Tamar Christina <tamar.christina@arm.com>
7037
7038 PR target/88530
7039 * common/config/aarch64/aarch64-common.c
7040 (struct aarch64_option_extension): Add is_synthetic.
7041 (all_extensions): Use it.
7042 (TARGET_OPTION_INIT_STRUCT): Define hook.
7043 (struct gcc_targetm_common): Moved to end.
7044 (all_extensions_by_on): New.
7045 (opt_ext_cmp, typedef opt_ext): New.
7046 (aarch64_option_init_struct): New.
7047 (aarch64_contains_opt): New.
7048 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
7049 * config/aarch64/aarch64-option-extensions.def
7050 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
7051 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
7052 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
7053 Set is_synthetic to false.
7054 (crypto): Set is_synthetic to true.
7055 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
7056 SYNTHETIC.
7057
7058 2019-02-25 Tamar Christina <tamar.christina@arm.com>
7059
7060 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
7061 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
7062 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
7063 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
7064 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
7065 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
7066 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
7067 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
7068 Rename ...
7069 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
7070 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
7071 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
7072 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
7073 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
7074 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
7075 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
7076 vfmlsl_laneq_high_f16): ... To this.
7077 * config/arm/neon.md: Update comments.
7078
7079 2019-02-25 Tamar Christina <tamar.christina@arm.com>
7080
7081 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
7082 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
7083 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
7084 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
7085 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
7086 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
7087 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
7088 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
7089 Rename ...
7090 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
7091 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
7092 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
7093 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
7094 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
7095 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
7096 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
7097 vfmlslq_laneq_high_f16): ... To this.
7098
7099 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
7100
7101 PR rtl-optimization/86096
7102 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
7103 comparing mw_order values.
7104
7105 2019-02-25 Jakub Jelinek <jakub@redhat.com>
7106
7107 PR target/89434
7108 * config/arm/arm.md (*subsi3_carryin_const): Use
7109 arm_neg_immediate_operand predicate instead of
7110 arm_not_immediate_operand, "L" constraint instead of "K" and
7111 print it using %n2 instead of %B2.
7112 (*subsi3_carryin_const0): New define_insn.
7113 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
7114 instead of arm_not_operand and "I" constraint instead of "K" and
7115 print it using %n3 instead of %B2. Instead of using match_dup 2 add
7116 another match_operand and in the condition check that it is negation
7117 of operands[2].
7118 (*subsi3_carryin_compare_const0): New define_ins.
7119 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
7120 *subsi3_carryin_const.
7121 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
7122 split into *subsi3_carryin_compare_const0 if the highpart is zero.
7123
7124 PR target/89438
7125 * config/arm.vfp.md (*negdf2_vfp): Use
7126 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
7127 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
7128
7129 2019-02-24 Jakub Jelinek <jakub@redhat.com>
7130
7131 PR rtl-optimization/89445
7132 * simplify-rtx.c (simplify_ternary_operation): Don't use
7133 simplify_merge_mask on operands that may trap.
7134 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
7135 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
7136 second operand is CONST_VECTOR, check if any element could be zero.
7137 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
7138 their operands can trap.
7139
7140 2019-02-23 Martin Sebor <msebor@redhat.com>
7141
7142 * gimple-ssa-sprintf.c (target_strtol): Rename...
7143 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
7144 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
7145 check for range error.
7146
7147 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
7148
7149 PR driver/69471
7150 * opts-common.c (prune_options): Also prune joined switches
7151 with Negative and RejectNegative.
7152 * config/i386/i386.opt (march=): Add Negative(march=).
7153 (mtune=): Add Negative(mtune=).
7154 * doc/options.texi: Document Negative used together with Joined
7155 and RejectNegative.
7156
7157 2019-02-22 Martin Sebor <msebor@redhat.com>
7158
7159 * doc/extend.texi (Other Builtins): Add
7160 __builtin_is_constant_evaluated.
7161
7162 2019-02-22 Richard Biener <rguenther@suse.de>
7163
7164 PR tree-optimization/87609
7165 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
7166
7167 2019-02-22 Jeff Law <law@redhat.com>
7168
7169 PR rtl-optimization/87761
7170 * config/mips/mips.md: Add new combiner pattern to recognize
7171 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
7172
7173 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
7174
7175 PR target/89324
7176 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
7177 destination register in peepholes generating patterns for ADDS/SUBS.
7178 (add<mode>3_compare0,
7179 *addsi3_compare0_uxtw, add<mode>3_compareC,
7180 add<mode>3_compareV_imm, add<mode>3_compareV,
7181 *adds_<optab><ALLX:mode>_<GPI:mode>,
7182 *subs_<optab><ALLX:mode>_<GPI:mode>,
7183 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
7184 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
7185 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
7186 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
7187 sub<mode>3_compare1): Allow stack pointer for source register.
7188 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
7189
7190 2019-02-22 Martin Sebor <msebor@redhat.com>
7191
7192 PR tree-optimization/88993
7193 PR tree-optimization/88853
7194 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
7195 New helper.
7196 (sprintf_dom_walker::call_info::is_string_func): New helper.
7197 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
7198 for formatted string functions.
7199 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
7200
7201 2019-02-22 Martin Sebor <msebor@redhat.com>
7202
7203 PR c/89425
7204 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
7205 unreachable subexpressions.
7206
7207 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
7208 Hongtao Liu <hongtao.liu@intel.com>
7209 Sunil K Pandey <sunil.k.pandey@intel.com>
7210
7211 PR target/87007
7212 * config/i386/i386-passes.def: Add
7213 pass_remove_partial_avx_dependency.
7214 * config/i386/i386-protos.h
7215 (make_pass_remove_partial_avx_dependency): New.
7216 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
7217 New function.
7218 (pass_data_remove_partial_avx_dependency): New.
7219 (pass_remove_partial_avx_dependency): Likewise.
7220 (make_pass_remove_partial_avx_dependency): Likewise.
7221 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
7222 (*extendsfdf2): Add avx_partial_xmm_update.
7223 (truncdfsf2): Likewise.
7224 (*float<SWI48:mode><MODEF:mode>2): Likewise.
7225 (SF/DF conversion splitters): Disabled for TARGET_AVX.
7226
7227 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
7228
7229 PR middle-end/85598
7230 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
7231 analysis for pass.
7232
7233 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
7234
7235 PR target/89444
7236 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
7237 (PTA_SKYLAKE): Add PTA_AES.
7238 (PTA_GOLDMONT): Likewise.
7239
7240 2019-02-22 Sudakshina Das <sudi.das@arm.com>
7241
7242 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
7243 instruction if enabled.
7244 (aarch64_override_options): Remove reference to return address key.
7245
7246 2019-02-22 Richard Biener <rguenther@suse.de>
7247
7248 PR tree-optimization/89440
7249 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
7250 not necessary assert.
7251
7252 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
7253
7254 PR fortran/72741
7255 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
7256 (oacc_replace_fn_attrib_attr): ... this new function.
7257 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
7258 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
7259
7260 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7261
7262 * config/arm/arm-cpus.in (ares): Rename to...
7263 (neoverse-n1): ... This. Add ares as alias.
7264 * config/arm/arm-tables.opt: Regenerate.
7265 * config/arm/arm-tune.md: Likewise.
7266 * doc/invoke.txt (ARM Options): Document neoverse-n1.
7267
7268 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7269
7270 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
7271 * config/aarch64/aarch64-tune.md: Regenerate.
7272 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
7273
7274 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7275
7276 * config/aarch64/aarch64.c (ares_tunings): Rename to...
7277 (neoversen1_tunings): ... This.
7278 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
7279 (neoverse-n1): New CPU.
7280 * config/aarch64/aarch64-tune.md: Regenerate.
7281 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
7282
7283 2019-02-22 Richard Biener <rguenther@suse.de>
7284
7285 PR middle-end/87609
7286 * cfghooks.h (dependence_hash): New typedef.
7287 (struct copy_bb_data): New type.
7288 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
7289 (duplicate_block): Likewise.
7290 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
7291 (copy_bbs): Create and pass down copy_bb_data.
7292 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
7293 (rtl_duplicate_bb): Likewise.
7294 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
7295 remap dependence info.
7296
7297 2019-02-22 Richard Biener <rguenther@suse.de>
7298
7299 PR tree-optimization/87609
7300 * tree-core.h (tree_base): Document special clique values.
7301 * tree-inline.c (remap_dependence_clique): Do not use the
7302 special clique value of one.
7303 (maybe_set_dependence_info): Use clique one.
7304 (clear_dependence_clique): New callback.
7305 (compute_dependence_clique): Clear clique one from all refs
7306 before assigning it (again).
7307
7308 2019-02-21 Martin Sebor <msebor@redhat.com>
7309
7310 * doc/extend.texi (__clear_cache): Correct signature.
7311
7312 2019-02-21 Ian Lance Taylor <iant@golang.org>
7313
7314 PR go/89170
7315 * varasm.c (decode_addr_const): Call lookup_constant_def rather
7316 than output_constant_def.
7317 (add_constant_to_table): New static function.
7318 (output_constant_def): Call add_constant_to_table.
7319 (tree_output_constant_def): Likewise.
7320
7321 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7322
7323 PR c++/89285
7324 * builtins.c (fold_builtin_arith_overflow): If first two args are
7325 INTEGER_CSTs, set intres and ovfres to constants rather than calls
7326 to ifn.
7327
7328 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
7329
7330 PR target/87412
7331 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
7332 error for -mindirect-branch/-mfunction-return with incompatible
7333 -fcf-protection.
7334
7335 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7336
7337 PR bootstrap/88714
7338 * constraints.md (q): Remove.
7339 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
7340 instead of q.
7341
7342 2019-02-21 Martin Jambor <mjambor@suse.cz>
7343
7344 PR hsa/89302
7345 * omp-general.c (omp_extract_for_data): Removed a duplicate call
7346 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
7347 (omp_adjust_for_condition): ...here. Added necessary parameters.
7348 * omp-general.h (omp_adjust_for_condition): Updated declaration.
7349 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
7350 proper values to new parameters of omp_adjust_for_condition.
7351
7352 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7353
7354 PR middle-end/89412
7355 * expr.c (expand_assignment): If result is a MEM, use change_address
7356 instead of simplify_gen_subreg.
7357
7358 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7359 David Malcolm <dmalcolm@redhat.com>
7360
7361 PR middle-end/89091
7362 * fold-const.c (decode_field_reference): Return NULL_TREE if
7363 lang_hooks.types.type_for_size returns NULL. Check it before
7364 overwriting *exp_. Use return NULL_TREE instead of return 0.
7365
7366 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7367
7368 PR middle-end/88074
7369 PR middle-end/89415
7370 * toplev.c (do_compile): Double the emin/emax exponents to workaround
7371 buggy mpc_norm.
7372
7373 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
7374
7375 PR target/89397
7376 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
7377 TARGET_SSE in addition to TARGET_SSE_MATH.
7378
7379 (ix86_excess_precision): Ditto.
7380 (ix86_float_exceptions_rounding_supported_p): Ditto.
7381 (use_rsqrt_p): Ditto.
7382 * config/i386/sse.md (rsqrt<mode>2): Ditto.
7383
7384 2019-02-20 David Malcolm <dmalcolm@redhat.com>
7385
7386 PR c/89410
7387 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
7388 linenum_arith_t when determining if two adjacent line spans are
7389 close enough to merge.
7390 (diagnostic_show_locus): Use linenum_arith_t when iterating over
7391 lines within each line_span.
7392
7393 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
7394
7395 PR target/86487
7396 * lra-constraints.c(uses_hard_regs_p): Fix handling of
7397 paradoxical SUBREGS.
7398
7399 2019-02-20 Li Jia He <helijia@linux.ibm.com>
7400
7401 PR target/88100
7402 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
7403 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
7404 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
7405 range checking it.
7406
7407 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
7408
7409 * config/gcn/gcn.c (print_operand): Fix typo.
7410
7411 2019-02-19 Richard Biener <rguenther@suse.de>
7412
7413 PR middle-end/88074
7414 * toplev.c (do_compile): Initialize mpfr's exponent range
7415 based on available float modes.
7416
7417 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
7418
7419 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
7420 as long as the epilogue isn't completed.
7421
7422 2019-02-18 Martin Sebor <msebor@redhat.com>
7423
7424 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
7425 __has_cpp_attribute, and __has_include.
7426
7427 2019-02-18 Martin Sebor <msebor@redhat.com>
7428
7429 * doc/invoke.texi (-Wreturn-type): Correct and expand.
7430
7431 2019-02-18 Martin Sebor <msebor@redhat.com>
7432
7433 PR middle-end/89294
7434 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
7435 expression.
7436 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
7437
7438 2019-02-18 Richard Biener <rguenther@suse.de>
7439
7440 PR tree-optimization/89296
7441 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
7442 of no-warning flag to cases that might emit the bogus warning.
7443
7444 2019-02-18 Jakub Jelinek <jakub@redhat.com>
7445
7446 PR bootstrap/88714
7447 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
7448 "q" constraint.
7449 * config/arm/vfp.md (*movdi_vfp): Likewise.
7450 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
7451 "q" constraint for operands[0].
7452
7453 PR target/89369
7454 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
7455 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
7456 pattern in a temporary buffer.
7457 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
7458 than 64-operands[2].
7459
7460 PR target/89361
7461 * config/s390/s390.c (s390_indirect_branch_attrvalue,
7462 s390_indirect_branch_settings): Define unconditionally.
7463 (s390_set_current_function): Likewise, but guard the whole body except
7464 the s390_indirect_branch_settings call with
7465 #if S390_USE_TARGET_ATTRIBUTE.
7466 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
7467
7468 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
7469 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
7470 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
7471 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
7472 HOST_WIDE_INT_1U instead of 1ULL.
7473 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
7474 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
7475 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
7476 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
7477 instead of 1UL.
7478 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
7479 instead of 1ul.
7480
7481 2019-02-18 Martin Jambor <mjambor@suse.cz>
7482
7483 PR tree-optimization/89209
7484 * tree-sra.c (create_access_replacement): New optional parameter
7485 reg_tree. Use it as a type if non-NULL and access type is not of
7486 a register type.
7487 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
7488 to create_access_replacement.
7489 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
7490 Check lacc is non-NULL before attempting to re-create it on the RHS.
7491
7492 2019-02-18 Martin Liska <mliska@suse.cz>
7493
7494 PR ipa/89306
7495 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
7496 by default.
7497 (symbol_table::free_edge): Recycle m_summary_id.
7498 * cgraph.h (get_summary_id): New.
7499 (symbol_table::release_symbol): Set m_summary_id to -1
7500 by default.
7501 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
7502 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
7503 function_summary to fast_function_summary.
7504 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
7505 * ipa-pure-const.c (class funct_state_summary_t):
7506 Switch from function_summary to fast_function_summary.
7507 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
7508 (class ipa_ref_opt_summary_t): Switch from function_summary
7509 to fast_function_summary.
7510 * symbol-summary.h (class function_summary_base): New class
7511 that is created from base of former function_summary.
7512 (function_summary_base::unregister_hooks): New.
7513 (class function_summary): Inherit from function_summary_base.
7514 (class call_summary_base): New class
7515 that is created from base of former call_summary.
7516 (class call_summary): Inherit from call_summary_base.
7517 (struct is_same): New.
7518 (class fast_function_summary): New summary class.
7519 (class fast_call_summary): New summary class.
7520 * vec.h (vec_safe_grow_cleared): New function.
7521
7522 2019-02-18 Martin Liska <mliska@suse.cz>
7523
7524 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
7525 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
7526 * doc/tm.texi: Document new target hook.
7527 * doc/tm.texi.in: Likewise.
7528 * target.def: Add new target macro.
7529 * gcc.c (find_fortran_preinclude_file): Do not search multilib
7530 suffixes.
7531
7532 2019-02-17 Alan Modra <amodra@gmail.com>
7533
7534 PR target/89271
7535 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
7536 output reg on add insn.
7537 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
7538
7539 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7540
7541 PR target/89372
7542 * config/i386/sse.md (ssedoublemode): Remove V4HI.
7543 (PMULHRSW): Likewise.
7544 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
7545 TARGET_AVX2.
7546 (ssse3_pmulhrswv4hi3): New expander.
7547
7548 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7549
7550 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
7551 MMX. Add isa attribute.
7552
7553 2019-02-16 Jakub Jelinek <jakub@redhat.com>
7554
7555 PR rtl-optimization/66152
7556 * builtins.h (c_readstr): Declare.
7557 * builtins.c (c_readstr): Remove forward declaration. Add
7558 null_terminated_p argument, if false, read all bytes from the
7559 string instead of stopping after '\0'.
7560 * expr.c (string_cst_read_str): New function.
7561 (store_expr): Use string_cst_read_str instead of
7562 builtin_strncpy_read_str. Try to store by pieces the whole
7563 exp_len first, and only if that fails, split it up into
7564 store by pieces followed by clear_storage. Formatting fix.
7565
7566 * config/i386/i386.md (*movqi_internal): Remove static from
7567 buf variable. Use output_asm_insn (buf, operands); return "";
7568 instead of return buf;.
7569 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
7570 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
7571 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
7572
7573 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7574
7575 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
7576 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
7577 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
7578 (CC1_SPEC): Likewise.
7579 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
7580
7581 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7582
7583 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
7584 the base address on 64-bit strict-alignment platforms.
7585
7586 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
7587
7588 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
7589
7590 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7591
7592 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
7593
7594 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
7595
7596 PR rtl-optimization/88308
7597 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
7598 on copied instruction.
7599
7600 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7601
7602 * final.c (insn_current_reference_address): Replace test on JUMP_P
7603 with test on jump_to_label_p.
7604 * config/visium/visium-passes.def: New file.
7605 * config/visium/t-visium (PASSES_EXTRA): Define.
7606 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
7607 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
7608 (TRAMPOLINE_ALIGNMENT): Define.
7609 * config/visium/visium.c (visium_option_override): Do not register
7610 the machine-specific reorg pass here.
7611 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
7612 for the GR6.
7613 (output_branch): Adjust threshold for long branch instruction.
7614 * config/visium/visium.md (cpu): Move around.
7615 (length): Adjust for the GR6.
7616
7617 2019-02-15 Richard Biener <rguenther@suse.de>
7618 Jakub Jelinek <jakub@redhat.com>
7619
7620 PR tree-optimization/89278
7621 * tree-loop-distribution.c: Include tree-eh.h.
7622 (generate_memset_builtin, generate_memcpy_builtin): Call
7623 rewrite_to_non_trapping_overflow on builtin->size before passing it
7624 to force_gimple_operand_gsi.
7625
7626 2019-02-15 Jakub Jelinek <jakub@redhat.com>
7627
7628 PR other/89342
7629 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
7630 optimize_debug.
7631 * opth-gen.awk: Likewise.
7632
7633 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7634
7635 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
7636 Enable MMX, SSE and SSE2 by default.
7637 * config/i386/i386.c (ix86_option_override_internal): Do not
7638 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
7639
7640 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7641
7642 PR rtl-optimization/89354
7643 * combine.c (make_extraction): Punt if extraction_mode is narrower
7644 than len bits.
7645
7646 2019-02-14 Maya Rashish <coypu@sdf.org>
7647
7648 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
7649 * config/netbsd-d.c: New file.
7650 * config/t-netbsd: Add netbsd-d.o
7651
7652 2018-02-14 Steve Ellcey <sellcey@marvell.com>
7653
7654 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
7655 affects_type_identity to true for aarch64_vector_pcs.
7656 (aarch64_comp_type_attributes): New function.
7657 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
7658
7659 2019-02-14 Tamar Christina <tamar.christina@arm.com>
7660
7661 PR target/88850
7662 * config/arm/iterators.md (ANY64): Add V4HF.
7663
7664 2019-02-14 Martin Liska <mliska@suse.cz>
7665
7666 PR rtl-optimization/89242
7667 * dce.c (delete_unmarked_insns): Call free_dominance_info we
7668 process a transformation.
7669
7670 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7671
7672 PR tree-optimization/89314
7673 * fold-const.c (fold_binary_loc): Cast strlen argument to
7674 const char * before dereferencing it. Formatting fixes.
7675
7676 PR middle-end/89284
7677 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
7678
7679 2019-02-13 Ian Lance Taylor <iant@golang.org>
7680
7681 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
7682 and set current index for other optimizations.
7683
7684 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
7685
7686 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
7687 nonimmediate_operand as operand 2 predicate.
7688 (vec_set<VF2_512_256:mode>_0): Ditto.
7689 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
7690 (*vec_concatv2si): Remove alternative 2.
7691 (*vec_concatv4si_0): Use vm constraint for alternative 0.
7692 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
7693 (vec_concatv2di): Split alternatives 4,5,6 to ...
7694 (*vec_concatv2di_0) ... new pattern.
7695
7696 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
7697
7698 PR target/89190
7699 * config/arm/arm.c (ldm_stm_operation_p) Set
7700 addr_reg_in_reglist correctly for first register.
7701 (load_multiple_sequence): Remove dead base check.
7702 (gen_ldm_seq): Correctly set write_back for Thumb-1.
7703
7704 2019-02-13 Tamar Christina <tamar.christina@arm.com>
7705
7706 PR target/88847
7707 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
7708 Expose as @aarch64_pred_mov.
7709 * config/aarch64/aarch64.c (aarch64_classify_address):
7710 Use expand_insn which legitimizes operands.
7711
7712 2019-02-13 Martin Liska <mliska@suse.cz>
7713
7714 * builtins.h (expand_builtin_with_bounds): Remove declaration.
7715 * calls.c (struct arg_data): Remove special_slot, pointer_arg
7716 and pointer_offset fields.
7717 (initialize_argument_information): Remove usage of dead
7718 fields.
7719 * cgraph.h (struct cgraph_thunk_info): Remove
7720 add_pointer_bounds_args.
7721 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7722 fields.
7723 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7724 fields.
7725 * config/i386/i386.c (ix86_function_arg_advance): Remove
7726 unrelated comment.
7727 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7728 (def_builtin): Remove usage of dead
7729 fields.
7730 (ix86_add_new_builtins): Likewise.
7731 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7732 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7733 (sem_function::init): Likewise.
7734 (sem_variable::merge): Likewise.
7735 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7736 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7737 * lto-cgraph.c (lto_output_node): Likewise.
7738 (lto_output_varpool_node): Likewise.
7739 (input_node): Likewise.
7740 (input_varpool_node): Likewise.
7741 * lto-streamer-out.c (lto_output): Likewise.
7742 * tree-inline.c (expand_call_inline): Remove usage of
7743 assign_stmts.
7744 * tree-inline.h (struct copy_body_data): Likewise.
7745 * varpool.c (varpool_node::dump): Likewise.
7746
7747 2019-02-13 Jakub Jelinek <jakub@redhat.com>
7748
7749 PR middle-end/89303
7750 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7751 into pt->vars_contains_escaped_heap instead of setting
7752 pt->vars_contains_escaped_heap to it.
7753
7754 PR middle-end/89281
7755 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7756 INTVAL (size), compare it to GET_MODE_MASK instead of
7757 1 << GET_MODE_BITSIZE.
7758
7759 PR target/89290
7760 * config/i386/predicates.md (x86_64_immediate_operand): Allow
7761 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7762 -mcmodel=large.
7763
7764 2019-02-13 Martin Liska <mliska@suse.cz>
7765
7766 PR lto/88858
7767 * cfgrtl.c (remove_barriers_from_footer): New function.
7768 (try_redirect_by_replacing_jump): Use it.
7769 (cfg_layout_redirect_edge_and_branch): Likewise.
7770
7771 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7772
7773 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7774 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7775 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7776 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7777 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7778 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7779 New BU_CRYPTO_2.
7780 * config/rs6000/rs6000.c (builtin_function_type)
7781 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7782 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7783 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7784 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7785 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7786
7787 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
7788
7789 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7790 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7791
7792 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
7793
7794 PR target/89229
7795 * config/i386/i386.md (*movoi_internal_avx): Revert revision
7796 268678 and revision 268657.
7797 (*movti_internal): Likewise.
7798
7799 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
7800
7801 PR target/89233
7802 * config/s390/s390.c (s390_decompose_address): Update comment.
7803 (s390_check_qrst_address): Reject invalid address forms after
7804 LRA.
7805
7806 2019-02-12 Martin Liska <mliska@suse.cz>
7807
7808 PR lto/88876
7809 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7810 we need default values of funct_state for a function that
7811 is not optimized.
7812
7813 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
7814
7815 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7816 the object to pick the size of stores on strict-alignment platforms.
7817
7818 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7819 (*movdi_insn_sp32): Likewise.
7820 (*movdi_insn_sp64): Likewise.
7821
7822 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
7823
7824 PR lto/88677
7825 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7826 types that needs constructiong.
7827 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7828
7829 2019-02-12 Richard Biener <rguenther@suse.de>
7830
7831 PR tree-optimization/89253
7832 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7833 duplicate the loop.
7834
7835 2019-02-11 David Malcolm <dmalcolm@redhat.com>
7836
7837 PR lto/88147
7838 * input.c (selftest::test_line_offset_overflow): New selftest.
7839 (selftest::input_c_tests): Call it.
7840
7841 2019-02-11 Martin Sebor <msebor@redhat.com>
7842
7843 PR tree-optimization/88771
7844 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7845 when -Wstringop-overflow is set.
7846 (builtin_memref::builtin_memref): Adjust excessive upper bound
7847 only when lower bound is not excessive.
7848 (maybe_diag_overlap): Detect and diagnose excessive bounds via
7849 -Wstringop-ovefflow.
7850 (maybe_diag_offset_bounds): Rename...
7851 (maybe_diag_access_bounds): ...to this.
7852 (check_bounds_or_overlap): Adjust for name change above.
7853
7854 2019-02-11 Martin Sebor <msebor@redhat.com>
7855
7856 PR c++/87996
7857 * builtins.c (max_object_size): Move from here...
7858 * builtins.h (max_object_size): ...and here...
7859 * tree.c (max_object_size): ...to here...
7860 * tree.h (max_object_size): ...and here.
7861
7862 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
7863
7864 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7865 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7866 for correct semantics.
7867
7868 2019-02-11 Alan Modra <amodra@gmail.com>
7869
7870 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7871 -mlongcall and -mpltseq.
7872 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7873 (RS/6000 and PowerPC Options <-mpltseq>): Document.
7874 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7875 * config/rs6000/sysv4.opt (mpltseq): New option.
7876 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7877 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7878 support is lacking. Don't allow -mpltseq with -mbss-plt.
7879 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7880 -mpltseq given for ELFv1.
7881 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7882 Only use UNSPEC_PLTSEQ for inline PLT calls.
7883 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
7884 use UNSPEC_PLTSEQ for inline PLT calls.
7885 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7886 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7887 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7888 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7889 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7890 (pltseq_mtctr_<mode>): Likewise.
7891
7892 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7893
7894 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7895 Solaris ld.
7896 * configure: Regenerate.
7897
7898 2019-02-11 Jakub Jelinek <jakub@redhat.com>
7899
7900 PR bootstrap/88714
7901 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7902 instead of r.
7903
7904 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7905
7906 * function.c (assign_parm_setup_block): Use the stored
7907 size, not the passed size, when allocating stack-space,
7908 also for a parameter with alignment larger than
7909 MAX_SUPPORTED_STACK_ALIGNMENT.
7910
7911 2019-02-11 Martin Liska <mliska@suse.cz>
7912
7913 PR ipa/89009
7914 * ipa-cp.c (build_toporder_info): Remove usage of a param.
7915 * ipa-inline.c (inline_small_functions): Likewise.
7916 * ipa-pure-const.c (propagate_pure_const): Likewise.
7917 (propagate_nothrow): Likewise.
7918 * ipa-reference.c (propagate): Likewise.
7919 * ipa-utils.c (struct searchc_env): Remove unused field.
7920 (searchc): Always search across AVAIL_INTERPOSABLE.
7921 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7922 the only called IPA pure const can properly not propagate
7923 across interposable boundary.
7924 * ipa-utils.h (ipa_reduced_postorder): Remove param.
7925
7926 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
7927
7928 * config/nds32/nds32.md (call_internal, call_value_internal,
7929 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7930
7931 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7932
7933 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7934 typo.
7935
7936 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
7937
7938 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7939 in comments
7940
7941 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7942
7943 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7944
7945 2019-02-10 Jakub Jelinek <jakub@redhat.com>
7946
7947 PR tree-optimization/89268
7948 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
7949 if preds is non-NULL.
7950
7951 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7952
7953 PR lto/89272
7954 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
7955 polymorphic types.
7956
7957 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7958
7959 * config/nds32/nds32.md (trap): New pattern.
7960
7961 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7962
7963 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
7964 dwarf span.
7965
7966 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7967
7968 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
7969 to split POST_INC.
7970
7971 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7972
7973 * ipa-visibility.c (localize_node): Also do not localize
7974 LDPR_PREVAILING_DEF_IRONLY_EXP.
7975
7976 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7977
7978 PR lto/87957
7979 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
7980 instead of type_with_linkage.
7981
7982 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7983
7984 PR ipa/88755
7985 * params.def (uninlined-function-insns, uninlined-function-time,
7986 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
7987 bound so we don't get overflows.
7988
7989 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7990
7991 * config/rs6000/rs6000-string.c (expand_compare_loop,
7992 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
7993 memcmp/strncmp.
7994
7995 2019-02-09 Jakub Jelinek <jakub@redhat.com>
7996
7997 PR middle-end/89246
7998 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7999 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
8000 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
8001
8002 2019-02-09 Alan Modra <amodra@gmail.com>
8003
8004 PR target/88343
8005 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
8006 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
8007 setup.
8008
8009 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
8010
8011 PR middle-end/88560
8012 * lra-constraints.c (process_alt_operands): Don't increase reject
8013 for memory when offset memory is required.
8014
8015 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
8016
8017 * config/s390/vector.md: Implement vector copysign.
8018
8019 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
8020
8021 * expr.c (expand_constructor): Correct indentations.
8022
8023 2019-02-08 Richard Biener <rguenther@suse.de>
8024
8025 PR tree-optimization/89247
8026 * tree-if-conv.c: Include tree-cfgcleanup.h.
8027 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
8028 (tree_if_conversion): Pass through predicate vector.
8029 (pass_if_conversion::execute): Do CFG cleanup and SSA update
8030 inline, see if any if-converted loops we refrece in
8031 LOOP_VECTORIZED calls vanished and fixup.
8032 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
8033
8034 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
8035
8036 * config/s390/constraints.md (jdd): New constraint.
8037
8038 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
8039
8040 PR target/89229
8041 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
8042 upper 16 vector registers without TARGET_AVX512VL.
8043 (*movti_internal): Likewise.
8044
8045 2019-02-08 Jakub Jelinek <jakub@redhat.com>
8046
8047 PR rtl-optimization/89234
8048 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
8049 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
8050 (copy_reg_eh_region_note_backward): Likewise.
8051
8052 2019-02-08 Richard Biener <rguenther@suse.de>
8053
8054 PR middle-end/89223
8055 * tree-data-ref.c (initialize_matrix_A): Fail if constant
8056 doesn't fit in HWI.
8057 (analyze_subscript_affine_affine): Handle failure from
8058 initialize_matrix_A.
8059
8060 2019-02-08 Jakub Jelinek <jakub@redhat.com>
8061
8062 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
8063 cfun everywhere.
8064
8065 2019-02-07 David Malcolm <dmalcolm@redhat.com>
8066
8067 PR tree-optimization/86637
8068 PR tree-optimization/89235
8069 * tree-vect-loop.c (optimize_mask_stores): Add an
8070 auto_purge_vect_location sentinel to ensure that vect_location is
8071 purged on exit.
8072 * tree-vectorizer.c
8073 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
8074 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
8075 to ensure that vect_location is purged on exit.
8076 (pass_slp_vectorize::execute): Likewise, replacing the manual
8077 reset.
8078 * tree-vectorizer.h (class auto_purge_vect_location): New class.
8079
8080 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8081
8082 * config/aarch64/iterators.md (max_opp): New code_attr.
8083 (USMAX): New code iterator.
8084 * config/aarch64/predicates.md (aarch64_smin): New predicate.
8085 (aarch64_smax): Likewise.
8086 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
8087 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
8088 MINUS (MAX MIN).
8089
8090 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
8091
8092 PR target/89229
8093 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
8094 for TARGET_AVX512VL.
8095 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
8096
8097 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
8098
8099 * config/s390/s390-builtin-types.def: Add new types.
8100 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
8101 (s390_vec_xlw4): Make the memory operand into a const pointer.
8102 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
8103 float.
8104 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
8105 a new vector type with the alignment of the scalar memory operand.
8106
8107 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
8108 Jakub Jelinek <jakub@redhat.com>
8109
8110 PR bootstrap/88714
8111 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
8112 arm_count_ldrdstrd_insns): New declarations.
8113 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
8114 MINUS.
8115 (valid_operands_ldrd_strd): New function.
8116 (arm_count_ldrdstrd_insns): New function.
8117 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
8118 sets instead of single DImode set and define new insns to match this.
8119
8120 2019-02-07 Tamar Christina <tamar.christina@arm.com>
8121
8122 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
8123 Make it a C initializer.
8124
8125 2019-02-07 Tamar Christina <tamar.christina@arm.com>
8126
8127 PR/target 88850
8128 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
8129
8130 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8131
8132 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
8133 Use neon_dot<q> for type.
8134 (neon_<sup>dot_lane<vsi2qi>): Likewise.
8135
8136 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8137
8138 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
8139 Use neon_dot<q> for type.
8140 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
8141 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
8142
8143 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
8144
8145 PR rtl-optimization/89225
8146 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
8147 sizes check.
8148
8149 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
8150
8151 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
8152 after restoring registers saved to allocate the frame on Windows.
8153
8154 2019-02-06 Richard Biener <rguenther@suse.de>
8155
8156 PR tree-optimization/89182
8157 * graphite.h (cached_scalar_evolution_in_region): Declare.
8158 * graphite.c (struct seir_cache_key): New.
8159 (struct sese_scev_hash): Likewise.
8160 (seir_cache): New global.
8161 (cached_scalar_evolution_in_region): New function.
8162 (graphite_transform_loops): Allocate and release seir_cache.
8163 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
8164 cached_scalar_evolution_in_region.
8165 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8166 Simplify.
8167 (scop_detection::graphite_can_represent_expr: Use
8168 cached_scalar_evolution_in_region.
8169 (scop_detection::stmt_simple_for_scop_p): Likewise.
8170 (find_params_in_bb): Likewise.
8171 (gather_bbs::before_dom_children): Likewise.
8172 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
8173 (add_loop_constraints): Likewise.
8174
8175 2019-02-06 Jakub Jelinek <jakub@redhat.com>
8176
8177 PR middle-end/89210
8178 * fold-const-call.c (fold_const_vec_convert): Pass true as last
8179 operand to new_unary_operation only if both element types are integral
8180 and it isn't a widening conversion. Return NULL_TREE if
8181 new_unary_operation failed.
8182
8183 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
8184
8185 PR target/88856
8186 * config/s390/s390.md: Remove load and test FP splitter.
8187
8188 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
8189
8190 PR target/89112
8191 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
8192 expand_compare_loop, expand_block_compare_gpr,
8193 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
8194 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
8195 #include "profile-count.h" and "predict.h" for types and functions
8196 needed to work with REG_BR_PROB notes.
8197
8198 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
8199
8200 PR target/89112
8201 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
8202 for the long branch case.
8203
8204 2019-02-05 Jakub Jelinek <jakub@redhat.com>
8205
8206 PR target/89188
8207 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
8208 can throw, non-call exceptions are enabled and we can't delete
8209 dead exceptions or alter cfg. Set must_clean if
8210 delete_insn_and_edges returns true, don't set it blindly for calls.
8211 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
8212
8213 PR rtl-optimization/89195
8214 * combine.c (make_extraction): For MEMs, don't extract bytes outside
8215 of the original MEM.
8216
8217 2019-02-05 Martin Liska <mliska@suse.cz>
8218
8219 PR gcov-profile/89000
8220 * gcov.c (function_summary): Remove argument.
8221 (file_summary): New function.
8222 (print_usage): Replace tabs with spaces.
8223 (generate_results): Use new function file_summary.
8224
8225 2019-02-05 Jakub Jelinek <jakub@redhat.com>
8226
8227 PR target/89186
8228 * optabs.c (prepare_cmp_insn): Pass x and y to
8229 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
8230
8231 2019-02-05 Richard Biener <rguenther@suse.de>
8232
8233 PR middle-end/89150
8234 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
8235 (struct bitmap_element): Drop chain_prev so we properly recurse on
8236 the prev member, supporting tree views.
8237 (struct bitmap_head): GTY skip the obstack member.
8238
8239 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
8240
8241 PR c/88698
8242 * doc/extend.texi (Vector Extensions): Add an example of using vector
8243 types together with x86 intrinsics.
8244
8245 2019-02-04 Alan Modra <amodra@gmail.com>
8246
8247 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
8248 str[] size to 160, and comment.
8249
8250 2019-02-04 Alan Modra <amodra@gmail.com>
8251
8252 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
8253 (rs6000_pltseq_template): Guard output of TLS markers with
8254 TARGET_TLS_MARKERS.
8255 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
8256 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
8257 to use inline PLT sequences.
8258 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
8259 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
8260 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
8261
8262 2019-02-04 Martin Liska <mliska@suse.cz>
8263
8264 PR ipa/88985
8265 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
8266 out when ipa_fn_summaries does not contain entry for callee.
8267
8268 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
8269
8270 * config/sparc/sparc.h: Remove superfluous blank lines.
8271 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
8272 (got_register_rtx): ...this.
8273 (sparc_got): Adjust to above renaming.
8274 (sparc_tls_got): Likewise.
8275 (sparc_delegitimize_address): Likewise.
8276 (sparc_output_mi_thunk): Likewise.
8277 (sparc_init_pic_reg): Likewise.
8278 (save_local_or_in_reg_p): Fix test on the GOT register.
8279 (USE_HIDDEN_LINKONCE): Move around.
8280 (get_pc_thunk_name): Likewise.
8281 (gen_load_pcrel_sym): Likewise.
8282 (load_got_register): Likewise.
8283
8284 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
8285
8286 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
8287 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
8288
8289 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8290
8291 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
8292 into consideration.
8293
8294 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8295
8296 * config.gcc (with_nds32_lib, glibc):
8297 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
8298 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
8299 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
8300
8301 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
8302
8303 PR target/89071
8304 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
8305 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
8306 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
8307 (*rcpsf2_sse): Ditto.
8308 (*rsqrtsf2_sse): Ditto.
8309 (sse4_1_round<mode<2): Ditto.
8310
8311 2019-02-03 Richard Biener <rguenther@suse.de>
8312
8313 PR debug/87295
8314 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
8315 orig.
8316
8317 2019-02-02 Jakub Jelinek <jakub@redhat.com>
8318
8319 PR middle-end/87887
8320 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8321 Punt with warning on aggregate return or argument types. Ignore
8322 type/mode checking for uniform arguments.
8323
8324 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
8325
8326 * combine.c (try_combine): Do not print "Can't combine" messages unless
8327 printing failed combination attempts.
8328
8329 2019-02-01 Martin Jambor <mjambor@suse.cz>
8330
8331 PR hsa/87863
8332 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
8333 segment and global segment variables before making them static.
8334
8335 2019-02-01 Martin Jambor <mjambor@suse.cz>
8336
8337 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
8338 missed optimization dump with dump_enabled_p.
8339
8340 2019-02-01 Richard Biener <rguenther@suse.de>
8341
8342 PR middle-end/88597
8343 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
8344 the instantiate cache.
8345 (instantiate_scev_binary): Elide second operand procesing
8346 if equal to the first.
8347 * tree-chrec.c (chrec_contains_symbols): Add visited set.
8348 (chrec_contains_undetermined): Likewise.
8349 (tree_contains_chrecs): Likewise.
8350
8351 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
8352
8353 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
8354
8355 2019-02-01 Jakub Jelinek <jakub@redhat.com>
8356
8357 PR tree-optimization/89143
8358 * wide-int-range.h (wide_int_range_absu): Declare.
8359 * wide-int-range.cc (wide_int_range_absu): New function.
8360 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
8361
8362 PR tree-optimization/88107
8363 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
8364 instead of assertion that eh_region_outermost is non-NULL, if it
8365 is NULL, set *ALL to true and return NULL.
8366 (move_sese_region_to_fn): Adjust caller, if all is set, call
8367 duplicate_eh_regions with NULL region.
8368
8369 2019-02-01 Richard Biener <rguenth@suse.de>
8370
8371 PR rtl-optimization/88593
8372 * mode-switching.c (optimize_mode_switching): Free dominators before
8373 calling cleanup_cfg.
8374
8375 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
8376
8377 PR tree-optimization/88932
8378 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
8379
8380 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8381
8382 PR middle-end/89137
8383 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
8384 bogus clang warning.
8385
8386 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
8387
8388 PR target/89071
8389 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
8390 alternative to avoid partial SSE register stall for TARGET_AVX.
8391 (truncdfsf2): Ditto.
8392 (sse4_1_round<mode>2): Ditto.
8393
8394 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
8395
8396 PR tree-optimization/89008
8397 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
8398 process anything of the form X * 0.
8399
8400 2019-01-31 Richard Biener <rguenther@suse.de>
8401
8402 PR tree-optimization/89135
8403 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
8404 with abnormal preds.
8405
8406 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8407
8408 PR sanitizer/89124
8409 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
8410 always_inline callees into no_sanitize_address callers.
8411
8412 2019-01-31 Richard Biener <rguenther@suse.de>
8413
8414 PR rtl-optimization/89115
8415 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
8416
8417 2019-01-30 Martin Sebor <msebor@redhat.com>
8418
8419 PR other/89106
8420 * doc/extend.texi (cast to a union): Correct and expand.
8421
8422 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
8423
8424 PR rtl-optimization/87246
8425 * lra-constraints.c (simplify_operand_subreg): Reload memory
8426 in subreg if the address became invalid.
8427
8428 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
8429
8430 PR target/87064
8431 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
8432 Disable for little-endian.
8433
8434 2019-01-30 Richard Biener <rguenther@suse.de>
8435
8436 PR rtl-optimization/89115
8437 * opts.c (default_options_optimization): Reduce
8438 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
8439 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
8440 to the default.
8441
8442 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
8443
8444 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
8445 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
8446 type of vector element when vec_extract is implemented by direct
8447 move.
8448
8449 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
8450
8451 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
8452
8453 2019-01-30 Richard Biener <rguenther@suse.de>
8454
8455 PR tree-optimization/89111
8456 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
8457 canonicalization to appropriately sized access types.
8458
8459 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8460
8461 PR c++/89105
8462 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
8463 for arguments to functions that are TU-local and shouldn't be
8464 referenced by assembly.
8465
8466 2019-01-30 Ulrich Drepper <drepper@redhat.com>
8467
8468 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
8469 after '='.
8470
8471 2019-01-29 Martin Sebor <msebor@redhat.com>
8472
8473 PR c/88956
8474 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
8475
8476 2019-01-29 Jakub Jelinek <jakub@redhat.com>
8477
8478 PR c++/66676
8479 PR ipa/89104
8480 * omp-simd-clone.c (simd_clone_clauses_extract)
8481 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
8482 OMP_CLAUSE_ALIGNED_ALIGNMENT.
8483
8484 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
8485
8486 * config.gcc: Force .init_array for ARC.
8487
8488 2019-01-29 Richard Biener <rguenther@suse.de>
8489
8490 PR debug/87295
8491 * dwarf2out.c (collect_skeleton_dies): New helper.
8492 (copy_decls_for_unworthy_types): Call it.
8493 (build_abbrev_table): Assert we do not try to replace
8494 DW_AT_signature refs with local refs.
8495
8496 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8497
8498 PR middle-end/89002
8499 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
8500 for lastprivate/linear IV, push gimplify context around gimplify_assign
8501 and, if it needed any temporaries, pop it into a gimple bind around the
8502 sequence.
8503
8504 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8505
8506 * common.opt (-Wattribute-alias): Remove "no-" from name.
8507 Make -Wattribute-alias command line option and
8508 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
8509
8510 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8511
8512 PR target/89073
8513 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
8514 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
8515 x86 ISA options.
8516 (bmi2): Add missing @opindex.
8517 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
8518 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
8519 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
8520 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
8521 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
8522 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
8523 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
8524 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
8525 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
8526 xsavec, xsaveopt and xsaves options.
8527
8528 2019-01-28 Richard Biener <rguenther@suse.de>
8529
8530 PR debug/89076
8531 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
8532 support removal.
8533
8534 2019-01-28 Richard Biener <rguenther@suse.de>
8535
8536 PR tree-optimization/88739
8537 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8538 BIT_FIELD_REFs only are applied to mode-precision operands
8539 when they are integral.
8540 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
8541 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
8542 BIT_FIELD_REFs of non-mode-precision integral operands.
8543
8544 2019-01-27 Jakub Jelinek <jakub@redhat.com>
8545
8546 PR target/87214
8547 * config/i386/sse.md
8548 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
8549 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
8550 first constants in pairs are multiples of 2. Formatting fixes.
8551 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
8552 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
8553 first constants in each quadruple are multiples of 4. Formatting fixes.
8554
8555 2019-01-26 Martin Jambor <mjambor@suse.cz>
8556
8557 PR ipa/88933
8558 * tree-inline.c: Include tree-cfgcleanup.h.
8559 (delete_unreachable_blocks_update_callgraph): Move...
8560 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
8561 ...here, make externally visible, make second argument bool, adjust
8562 all callers.
8563 * tree-cfgcleanup.c: Include cgraph.h.
8564 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
8565 Declare.
8566 * ipa-prop.c: Include tree-cfgcleanup.h.
8567 (ipcp_transform_function): Call
8568 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
8569
8570 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
8571
8572 PR rtl-optimization/88846
8573 * ira.c (process_set_for_memref_referenced_p): New.
8574 (memref_referenced_p): Add new param. Use
8575 process_set_for_memref_referenced_p. Add new switch cases.
8576 (memref_used_between_p): Pass new arg to memref_referenced_p.
8577
8578 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
8579
8580 PR target/88469
8581 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
8582 argument ABI_BREAK. Set to true if the calculated alignment has
8583 changed in gcc-9. Check bit-fields for their base type alignment.
8584 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
8585 (aarch64_function_arg_boundary): Likewise.
8586 (aarch64_gimplify_va_arg_expr): Likewise.
8587
8588 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8589
8590 PR middle-end/89037
8591 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
8592 instead of accessing TREE_INT_CST_ELT directly.
8593
8594 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
8595
8596 * doc/sourcebuild.texi (Environment attributes): Add fenv and
8597 fenv_exceptions description.
8598
8599 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
8600
8601 PR rtl-optimization/87763
8602 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
8603 Allow SUBREG when matching CC_NZmode compare.
8604
8605 2019-01-25 Richard Biener <rguenther@suse.de>
8606
8607 PR tree-optimization/89049
8608 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8609 Look at the pattern stmt to determine if the stmt is vectorized.
8610
8611 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8612
8613 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
8614 (pred_mov<mode>): Handle all-register forms using both a new
8615 alternative and a split.
8616
8617 2019-01-25 Richard Biener <rguenther@suse.de>
8618
8619 PR tree-optimization/86865
8620 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8621 Reject non-do-while loops.
8622
8623 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
8624
8625 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
8626 * config/rs6000/constraints.md (Q constraint): Use REG_P.
8627 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
8628 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8629 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
8630 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8631 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
8632 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
8633 vlogical_operand, gpc_reg_operand, int_reg_operand,
8634 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
8635 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
8636 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
8637 (save_world_operation, restore_world_operation, lmw_operation,
8638 stmw_operation): Use MEM_P and REG_P.
8639 (tie_operand): Use MEM_P.
8640 (vrsave_operation, crsave_operation): Use REG_P.
8641 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
8642 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
8643 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
8644 (call_operand): Use HARD_REGISTER_P.
8645 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
8646 Use CONST_INT_P.
8647 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
8648 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
8649 quad_aligned_load_p, replace_swapped_aligned_store,
8650 recombine_lvx_pattern, replace_swapped_aligned_load,
8651 recombine_stvx_pattern): Use MEM_P.
8652 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
8653 Use MEM_P and SYMBOL_REF_P.
8654 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
8655 (insn_is_swappable_p): Use REG_P and MEM_P.
8656 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
8657 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
8658 Use CONST_INT_P.
8659 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
8660 Use CONST_DOUBLE_P.
8661 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
8662 CONST_WIDE_INT_P.
8663 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
8664 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
8665 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
8666 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
8667 reg_or_subregno:
8668 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8669 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
8670 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
8671 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
8672 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
8673 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
8674 rs6000_split_logical_di): Use CONST_INT_P.
8675 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
8676 REG_P and SYMBOL_REF_P.
8677 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
8678 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
8679 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
8680 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
8681 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
8682 (small_data_operand, print_operand_address): Use CONST_INT_P and
8683 SYMBOL_REF_P.
8684 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
8685 (rs6000_init_hard_regno_mode_ok, direct_move_p):
8686 Use HARD_REGISTER_NUM_P.
8687 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
8688 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
8689 SUBREG_P and SYMBOL_REF_P.
8690 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
8691 and HARD_REGISTER_NUM_P.
8692 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
8693 reg_or_subregno.
8694 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
8695 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
8696 MEM_P and REG_P.
8697 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
8698 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
8699 find_addr_reg): Use REG_P.
8700 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
8701 (rs6000_emit_le_vsx_move): Use SUBREG_P.
8702 (offsettable_ok_by_alignment, constant_pool_expr_p,
8703 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
8704 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
8705 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
8706 rs6000_assemble_integer, create_TOC_reference,
8707 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
8708 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
8709 (rs6000_split_vec_extract_var): Use reg_or_subregno.
8710 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8711 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8712 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8713 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8714 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8715 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8716 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8717 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8718 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8719 and cbranch<mode>4): Use CONST_INT_P.
8720 (multiple define_splits): Use REG_P and SUBREG_P.
8721 (define_expands call, call_value): Use MEM_P.
8722 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
8723 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8724 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8725 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8726 and HARD_REGISTER_NUM_P.
8727 (multiple define_splits): Use HARD_REGISTER_NUM_P.
8728
8729 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
8730
8731 PR rtl-optimization/88948
8732 * rtl.h (prepare_copy_insn): New prototype.
8733 * gcse.c (prepare_copy_insn): New function, split out from
8734 process_insert_insn.
8735 (process_insert_insn): Use prepare_copy_insn.
8736 * store-motion.c (replace_store_insn): Use prepare_copy_insn
8737 instead of gen_move_insn.
8738
8739 2019-01-24 Jakub Jelinek <jakub@redhat.com>
8740
8741 PR debug/89006
8742 * config/i386/i386.c (ix86_pic_register_p): Return true for
8743 UNSPEC_SET_GOT too.
8744
8745 PR tree-optimization/88964
8746 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8747 punt if HONOR_SNANS (chrec).
8748
8749 PR middle-end/89015
8750 * tree-nested.c (convert_nonlocal_reference_stmt,
8751 convert_local_reference_stmt, convert_tramp_reference_stmt,
8752 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8753 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8754 or GIMPLE_OMP_TASK.
8755
8756 PR tree-optimization/89027
8757 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8758 for "omp simd array" variables.
8759
8760 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
8761
8762 PR target/88469
8763 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8764 force the alignment of m_val.
8765
8766 2019-01-24 Richard Biener <rguenther@suse.de>
8767
8768 PR lto/87187
8769 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8770 When in "legacy" debug mode make sure to reset self-origins.
8771
8772 2019-01-24 Martin Liska <mliska@suse.cz>
8773
8774 PR gcov-profile/88994
8775 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8776 result will be always smaller or equal to the original.
8777 * gcov.c (mangle_name): Fix else branch where we should
8778 also copy to PTR and shift the pointer.
8779
8780 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
8781
8782 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8783 * vr-values.c (find_case_label_ranges): Fix a comment typo.
8784
8785 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
8786
8787 * common/config/i386/i386-common.c
8788 (OPTION_MASK_ISA_ENQCMD_SET,
8789 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8790 (ix86_handle_option): Handle -menqcmd.
8791 * config.gcc (enqcmdintrin.h): New header file.
8792 * config/i386/cpuid.h (bit_ENQCMD): New bit.
8793 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8794 -menqcmd.
8795 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8796 function type.
8797 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8798 __builtin_ia32_enqcmds): New builtins.
8799 * config/i386/i386-c.c (__ENQCMD__): New macro.
8800 * config/i386/i386-option.c (ix86_target_string): Add
8801 -menqcmd.
8802 (ix86_valid_target_attribute_inner_p): Likewise.
8803 * config/i386/i386-expand.c
8804 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8805 IX86_BUILTIN_ENQCMDS.
8806 * config/i386/i386.h (TARGET_ENQCMD): New.
8807 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8808 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8809 (movdir64b_<mode>): Parameterize to enable share expansion code
8810 with ENQCMD in function ix86_expand_builtin.
8811 * config/i386/i386.opt: Add -menqcmd.
8812 * config/i386/immintrin.h: Include enqcmdintrin.h.
8813 * config/i386/enqcmdintrin.h: New intrinsic file.
8814 * doc/invoke.texi: Add -menqcmd.
8815
8816 2019-01-23 Bin Cheng <bin.cheng@arm.com>
8817 Steve Ellcey <sellcey@marvell.com>
8818
8819 PR target/85711
8820 * recog.c (address_operand): Return false on wrong mode for address.
8821 (constrain_operands): Check for mode with 'p' constraint.
8822
8823 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
8824
8825 PR target/88998
8826 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8827 Disparage MMX alternative.
8828 (sse2_cvtpd2pi): Ditto.
8829 (sse2_cvttpd2pi): Ditto.
8830
8831 2019-01-23 David Malcolm <dmalcolm@redhat.com>
8832
8833 PR driver/89014
8834 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8835 use-after-free of the result of
8836 aarch64_get_extension_string_for_isa_flags.
8837
8838 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8839
8840 PR c/44715
8841 * doc/extend.texi: Document break and continue behavior in
8842 statement expressions.
8843
8844 2019-01-23 Richard Biener <rguenther@suse.de>
8845
8846 PR tree-optimization/89008
8847 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8848 not leave another stray operand.
8849
8850 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8851
8852 * BASE-VER: Bump to 9.0.1.
8853
8854 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
8855
8856 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8857 thunk that returns by reference, use the type of the return object
8858 of the thunk instead of that of the alias to build the dereference.
8859
8860 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
8861
8862 * config/arc/atomic.md: Add operand to DMB instruction.
8863
8864 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8865
8866 PR tree-optimization/88964
8867 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8868 build_zero_cst instead of build_int_cst. Return false for loop
8869 invariants which honor signed zeros.
8870
8871 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
8872
8873 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8874
8875 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8876
8877 PR target/88965
8878 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8879 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8880 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8881
8882 PR middle-end/88968
8883 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8884 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8885
8886 PR target/87064
8887 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8888 Disable for little endian.
8889
8890 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8891
8892 PR target/88469
8893 * config/arm/arm.c (arm_needs_double_word_align): Check
8894 DECL_BIT_FIELD_TYPE.
8895
8896 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
8897 H.J. Lu <hongjiu.lu@intel.com>
8898
8899 PR target/88909
8900 * config/i386/i386-builtin.def: Add mask2 to all builtin
8901 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8902 SPECIAL_ARGS.
8903 * config/i386/i386.c (BDESC): Add mask2 to the definition.
8904 (BDESC_FIRST): Likewise.
8905 (define_builtin): Add an argument for mask2. Updated to handle
8906 both ix86_isa_flags and ix86_isa_flags2.
8907 (define_builtin_const): Likewise.
8908 (define_builtin_pure): Likewise.
8909 (define_builtin2): Deleted.
8910 (define_builtin_const2): Likewise.
8911 (builtin_description): Add a member, mask2.
8912 (bdesc_*): Add mask2 to builtin initializations.
8913 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8914 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
8915 support.
8916 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8917
8918 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
8919
8920 PR target/88954
8921 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8922 noplt attribute.
8923
8924 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8925
8926 PR target/88469
8927 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8928 alignment is dominated by a bitfield with 64-bit aligned base type.
8929 (arm_function_arg): Emit a warning if the alignment has changed since
8930 earlier GCC releases.
8931 (arm_function_arg_boundary): Likewise.
8932 (arm_setup_incoming_varargs): Likewise.
8933
8934 2019-01-22 Richard Biener <rguenther@suse.de>
8935
8936 PR tree-optimization/88862
8937 * graphite-scop-detection.c
8938 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8939
8940 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
8941
8942 * doc/extend.tex (AMD GCN Function Attributes): New section.
8943 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8944 * doc/invoke.texi (AMD GCN Options): New section.
8945 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8946
8947 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
8948
8949 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
8950 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
8951
8952 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8953
8954 PR tree-optimization/88044
8955 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
8956 is false in the first iteration, but !every_iteration, return false
8957 instead of true with niter->niter zero.
8958
8959 PR rtl-optimization/88904
8960 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
8961 any nonequal registers before processing BB_END (b).
8962
8963 PR target/88905
8964 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
8965 GET_MODE (op0).
8966 (expand_binop_directly, expand_doubleword_clz,
8967 expand_doubleword_popcount, expand_ctz, expand_ffs,
8968 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
8969
8970 PR rtl-optimization/49429
8971 PR target/49454
8972 PR rtl-optimization/86334
8973 PR target/88906
8974 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
8975 addressable from here...
8976 (emit_block_op_via_libcall): ... to here.
8977
8978 2019-01-22 Richard Biener <rguenther@suse.de>
8979
8980 * tree-vect-loop.c (vect_analyze_loop_operations): Use
8981 auto_vec for cost vector to fix memleak.
8982 (vectorize_fold_left_reduction): Properly gather SLP defs.
8983 (vectorizable_comparison): Do not swap operands to properly
8984 gather SLP defs.
8985
8986 2019-01-22 Alan Modra <amodra@gmail.com>
8987
8988 PR target/88614
8989 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
8990 stays a reg. Allow a const_int.
8991 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
8992 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
8993 (IS_NOMARK_TLSGETADDR): Define.
8994 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
8995 (rs6000_output_tlsargs): New function.
8996 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
8997 __tls_get_addr call takes an arg.
8998 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
8999 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
9000 delete split..
9001 (call_value_nonlocal_sysv): ..or here, delete split.
9002 (tls_gdld_nomark): Delete.
9003 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
9004 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
9005 (call_value_nonlocal_sysv): Likewise.
9006 (call_value_nonlocal_sysv_secure): Likewise.
9007 (call_value_nonlocal_aix): Likewise.
9008 (call_value_indirect_aix): Likewise.
9009 (call_value_indirect_elfv2): Likewise.
9010 (call_value_local32, call_value_local64): Disable for no-mark tls.
9011 (call_value_local_aix): Likewise.
9012
9013 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
9014
9015 PR target/88938
9016 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
9017 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
9018
9019 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
9020
9021 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
9022 string contents as hash_map keys.
9023
9024 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9025
9026 PR c/88928
9027 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
9028 for rvalue context. Handle rvalues correctly. Use min_align_of_type
9029 instead of TYPE_ALIGN.
9030 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
9031 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
9032 pointer from TYPE_STUB_DECL.
9033
9034 2019-01-21 Richard Biener <rguenther@suse.de>
9035
9036 PR tree-optimization/88934
9037 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
9038 at the possibly non-constant operand.
9039 (vect_get_constant_vectors): Adjust.
9040
9041 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
9042
9043 PR target/71659
9044 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
9045 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
9046 instead of _X86INTRIN_H_INCLUDED.
9047 * onfig/i386/clwbintrin.h: Likewise.
9048 * config/i386/pkuintrin.h: Likewise.
9049 * config/i386/prfchwintrin.h: Likewise.
9050 * config/i386/rdseedintrin.h: Likewise.
9051 * config/i386/wbnoinvdintrin.h: Likewise.
9052 * config/i386/xsavecintrin.h: Likewise.
9053 * config/i386/xsavesintrin.h: Likewise.
9054 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
9055 * config/i386/xsaveintrin.h: Likewise.
9056 * config/i386/xsaveoptintrin.h: Likewise.
9057 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
9058 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
9059 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
9060 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
9061 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
9062 * config/i386/immintrin.h: Here.
9063
9064 2019-01-20 Martin Jambor <mjambor@suse.cz>
9065
9066 PR ipa/87615
9067 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
9068 with aa_walk_budget.
9069 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
9070 aa_walk_budget_p parameter.
9071 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
9072 walk. Updated all callers.
9073 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
9074 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
9075 unmodified_parm.
9076 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
9077 parameter info. Extract info from fbi. Pass fbi to recursive calls
9078 and to unmodified_parm.
9079 (phi_result_unknown_predicate): New parameter fbi, removed parameter
9080 info, updated call to will_be_nonconstant_expr_predicate.
9081 (param_change_prob): New parameter fbi, limit AA walking.
9082 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
9083 calls to various above functions.
9084 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
9085 parameter. Use it to limit AA walking.
9086 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
9087 fbi, limit AA walk.
9088 (detect_type_change): New parameter fbi, pass it on to
9089 detect_type_change_from_memory_writes.
9090 (detect_type_change_ssa): Likewise.
9091 (aa_overwalked): Removed.
9092 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
9093 accordingly, adjust to the neew AA limiting scheme.
9094 (parm_ref_data_preserved_p): Likewise.
9095 (ipa_compute_jump_functions_for_edge): Adjust call to
9096 get_dynamic_type.
9097 (ipa_analyze_call_uses): Likewise.
9098 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
9099 (ipa_analyze_node): Initialize aa_walk_budget.
9100 (ipcp_transform_function): Likewise.
9101 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
9102 to get_dynamic_type.
9103
9104 2019-01-19 Jakub Jelinek <jakub@redhat.com>
9105
9106 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
9107 outside of #if CHECKING_P code.
9108
9109 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
9110
9111 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
9112 New function, split out from...
9113 (loop_versioning::analyze_stride): ...here.
9114 (loop_versioning::find_per_loop_multiplication): Use gassign.
9115 (loop_versioning::analyze_term_using_scevs): Return a success code.
9116 (loop_versioning::analyze_arbitrary_term): New function.
9117 (loop_versioning::analyze_address_fragment): Use
9118 analyze_arbitrary_term if all else fails.
9119
9120 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
9121
9122 PR target/88892
9123 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
9124 operands.
9125
9126 2019-01-18 Richard Biener <rguenther@suse.de>
9127
9128 PR tree-optimization/88903
9129 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
9130 scalar stmts a SLP shift amount is composed of when detecting
9131 shifts by scalars.
9132
9133 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
9134
9135 PR target/88799
9136 * config/arm/arm-cpus.in (mp): New feature.
9137 (sec): New feature.
9138 (fgroup ARMv7ve): Add mp and sec features.
9139 (arch armv7-a): Add options to allow mp and sec extensions.
9140 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
9141 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
9142 extenstions to the base architecture.
9143 (cpu cortex-a8): Add sec extension to the base architecture.
9144 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
9145 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
9146 variants down to the base v7-a varaint.
9147 * config/arm/t-multilib (v7_a_arch_variants): New variable.
9148 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
9149 of permitted extensions for -march=armv7-a and for
9150 -mcpu=generic-armv7-a.
9151
9152 2019-01-18 Martin Liska <mliska@suse.cz>
9153
9154 * params.def: Fix comment.
9155 * tree-profile.c (gimple_init_gcov_profiler): Bump function
9156 name.
9157 (gimple_gen_ic_func_profiler): Likewise.
9158
9159 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9160
9161 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
9162 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
9163 and put in error checks for stack protector guard options.
9164 (aarch64_stack_protect_guard): New.
9165 (TARGET_STACK_PROTECT_GUARD): Define.
9166 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
9167 (reg_stack_protect_address<mode>): New.
9168 (stack_protect_set): Adjust for SSP_GLOBAL.
9169 (stack_protect_test): Likewise.
9170 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
9171 (-mstack-protector-guard): Likewise.
9172 (-mstack-protector-guard-offset): Likewise.
9173
9174 2019-01-18 Jakub Jelinek <jakub@redhat.com>
9175
9176 PR tree-optimization/86214
9177 * tree-inline.h (struct copy_body_data): Add
9178 add_clobbers_to_eh_landing_pads member.
9179 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
9180 (copy_edges_for_bb): Call it if EH edge destination is <
9181 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
9182 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
9183 if flag_stack_reuse != SR_NONE and clear it afterwards.
9184
9185 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
9186
9187 PR target/85596
9188 * doc/install.texi (with-multilib-list): Document for aarch64.
9189
9190 2019-01-18 Jakub Jelinek <jakub@redhat.com>
9191
9192 PR target/88734
9193 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
9194 (("..."))) with ("...").
9195
9196 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
9197
9198 * doc/extend.texi (Built-in Functions for Memory Model Aware
9199 Atomic Operations): Document atomic fetch and nand.
9200
9201 2019-01-18 Martin Liska <mliska@suse.cz>
9202 Richard Biener <rguenther@suse.de>
9203
9204 PR middle-end/88587
9205 * cgraph.h (create_version_clone_with_body): Add new argument
9206 with attributes.
9207 * cgraphclones.c (cgraph_node::create_version_clone): Add
9208 DECL_ATTRIBUTES to a newly created decl. And call
9209 valid_attribute_p so that proper cl_target_optimization_node
9210 is set for the newly created declaration.
9211 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
9212 for declaration.
9213 (expand_target_clones): Do not call valid_attribute_p, it must
9214 be already done.
9215 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
9216 vector types.
9217
9218 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9219
9220 PR target/88734
9221 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
9222 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
9223 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
9224
9225 2019-01-17 Martin Sebor <msebor@redhat.com>
9226
9227 PR middle-end/88273
9228 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
9229 Handle anti-ranges the same as no range at all.
9230
9231 2018-01-17 Steve Ellcey <sellcey@cavium.com>
9232
9233 * config/aarch64/aarch64.c (cgraph.h): New include.
9234 (intl.h): New include.
9235 (supported_simd_type): New function.
9236 (currently_supported_simd_type): Ditto.
9237 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
9238 (aarch64_simd_clone_adjust): Ditto.
9239 (aarch64_simd_clone_usable): Ditto.
9240 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
9241 (TARGET_SIMD_CLONE_ADJUST): Ditto.
9242 (TARGET_SIMD_CLONE_USABLE): Ditto.
9243 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
9244 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
9245 call.
9246
9247 2019-01-17 Martin Sebor <msebor@redhat.com>
9248
9249 PR tree-optimization/88800
9250 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
9251 NO_WARNING bit here. Avoid folding out-of-bounds calls.
9252 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
9253 redundant argument. Add new argument and issue diagnostics under
9254 its control. Detect out-of-bounds access even with warnings
9255 disabled.
9256 (check_bounds_or_overlap): Change return type. Add argument.
9257 (wrestrict_dom_walker::check_call): Adjust.
9258 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
9259 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
9260 check_bounds_or_overlap's return value.
9261 (handle_builtin_stxncpy): Same.
9262 (handle_builtin_strcat): Same.
9263
9264 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9265 Kwok Cheung Yeung <kcy@codesourcery.com>
9266 Julian Brown <julian@codesourcery.com>
9267 Tom de Vries <tom@codesourcery.com>
9268
9269 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
9270
9271 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9272
9273 * doc/sourcebuild.texi: Document dg-require-effective-target
9274 llvm_binutils and offload_gcn.
9275
9276 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9277 Kwok Cheung Yeung <kcy@codesourcery.com>
9278 Julian Brown <julian@codesourcery.com>
9279 Tom de Vries <tom@codesourcery.com>
9280
9281 * doc/sourcebuild.texi: Document dg-required-effective-target
9282 exceptions.
9283
9284 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9285 Kwok Cheung Yeung <kcy@codesourcery.com>
9286 Julian Brown <julian@codesourcery.com>
9287 Tom de Vries <tom@codesourcery.com>
9288 Jan Hubicka <hubicka@ucw.cz>
9289 Martin Jambor <mjambor@suse.cz>
9290
9291 * config.gcc: Add amdgcn*-*-amdhsa configuration.
9292 * configure.ac: Check for dlopen.
9293 * configure: Regenerate.
9294
9295 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9296 Kwok Cheung Yeung <kcy@codesourcery.com>
9297 Julian Brown <julian@codesourcery.com>
9298 Tom de Vries <tom@codesourcery.com>
9299 Jan Hubicka <hubicka@ucw.cz>
9300 Martin Jambor <mjambor@suse.cz>
9301
9302 * common/config/gcn/gcn-common.c: New file.
9303 * config/gcn/driver-gcn.c: New file.
9304 * config/gcn/gcn-builtins.def: New file.
9305 * config/gcn/gcn-hsa.h: New file.
9306 * config/gcn/gcn-modes.def: New file.
9307 * config/gcn/gcn-opts.h: New file.
9308 * config/gcn/gcn-passes.def: New file.
9309 * config/gcn/gcn-protos.h: New file.
9310 * config/gcn/gcn-run.c: New file.
9311 * config/gcn/gcn-tree.c: New file.
9312 * config/gcn/gcn.c: New file.
9313 * config/gcn/gcn.h: New file.
9314 * config/gcn/gcn.opt: New file.
9315 * config/gcn/t-gcn-hsa: New file.
9316
9317 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9318 Kwok Cheung Yeung <kcy@codesourcery.com>
9319 Julian Brown <julian@codesourcery.com>
9320 Tom de Vries <tom@codesourcery.com>
9321 Jan Hubicka <hubicka@ucw.cz>
9322 Martin Jambor <mjambor@suse.cz>
9323
9324 * config/gcn/constraints.md: New file.
9325 * config/gcn/gcn-valu.md: New file.
9326 * config/gcn/gcn.md: New file.
9327 * config/gcn/predicates.md: New file.
9328
9329 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
9330
9331 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
9332 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
9333 (stmt_uses_0_or_null_in_undefined_way): Likewise.
9334 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
9335
9336 2019-01-17 Tamar Christina <tamar.christina@arm.com>
9337
9338 PR target/88851
9339 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
9340 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
9341 it and document registers.
9342
9343 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9344
9345 * config/aarch64/aarch64.c (ares_tunings): Define.
9346 * config/aarch64/aarch64-cores.def (ares): Use the above.
9347
9348 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9349
9350 PR target/88794
9351 Revert:
9352 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
9353
9354 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
9355 (_mm512_fixupimm_round_pd): Update parameters and builtin.
9356 (_mm512_maskz_fixupimm_round_pd): Ditto.
9357 (_mm512_fixupimm_round_ps): Ditto.
9358 (_mm512_maskz_fixupimm_round_ps): Ditto.
9359 (_mm_fixupimm_round_sd): Ditto.
9360 (_mm_maskz_fixupimm_round_sd): Ditto.
9361 (_mm_fixupimm_round_ss): Ditto.
9362 (_mm_maskz_fixupimm_round_ss): Ditto.
9363 (_mm512_fixupimm_pd): Ditto.
9364 (_mm512_maskz_fixupimm_pd): Ditto.
9365 (_mm512_fixupimm_ps): Ditto.
9366 (_mm512_maskz_fixupimm_ps): Ditto.
9367 (_mm_fixupimm_sd): Ditto.
9368 (_mm_maskz_fixupimm_sd): Ditto.
9369 (_mm_fixupimm_ss): Ditto.
9370 (_mm_maskz_fixupimm_ss): Ditto.
9371 (_mm512_mask_fixupimm_round_pd): Update builtin.
9372 (_mm512_mask_fixupimm_round_ps): Ditto.
9373 (_mm_mask_fixupimm_round_sd): Ditto.
9374 (_mm_mask_fixupimm_round_ss): Ditto.
9375 (_mm512_mask_fixupimm_pd): Ditto.
9376 (_mm512_mask_fixupimm_ps): Ditto.
9377 (_mm_mask_fixupimm_sd): Ditto.
9378 (_mm_mask_fixupimm_ss): Ditto.
9379 * config/i386/avx512vlintrin.h:
9380 (_mm256_fixupimm_pd): Update parameters and builtin.
9381 (_mm256_maskz_fixupimm_pd): Ditto.
9382 (_mm256_fixupimm_ps): Ditto.
9383 (_mm256_maskz_fixupimm_ps): Ditto.
9384 (_mm_fixupimm_pd): Ditto.
9385 (_mm_maskz_fixupimm_pd): Ditto.
9386 (_mm_fixupimm_ps): Ditto.
9387 (_mm_maskz_fixupimm_ps): Ditto.
9388 (_mm256_mask_fixupimm_pd): Update builtin.
9389 (_mm256_mask_fixupimm_ps): Ditto.
9390 (_mm_mask_fixupimm_pd): Ditto.
9391 (_mm_mask_fixupimm_ps): Ditto.
9392 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
9393 * config/i386/i386-builtin.def: Update builtin definitions.
9394 * config/i386/i386.c: Handle new builtin types and remove useless ones.
9395 * config/i386/sse.md: Update VFIXUPIMM* patterns.
9396 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9397 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9398 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
9399 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9400 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9401 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
9402 * config/i386/subst.md:
9403 (round_saeonly_sd_mask_operand4): Add new subst_attr.
9404 (round_saeonly_sd_mask_op4): Ditto.
9405 (round_saeonly_expand_operand5): Ditto.
9406 (round_saeonly_expand): Update.
9407
9408 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9409
9410 PR target/88794
9411 Revert:
9412 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
9413
9414 * config/i386/sse.md: Combine VFIXUPIMM* patterns
9415 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9416 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9417 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
9418 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9419 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9420 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
9421
9422 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9423
9424 PR target/88794
9425 Revert:
9426 2018-12-15 Jakub Jelinek <jakub@redhat.com>
9427
9428 PR target/88489
9429 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
9430 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
9431 instead of UNSPEC_FIXUPIMM.
9432
9433 2019-01-17 Richard Biener <rguenther@suse.de>
9434
9435 PR lto/86736
9436 * dwarf2out.c (want_pubnames): Never generate pubnames sections
9437 and friends for the LTO part of debug info.
9438
9439 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9440
9441 PR tree-optimization/86214
9442 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
9443 if x == y.
9444
9445 PR rtl-optimization/88870
9446 * dce.c (deletable_insn_p): Never delete const/pure calls that can
9447 throw if we can't alter the cfg or delete dead exceptions.
9448 (mark_insn): Don't call find_call_stack_args for such calls.
9449
9450 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
9451
9452 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
9453 prototypes for vec_st.
9454 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
9455 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
9456 mainly on signed/unsigned long long and double.
9457
9458 2019-01-16 David Malcolm <dmalcolm@redhat.com>
9459
9460 PR target/88861
9461 * combine.c (delete_noop_moves): Convert to "bool" return,
9462 returning true if any edges are eliminated.
9463 (combine_instructions): Also return true if delete_noop_moves
9464 returns true.
9465
9466 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9467
9468 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
9469 correct max nunits for endian swap.
9470 (aarch64_expand_fcmla_builtin): Correct subreg code.
9471 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9472 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
9473 lane endianness.
9474
9475 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
9476
9477 * config/alpha/alpha.c (alpha_gimplify_va_arg):
9478 Handle split indirect COMPLEX_TYPE arguments.
9479
9480 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
9481
9482 PR target/86891
9483 * config/aarch64/aarch64-modes.def: Add comment about how the carry
9484 bit is set by add and compare.
9485 (CC_ADC): New CC_MODE.
9486 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
9487 to cache the code and mode of X. Adjust the shape of a CC_Cmode
9488 comparison. Add detection for CC_ADCmode.
9489 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
9490 CC_ADCmode.
9491 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
9492 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
9493 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
9494 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
9495 to eliminate the need for zero-extending the operands.
9496 (add<mode>3_compareC_imm): Delete. Merge into ...
9497 (add<mode>3_compareC): ... this. Restructure the comparison to
9498 eliminate the need for zero-extending the operands.
9499 (add<mode>3_carryin): Use LTU for the overflow detection.
9500 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
9501 Reexpress comparison for overflow.
9502 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
9503 (add<mode>3_carryinC): Likewise.
9504 (add<mode>3_carryinV): Use LTU for carry between partials.
9505 * config/aarch64/predicates.md (aarch64_carry_operation): Update
9506 handling of CC_Cmode and add CC_ADCmode.
9507 (aarch64_borrow_operation): Likewise.
9508
9509 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9510
9511 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
9512 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
9513 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
9514 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
9515
9516 2019-01-16 Martin Liska <mliska@suse.cz>
9517
9518 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
9519 for GCC driver.
9520 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
9521 a new argument.
9522 * gcc.c (add_sysrooted_hdrs_prefix): New function.
9523 (path_prefix_reset): Move up in the source file.
9524 (find_fortran_preinclude_file): Make complex search for the
9525 fortran header files.
9526
9527 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
9528
9529 * godump.c (go_output_typedef): When outputting a typedef, refer
9530 to the underlying type by its name and not its structure.
9531
9532 2019-01-15 David Malcolm <dmalcolm@redhat.com>
9533
9534 PR c++/88795
9535 * tree.c (build_function_type): Assert that arg_types is not
9536 error_mark_node.
9537
9538 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
9539
9540 PR inline-asm/52813
9541 * doc/extend.texi: Document that listing the stack pointer in the
9542 clobber list of an asm is a deprecated feature.
9543 * common.opt (Wdeprecated): Moved from c-family/c.opt.
9544 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
9545 warning instead of an error for clobbers of the stack pointer.
9546 Add a note explaining why.
9547
9548 2019-01-15 Richard Biener <rguenther@suse.de>
9549
9550 PR debug/88046
9551 * dwarf2out.c (gen_member_die): Do not generate inheritance
9552 DIEs late.
9553
9554 2019-01-15 Richard Biener <rguenther@suse.de>
9555
9556 PR tree-optimization/88855
9557 * tree-if-conv.c (combine_blocks): Collect
9558 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
9559
9560 2019-01-15 Tom de Vries <tdevries@suse.de>
9561
9562 PR target/80547
9563 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
9564 lhs == NULL_TREE for gang-level reduction.
9565
9566 2019-01-15 Richard Biener <rguenther@suse.de>
9567 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9568
9569 PR ipa/88788
9570 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
9571 return true if SSA_NAME is already marked in visited bitmap.
9572 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
9573
9574 2019-01-15 Jakub Jelinek <jakub@redhat.com>
9575
9576 PR tree-optimization/88775
9577 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
9578 equal == 0 equality pointer comparisons some more if compared in
9579 integral types and either one points to an automatic var and the
9580 other to a global, or we can prove at least one points to the middle
9581 or both point to start or both point to end.
9582
9583 2019-01-14 Andi Kleen <ak@linux.intel.com>
9584
9585 * Makefile.in: Lower autofdo sampling rate by 10x.
9586 * Makefile.tpl: Dito.
9587
9588 2019-01-14 Tom Honermann <tom@honermann.net>
9589
9590 * defaults.h: Define CHAR8_TYPE.
9591
9592 2019-01-14 Martin Sebor <msebor@redhat.com>
9593
9594 PR target/88638
9595 * doc/extend.texi (Darwin Format Checks): Clarify.
9596
9597 2019-01-14 Richard Biener <rguenther@suse.de>
9598
9599 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
9600 whether we are in (simplify ...) or (match ...) context.
9601
9602 2019-01-14 Jakub Jelinek <jakub@redhat.com>
9603
9604 PR rtl-optimization/88796
9605 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
9606 * cfgexpand.c (stack_protect_prologue): Initialize
9607 crtl->stack_protect_guard_decl.
9608 * function.c (stack_protect_epilogue): Use it instead of calling
9609 targetm.stack_protect_guard again.
9610 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
9611 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
9612 crtl->stack_protect_guard_decl.
9613 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
9614 on the returned MEM_EXPR.
9615
9616 2019-01-12 Tom de Vries <tdevries@suse.de>
9617
9618 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
9619 vector length using -fopenacc-dim.
9620
9621 2019-01-12 Tom de Vries <tdevries@suse.de>
9622
9623 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
9624 lengths into account.
9625
9626 2019-01-12 Svante Signell <svante.signell@gmail.com>
9627
9628 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
9629 (TARGET_CAN_SPLIT_STACK): Define.
9630 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9631
9632 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9633
9634 * params.def (inline-unit-growth): Set to 40.
9635
9636 2019-01-12 Jakub Jelinek <jakub@redhat.com>
9637
9638 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
9639
9640 2019-01-12 Tom de Vries <tdevries@suse.de>
9641
9642 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
9643 region calling vector-partitionable routine, set default_vector_length
9644 to WARP_SIZE.
9645
9646 2019-01-12 Tom de Vries <tdevries@suse.de>
9647
9648 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
9649 variable default_vector_length.
9650
9651 2019-01-12 Tom de Vries <tdevries@suse.de>
9652
9653 PR middle-end/88703
9654 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
9655 from oacc_default_dims, as oacc_validate_dims would do it, and apply
9656 dimensions limits.
9657
9658 2019-01-12 Tom de Vries <tdevries@suse.de>
9659
9660 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
9661 (nvptx_goacc_validate_dims): Add used parameter.
9662 * doc/tm.texi: Regenerate.
9663 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
9664 argument to call to targetm.goacc.validate_dims.
9665 (default_goacc_validate_dims): Add used
9666 parameter.
9667 * target.def (validate_dims): Add used parameter in DEFHOOK.
9668 * targhooks.h (default_goacc_validate_dims): Add used parameter.
9669
9670 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9671
9672 PR middle-end/85956
9673 PR lto/88733
9674 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
9675 field.
9676 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
9677 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
9678 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
9679 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
9680
9681 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
9682
9683 PR rtl-optimization/87305
9684 * lra-assigns.c
9685 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
9686 for little endian pseudos used as paradoxical subreg.
9687
9688 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9689
9690 PR tree-optimization/88693
9691 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
9692 for STRING_CSTs that don't contain any NUL characters in the first
9693 TREE_STRING_LENGTH bytes.
9694
9695 2019-01-11 Alan Modra <amodra@gmail.com>
9696
9697 PR 88777
9698 PR 88614
9699 * genattrtab.c (min_fn): Don't translate values.
9700 (min_attr_value): Return INT_MAX when the value can't be calculated.
9701 Return minimum among any values that can be calculated.
9702 (max_attr_value): Adjust.
9703
9704 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9705
9706 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
9707
9708 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9709
9710 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9711 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
9712 (aarch64_return_call_with_max_clobbers): New function.
9713 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9714 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9715 argument.
9716 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9717 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9718 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9719 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9720 * cselib.c (cselib_process_insn): Add argument to
9721 targetm.hard_regno_call_part_clobbered call.
9722 * ira-conflicts.c (ira_build_conflicts): Ditto.
9723 * ira-costs.c (ira_tune_allocno_costs): Ditto.
9724 * lra-constraints.c (inherit_reload_reg): Ditto.
9725 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9726 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9727 argument. Call targetm.return_call_with_max_clobbers.
9728 Add argument to targetm.hard_regno_call_part_clobbered call.
9729 (calls_have_same_clobbers_p): New function.
9730 (process_bb_lives): Add call_insn and last_call_insn variables.
9731 Pass call_insn to check_pseudos_live_through_calls.
9732 Modify if stmt to check targetm.return_call_with_max_clobbers.
9733 Update setting of flush variable.
9734 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9735 to false.
9736 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9737 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9738 targetm.hard_regno_call_part_clobbered call.
9739 * reginfo.c (choose_hard_reg_mode): Ditto.
9740 * regrename.c (check_new_reg_p): Ditto.
9741 * reload.c (find_equiv_reg): Ditto.
9742 * reload1.c (emit_reload_insns): Ditto.
9743 * sched-deps.c (deps_analyze_insn): Ditto.
9744 * sel-sched.c (init_regs_for_mode): Ditto.
9745 (mark_unavailable_hard_regs): Ditto.
9746 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9747 * target.def (hard_regno_call_part_clobbered): Add insn argument.
9748 (return_call_with_max_clobbers): New target function.
9749 * doc/tm.texi: Regenerate.
9750 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9751 * hooks.c (hook_bool_uint_mode_false): Change to
9752 hook_bool_insn_uint_mode_false.
9753 * hooks.h (hook_bool_uint_mode_false): Ditto.
9754
9755 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9756
9757 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9758 (aarch64_remove_extra_call_preserved_regs): New function.
9759 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9760 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9761 * doc/tm.texi: Regenerate.
9762 * final.c (get_call_reg_set_usage): Call new hook.
9763 * target.def (remove_extra_call_preserved_regs): New hook.
9764 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9765 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9766
9767 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9768
9769 PR bootstrap/88714
9770 * passes.c (finish_optimization_passes): Call print_combine_total_stats
9771 inside of pass_combine_1 dump rather than pass_profile_1.
9772
9773 2019-01-11 Tom de Vries <tdevries@suse.de>
9774
9775 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9776 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9777 (PTX_NUM_PER_WORKER_BARRIERS): Define.
9778 (nvptx_apply_dim_limits): Prevent vector_length 64 and
9779 num_workers 16.
9780
9781 2019-01-11 Tom de Vries <tdevries@suse.de>
9782
9783 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9784
9785 2019-01-11 Jan Beulich <jbeulich@suse.com>
9786
9787 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9788 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9789 sse2_cvtsi2sd): Add {l}.
9790 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9791 syntax.
9792
9793 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9794
9795 PR target/88785
9796 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9797 define_expand.
9798 (*float<floatunssuffix>v2div2sf2): New define_insn.
9799 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9800 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9801 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9802 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9803 match_operands with "const0_operand" "C".
9804
9805 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9806
9807 * config/aarch64/aarch64-builtins.c
9808 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9809 (aarch64_init_simd_builtins): ...Here
9810
9811 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
9812
9813 PR rtl-optimization/87305
9814 * lra-assigns.c
9815 (setup_live_pseudos_and_spill_after_risky_transforms): Check
9816 allocation for big endian pseudos used as paradoxical subregs and
9817 spill them if it is wrong.
9818 * lra-constraints.c (lra_constraints): Add a comment.
9819
9820 2019-01-10 Richard Biener <rguenther@suse.de>
9821
9822 PR tree-optimization/88792
9823 * tree-ssa-pre.c (get_representative_for): Do not return a
9824 value-number here.
9825
9826 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9827
9828 PR middle-end/84877
9829 PR bootstrap/88450
9830 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9831 (assign_parm_setup_block): Do the argument slot realignment here
9832 instead.
9833
9834 2019-01-10 Stefan Agner <stefan@agner.ch>
9835
9836 PR target/88648
9837 * config/arm/arm.c (arm_option_override_internal): Force
9838 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9839
9840 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9841
9842 PR c/88568
9843 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9844 DECL_EXTERNAL.
9845
9846 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9847
9848 * config/arm/arm-builtins.c
9849 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9850 (MAC_LANE_PAIR_QUALIFIERS): New.
9851 (arm_expand_builtin_args): Use it.
9852 (arm_expand_builtin_1): Likewise.
9853 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9854 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9855 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9856 * config/arm/arm_neon.h:
9857 (vcadd_rot90_f16): New.
9858 (vcaddq_rot90_f16): New.
9859 (vcadd_rot270_f16): New.
9860 (vcaddq_rot270_f16): New.
9861 (vcmla_f16): New.
9862 (vcmlaq_f16): New.
9863 (vcmla_lane_f16): New.
9864 (vcmla_laneq_f16): New.
9865 (vcmlaq_lane_f16): New.
9866 (vcmlaq_laneq_f16): New.
9867 (vcmla_rot90_f16): New.
9868 (vcmlaq_rot90_f16): New.
9869 (vcmla_rot90_lane_f16): New.
9870 (vcmla_rot90_laneq_f16): New.
9871 (vcmlaq_rot90_lane_f16): New.
9872 (vcmlaq_rot90_laneq_f16): New.
9873 (vcmla_rot180_f16): New.
9874 (vcmlaq_rot180_f16): New.
9875 (vcmla_rot180_lane_f16): New.
9876 (vcmla_rot180_laneq_f16): New.
9877 (vcmlaq_rot180_lane_f16): New.
9878 (vcmlaq_rot180_laneq_f16): New.
9879 (vcmla_rot270_f16): New.
9880 (vcmlaq_rot270_f16): New.
9881 (vcmla_rot270_lane_f16): New.
9882 (vcmla_rot270_laneq_f16): New.
9883 (vcmlaq_rot270_lane_f16): New.
9884 (vcmlaq_rot270_laneq_f16): New.
9885 (vcadd_rot90_f32): New.
9886 (vcaddq_rot90_f32): New.
9887 (vcadd_rot270_f32): New.
9888 (vcaddq_rot270_f32): New.
9889 (vcmla_f32): New.
9890 (vcmlaq_f32): New.
9891 (vcmla_lane_f32): New.
9892 (vcmla_laneq_f32): New.
9893 (vcmlaq_lane_f32): New.
9894 (vcmlaq_laneq_f32): New.
9895 (vcmla_rot90_f32): New.
9896 (vcmlaq_rot90_f32): New.
9897 (vcmla_rot90_lane_f32): New.
9898 (vcmla_rot90_laneq_f32): New.
9899 (vcmlaq_rot90_lane_f32): New.
9900 (vcmlaq_rot90_laneq_f32): New.
9901 (vcmla_rot180_f32): New.
9902 (vcmlaq_rot180_f32): New.
9903 (vcmla_rot180_lane_f32): New.
9904 (vcmla_rot180_laneq_f32): New.
9905 (vcmlaq_rot180_lane_f32): New.
9906 (vcmlaq_rot180_laneq_f32): New.
9907 (vcmla_rot270_f32): New.
9908 (vcmlaq_rot270_f32): New.
9909 (vcmla_rot270_lane_f32): New.
9910 (vcmla_rot270_laneq_f32): New.
9911 (vcmlaq_rot270_lane_f32): New.
9912 (vcmlaq_rot270_laneq_f32): New.
9913 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9914 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9915 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9916 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9917 vcmlaq_lane270): New.
9918 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9919 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9920 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9921 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9922 (arm_option_reconfigure_globals): Use them.
9923 * config/arm/iterators.md (VDF, VQ_HSF): New.
9924 (VCADD, VCMLA): New.
9925 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9926 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9927 New.
9928 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9929 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9930
9931 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9932
9933 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9934 Add qualifier_lane_pair_index.
9935 (emit-rtl.h): Include.
9936 (TYPES_QUADOP_LANE_PAIR): New.
9937 (aarch64_simd_expand_args): Use it.
9938 (aarch64_simd_expand_builtin): Likewise.
9939 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9940 New.
9941 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9942 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9943 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9944 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9945 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9946 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9947 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9948 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
9949 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
9950 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
9951 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
9952 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
9953 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
9954 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9955 Add __ARM_FEATURE_COMPLEX.
9956 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
9957 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
9958 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
9959 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
9960 fcmlaq_lane270): New.
9961 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9962 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
9963 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
9964 * config/aarch64/arm_neon.h:
9965 (vcadd_rot90_f16): New.
9966 (vcaddq_rot90_f16): New.
9967 (vcadd_rot270_f16): New.
9968 (vcaddq_rot270_f16): New.
9969 (vcmla_f16): New.
9970 (vcmlaq_f16): New.
9971 (vcmla_lane_f16): New.
9972 (vcmla_laneq_f16): New.
9973 (vcmlaq_lane_f16): New.
9974 (vcmlaq_rot90_lane_f16): New.
9975 (vcmla_rot90_laneq_f16): New.
9976 (vcmla_rot90_lane_f16): New.
9977 (vcmlaq_rot90_f16): New.
9978 (vcmla_rot90_f16): New.
9979 (vcmlaq_laneq_f16): New.
9980 (vcmla_rot180_laneq_f16): New.
9981 (vcmla_rot180_lane_f16): New.
9982 (vcmlaq_rot180_f16): New.
9983 (vcmla_rot180_f16): New.
9984 (vcmlaq_rot90_laneq_f16): New.
9985 (vcmlaq_rot270_laneq_f16): New.
9986 (vcmlaq_rot270_lane_f16): New.
9987 (vcmla_rot270_laneq_f16): New.
9988 (vcmlaq_rot270_f16): New.
9989 (vcmla_rot270_f16): New.
9990 (vcmlaq_rot180_laneq_f16): New.
9991 (vcmlaq_rot180_lane_f16): New.
9992 (vcmla_rot270_lane_f16): New.
9993 (vcadd_rot90_f32): New.
9994 (vcaddq_rot90_f32): New.
9995 (vcaddq_rot90_f64): New.
9996 (vcadd_rot270_f32): New.
9997 (vcaddq_rot270_f32): New.
9998 (vcaddq_rot270_f64): New.
9999 (vcmla_f32): New.
10000 (vcmlaq_f32): New.
10001 (vcmlaq_f64): New.
10002 (vcmla_lane_f32): New.
10003 (vcmla_laneq_f32): New.
10004 (vcmlaq_lane_f32): New.
10005 (vcmlaq_laneq_f32): New.
10006 (vcmla_rot90_f32): New.
10007 (vcmlaq_rot90_f32): New.
10008 (vcmlaq_rot90_f64): New.
10009 (vcmla_rot90_lane_f32): New.
10010 (vcmla_rot90_laneq_f32): New.
10011 (vcmlaq_rot90_lane_f32): New.
10012 (vcmlaq_rot90_laneq_f32): New.
10013 (vcmla_rot180_f32): New.
10014 (vcmlaq_rot180_f32): New.
10015 (vcmlaq_rot180_f64): New.
10016 (vcmla_rot180_lane_f32): New.
10017 (vcmla_rot180_laneq_f32): New.
10018 (vcmlaq_rot180_lane_f32): New.
10019 (vcmlaq_rot180_laneq_f32): New.
10020 (vcmla_rot270_f32): New.
10021 (vcmlaq_rot270_f32): New.
10022 (vcmlaq_rot270_f64): New.
10023 (vcmla_rot270_lane_f32): New.
10024 (vcmla_rot270_laneq_f32): New.
10025 (vcmlaq_rot270_lane_f32): New.
10026 (vcmlaq_rot270_laneq_f32): New.
10027 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
10028 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
10029 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
10030 (FCADD, FCMLA): New.
10031 (rot): New.
10032 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
10033
10034 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
10035
10036 PR other/16615
10037
10038 * config/pa/pa.c: Change "can not" to "cannot".
10039 * gimple-ssa-evrp-analyze.c: Likewise.
10040 * ipa-icf.c: Likewise.
10041 * ipa-polymorphic-call.c: Likewise.
10042 * ipa-pure-const.c: Likewise.
10043 * lra-constraints.c: Likewise.
10044 * lra-remat.c: Likewise.
10045 * reload1.c: Likewise.
10046 * reorg.c: Likewise.
10047 * tree-ssa-uninit.c: Likewise.
10048
10049 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
10050
10051 PR other/16615
10052
10053 * Makefile.in: Mechanically replace "can not" with "cannot".
10054 * alias.c: Likewise.
10055 * builtins.c: Likewise.
10056 * calls.c: Likewise.
10057 * cgraph.c: Likewise.
10058 * cgraph.h: Likewise.
10059 * cgraphclones.c: Likewise.
10060 * cgraphunit.c: Likewise.
10061 * combine-stack-adj.c: Likewise.
10062 * combine.c: Likewise.
10063 * common/config/i386/i386-common.c: Likewise.
10064 * config/aarch64/aarch64.c: Likewise.
10065 * config/alpha/sync.md: Likewise.
10066 * config/arc/arc.c: Likewise.
10067 * config/arc/predicates.md: Likewise.
10068 * config/arm/arm-c.c: Likewise.
10069 * config/arm/arm.c: Likewise.
10070 * config/arm/arm.h: Likewise.
10071 * config/arm/arm.md: Likewise.
10072 * config/arm/cortex-r4f.md: Likewise.
10073 * config/csky/csky.c: Likewise.
10074 * config/csky/csky.h: Likewise.
10075 * config/darwin-f.c: Likewise.
10076 * config/epiphany/epiphany.md: Likewise.
10077 * config/i386/i386.c: Likewise.
10078 * config/i386/sol2.h: Likewise.
10079 * config/m68k/m68k.c: Likewise.
10080 * config/mcore/mcore.h: Likewise.
10081 * config/microblaze/microblaze.md: Likewise.
10082 * config/mips/20kc.md: Likewise.
10083 * config/mips/sb1.md: Likewise.
10084 * config/nds32/nds32.c: Likewise.
10085 * config/nds32/predicates.md: Likewise.
10086 * config/pa/pa.c: Likewise.
10087 * config/rs6000/e300c2c3.md: Likewise.
10088 * config/rs6000/rs6000.c: Likewise.
10089 * config/s390/s390.h: Likewise.
10090 * config/sh/sh.c: Likewise.
10091 * config/sh/sh.md: Likewise.
10092 * config/spu/vmx2spu.h: Likewise.
10093 * cprop.c: Likewise.
10094 * dbxout.c: Likewise.
10095 * df-scan.c: Likewise.
10096 * doc/cfg.texi: Likewise.
10097 * doc/extend.texi: Likewise.
10098 * doc/fragments.texi: Likewise.
10099 * doc/gty.texi: Likewise.
10100 * doc/invoke.texi: Likewise.
10101 * doc/lto.texi: Likewise.
10102 * doc/md.texi: Likewise.
10103 * doc/objc.texi: Likewise.
10104 * doc/rtl.texi: Likewise.
10105 * doc/tm.texi: Likewise.
10106 * dse.c: Likewise.
10107 * emit-rtl.c: Likewise.
10108 * emit-rtl.h: Likewise.
10109 * except.c: Likewise.
10110 * expmed.c: Likewise.
10111 * expr.c: Likewise.
10112 * fold-const.c: Likewise.
10113 * genautomata.c: Likewise.
10114 * gimple-fold.c: Likewise.
10115 * hard-reg-set.h: Likewise.
10116 * ifcvt.c: Likewise.
10117 * ipa-comdats.c: Likewise.
10118 * ipa-cp.c: Likewise.
10119 * ipa-devirt.c: Likewise.
10120 * ipa-fnsummary.c: Likewise.
10121 * ipa-icf.c: Likewise.
10122 * ipa-inline-transform.c: Likewise.
10123 * ipa-inline.c: Likewise.
10124 * ipa-polymorphic-call.c: Likewise.
10125 * ipa-profile.c: Likewise.
10126 * ipa-prop.c: Likewise.
10127 * ipa-pure-const.c: Likewise.
10128 * ipa-reference.c: Likewise.
10129 * ipa-split.c: Likewise.
10130 * ipa-visibility.c: Likewise.
10131 * ipa.c: Likewise.
10132 * ira-build.c: Likewise.
10133 * ira-color.c: Likewise.
10134 * ira-conflicts.c: Likewise.
10135 * ira-costs.c: Likewise.
10136 * ira-int.h: Likewise.
10137 * ira-lives.c: Likewise.
10138 * ira.c: Likewise.
10139 * ira.h: Likewise.
10140 * loop-invariant.c: Likewise.
10141 * loop-unroll.c: Likewise.
10142 * lower-subreg.c: Likewise.
10143 * lra-assigns.c: Likewise.
10144 * lra-constraints.c: Likewise.
10145 * lra-eliminations.c: Likewise.
10146 * lra-lives.c: Likewise.
10147 * lra-remat.c: Likewise.
10148 * lra-spills.c: Likewise.
10149 * lra.c: Likewise.
10150 * lto-cgraph.c: Likewise.
10151 * lto-streamer-out.c: Likewise.
10152 * postreload-gcse.c: Likewise.
10153 * predict.c: Likewise.
10154 * profile-count.h: Likewise.
10155 * profile.c: Likewise.
10156 * recog.c: Likewise.
10157 * ree.c: Likewise.
10158 * reload.c: Likewise.
10159 * reload1.c: Likewise.
10160 * reorg.c: Likewise.
10161 * resource.c: Likewise.
10162 * rtl.def: Likewise.
10163 * rtl.h: Likewise.
10164 * rtlanal.c: Likewise.
10165 * sched-deps.c: Likewise.
10166 * sched-ebb.c: Likewise.
10167 * sched-rgn.c: Likewise.
10168 * sel-sched-ir.c: Likewise.
10169 * sel-sched.c: Likewise.
10170 * shrink-wrap.c: Likewise.
10171 * simplify-rtx.c: Likewise.
10172 * symtab.c: Likewise.
10173 * target.def: Likewise.
10174 * toplev.c: Likewise.
10175 * tree-call-cdce.c: Likewise.
10176 * tree-cfg.c: Likewise.
10177 * tree-complex.c: Likewise.
10178 * tree-core.h: Likewise.
10179 * tree-eh.c: Likewise.
10180 * tree-inline.c: Likewise.
10181 * tree-loop-distribution.c: Likewise.
10182 * tree-nrv.c: Likewise.
10183 * tree-profile.c: Likewise.
10184 * tree-sra.c: Likewise.
10185 * tree-ssa-alias.c: Likewise.
10186 * tree-ssa-dce.c: Likewise.
10187 * tree-ssa-dom.c: Likewise.
10188 * tree-ssa-forwprop.c: Likewise.
10189 * tree-ssa-loop-im.c: Likewise.
10190 * tree-ssa-loop-ivcanon.c: Likewise.
10191 * tree-ssa-loop-ivopts.c: Likewise.
10192 * tree-ssa-loop-niter.c: Likewise.
10193 * tree-ssa-phionlycprop.c: Likewise.
10194 * tree-ssa-phiopt.c: Likewise.
10195 * tree-ssa-propagate.c: Likewise.
10196 * tree-ssa-threadedge.c: Likewise.
10197 * tree-ssa-threadupdate.c: Likewise.
10198 * tree-ssa-uninit.c: Likewise.
10199 * tree-ssanames.c: Likewise.
10200 * tree-streamer-out.c: Likewise.
10201 * tree.c: Likewise.
10202 * tree.h: Likewise.
10203 * vr-values.c: Likewise.
10204
10205 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
10206
10207 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
10208 (ix86_split_xorsign): Ditto.
10209 * config/i386/i386.c (ix86_expand_xorsign): New function.
10210 (ix86_split_xorsign): Ditto.
10211 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
10212 (xorsign<mode>3): New expander.
10213 (xorsign<mode>3_1): New insn_and_split pattern.
10214 * config/i386/sse.md (xorsign<mode>3): New expander.
10215
10216 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10217
10218 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
10219 (*tablejump_sp64): Likewise.
10220 (*tablejump<P:mode>): ...this.
10221 (*call_address_sp32): Merge into...
10222 (*call_address_sp64): Likewise.
10223 (*call_address<P:mode>): ...this.
10224 (*call_symbolic_sp32): Merge into...
10225 (*call_symbolic_sp64): Likewise.
10226 (*call_symbolic<P:mode>): ...this.
10227 (call_value): Remove constraint and add predicate.
10228 (*call_value_address_sp32): Merge into...
10229 (*call_value_address_sp64): Likewise.
10230 (*call_value_address<P:mode>): ...this.
10231 (*call_value_symbolic_sp32): Merge into...
10232 (*call_value_symbolic_sp64): Likewise.
10233 (*call_value_symbolic<P:mode>): ...this.
10234 (*sibcall_symbolic_sp32): Merge into...
10235 (*sibcall_symbolic_sp64): Likewise.
10236 (*sibcall_symbolic<P:mode>): ...this.
10237 (sibcall_value): Remove constraint and add predicate.
10238 (*sibcall_value_symbolic_sp32): Merge into...
10239 (*sibcall_value_symbolic_sp64): Likewise.
10240 (*sibcall_value_symbolic<P:mode>): ...this.
10241 (window_save): Minor tweak.
10242 (*branch_sp32): Merge into...
10243 (*branch_sp64): Likewise.
10244 (*branch<P:mode>): ...this.
10245
10246 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10247 James Clarke <jrtc27@jrtc27.com>
10248
10249 PR target/84010
10250 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
10251 consistently in TLS address generation and adjust code to the renaming
10252 of patterns. Mark calls to __tls_get_addr as const.
10253 * config/sparc/sparc.md (tgd_hi22): Turn into...
10254 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
10255 (tgd_lo10): Turn into...
10256 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
10257 (tgd_add32): Merge into...
10258 (tgd_add64): Likewise.
10259 (tgd_add<P:mode>): ...this and use Pmode throughout.
10260 (tldm_hi22): Turn into...
10261 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
10262 (tldm_lo10): Turn into...
10263 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
10264 (tldm_add32): Merge into...
10265 (tldm_add64): Likewise.
10266 (tldm_add<P:mode>): ...this and use Pmode throughout.
10267 (tldm_call32): Merge into...
10268 (tldm_call64): Likewise.
10269 (tldm_call<P:mode>): ...this and use Pmode throughout.
10270 (tldo_hix22): Turn into...
10271 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
10272 (tldo_lox10): Turn into...
10273 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
10274 (tldo_add32): Merge into...
10275 (tldo_add64): Likewise.
10276 (tldo_add<P:mode>): ...this and use Pmode throughout.
10277 (tie_hi22): Turn into...
10278 (tie_hi22<P:mode>): ...this and use Pmode throughout.
10279 (tie_lo10): Turn into...
10280 (tie_lo10<P:mode>): ...this and use Pmode throughout.
10281 (tie_ld64): Use DImode throughout.
10282 (tie_add32): Merge into...
10283 (tie_add64): Likewise.
10284 (tie_add<P:mode>): ...this and use Pmode throughout.
10285 (tle_hix22_sp32): Merge into...
10286 (tle_hix22_sp64): Likewise.
10287 (tle_hix22<P:mode>): ...this and use Pmode throughout.
10288 (tle_lox22_sp32): Merge into...
10289 (tle_lox22_sp64): Likewise.
10290 (tle_lox22<P:mode>): ...this and use Pmode throughout.
10291 (*tldo_ldub_sp32): Merge into...
10292 (*tldo_ldub_sp64): Likewise.
10293 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
10294 (*tldo_ldub1_sp32): Merge into...
10295 (*tldo_ldub1_sp64): Likewise.
10296 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
10297 (*tldo_ldub2_sp32): Merge into...
10298 (*tldo_ldub2_sp64): Likewise.
10299 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
10300 (*tldo_ldsb1_sp32): Merge into...
10301 (*tldo_ldsb1_sp64): Likewise.
10302 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
10303 (*tldo_ldsb2_sp32): Merge into...
10304 (*tldo_ldsb2_sp64): Likewise.
10305 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
10306 (*tldo_ldub3_sp64): Use DImode throughout.
10307 (*tldo_ldsb3_sp64): Likewise.
10308 (*tldo_lduh_sp32): Merge into...
10309 (*tldo_lduh_sp64): Likewise.
10310 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
10311 (*tldo_lduh1_sp32): Merge into...
10312 (*tldo_lduh1_sp64): Likewise.
10313 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
10314 (*tldo_ldsh1_sp32): Merge into...
10315 (*tldo_ldsh1_sp64): Likewise.
10316 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
10317 (*tldo_lduh2_sp64): Use DImode throughout.
10318 (*tldo_ldsh2_sp64): Likewise.
10319 (*tldo_lduw_sp32): Merge into...
10320 (*tldo_lduw_sp64): Likewise.
10321 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
10322 (*tldo_lduw1_sp64): Use DImode throughout.
10323 (*tldo_ldsw1_sp64): Likewise.
10324 (*tldo_ldx_sp64): Likewise.
10325 (*tldo_stb_sp32): Merge into...
10326 (*tldo_stb_sp64): Likewise.
10327 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
10328 (*tldo_sth_sp32): Merge into...
10329 (*tldo_sth_sp64): Likewise.
10330 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
10331 (*tldo_stw_sp32): Merge into...
10332 (*tldo_stw_sp64): Likewise.
10333 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
10334 (*tldo_stx_sp64): Use DImode throughout.
10335
10336 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10337
10338 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
10339 check configure option to set BTI and Return Address Signing.
10340 * configure.ac: Add --enable-standard-branch-protection and
10341 --disable-standard-branch-protection.
10342 * configure: Regenerated.
10343 * doc/install.texi: Document the same.
10344
10345 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10346 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10347
10348 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
10349 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
10350 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
10351 if bti is enabled.
10352 * config/aarch64/aarch64-bti-insert.c: New file.
10353 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
10354 pass.
10355 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
10356 new bti pass.
10357 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
10358 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
10359 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
10360 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
10361
10362 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10363
10364 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
10365 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
10366 Disable bti for -mbranch-protection=none.
10367 (aarch64_handle_standard_branch_protection): Enable bti for
10368 -mbranch-protection=standard.
10369 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
10370 -mbranch-protection.
10371 (aarch64_bti_enabled): Check if bti is enabled.
10372 * config/aarch64/aarch64.opt: Declare target variable.
10373 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
10374
10375 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10376
10377 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
10378 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
10379 (aarch64_expand_epilogue): Likewise.
10380 (aarch64_output_mi_thunk): Likewise
10381 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
10382 TAILCALL_ADDR_REGS to x16 and x17.
10383 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
10384
10385 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10386
10387 * config/aarch64/aarch64-option-extensions.def: Define
10388 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
10389 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
10390 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
10391 (AARCH64_FL_PREDRES): New.
10392 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
10393 AARCH64_FL_PREDRES by default.
10394 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
10395
10396 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10397
10398 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
10399 ARMv8.5-A.
10400 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
10401 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
10402 * doc/invoke.texi: Document ARMv8.5-A.
10403
10404 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10405
10406 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
10407 (xorsign<mode>3): Likewise.
10408
10409 2019-01-09 Jelinek <jakub@redhat.com>
10410
10411 PR middle-end/88758
10412 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
10413 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
10414
10415 PR rtl-optimization/88331
10416 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
10417 not currently_expanding_to_rtl.
10418
10419 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10420
10421 * doc/invoke.texi (-Os): Remove trailing spaces.
10422 (-finline-functions): Remove reference to -O2.
10423
10424 2019-01-08 Jakub Jelinek <jakub@redhat.com>
10425
10426 PR rtl-optimization/79593
10427 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
10428
10429 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
10430 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
10431
10432 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
10433
10434 PR bootstrap/88721
10435 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
10436 to -1 on entry.
10437
10438 PR debug/88723
10439 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
10440 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
10441
10442 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
10443
10444 PR target/88717
10445 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
10446 ix86_avx_u128_mode_entry.
10447
10448 2019-01-08 Martin Liska <mliska@suse.cz>
10449
10450 PR tree-optimization/88753
10451 * tree-switch-conversion.c (switch_conversion::build_one_array):
10452 Come up with local variable constructor. Convert first to
10453 type of constructor values.
10454
10455 2019-01-08 Richard Biener <rguenther@suse.de>
10456
10457 PR tree-optimization/86554
10458 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
10459 rpo_avail): Move earlier.
10460 (visit_nary_op): When value-numbering to expressions
10461 with different overflow behavior make sure there's an
10462 available expression on the path.
10463
10464 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
10465
10466 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
10467 aarch64_parse_branch_protection,
10468 struct aarch64_branch_protect_type,
10469 aarch64_handle_no_branch_protection,
10470 aarch64_handle_standard_branch_protection,
10471 aarch64_validate_mbranch_protection,
10472 aarch64_handle_pac_ret_protection,
10473 aarch64_handle_attr_branch_protection,
10474 accepted_branch_protection_string,
10475 aarch64_pac_ret_subtypes,
10476 aarch64_branch_protect_types,
10477 aarch64_handle_pac_ret_leaf): Define.
10478 (aarch64_override_options_after_change_1, aarch64_override_options):
10479 Add check for accepted_branch_protection_string.
10480 (aarch64_option_save): Save accepted_branch_protection_string.
10481 (aarch64_option_restore): Save accepted_branch_protection_string.
10482 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
10483 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
10484 msign-return-address.
10485 * doc/invoke.texi: Add mbranch-protection.
10486
10487 2019-01-08 Alan Modra <amodra@gmail.com>
10488
10489 PR target/88614
10490 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
10491 Delete "unknownp" parameter. Adjust callers. Handle
10492 CONST_INT, PLUS, MINUS, and MULT.
10493 (attr_value_aligned): Renamed from or_attr_value.
10494 (min_attr_value): Return INT_MIN for unhandled rtl case..
10495 (min_fn): ..and translate to INT_MAX here.
10496 (write_length_unit_log): Modify to cope without "unknown".
10497 (write_attr_value): Handle IF_THEN_ELSE.
10498
10499 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10500
10501 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
10502 optimization for masked stores.
10503
10504 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10505
10506 PR middle-end/88567
10507 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
10508 output vector directly to duplicate_and_interleave instead of
10509 going through a temporary. Postpone insertion of ctor_seq to
10510 the end of the loop.
10511
10512 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
10513
10514 PR target/86891
10515 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
10516 unsigned_p. Handle signed and unsigned overflow correction as
10517 required.
10518 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
10519 prototype.
10520 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
10521 for operand 2.
10522 (add<mode>3_compareV_imm): Make this callable for expanding.
10523 (subv<GPI:mode>4): Use register_operand for operand 1. Use
10524 aarch64_plus_operand for operand 2.
10525 (subv<GPI:mode>_insn): New insn pattern.
10526 (subv<GPI:mode>_imm): Likewise.
10527 (negv<GPI:mode>3): New expand pattern.
10528 (negv<GPI:mode>_insn): New insn pattern.
10529 (negv<GPI:mode>_cmp_only): Likewise.
10530 (cmpv<GPI:mode>_insn): Likewise.
10531 (subvti4): Use register_operand for operand 1. Update call to
10532 aarch64_expand_subvti.
10533 (usubvti4): Likewise.
10534 (negvti3): New expand pattern.
10535 (negdi_carryout): New insn pattern.
10536 (negvdi_carryinV): New insn pattern.
10537 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
10538 version the named version.
10539 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
10540 operands.
10541 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
10542 patterns.
10543 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
10544 patterns.
10545 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
10546 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
10547 (sub<mode>3_carryinCV): Delete.
10548 (sub<GPI:mode>3_carryinV): New expand pattern.
10549 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
10550
10551 2019-01-07 Richard Biener <rguenther@suse.de>
10552
10553 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
10554 of tree_operand_hash.
10555
10556 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10557
10558 PR tree-optimization/88598
10559 * tree.h (single_nonzero_element): Declare.
10560 * tree.c (single_nonzero_element): New function.
10561 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
10562 if I is the only nonzero element of CST.
10563
10564 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10565
10566 PR tree-optimization/88598
10567 * tree.h (initializer_each_zero_or_onep): Declare.
10568 * tree.c (initializer_each_zero_or_onep): New function.
10569 (signed_or_unsigned_type_for): Handle float types too.
10570 (unsigned_type_for, signed_type_for): Update comments accordingly.
10571 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
10572 x & { 0 or -1, 0 or -1, ... }.
10573
10574 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
10575
10576 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
10577 with x86_64-pc-linux-gnu.
10578
10579 2019-01-07 Tom de Vries <tdevries@suse.de>
10580
10581 PR target/85486
10582 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
10583 function.
10584 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
10585 routines.
10586
10587 2019-01-07 Jakub Jelinek <jakub@redhat.com>
10588
10589 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
10590 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
10591 TARGET_AVX512F as condition.
10592
10593 PR debug/88723
10594 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
10595 const_not_ok_for_debug_p target hook.
10596 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
10597 on UNSPEC and subexpressions thereof if all subexpressions of the
10598 UNSPEC are CONSTANT_P.
10599
10600 PR tree-optimization/88676
10601 * tree-ssa-phiopt.c (two_value_replacement): New function.
10602 (tree_ssa_phiopt_worker): Call it.
10603
10604 PR sanitizer/88619
10605 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
10606 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
10607
10608 PR c++/85052
10609 * tree-vect-generic.c: Include insn-config.h and recog.h.
10610 (expand_vector_piecewise): Add defaulted ret_type argument,
10611 if non-NULL, use that in preference to type for the result type.
10612 (expand_vector_parallel): Formatting fix.
10613 (do_vec_conversion, do_vec_narrowing_conversion,
10614 expand_vector_conversion): New functions.
10615 (expand_vector_operations_1): Call expand_vector_conversion
10616 for VEC_CONVERT ifn calls.
10617 * internal-fn.def (VEC_CONVERT): New internal function.
10618 * internal-fn.c (expand_VEC_CONVERT): New function.
10619 * fold-const-call.c (fold_const_vec_convert): New function.
10620 (fold_const_call): Use it for CFN_VEC_CONVERT.
10621 * doc/extend.texi (__builtin_convertvector): Document.
10622
10623 2019-01-07 Tom de Vries <tdevries@suse.de>
10624
10625 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
10626 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
10627 vector_red_partition, vector_red_sym): New global variables.
10628 (nvptx_option_override): Initialize vector_red_sym.
10629 (nvptx_declare_function_name): Restore red_partition register.
10630 (nvptx_file_end): Emit code to declare the vector reduction variables.
10631 (nvptx_output_red_partition): New function.
10632 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
10633 large vector reductions.
10634 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
10635 (nvptx_init_builtins): Add VECTOR_ADDR.
10636 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
10637 Handle nvptx_expand_shared_addr.
10638 (nvptx_get_shared_red_addr): Add vector argument and handle large
10639 vectors.
10640 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
10641 large vectors.
10642 (nvptx_goacc_reduction_init): Likewise.
10643 (nvptx_goacc_reduction_fini): Likewise.
10644 (nvptx_goacc_reduction_teardown): Likewise.
10645 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
10646 init,fini,teardown}.
10647 (nvptx_init_axis_predicate): Initialize vector_red_partition.
10648 (nvptx_set_current_function): Init vector_red_partition.
10649 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
10650 (nvptx_red_partition): New insn.
10651 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
10652
10653 2019-01-07 Tom de Vries <tdevries@suse.de>
10654
10655 PR target/85381
10656 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
10657 empty loops.
10658
10659 2019-01-07 Tom de Vries <tdevries@suse.de>
10660
10661 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
10662 (nvptx_option_override): Init oacc_bcast_partition.
10663 (nvptx_init_oacc_workers): New function.
10664 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
10665 (nvptx_needs_shared_bcast): New function.
10666 (nvptx_find_par): Generalize to enable vectors to use shared-memory
10667 to propagate state.
10668 (nvptx_shared_propagate): Initialize vector bcast partition and
10669 synchronization state.
10670 (nvptx_single): Generalize to enable vectors to use shared-memory
10671 to propagate state.
10672 (nvptx_process_pars): Likewise.
10673 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
10674 * config/nvptx/nvptx.h (struct machine_function): Add
10675 bcast_partition and sync_bar members.
10676
10677 2019-01-07 Tom de Vries <tdevries@suse.de>
10678
10679 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
10680 (nvptx_apply_dim_limits): New function.
10681 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
10682 PTX_WARP_SIZE.
10683
10684 2019-01-07 Tom de Vries <tdevries@suse.de>
10685
10686 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
10687 as late as possible.
10688
10689 2019-01-07 Tom de Vries <tdevries@suse.de>
10690
10691 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
10692 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
10693 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
10694 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
10695 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
10696
10697 2019-01-07 Tom de Vries <tdevries@suse.de>
10698
10699 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
10700
10701 2019-01-07 Tom de Vries <tdevries@suse.de>
10702
10703 * omp-offload.c (oacc_get_min_dim): New function.
10704 * omp-offload.h (oacc_get_min_dim): Declare.
10705
10706 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
10707
10708 PR target/88521
10709 * config/i386/i386.c (function_value_ms_64): Return small sturct in
10710 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
10711
10712 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10713
10714 PR tree-opt/86020
10715 Revert:
10716 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10717
10718 * ipa-inline.c (edge_badness): Use inlined_time instead of
10719 inline_summaries->get.
10720
10721 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10722
10723 * opts.c (enable_fdo_optimizations): Enable
10724 version-loops-for-strides, loop-interchange, unrol-and-jam
10725 and tree-loop-distribution.
10726 * invoke.texi: Document newly enabled options.
10727
10728 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10729
10730 * doc/invoke.texi (max-inline-insns-small): New parameters.
10731 * ipa-inline.c (want_early_inline_function_p): simplify.
10732 (want_inline_small_function_p): Fix pasto from previous patch;
10733 use max-inline-insns-small bound.
10734 * params.def (max-inline-insns-small): New param.
10735 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10736 variables correctly.
10737
10738 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10739
10740 * doc/invoke.texi: Document max-inline-insns-size,
10741 uninlined-function-insns, uninlined-function-time,
10742 uninlined-thunk-insns and uninlined-thunk-time.
10743 * params.def: Add max-inline-insns-size,
10744 uninlined-function-insns, uninlined-function-time,
10745 uninlined-thunk-insns and uninlined-thunk-time.
10746 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10747 new parameters.
10748 * ipa-inline.c (can_inline_edge_by_limits_p,
10749 want_inline_small_function_p): Use new parameters.
10750
10751 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10752
10753 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10754
10755 2019-01-05 Jakub Jelinek <jakub@redhat.com>
10756
10757 PR middle-end/82564
10758 PR target/88620
10759 * expr.c (expand_assignment): For calls returning VLA structures
10760 if to_rtx is not a MEM, force it into a stack temporary.
10761
10762 PR debug/88635
10763 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10764 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10765 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10766 subexpressions of both operands.
10767 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10768 subrtxes are CONSTANT_P.
10769 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10770 2018-11-09 changes.
10771
10772 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
10773
10774 * params.def (hot-bb-count-ws-permille): Set to 990.
10775
10776 2019-01-04 Martin Sebor <msebor@redhat.com>
10777
10778 PR c/88546
10779 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10780 leaf.
10781
10782 2019-01-04 Martin Sebor <msebor@redhat.com>
10783
10784 PR c/88363
10785 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10786
10787 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10788
10789 * gdbinit.in: Turn off pagination for the skip commands, restore
10790 it to previous state afterwards.
10791
10792 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10793
10794 PR target/88594
10795 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10796 of GET_MODE (opN) as modes of the libcall arguments.
10797
10798 2019-01-04 Jan Beulich <jbeulich@suse.com>
10799
10800 * config/i386/sse.md
10801 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10802 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10803 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10804 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10805 avx512f_vmcmp<mode>3<round_saeonly_name>,
10806 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10807 avx512f_maskcmp<mode>3,
10808 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10809 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10810 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10811 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10812 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10813 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10814 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10815 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10816 <avx512>_testm<mode>3<mask_scalar_merge_name>,
10817 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10818 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10819 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10820 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10821 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10822 avx512cd_maskb_vec_dup<mode>,
10823 avx512cd_maskw_vec_dup<mode>,
10824 avx512dq_fpclass<mode><mask_scalar_merge_name>,
10825 avx512dq_vmfpclass<mode>,
10826 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10827 instead of =Yk.
10828
10829 2019-01-03 Martin Sebor <msebor@redhat.com>
10830
10831 PR tree-optimization/88659
10832 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10833
10834 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10835
10836 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10837 unaligned vsx and avoid lxvd2x/stxvd2x.
10838 (gen_lvx_v4si_move): New function.
10839
10840 2019-01-03 Tom de Vries <tdevries@suse.de>
10841
10842 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10843 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10844 function.
10845 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10846
10847 2019-01-03 Tom de Vries <tdevries@suse.de>
10848
10849 * config/nvptx/nvptx.c (struct offload_attrs): New.
10850 (populate_offload_attrs): New function. Factor mask extraction out of
10851 nvptx_reorg. Add extraction of dimensions.
10852 (nvptx_reorg): Use populate_offload_attrs.
10853
10854 2019-01-03 Tom de Vries <tdevries@suse.de>
10855
10856 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10857 cases for oacc_min_dims_p and routine_p. Add asserts for
10858 oacc_default_dims_p and offload_region_p.
10859
10860 2019-01-03 Tom de Vries <tdevries@suse.de>
10861
10862 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10863 factored out of ...
10864 (nvptx_goacc_validate_dims): ... here.
10865
10866 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10867
10868 PR tree-optimization/85574
10869 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10870 structure.
10871 (struct ssa_equip_hash_traits): Declare.
10872 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10873
10874 2019-01-03 Jakub Jelinek <jakub@redhat.com>
10875
10876 PR debug/88644
10877 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10878 change it to qualified_type.
10879
10880 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10881
10882 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10883 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10884
10885 2019-01-02 Martin Sebor <msebor@redhat.com>
10886 Jeff Law <law@redhat.com>
10887
10888 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10889 (get_range_strlen_tree): Update appropriately.
10890 (get_range_strlen)
10891 * gimple-fold.h (get_range_strlen): Drop unused last argument.
10892
10893 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10894 rather than set_range_info.
10895 * tree-ssa-strlen.c (set_strlen_range): Extracted from
10896 maybe_set_strlen_range. Handle potentially boundary crossing
10897 cases more conservatively.
10898 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10899 Call set_strlen_range.
10900 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10901
10902 PR middle-end/88663
10903 * gimple-fold.c (get_range_strlen): Update prototype to no longer
10904 need the flexp argument.
10905 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
10906 from calls to get_range_strlen. Update comments. Just update
10907 VAL for an unterminated const char array and let the reset of the
10908 code handle it normally. No longer try to set *flexp. Adjust
10909 return value.
10910 (get_range_strlen): Update for the new get_range_strlen API.
10911 (get_maxval_strlen): Similarly.
10912 (gimple_fold_builtin_strlen): Handle update meaning of return value
10913 from get_range_strlen.
10914 * gimple-ssa-sprintf.c (get_string_length): Update for the new
10915 get_range_strlen API.
10916
10917 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
10918
10919 PR lto/88130
10920 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10921 false at WPA time when body was removed.
10922
10923 2019-01-02 Martin Liska <mliska@suse.cz>
10924
10925 PR tree-optimization/88650
10926 * predict.c (set_even_probabilities): Calculate probability
10927 remainer only when really used.
10928
10929 2019-01-02 Richard Biener <rguenther@suse.de>
10930
10931 PR middle-end/88651
10932 * tree-data-ref.c (analyze_subscript_affine_affine): Use
10933 widest_ints when mangling max_stmt_execution results.
10934
10935 2019-01-02 Richard Biener <rguenther@suse.de>
10936
10937 PR tree-optimization/88621
10938 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10939 bitfields when canoncalizing.
10940
10941 2019-01-02 Richard Biener <rguenther@suse.de>
10942
10943 PR target/87545
10944 * config/i386/x86-tune-costs.h (intel_cost): Adjust
10945 cost of cheap SSE instruction.
10946
10947 2019-01-02 Richard Biener <rguenther@suse.de>
10948
10949 PR ipa/85574
10950 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
10951 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
10952 function.
10953 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
10954 set after UIDs before splitting them.
10955
10956 2019-01-01 Martin Sebor <msebor@redhat.com>
10957 Jeff Law <law@redhat.com>
10958
10959 * gimple-fold.c (get_range_strlen_tree): Record if the computed
10960 length is optimistic. If it is, then arrange to compute the
10961 conservative length as well.
10962
10963 * gimple-fold.h (get_range_strlen): Update prototype.
10964 * builtins.c (check_access): Update call to get_range_strlen to use
10965 c_strlen_data pointer. Change various variable accesses to instead
10966 pull data from the c_strlen_data structure.
10967 (check_strncat_sizes, expand_builtin_strncat): Likewise.
10968 * calls.c (maybe_warn_nonstring_arg): Likewise.
10969 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
10970 minimum length if maximum lengh is unknown.
10971 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
10972 that used c_strlen, it's no longer needed. Restructure slightly.
10973 (format_string): Set unlikely range appropriately.
10974 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
10975 formatting issues.
10976 (get_range_strlen): Accept c_strlen_data pointer for external
10977 call sites as well. Pass through to call to internal get_range_strlen.
10978 Adjust minlen, maxlen and maxbound as needed.
10979 (get_maxval_strlen): Update comments.
10980 (gimple_fold_builtin_strlen): Update call to get_range_strlen
10981 to use c_strlen_data pointer. Change variable accesses to instead
10982 use c_strlen_data data members.
10983
10984 * gimple-fold.c (get_range_strlen): Update prototype.
10985 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
10986 local variables. Use pdata to return information to caller.
10987 Update calls to get_range_strlen. Update pdata->maxbound.
10988 (get_range_strlen -- static version): Similarly.
10989 (get_range_strlen -- extern version): Update for internal
10990 get_range_strlen API change. Convert to external data format.
10991 (get_maxval_strlen): Similarly.
10992
10993 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
10994
10995 * coverage.c (get_coverage_counts): Use current_function_decl.
10996 * profile.c (read_thunk_profile): New function.
10997 (branch_prob): Add THUNK parameter.
10998 * tree-profile.c (tree_profiling): Handle thunks.
10999 * value-prof.c (init_node_map): Handle thunks.
11000 * value-prof.h (branch_prob): Upate prototype.
11001 (read_thunk_profile): Declare.
11002
11003 2019-01-01 Jakub Jelinek <jakub@redhat.com>
11004
11005 Update copyright years.
11006
11007 * gcc.c (process_command): Update copyright notice dates.
11008 * gcov-dump.c (print_version): Ditto.
11009 * gcov.c (print_version): Ditto.
11010 * gcov-tool.c (print_version): Ditto.
11011 * gengtype.c (create_file): Ditto.
11012 * doc/cpp.texi: Bump @copying's copyright year.
11013 * doc/cppinternals.texi: Ditto.
11014 * doc/gcc.texi: Ditto.
11015 * doc/gccint.texi: Ditto.
11016 * doc/gcov.texi: Ditto.
11017 * doc/install.texi: Ditto.
11018 * doc/invoke.texi: Ditto.
11019 \f
11020 Copyright (C) 2019 Free Software Foundation, Inc.
11021
11022 Copying and distribution of this file, with or without modification,
11023 are permitted in any medium without royalty provided the copyright
11024 notice and this notice are preserved.