Implement N disk counters for single value and indirect call counters.
[gcc.git] / gcc / ChangeLog
1 2019-06-10 Martin Liska <mliska@suse.cz>
2
3 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
4 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
5 * ipa-profile.c (ipa_profile_generate_summary):
6 Use get_most_common_single_value.
7 * tree-profile.c (gimple_init_gcov_profiler):
8 Instrument with __gcov_one_value_profiler_v2
9 and __gcov_indirect_call_profiler_v4.
10 * value-prof.c (dump_histogram_value):
11 Print all values for HIST_TYPE_SINGLE_VALUE.
12 (stream_out_histogram_value): Update assert for
13 N values.
14 (stream_in_histogram_value): Set number of
15 counters for HIST_TYPE_SINGLE_VALUE.
16 (get_most_common_single_value): New.
17 (gimple_divmod_fixed_value_transform):
18 Use get_most_common_single_value.
19 (gimple_ic_transform): Likewise.
20 (gimple_stringops_transform): Likewise.
21 (gimple_find_values_to_profile): Set number
22 of counters for HIST_TYPE_SINGLE_VALUE.
23 * value-prof.h (get_most_common_single_value):
24 New.
25
26 2019-06-10 Martin Liska <mliska@suse.cz>
27
28 * hash-map.h: Pass default value to hash_table ctor.
29 * hash-table.h: Add default value to call of a ctor.
30
31 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
32
33 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
34 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
35
36 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
37
38 PR target/90751
39 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
40 Call pa_output_function_label.
41 (TARGET_ASM_FUNCTION_PROLOGUE): define.
42 * config/pa/pa-protos.h (pa_output_function_label): Declare.
43 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
44 to declaration.
45 (pa_linux_output_function_prologue): Declare.
46 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
47 (pa_output_function_label): New.
48 (pa_output_function_prologue): Revise to use pa_output_function_label.
49 (pa_linux_output_function_prologue): New.
50 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
51
52 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
53
54 * tree-vrp.h (value_range_base::intersect): New.
55 (value_range::intersect_helper): Move from here...
56 (value_range_base::intersect_helper): ...to here.
57 * tree-vrp.c (value_range::intersect_helper): Rename to...
58 (value_range_base::intersect_helper): ...this, and rewrite to
59 return a value instead of modifying THIS in place.
60 Also, move equivalence handling...
61 (value_range::intersect): ...here, while calling intersect_helper.
62 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
63 calling intersect.
64 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
65 Same.
66 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
67
68 2019-06-07 Jakub Jelinek <jakub@redhat.com>
69
70 * Makefile.in (genprogerr): Add condmd.
71 (genprog): Remove it here.
72
73 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
74
75 * doc/invoke.texi (AMD GCN Options): Add gfx906.
76
77 2019-06-07 Richard Biener <rguenther@suse.de>
78
79 PR debug/90574
80 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
81 that appear after user labels.
82
83 2019-06-07 Martin Liska <mliska@suse.cz>
84
85 * cselib.c (cselib_init): Disable hash table
86 sanitization.
87 * hash-set.h: Pass new default argument to m_table.
88 * hash-table.c: Add global variable with hash table
89 sanitization limit.
90 * hash-table.h (Allocator>::hash_table): Add new argument
91 to ctor.
92 (hashtab_chk_error): New.
93 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
94 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
95 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
96
97 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
98
99 * common.opt (flto-odr-type-merging): Ignore.
100 * invoke.texi (-flto-odr-type-merging): Remove.
101 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
102 (can_be_vtable_hashed_p): Remove.
103 (hash_odr_vtable): Remove.
104 (odr_vtable_hasher::hash): Remove.
105 (types_same_for_odr): Remove.
106 (types_odr_comparable): Remove.
107 (odr_vtable_hasher::equal): Remove.
108 (odr_vtable_hash_type, odr_vtable_hash): Remove.
109 (add_type_duplicate): Do not synchronize vtable and name hashtables.
110 (get_odr_type): Do not use vtable hash.
111 (dump_odr_type): Remove commented out code.
112 (build_type_inheritance_graph): Do not allocate vtable hash.
113 (rebuild_type_inheritance_graph): Do not delete vtable hash.
114 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
115 (odr_type_p): Likewise.
116 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
117 test.
118
119 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
120
121 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
122 immediately after same_types_for_tbaa_p returns -1 and continue
123 looking for possible exact match; if matching types are arrays
124 watch for partial overlaps.
125 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
126 (indirect_refs_may_alias_p): Do type based disambiguation first;
127 update comment.
128
129 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
130
131 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
132
133 2019-06-07 Martin Liska <mliska@suse.cz>
134
135 * doc/invoke.texi: Remove param.
136 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
137 Remove.
138 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
139 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
140 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
141 * profile.c (instrument_values): Remove
142 HIST_TYPE_INDIR_CALL_TOPN.
143 * tree-profile.c (init_ic_make_global_vars):
144 Always build __gcov_indirect_call only.
145 (gimple_init_gcov_profiler): Remove usage
146 of PARAM_INDIR_CALL_TOPN_PROFILE.
147 (gimple_gen_ic_profiler): Likewise.
148 * value-prof.c (dump_histogram_value): Likewise.
149 (stream_in_histogram_value): Likewise.
150 (gimple_indirect_call_to_profile): Likewise.
151 (gimple_find_values_to_profile): Likewise.
152 * value-prof.h (enum hist_type): Likewise.
153
154 2019-06-07 Martin Liska <mliska@suse.cz>
155
156 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
157 function.
158
159 2019-06-07 Martin Liska <mliska@suse.cz>
160
161 PR tree-optimization/78902
162 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
163 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
164 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
165 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
166 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
167 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
168 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
169 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
170 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
171 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
172 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
173 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
174 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
175 New.
176 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
177 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
178 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
179 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
180 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
181 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
182 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
183 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
184 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
185 warn_unused_result attribute.
186 (BUILT_IN_STRDUP): Likewise.
187 (BUILT_IN_STRNDUP): Likewise.
188 (BUILT_IN_ALLOCA): Likewise.
189 (BUILT_IN_CALLOC): Likewise.
190 (BUILT_IN_MALLOC): Likewise.
191 (BUILT_IN_REALLOC): Likewise.
192
193 2019-06-06 Jim Wilson <jimw@sifive.com>
194
195 PR target/89955
196 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
197 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
198 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
199
200 2019-06-06 Martin Sebor <msebor@redhat.com>
201
202 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
203 (handle_builtin_malloc): Remove trailing spaces.
204 (handle_builtin_memset): Same.
205 (handle_builtin_memcmp): Same.
206 (compute_string_length): Same.
207 (determine_min_objsize): Same.
208 (handle_builtin_string_cmp): Same.
209 (handle_char_store): Same. Break up excessively long line.
210
211 2019-06-06 Martin Jambor <mjambor@suse.cz>
212
213 * tree-sra.c (build_reconstructed_reference): Drop the alignment
214 check.
215
216 2019-06-06 Martin Jambor <mjambor@suse.cz>
217
218 * tree-sra.c (struct access): New field grp_same_access_path.
219 (dump_access): Dump it.
220 (build_reconstructed_reference): New function.
221 (build_ref_for_model): Use it if possible.
222 (path_comparable_for_same_access): New function.
223 (same_access_path_p): Likewise.
224 (sort_and_splice_var_accesses): Set the new flag.
225 (analyze_access_subtree): Likewise.
226 (propagate_subaccesses_across_link): Propagate zero value of the new
227 flag down the access tree.
228
229 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
230
231 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
232 * config/gcn/gcn.opt (gpu_type): Add gfx906.
233 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
234 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
235 Add gfx906.
236
237 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
238
239 PR tree-optimization/90332
240 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
241 Handle VALS containing two vectors.
242 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
243 to...
244 (@aarch64_combinez<mode>): ... This.
245 (*aarch64_combinez_be<mode>): Rename to...
246 (@aarch64_combinez_be<mode>): ... This.
247 (vec_init<mode><Vhalf>): New define_expand.
248 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
249
250 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
251
252 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
253 library functions only when not optimizing for size.
254 (ashlsi3): Likewise.
255 (ashrhi3): Likewise.
256 (ashrsi3): Likewise.
257 (lshrhi3): Likewise.
258 (lshrsi3): Likewise.
259
260 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
261
262 PR rtl-optimization/88751
263 * ira.c (ira): Use the number of the actually referenced registers
264 when calculating the threshold.
265
266 2019-06-06 Jakub Jelinek <jakub@redhat.com>
267
268 * configure: Regenerate.
269
270 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
271
272 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
273 register if it is in memory, so the shift can be emulated with a rotate
274 instruction.
275 (ashrhi3): Likewise.
276 (lshrhi3): Likewise.
277
278 2019-06-06 Martin Liska <mliska@suse.cz>
279
280 PR tree-optimization/87954
281 * match.pd: Simplify mult where both arguments are 0 or 1.
282
283 2019-06-06 Richard Biener <rguenther@suse.de>
284
285 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
286 put equivalences on UNDEFINED ranges.
287 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
288 Make sure to drop defs of stmts added during simplification
289 to VARYING.
290
291 2019-06-06 Richard Biener <rguenther@suse.de>
292
293 * tree-ssa-structalias.c: Include tree-cfg.h.
294 (make_heapvar): Do not make heap vars artificial.
295 (find_func_aliases_for_builtin_call): Handle stack allocation
296 functions.
297 (find_func_aliases): Delay processing of simple enough returns
298 in non-IPA mode.
299 (set_uids_in_ptset): Adjust.
300 (find_what_var_points_to): Likewise.
301 (solve_constraints): Do not dump points-to sets here.
302 (compute_points_to_sets): Post-process return statements,
303 amending the escaped solution. Dump points-to sets afterwards.
304 (ipa_pta_execute): Dump points-to sets.
305
306 2019-06-06 Martin Liska <mliska@suse.cz>
307
308 PR web/87933
309 * doc/install.texi: Fix HTML headers and
310 titles for 'Installing GCC' pages.
311
312 2019-06-06 Martin Liska <mliska@suse.cz>
313
314 * ipa-icf-gimple.h (dump_message_1): Remove.
315 (dump_message): Likewise.
316 (return_false_with_message_1): Print also file.
317 (return_false_with_msg): Likewise.
318 (return_with_result): Likewise.
319 (return_with_debug): Likewise.
320 * ipa-icf.c (sem_function::equals_private): Remove call
321 to dump_message.
322
323 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
324
325 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
326 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
327 memory operand for it.
328 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
329
330 2019-06-05 Martin Sebor <msebor@redhat.com>
331
332 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
333 Adjust quoting and hyphenation.
334 * convert.c (convert_to_real_1): Same.
335 * gcc.c (driver_wrong_lang_callback): Same.
336 (driver::handle_unrecognized_options): Same.
337 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
338 * opts-common.c (cmdline_handle_error): Same.
339 (read_cmdline_option): Same.
340 * opts-global.c (complain_wrong_lang): Same.
341 (print_ignored_options): Same.
342 (handle_common_deferred_options): Same.
343 * pretty-print.h: Same.
344 * print-rtl.c (debug_bb_n_slim): Same.
345 * sched-rgn.c (make_pass_sched_fusion): Same.
346 * tree-cfg.c (verify_gimple_assign_unary): Same.
347 (verify_gimple_label): Same.
348 * tree-ssa-operands.c (verify_ssa_operands): Same.
349 * varasm.c (do_assemble_alias): Same.
350 (assemble_alias): Same.
351
352 2019-06-05 Richard Henderson <rth@twiddle.net>
353
354 * config/alpha/alpha.c (direct_return): Move down after
355 struct machine_function definition; use saved frame_size;
356 return bool.
357 (struct machine_function): Add sa_mask, sa_size, frame_size.
358 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
359 (alpha_compute_frame_layout): ... new function.
360 (TARGET_COMPUTE_FRAME_LAYOUT): New.
361 (alpha_initial_elimination_offset): Use saved sa_size.
362 (alpha_vms_initial_elimination_offset): Likewise.
363 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
364 (alpha_expand_prologue): Use saved frame data. Merge integer
365 and fp register save loops.
366 (alpha_expand_epilogue): Likewise.
367 (alpha_start_function): Use saved frame data.
368 * config/alpha/alpha-protos.h (direct_return): Update.
369 (alpha_sa_size): Remove.
370
371 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
372
373 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
374 multiplication by a power-of-two value.
375 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
376 and turn the modulo operation into a masking operation.
377
378 2019-06-05 Jakub Jelinek <jakub@redhat.com>
379
380 PR debug/90733
381 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
382 with VOIDmode inner operands.
383
384 2019-06-05 Richard Biener <rguenther@suse.de>
385
386 PR middle-end/90726
387 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
388 turn an expression graph into a tree.
389
390 2019-06-05 Jakub Jelinek <jakub@redhat.com>
391
392 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
393 member.
394 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
395 treat it like explicit monotonic schedule modifier.
396 (expand_omp_for): Initialize has_lastprivate_conditional.
397 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
398 schedule modifier.
399
400 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
401 references, lookup in in hash map MEM_REF operand instead of the
402 MEM_REF itself.
403 (lower_omp_1): When looking for lastprivate conditional assignments,
404 handle MEM_REFs with REFERENCE_TYPE operands.
405
406 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
407 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
408 and references a VLA. Handle references to non-VLAs if is_simd
409 all privatization clauses like reductions.
410 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
411 If omp_is_reference, use always omp simd arrays and set
412 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
413 fails, emit reference initialization.
414
415 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
416
417 PR target/89803
418 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
419 _mm_mask_fpclass_sd_mask): New intrinsics.
420 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
421 * config/i386/i386-builtin.def
422 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
423 New builtins.
424 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
425 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
426 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
427 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
428 case QI_FTYPE_V2SF_INT): Ditto.
429 * config/i386/sse.md
430 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
431 Extended to insnstructions with mask operands.
432
433 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
434
435 * config/rs6000/constraints.md (define_register_constraint "wp"):
436 Delete.
437 (define_register_constraint "wq"): 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_wp and RS6000_CONSTRAINT_wq.
442 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
443 (define_mode_attr VSa): Delete.
444 (define_mode_attr VSisa): New.
445 (rest of file): Adjust.
446 * doc/md.texi (Machine Constraints): Adjust.
447
448 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
449
450 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
451 (define_attr "enabled"): Handle those new isa values.
452
453 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
454
455 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
456 (define_mode_attr VSr5): Delete.
457 (define_mode_attr VStype_sqrt): Delete.
458 (define_mode_iterator VSX_SPDP): Delete.
459 (define_mode_attr VS_spdp_res): Delete.
460 (define_mode_attr VS_spdp_insn): Delete.
461 (define_mode_attr VS_spdp_type): Delete.
462 (*vsx_sqrt<mode>2): Adjust.
463 (vsx_<VS_spdp_insn>): Delete, split to...
464 (vsx_xscvdpsp): ... this. New. And...
465 (vsx_xvcvspdp): ... this. New. And...
466 (vsx_xvcvdpsp): ... this. New.
467
468 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
469
470 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
471 and V2DF.
472 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
473 (rest of file): Adjust.
474
475 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
476
477 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
478 (vsx_extract_<mode>_var): Ditto.
479
480 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
481
482 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
483 with just "wa".
484
485 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
486
487 * config/rs6000/constraints.md (define_register_constraint "ww"):
488 Delete.
489 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
490 (rs6000_init_hard_regno_mode_ok): Adjust.
491 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
492 RS6000_CONSTRAINT_ww.
493 * config/rs6000/rs6000.md: Adjust.
494 * config/rs6000/vsx.md: Adjust.
495 * doc/md.texi (Machine Constraints): Adjust.
496
497 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
498
499 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
500 (define_mode_attr sd): New.
501 (define_mode_attr s): New.
502 (define_mode_attr Ftrad): Delete.
503 (define_mode_attr Fvsx): Delete.
504 (define_mode_attr Fs): Delete.
505 (rest of file): Use the new mode attributes.
506 * config.rs6000/vsx.md: Use the new mode attributes.
507
508 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
509
510 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
511 with just "wa".
512
513 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
514
515 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
516 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
517 used with VSX_B, VSX_D, or VSX_F, with just "wa".
518
519 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
520
521 PR target/78263
522 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
523 C++ with strict ANSI requirements.
524
525 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
526
527 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
528 computations when step is 1.
529
530 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
531
532 * config/rs6000/constraints.md (define_register_constraint "wf"):
533 Delete.
534 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
535 (rs6000_init_hard_regno_mode_ok): Adjust.
536 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
537 RS6000_CONSTRAINT_wf.
538 * config/rs6000/rs6000.md: Adjust.
539 * config/rs6000/vsx.md: Adjust.
540 * doc/md.texi (Machine Constraints): Adjust.
541
542 2019-06-04 Andrew Pinski <apinski@marvell.com>
543
544 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
545 Fix ILP32 value.
546
547 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
548
549 * config/rs6000/constraints.md (define_register_constraint "wd"):
550 Delete.
551 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
552 (rs6000_init_hard_regno_mode_ok): Adjust.
553 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
554 RS6000_CONSTRAINT_wd.
555 * config/rs6000/rs6000.md: Adjust.
556 * config/rs6000/vsx.md: Adjust.
557 * doc/md.texi (Machine Constraints): Adjust.
558
559 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
560
561 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
562 (rest of file): Adjust.
563
564 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
565
566 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
567 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
568 (vsx_splat_<mode>_reg): Adjust.
569
570 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
571
572 * config/rs6000/constraints.md (define_register_constraint "ws"):
573 Delete.
574 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
575 (rs6000_init_hard_regno_mode_ok): Adjust.
576 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
577 RS6000_CONSTRAINT_ws.
578 * config/rs6000/rs6000.md: Adjust.
579 * config/rs6000/vsx.md: Adjust.
580 * doc/md.texi (Machine Constraints): Adjust.
581
582 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
583
584 * config/rs6000/constraints.md (define_register_constraint "wv"):
585 Delete.
586 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
587 (rs6000_init_hard_regno_mode_ok): Adjust.
588 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
589 RS6000_CONSTRAINT_wv.
590 * config/rs6000/rs6000.md: Adjust.
591 * config/rs6000/vsx.md: Adjust.
592 * doc/md.texi (Machine Constraints): Adjust.
593
594 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
595
596 * config/rs6000/constraints.md (define_register_constraint "wi"):
597 Delete.
598 (define_register_constraint "wt"): Delete.
599 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
600 (rs6000_init_hard_regno_mode_ok): Adjust.
601 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
602 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
603 * config/rs6000/rs6000.md: Adjust.
604 * config/rs6000/vsx.md: Adjust.
605 * doc/md.texi (Machine Constraints): Adjust.
606
607 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
608
609 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
610 const.
611 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
612 default_elf_asm_output_external.
613
614 2019-06-04 Martin Liska <mliska@suse.cz>
615
616 * ipa-icf.c (INCLUDE_LIST): Remove.
617 (sem_item_optimizer::execute): Remove call to init_wpa.
618 * ipa-icf.h (init_wpa): Remove.
619
620 2019-06-04 Jakub Jelinek <jakub@redhat.com>
621
622 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
623 conditional on combined for simd.
624 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
625 member.
626 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
627 constructs, don't remove lastprivate_conditional_map, but instead set
628 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
629 to parent construct temporaries.
630 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
631 like !ctx->lastprivate_conditional_map.
632 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
633 use up->outer context instead of up.
634 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
635 gimple_omp_for_combined_p.
636 (expand_omp_for_static_nochunk): Likewise.
637 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
638 probably moved over into expand_omp_for_generic rather than being copied
639 there.
640
641 2019-06-04 Martin Liska <mliska@suse.cz>
642
643 * value-prof.c (dump_histogram_value): Fix typo.
644 (gimple_mod_subtract_transform): Likewise.
645
646 2019-06-04 Richard Biener <rguenther@suse.de>
647
648 PR middle-end/90726
649 * tree-chrec.c (chrec_contains_symbols): Add to visited.
650 (tree_contains_chrecs): Likewise.
651 (chrec_contains_symbols_defined_in_loop): Move here and avoid
652 exponential behaivor from ...
653 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
654 ... here.
655 (expression_expensive_p): Avoid exponential behavior and compute
656 expanded size, rejecting any expansion.
657 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
658 (idx_contains_abnormal_ssa_name_p): Likewise.
659 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
660 (contains_abnormal_ssa_name_p): Simplify and use
661 walk_tree_without_duplicates.
662
663 2019-06-04 Richard Biener <rguenther@suse.de>
664
665 PR tree-optimization/90738
666 Revert
667 2019-06-03 Richard Biener <rguenther@suse.de>
668
669 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
670 full reference tree and record in ref->ref.
671 (vn_reference_lookup_3): Pass in original ref to
672 ao_ref_init_from_vn_reference.
673 (vn_reference_lookup): Likewise.
674 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
675 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
676 Handle non-decl bases in the original reference.
677
678 2019-06-04 Martin Liska <mliska@suse.cz>
679
680 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
681 number of references.
682 (sem_item_optimizer::do_congruence_step):
683 (sem_item_optimizer::worklist_push): Dump how references
684 a class has.
685 (sem_item_optimizer::worklist_pop): Use heap.
686 (sem_item_optimizer::process_cong_reduction): Likewise.
687 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
688
689 2019-06-04 Martin Liska <mliska@suse.cz>
690
691 * ipa-icf.h (struct sem_usage_pair_hash): New.
692 (sem_usage_pair_hash::hash): Likewise.
693 (sem_usage_pair_hash::equal): Likewise.
694 (struct sem_usage_hash): Likewise.
695 * ipa-icf.c (sem_item::sem_item): Initialize
696 referenced_by_count.
697 (sem_item::add_reference): Register a reference
698 in ref_map and not in target->usages.
699 (sem_item::setup): Remove initialization of
700 dead vectors.
701 (sem_item::~sem_item): Remove usage of dead vectors.
702 (sem_item::dump): Remove dump of references.
703 (sem_item_optimizer::sem_item_optimizer): Initialize
704 m_references.
705 (sem_item_optimizer::read_section): Remove useless
706 dump.
707 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
708 (sem_item_optimizer::build_graph): Pass m_references
709 to ::add_reference.
710 (sem_item_optimizer::verify_classes): Remove usage of dead
711 vectors.
712 (sem_item_optimizer::traverse_congruence_split): Return true
713 when a class is split.
714 (sem_item_optimizer::do_congruence_step_for_index): Use
715 hash_map for look up of (sem_item *, index). That brings
716 significant speed up.
717 (sem_item_optimizer::do_congruence_step): Return true
718 when a split is done.
719 (congruence_class::is_class_used): Use referenced_by_count.
720
721 2019-06-04 Alan Modra <amodra@gmail.com>
722
723 PR target/90689
724 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
725 error.
726
727 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
728
729 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
730 * config/rs6000/rs6000.c (direct_move_p): Adjust.
731 (rs6000_secondary_reload_simple_move): Adjust.
732 (rs6000_opt_masks): Neuter the "mfpgpr" option.
733 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
734 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
735 comment.
736 (power6x): Adjust.
737 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
738 (floatunssi<mode>2_lfiwzx): Adjust.
739 (fix_trunc<mode>si2_stfiwx): Adjust.
740 (fixuns_trunc<mode>si2_stfiwx): Adjust.
741 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
742 (mfpgpr): Mark as deprecated.
743 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
744 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
745 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
746
747 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
748
749 * config/rs6000/constraints.md (define_register_constraint "wg"):
750 Delete.
751 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
752 RS6000_CONSTRAINT_wg.
753 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
754 (rs6000_init_hard_regno_mode_ok): Adjust.
755 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
756 Delete "wg" alternatives.
757 * doc/md.texi (Machine Constraints): Adjust.
758
759 2019-06-03 Alan Modra <amodra@gmail.com>
760
761 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
762 (get_uncond_jump_length): Assert length less than INT_MAX and
763 non-negative.
764
765 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
766
767 PR middle-end/64242
768 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
769 block.
770 (expand_builtin_nonlocal_goto): Likewise.
771
772 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
773
774 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
775 (aarch64_asm_output_external): Declare.
776 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
777 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
778 (aarch64_asm_output_alias): New.
779 (aarch64_asm_output_external): New.
780 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
781 (ASM_OUTPUT_EXTERNAL): Define.
782
783 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
784 * tree-vrp.h (value_range_base::nonzero_p): New.
785 (value_range_base::set_nonnull): Rename to...
786 (value_range_base::set_nonzero): ...this.
787 (value_range_base::set_null): Rename to...
788 (value_range_base::set_zero): ...this.
789 (value_range::set_nonnull): Remove.
790 (value_range::set_null): Remove.
791 * tree-vrp.c (range_is_null): Remove.
792 (range_is_nonnull): Remove.
793 (extract_range_from_binary_expr): Use value_range_base::*zero_p
794 instead of range_is_*null.
795 (extract_range_from_unary_expr): Same.
796 (value_range_base::set_nonnull): Rename to...
797 (value_range_base::set_nonzero): ...this.
798 (value_range::set_nonnull): Remove.
799 (value_range_base::set_null): Rename to...
800 (value_range_base::set_zero): ...this.
801 (value_range::set_null): Remove.
802 (extract_range_from_binary_expr): Rename set_*null uses to
803 set_*zero.
804 (extract_range_from_unary_expr): Same.
805 (union_helper): Same.
806 * vr-values.c (get_value_range): Use set_*zero instead of
807 set_*null.
808 (vr_values::extract_range_from_binary_expr): Same.
809 (vr_values::extract_range_basic): Same.
810
811 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
812
813 PR driver/90684
814 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
815
816 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
817
818 * config/aarch64/iterators.md (MAX_OPP): New code attr.
819 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
820 (aarch64_<su>abd<mode>_3): ... This.
821 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
822
823 2019-06-03 Richard Biener <rguenther@suse.de>
824
825 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
826 full reference tree and record in ref->ref.
827 (vn_reference_lookup_3): Pass in original ref to
828 ao_ref_init_from_vn_reference.
829 (vn_reference_lookup): Likewise.
830 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
831 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
832 Handle non-decl bases in the original reference.
833
834 2019-06-03 Martin Liska <mliska@suse.cz>
835
836 * doc/generic.texi: Remove Java Trees.
837
838 2019-06-03 Martin Liska <mliska@suse.cz>
839
840 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
841 returns 0 when operands are equal.
842
843 2019-06-03 Richard Biener <rguenther@suse.de>
844
845 PR tree-optimization/90716
846 * tree-loop-distribution.c (destroy_loop): Process blocks in
847 correct order.
848
849 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
850
851 PR target/88837
852 * vector-builder.h (vector_builder::count_dups): New method.
853 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
854 Declare prototype.
855 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
856 (vec_init<mode><Vel>): New pattern.
857 * config/aarch64/aarch64.c (emit_insr): New function.
858 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
859 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
860 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
861 (aarch64_sve_expand_vector_init): Define two overloaded functions.
862
863 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
864
865 PR tree-optimization/90681
866 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
867 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
868 special case for SLP, but fail on non-groupped loads.
869
870 2019-06-03 Martin Liska <mliska@suse.cz>
871
872 * cfg.c (debug): Use TDF_DETAILS for debug and
873 print edge info only once.
874
875 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
876
877 PR fortran/90539
878 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
879
880 2019-06-01 Martin Sebor <msebor@redhat.com>
881
882 PR middle-end/90694
883 * tree-pretty-print.c (dump_generic_node): Add parentheses.
884
885 2019-05-31 Jan Hubicka <jh@suse.cz>
886
887 * alias.c: Include ipa-utils.h.
888 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
889 * ipa-devirt.c (prevailing_odr_type): New.
890 * ipa-utils.h (previaling_odr_type): Declare.
891
892 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
893 Hongtao Liu <hongtao.liu@intel.com>
894
895 PR target/89355
896 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
897 NOTE_INSN_DELETED_LABEL check.
898
899 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
900 Robert Suchanek <robert.suchanek@mips.com>
901
902 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
903 and 3rd operands of the fmadd/fmsub/maddv builtin.
904
905 2019-05-31 Jakub Jelinek <jakub@redhat.com>
906
907 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
908 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
909 on OMP_SIMD if not nested inside of worksharing loop that also has
910 lastprivate conditional clause for the same decl.
911 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
912 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
913 on simd.
914 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
915 on simd construct.
916 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
917 on simd construct.
918 (lower_lastprivate_clauses): Likewise.
919 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
920 calling lower_rec_input_clauses.
921 (lower_omp_for): Likewise.
922 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
923 clause on simd construct.
924 * omp-expand.c (expand_omp_simd): Initialize cond_var if
925 OMP_CLAUSE__CONDTEMP_ clause is present.
926
927 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
928 ivar and lvar.
929
930 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
931
932 PR c/43673
933 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
934 TEX_D32, TEX_D64 or TEX_D128.
935
936 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
937
938 * match.pd (~(vec?cst1:cst2)): New transformation.
939
940 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
941
942 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
943 ((size_t)(A /[ex] B) CMP C): New transformation.
944
945 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
946
947 * doc/md.texi: Document define_insn_and_rewrite.
948 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
949 * gensupport.c (queue_elem): Update comment.
950 (replace_operands_with_dups): New function.
951 (gen_rewrite_sequence): Likewise.
952 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
953 * read-rtl.c (apply_subst_iterator): Likewise.
954 (add_condition_to_rtx, named_rtx_p): Likewise.
955 (rtx_reader::read_rtx_operand): Likewise.
956 * config/aarch64/aarch64-sve.md
957 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
958 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
959 define_insn_and_rewrite.
960 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
961 Remove separate define_split.
962
963 2019-05-31 Jan Hubicka <jh@suse.cz>
964
965 * tree-ssa-alias.c (type_has_components_p): New function.
966 (aliasing_component_refs_p): Use it.
967
968 2019-05-31 Martin Liska <mliska@suse.cz>
969
970 * gdbhooks.py: Add const_tree to TreePrinter.
971
972 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
973
974 PR debug/86964
975 * common.opt (feliminate-unused-debug-symbols): Enable by default.
976 * doc/invoke.texi (Debugging Options): Document new default of
977 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
978
979 2019-05-31 Jakub Jelinek <jakub@redhat.com>
980
981 PR tree-optimization/90671
982 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
983 template_block used to be empty on the first call, don't use
984 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
985 seq with bb_seq and set it with set_bb_seq.
986
987 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
988
989 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
990
991 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
992 Michael Meissner <meissner@linux.ibm.com>
993
994 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
995 (prefixed_mem_operand): Likewise.
996 (non_prefixed_mem_operand): Likewise.
997 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
998 prototype.
999 * config/rs6000/rs6000.c (print_operand_address): Handle
1000 PC-relative addresses.
1001 (mode_supports_prefixed_address_p): New function.
1002 (rs6000_prefixed_address): New function.
1003 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
1004 (SYMBOL_REF_PCREL_P): Likewise.
1005
1006 2019-05-30 Jakub Jelinek <jakub@redhat.com>
1007
1008 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
1009 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
1010 (gimplify_omp_for): If worksharing loop with lastprivate conditional
1011 is nested inside of parallel region, add _condtemp_ clause to both.
1012 * tree-nested.c (convert_nonlocal_omp_clauses,
1013 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
1014 assertion failure.
1015 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
1016 member.
1017 * omp-general.c (omp_extract_for_data): Compute it.
1018 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
1019 (lower_rec_input_clauses): Likewise.
1020 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
1021 clause is already present, just add one further one after it.
1022 (lower_lastprivate_clauses): Handle cond_ptr with array type.
1023 (lower_send_shared_vars): Clear _condtemp_ vars.
1024 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
1025 or section or taskgroup.
1026 * omp-expand.c (determine_parallel_type): Disallow combining only if
1027 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
1028 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
1029 (expand_omp_for_generic, expand_omp_for_static_nochunk,
1030 expand_omp_for_static_chunk, expand_omp_for): Use
1031 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
1032 determine if a special set of API routines are needed and if condtemp
1033 needs to be initialized, while always initialize cond_var if
1034 fd->lastprivate_conditional is non-zero.
1035
1036 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
1037 Michael Meissner <meissner@linux.ibm.com>
1038
1039 * config/rs6000/constraints.md (eI): New constraint.
1040 * config/rs6000/predicates.md (cint34_operand): New predicate.
1041 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
1042 (SIGNED_34BIT_OFFSET_P): Likewise.
1043 * doc/md.texi (eI): Document constraint.
1044
1045 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
1046
1047 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
1048
1049 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
1050 Michael Meissner <meissner@linux.ibm.com>
1051
1052 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
1053 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
1054 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
1055 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
1056 (OTHER_FUTURE_MASKS): Likewise.
1057 (POWERPC_MASKS): Likewise.
1058 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
1059 specified without -mprefixed-addr or -mcpu=future. Error if
1060 -mprefixed-addr is specified without -mcpu=future.
1061 (rs6000_opt_masks): Add entry for prefixed-addr.
1062 * rs6000.opt (mprefixed-addr): New option.
1063
1064 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
1065
1066 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
1067 cfun->is_thunk check.
1068
1069 2019-05-30 Jakub Jelinek <jakub@redhat.com>
1070
1071 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
1072 to length.
1073
1074 2019-05-30 Martin Liska <mliska@suse.cz>
1075
1076 * gdbinit.in: Fix 'ptc' command. Add trt
1077 that prints TREE_TYPE($).
1078
1079 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
1080 Alan Modra <amodra@gmail.com>
1081
1082 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
1083 calls here...
1084 (rs6000_indirect_call_template_1): ...and here.
1085 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
1086 plt16_ha, plt16_lo, mtctr indirect calls. Use
1087 rs6000_pltseq_enum.
1088 (rs6000_decl_ok_for_sibcall): New function.
1089 (rs6000_function_ok_for_sibcall): Refactor.
1090 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
1091 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
1092 when pcrel. Reorganize.
1093 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
1094 * rs6000.h (rs6000_pltseq_enum): New enum.
1095 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
1096 (*pltseq_tocsave): Use rs6000_pltseq_enum.
1097 (*pltseq_plt16_ha): Likewise.
1098 (*pltseq_plt16_lo): Likewise.
1099 (*pltseq_mtctr): Likewise.
1100 (*pltseq_plt_pcrel): New insn.
1101 (*call_local_aix): Handle @notoc calls.
1102 (*call_value_local_aix): Likewise.
1103 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
1104 (*call_value_nonlocal_aix): Likewise.
1105 (*call_indirect_pcrel): New insn.
1106 (*call_value_indirect_pcrel): Likewise.
1107
1108
1109 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
1110
1111 * config/i386/sse.md (*save_multiple<mode>): Rename from
1112 save_multiple<mode>.
1113 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
1114 (*restore_multiple_and_return<mode>): Rename from
1115 restore_multiple_and_return<mode>.
1116 (*restore_multiple_leave_return<mode>): Rename from
1117 restore_multiple_leave_return<mode>.
1118
1119 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
1120
1121 * config.gcc (rx-*-linux*): New target.
1122 * config/rx/elf.opt: New file.
1123 * config/rx/linux.h: Likewise.
1124 * config/rx/t-linux: Likewise.
1125 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
1126 make it zero.
1127 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
1128 (ASM_APP_OFF): Likewise.
1129 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
1130 moved elsewhere.
1131
1132 2019-05-29 Jan Hubicka <jh@suse.cz>
1133
1134 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
1135 variants are pointer equivalent.
1136
1137 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1138
1139 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
1140 * config/aarch64/aarch64-sve2.md: New file.
1141 (<u>avg<mode>3_floor): New pattern.
1142 (<u>avg<mode>3_ceil): Likewise.
1143 (*<sur>h<addsub><mode>): Likewise.
1144 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
1145 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
1146
1147 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1148
1149 PR bootstrap/90543
1150 * optc-save-gen.awk: In cl_optimization_print, use correct condition
1151 for var_opt_string printing. In cl_optimization_print_diff, print
1152 (null) instead of invoking undefined behavior if one of the
1153 var_opt_string pointers is NULL and use && instead of first || in the
1154 guarding condition. For var_target_other options, handle const char *
1155 target variables similarly to const char * optimize node variables.
1156
1157 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
1158
1159 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
1160 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
1161 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
1162 Add autib1716 and pacib1716 initialisation.
1163 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
1164 for autib1716 and pacib1716.
1165 * config/aarch64/aarch64-protos.h (aarch64_key_type,
1166 aarch64_post_cfi_startproc): Define.
1167 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
1168 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
1169 aarch64_handle_pac_ret_protection): Set default sign key to A.
1170 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
1171 aarch64_expand_prologue): Add check for b-key.
1172 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
1173 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
1174 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
1175 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
1176 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
1177 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
1178 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
1179 * config/aarch64/aarch64.md (do_return): Add check for b-key.
1180 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
1181 pauth_hint_num_a with pauth_hint_num.
1182 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
1183 pauth_hint_num_a with pauth_hint_num.
1184 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
1185 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
1186 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
1187 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
1188 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
1189 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
1190 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
1191 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
1192 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
1193 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
1194 UNSPEC_AUTIA1716 respectively.
1195 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
1196 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
1197 * doc/invoke.texi (-mbranch-protection): Add b-key type.
1198 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
1199 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
1200
1201 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1202
1203 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
1204 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
1205 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
1206 explicit clause on combined parallel into implicit shared clause.
1207 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
1208 and firstprivate if the decl has one too from combined parallel to
1209 the worksharing construct.
1210
1211 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
1212 Michael Meissner <meissner@linux.ibm.com>
1213
1214 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
1215
1216 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
1217
1218 * rtl.h (LABEL_REF_P): New #define.
1219
1220 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
1221
1222 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
1223
1224 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1225
1226 * internal-fn.c: Marked mask_load_direct as vectorizable.
1227 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
1228 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
1229 combined even if masks different with allow_slp_p param.
1230 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
1231 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
1232 dissolve SLP-only vectorizable groups when SLP has been discarded.
1233 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
1234 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
1235 masks.
1236 (vect_build_slp_tree_1): Fixed comment typo.
1237 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
1238 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
1239 loads for SLP only.
1240 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
1241 vectorizable.
1242 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
1243
1244 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1245
1246 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
1247 Remove obsolete use_thunk reference.
1248 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
1249 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1250 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
1251 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
1252 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1253 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1254 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1255 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
1256 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
1257
1258 2019-05-28 Nathan Sidwell <nathan@acm.org>
1259
1260 * tree.h (IDENTIFIER_ANON_P): New.
1261 (anon_aggrname_format, anon_aggname_p): Don't declare.
1262 (make_anon_name): Declare.
1263 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
1264 (hash_tree): Likewise.
1265 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
1266 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
1267 (anon_cnt, make_anon_name): New.
1268
1269 2019-05-28 Martin Liska <mliska@suse.cz>
1270
1271 PR other/90315
1272 * opts-global.c (decode_options): Print help for all
1273 help_option_arguments.
1274 * opts.c (print_help): Add new argument.
1275 (common_handle_option): Remember all values into
1276 help_option_arguments.
1277 * opts.h (print_help): Add new argument.
1278
1279 2019-05-28 Martin Liska <mliska@suse.cz>
1280
1281 PR ipa/90555
1282 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
1283 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
1284 (func_checker::compare_bb): Call compare_loops.
1285
1286 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1287
1288 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
1289 on sections construct.
1290 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
1291 construct.
1292 (lower_omp_sections): Handle lastprivate conditional.
1293 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
1294 lastprivate_conditional_map.
1295 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
1296
1297 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
1298 critical, taskgroup and section regions when looking for a region
1299 with non-NULL lastprivate_conditional_map.
1300
1301 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1302
1303 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
1304 (*ix86_gen_sub3): Ditto.
1305 (*ix86_gen_sub3_carry): Ditto.
1306 (*ix86_gen_one_cmpl2): Ditto.
1307 (*ix86_gen_andsp): Ditto.
1308 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
1309 (gen_and2_insn): New static function.
1310 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
1311 Use gen_add3_insn instead of ix86_gen_add3.
1312 (ix86_expand_split_stack_prologue): Use gen_add2_insn
1313 instead of ix86_gen_add3.
1314 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
1315 Use gen_sub3_insn instead of ix86_gen_sub3.
1316 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
1317 instead of ix86_gen_add3.
1318 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
1319 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
1320 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
1321 * config/i386/i386-options.c (ix86_option_override_internal):
1322 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1323 ix86_gen_one_cmpl2 and ix86_gen_andsp.
1324
1325 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1326
1327 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
1328 and DW_OP_GNU_const_index opcodes.
1329
1330 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1331
1332 * config/i386/i386.h (STACK_SIZE_MODE): Define.
1333
1334 2019-05-27 Richard Biener <rguenther@suse.de>
1335
1336 PR tree-optimization/90637
1337 * tree-ssa-sink.c (statement_sink_location): Honor the
1338 computed sink location for single-uses.
1339
1340 2019-05-27 Richard Biener <rguenther@suse.de>
1341
1342 PR middle-end/90610
1343 * match.pd (vec_perm): Avoid clobbering op0 when not generating
1344 a bit-insert.
1345
1346 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1347
1348 * config/i386/i386.md (@sub<mode>3_carry): Rename
1349 from sub<mode>3_carry.
1350 (@leave_<mode>): New expander.
1351 (*leave): Rename from leave.
1352 (*leave_rex64): Rename from leave_rex64.
1353 (@monitorx_<mode>): Rename from monitorx_<mode>.
1354 (@clzero_<mode>): Rename from clzero_<mode>.
1355 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
1356 from sse3_monitor_<mode>.
1357 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
1358 (*ix86_gen_leave): Ditto.
1359 (*ix86_gen_monitor): Ditto.
1360 (*ix86_gen_monitorx): Ditto.
1361 (*ix86_gen_clzero): Ditto.
1362 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
1363 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
1364 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
1365 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
1366 Use gen_sse3_monitor instead of ix86_gen_monitor.
1367 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
1368 instead of ix86_gen_monitorx.
1369 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
1370 instead of ix86_gen_clzero.
1371 * config/i386/i386-options.c (ix86_option_override_internal):
1372 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
1373 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
1374
1375 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1376
1377 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
1378 Rename from tls_global_dynamic_64_<mode>.
1379 (@tls_local_dynamic_base_64_<mode>): Rename from
1380 tls_local_dynamic_base_64_<mode>.
1381 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
1382 Remove indirect function.
1383 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
1384 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
1385 instead of ix86_gen_tls_global_dynamic_64.
1386 Use gen_tls_local_dynamic_base_64 instead of
1387 ix86_gen_tls_local_dynamic_base_64.
1388 * config/i386/i386-options.c (ix86_option_override_internal):
1389 Do not initialize ix86_gen_tls_global_dynamic_64 and
1390 ix86_gen_tls_local_dynamic_base_64.
1391
1392 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1393
1394 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
1395 Rename from pro_epilogue_adjust_stack_<mode>_add.
1396 (@pro_epilogue_adjust_stack_sub_<mode>)
1397 Rename from pro_epilogue_adjust_stack_<mode>_sub.
1398 (@allocate_stack_worker_probe_<mode>):
1399 Rename from allocate_stack_worker_probe_<mode>.
1400 (allocate_stack): Use gen_allocate_stack_worker_probe.
1401 (probe_stack): Use gen_probe_stack_1.
1402 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
1403 (@adjust_stack_and_probe_<mode>): Rename from
1404 adjust_stack_and_probe<mode>.
1405 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
1406 (stack_protect_set): Use gen_stack_protect_set_1.
1407 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
1408 (stack_protect_test): Use gen_stack_protect_test_1.
1409 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
1410 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
1411 Remove indirect function.
1412 (*ix86_gen_adjust_stack_and_probe): Ditto.
1413 (*ix86_gen_probe_stack_range): Ditto.
1414 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
1415 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
1416 (ix86_adjust_stack_and_probe_stack_clash): Use
1417 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
1418 (ix86_adjust_stack_and_probe): Ditto.
1419 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
1420 of ix86_gen_probe_stack_range.
1421 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
1422 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
1423 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
1424 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
1425 CODE_FOR_stack_protect_test_{si,di}.
1426 * config/i386/i386-options.c (ix86_option_override_internal):
1427 Do not initialize ix86_gen_allocate_stack_worker,
1428 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1429
1430 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
1431
1432 * doc/invoke.texi (Link Options): Many editorial changes around
1433 -flinker-output.
1434
1435 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1436
1437 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
1438 pre-Solaris 11 referene and most Studio compiler details.
1439
1440 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
1441
1442 PR target/90530
1443 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
1444 DImode to SImode in floating-point registers on 64-bit target.
1445 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
1446 register_operand in xmpyu patterns.
1447
1448 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1449
1450 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
1451 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
1452 OMP_CLAUSE__REDUCTEMP_.
1453 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1454 OMP_CLAUSE__CONDTEMP_.
1455 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
1456 * tree-pretty-print.c (dump_omp_clause): Likewise.
1457 * tree-nested.c (convert_nonlocal_omp_clauses,
1458 convert_local_omp_clauses): Likewise.
1459 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
1460 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
1461 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
1462 on OMP_FOR.
1463 (gimplify_omp_for): Warn and disable conditional modifier from
1464 lastprivate on loop iterators.
1465 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
1466 member.
1467 * omp-general.c (omp_extract_for_data): Initialize it.
1468 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
1469 member.
1470 (delete_omp_context): Delete it.
1471 (lower_lastprivate_conditional_clauses): New function.
1472 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
1473 handle lastprivate conditional clauses.
1474 (lower_reduction_clauses): Add CLIST argument, emit it into
1475 the critical section if any.
1476 (lower_omp_sections): Adjust lower_lastprivate_clauses and
1477 lower_reduction_clauses callers.
1478 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
1479 to lower_lastprivate_clauses.
1480 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
1481 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
1482 clist into a critical section if not emitted there already by
1483 lower_reduction_clauses.
1484 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
1485 callers.
1486 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
1487 conditional variables.
1488 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
1489 clause is present.
1490 (expand_omp_for_generic, expand_omp_for_static_nochunk,
1491 expand_omp_for_static_chunk): Handle lastprivate conditional.
1492 (expand_omp_for): Handle fd.lastprivate_conditional like
1493 fd.have_reductemp.
1494
1495 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1496
1497 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
1498 kernel does not exit cleanly.
1499 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
1500
1501 2019-05-24 Jason Merrill <jason@redhat.com>
1502
1503 Revert:
1504 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1505
1506 2019-05-24 Richard Biener <rguenther@suse.de>
1507
1508 PR testsuite/90607
1509 * tree-loop-distribution.c (struct partition): Add location
1510 member.
1511 (partition_alloc): Initialize all fields.
1512 (generate_memset_builtin): Use the location recorded in the
1513 partition for the generated call.
1514 (generate_memcpy_builtin): Likewise.
1515 (classify_partition): Record the location of a single store
1516 as location for the partition.
1517
1518 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1519
1520 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
1521 for lo-part.
1522
1523 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
1524
1525 PR target/90588
1526 * common/config/aarch64/aarch64-common.c
1527 (aarch64_rewrite_selected_cpu): Change local temporary variable
1528 type from unsigned long to uint64_t.
1529 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
1530 aarch64_get_extension_string_for_isa_flags): Change declaration to
1531 match new definition by replacing unsigned long with uint64_t.
1532
1533 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1534
1535 PR target/90568
1536 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
1537 gen_attr_type just once instead of 4-7 times. Formatting fixes.
1538 Handle stack_protect_test_<mode> codegen similarly to corresponding
1539 sub instruction.
1540
1541 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
1542
1543 * config/i386/darwin.h: Reject -mfentry*.
1544 * doc/sourcebuild.texi: Document mfentry target support.
1545
1546 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1547
1548 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
1549 Rename to rs6000_global_entry_point_prologue_needed_p. Return
1550 false for PC-relative functions.
1551 (rs6000_output_function_prologue): Change called function name to
1552 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
1553 name,1" for PC-relative functions.
1554 (rs6000_elf_declare_function_name): Change called function name to
1555 rs6000_global_entry_point_prologue_needed_p.
1556
1557 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
1558
1559 PR target/90552
1560 * config/i386/i386.c (gen_rtx_cost):
1561 Use ix86_tune_cost instead of ix86_cost.
1562
1563 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1564 Michael Meissner <meissner@linux.ibm.com>
1565 Segher Boessenkool <segher@kernel.crashing.org>
1566
1567 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
1568 OPTION_MASK_PCREL.
1569 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
1570 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
1571 (rs6000_fndecl_pcrel_p): Likewise.
1572 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
1573 error if -mpcrel is requested without -mcpu=future.
1574 (rs6000_opt_masks): Add entry for pcrel.
1575 (rs6000_fndecl_pcrel_p): New function.
1576 (rs6000_pcrel_p): Likewise.
1577 * config/rs6000/rs6000.opt (mpcrel): New option.
1578 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
1579
1580 2019-05-23 Jan Hubicka <jh@suse.cz>
1581 Martin Liska <mliska@suse.cz>
1582
1583 PR tree-optimization/90576
1584 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
1585 poly_int_tree_p.
1586 (aliasing_component_refs_p): Fix three way size compare conditional;
1587 give up earlier in case we can not decide on equivalence.
1588
1589 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1590 Michael Meissner <meissner@linux.ibm.com>
1591 Segher Boessenkool <segher@kernel.crashing.org>
1592
1593 * config.gcc: Add future cpu.
1594 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
1595 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
1596 #define.
1597 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
1598 (RS6000_CPU): New instantiation for future cpu.
1599 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1600 PROCESSOR_FUTURE.
1601 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
1602 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
1603 * config/rs6000/rs6000-tables.opt: Regenerate.
1604 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
1605 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
1606 (rs6000_machine_from_flags): Handle future cpu.
1607 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
1608 PROCESSOR_POWER9 for now.
1609 (rs6000_adjust_cost): Likewise.
1610 (rs6000_issue_rate): Likewise.
1611 (rs6000_register_move_cost): Likewise.
1612 (rs6000_opt_masks): Add entry for future.
1613 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
1614 (MASK_FUTURE): New #define.
1615 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
1616 * config/rs6000/rs6000.opt (mfuture): New target option.
1617 * doc/invoke.texi (mcpu): Add future cpu.
1618
1619 2019-05-23 Martin Liska <mliska@suse.cz>
1620
1621 PR c++/90587
1622 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
1623 operation points to a temporary (pointed via tree_to_wide_ref)
1624 that is out of scope after the &.
1625
1626 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1627
1628 PR c++/90592
1629 * doc/extend.texi (Function Names): Add missing word.
1630
1631 2019-05-23 Richard Biener <rguenther@suse.de>
1632
1633 PR tree-optimization/88440
1634 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
1635 at -O[2s]+.
1636 * tree-loop-distribution.c (generate_memset_builtin): Fold the
1637 generated call.
1638 (generate_memcpy_builtin): Likewise.
1639 (distribute_loop): Pass in whether to only distribute patterns.
1640 (prepare_perfect_loop_nest): Also allow size optimization.
1641 (pass_loop_distribution::execute): When optimizing a loop
1642 nest for size allow pattern replacement.
1643
1644 2019-05-23 Jakub Jelinek <jakub@redhat.com>
1645
1646 PR target/90568
1647 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
1648 of xor.
1649
1650 2019-05-23 Martin Liska <mliska@suse.cz>
1651
1652 PR sanitizer/90570
1653 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
1654 expression similarly to gimplify_decl_expr.
1655
1656 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1657
1658 * cse.c (cse_dump_path): s/dump_file/f.
1659
1660 2019-05-22 David Malcolm <dmalcolm@redhat.com>
1661
1662 PR c++/90462
1663 * diagnostic-format-json.cc: Include "selftest.h".
1664 (json_from_expanded_location): Only add "file" key for non-NULL
1665 file strings.
1666 (json_from_location_range): Don't add "start" and "finish"
1667 children if they are UNKNOWN_LOCATION.
1668 (selftest::test_unknown_location): New selftest.
1669 (selftest::test_bad_endpoints): New selftest.
1670 (selftest::diagnostic_format_json_cc_tests): New function.
1671 * json.cc (json::object::get): New function.
1672 (selftest::test_object_get): New selftest.
1673 (selftest::json_cc_tests): Call it.
1674 * json.h (json::object::get): New decl.
1675 * selftest-run-tests.c (selftest::run_tests): Call
1676 selftest::diagnostic_format_json_cc_tests.
1677 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
1678 decl.
1679
1680 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1681 Andrew Stubbs <amd@codesourcery.com>
1682
1683 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
1684 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
1685 (kernel): Rename to...
1686 (main_kernel): ... this.
1687 (load_image): Load _init_array and _fini_array kernels.
1688 (run): Add argument for kernel to run.
1689 (main): Run init_array_kernel before main_kernel, and
1690 fini_array_kernel after.
1691 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
1692 amdgpu_hsa_kernel attribute on functions.
1693 (gcn_disable_constructors): Delete.
1694 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
1695 * config/gcn/crt0.c (size_t): Define.
1696 (_init_array, _fini_array): New.
1697 (__preinit_array_start, __preinit_array_end,
1698 __init_array_start, __init_array_end,
1699 __fini_array_start, __fini_array_end): Declare weak references.
1700
1701 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
1702
1703 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
1704
1705 2019-05-22 Jason Merrill <jason@redhat.com>
1706
1707 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1708
1709 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
1710
1711 PR target/88483
1712 * config/i386/i386-options.c (ix86_init_machine_status): Set
1713 stack_frame_required to true.
1714 * config/i386/i386.c (ix86_get_frame_size): New function.
1715 (ix86_frame_pointer_required): Replace get_frame_size with
1716 ix86_get_frame_size.
1717 (ix86_compute_frame_layout): Likewise.
1718 (ix86_find_max_used_stack_alignment): Changed to void. Set
1719 stack_frame_required.
1720 (ix86_finalize_stack_frame_flags): Always call
1721 ix86_find_max_used_stack_alignment. Replace get_frame_size with
1722 ix86_get_frame_size.
1723 * config/i386/i386.h (machine_function): Add stack_frame_required.
1724
1725 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
1726
1727 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
1728
1729 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
1730
1731 * common/config/aarch64/aarch64-common.c
1732 (struct aarch64_option_extension, struct processor_name_to_arch,
1733 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
1734 aarch64_contains_opt,
1735 aarch64_get_extension_string_for_isa_flags): Change type of
1736 variables storing flags to uint64_t.
1737 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
1738 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
1739 * config/aarch64/aarch64.c (struct processor,
1740 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
1741 aarch64_validate_march, aarch64_override_options,
1742 aarch64_option_print, aarch64_handle_attr_isa_flags,
1743 aarch64_declare_function_name, aarch64_start_file): Make flag
1744 variables uint64_t.
1745 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
1746 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
1747 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
1748 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
1749 * config/aarch64/driver-aarch64.c
1750 (struct aarch64_arch_extension, struct aarch64_core_data,
1751 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
1752 flag variables uint64_t.
1753 * doc/invoke.texi: Add documentation for new arguments.
1754
1755 2019-05-22 Richard Biener <rguenther@suse.de>
1756
1757 * alias.c (ao_ref_from_mem): Move stack-slot sharing
1758 rewrite ...
1759 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
1760
1761 2019-05-22 Martin Liska <mliska@suse.cz>
1762
1763 PR lto/90500
1764 * doc/extend.texi: Document the change.
1765
1766 2019-05-22 Richard Biener <rguenther@suse.de>
1767
1768 PR tree-optimization/90450
1769 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1770 (mem_ref_hasher::equal): Check it.
1771 (mem_ref_alloc): Initialize it.
1772 (gather_mem_refs_stmt): Set it.
1773
1774 2019-05-22 Richard Biener <rguenther@suse.de>
1775
1776 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1777 Add ABS_EXPR.
1778 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1779 as ABSU_EXPR.
1780
1781 2019-05-22 Alan Modra <amodra@gmail.com>
1782
1783 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1784 (ASM_CPU_SPEC): Conditionally add -many.
1785 * config/rs6000/rs6000.c (rs6000_machine): New static var.
1786 (rs6000_machine_from_flags, emit_asm_machine): New functions..
1787 (rs6000_file_start): ..extracted from here, and modified to
1788 test all ISA bits.
1789 (rs6000_output_function_prologue): Emit .machine as necessary.
1790 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1791 power mnemonics.
1792 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1793 added by check_vect_support_and_set_flags.
1794 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1795 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1796
1797 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
1798
1799 PR middle-end/90553
1800 * ira-lives.c (process_bb_node_lives): Consider defs
1801 for a call insn to be die before the call, not after.
1802
1803 * function.c (assign_parm_setup_block): Raise alignment of
1804 stacked parameter only for STRICT_ALIGNMENT targets.
1805
1806 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1807
1808 * config/rs6000/constraints.md (define_register_constraint "wz"):
1809 Delete.
1810 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1811 RS6000_CONSTRAINT_wz.
1812 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1813 (rs6000_init_hard_regno_mode_ok): Adjust.
1814 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1815 * doc/md.texi (Machine Constraints): Adjust.
1816
1817 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1818
1819 * config/rs6000/constraints.md (define_register_constraint "wl"):
1820 Delete.
1821 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1822 RS6000_CONSTRAINT_wl.
1823 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1824 (rs6000_init_hard_regno_mode_ok): Adjust.
1825 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1826 * doc/md.texi (Machine Constraints): Adjust.
1827
1828 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1829
1830 * config/rs6000/constraints.md (define_register_constraint "wm"):
1831 Delete.
1832 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1833 RS6000_CONSTRAINT_wm.
1834 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1835 (rs6000_init_hard_regno_mode_ok): Adjust.
1836 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1837 * doc/md.texi (Machine Constraints): Adjust.
1838
1839 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1840
1841 * config/rs6000/constraints.md (define_register_constraint "wk"):
1842 Delete.
1843 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1844 RS6000_CONSTRAINT_wk.
1845 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1846 (rs6000_init_hard_regno_mode_ok): Adjust.
1847 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1848 * doc/md.texi (Machine Constraints): Adjust.
1849
1850 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1851
1852 * config/rs6000/constraints.md (define_register_constraint "wj"):
1853 Delete.
1854 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1855 RS6000_CONSTRAINT_wj.
1856 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1857 (rs6000_init_hard_regno_mode_ok): Adjust.
1858 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1859 (VS_64dm): Delete.
1860 * config/rs6000/vsx.md: Ditto.
1861 * doc/md.texi (Machine Constraints): Adjust.
1862
1863 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1864
1865 * config/rs6000/constraints.md (define_register_constraint "wh"):
1866 Delete.
1867 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1868 RS6000_CONSTRAINT_wh.
1869 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1870 (rs6000_init_hard_regno_mode_ok): Adjust.
1871 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1872 * doc/md.texi (Machine Constraints): Adjust.
1873
1874 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1875
1876 PR target/90547
1877 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1878 Avoid calling gen_lowpart with CONST operand.
1879
1880 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
1881
1882 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1883 field template_last_to_copy.
1884 (ssa_create_duplicates): Set it, and use it. Attempt to
1885 preserve more debug stmts.
1886
1887 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1888
1889 * config/i386/sse.md (VF1_AVX2): New mode iterator.
1890 (signbit<mode>2): New expander
1891
1892 2019-05-21 James Clarke <jrtc27@jrtc27.com>
1893
1894 PR bootstrap/87338
1895 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1896 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1897
1898 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1899
1900 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1901 %ebx and %ecx bafore calling cpuid with leaf 1 or
1902 non-constant leaf argument.
1903
1904 2019-05-21 Alan Modra <amodra@gmail.com>
1905
1906 PR target/90545
1907 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1908 power9 direct move cost.
1909 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1910 Correct comments and rename functions to suit parameters.
1911
1912 2019-05-21 Richard Biener <rguenther@suse.de>
1913
1914 PR middle-end/90510
1915 * fold-const.c (fold_read_from_vector): New function.
1916 * fold-const.h (fold_read_from_vector): Declare.
1917 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1918 single-element insert permutations. Canonicalize selector
1919 further and fix issue with last commit.
1920
1921 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1922
1923 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1924 parameter with default value false to declaration.
1925 (split_edges_for_insertion): New inline function. Wrapper for
1926 split_critical_edges with for_edge_insertion_p = true.
1927 * tree-cfg.c (split_critical_edges): Don't split non-critical
1928 edges if for_edge_insertion_p is false. Fix whitespace.
1929 * tree-ssa-pre.c (pass_pre::execute): Call
1930 split_edges_for_insertion instead of split_critical_edges.
1931 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1932 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1933 (pass_data_sink_code): Update function name in the comment.
1934
1935 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1936
1937 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1938 around is_value_included_in that knows how to handle BIT_AND_EXPR.
1939 (is_pred_expr_subset_of): Use the new function. Handle more cases where
1940 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1941 positives.
1942
1943 2019-05-21 Martin Liska <mliska@suse.cz>
1944
1945 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1946 an extra newline.
1947 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1948 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1949 vec_lvsr.
1950 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1951 Quote a C type.
1952 (rs6000_function_arg): Likewise.
1953 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1954 (rs6000_expand_ternop_builtin): Use interval syntax.
1955 (get_element_number): Likewise.
1956 (altivec_expand_builtin): Likewise.
1957 (rs6000_get_function_versions_dispatcher): Quote target_clones.
1958
1959 Fix test-suite.
1960
1961 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1962
1963 PR c++/59813
1964 PR target/90418
1965 * function.h (struct function): Add calls_eh_return member.
1966 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1967 gimplifying __builtin_eh_return call.
1968 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1969 to cfun.
1970 (expand_call_inline): Or in src_cfun->calls_eh_return into
1971 dst_cfun->calls_eh_return.
1972 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1973 cfun->calls_eh_return.
1974 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1975 * lto-streamer-out.c (output_struct_function_base): Write
1976 calls_eh_return.
1977
1978 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
1979
1980 PR rtl-optimization/43147
1981 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1982 IX86_BUILTIN_SHUFPD.
1983
1984 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1985
1986 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1987 (refs_may_alias_p_1): ... here; update stats.
1988 (refs_may_alias_p): Do not update stats here.
1989
1990 2019-05-20 Richard Biener <rguenther@suse.de>
1991
1992 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1993 doesn't produce pointers.
1994 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1995 the first operand points to.
1996
1997 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1998
1999 * tree-ssa-alias.c (compare_sizes): New function.
2000 (sompare_type_sizes): New function
2001 (aliasing_component_refs_p): Use it.
2002 (indirect_ref_may_alias_decl_p): Likewise.
2003
2004 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2005
2006 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
2007
2008 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2009
2010 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
2011 (LIBLSAN_EARLY_SPEC): Likewise.
2012 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
2013
2014 2019-05-20 Martin Liska <mliska@suse.cz>
2015
2016 * config/i386/i386.c (ix86_libc_has_fast_function):
2017 Add ATTRIBUTE_UNUSED for the argument.
2018
2019 2019-05-20 Richard Biener <rguenther@suse.de>
2020
2021 * gimple-match-head.c: Include vec-perm-indices.h.
2022 * generic-match-head.c: Likewise.
2023 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
2024 is included.
2025 * fold-const.c (fold_vec_perm): Export.
2026 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
2027 (match.pd): ...here.
2028
2029 2019-05-20 Jakub Jelinek <jakub@redhat.com>
2030
2031 * cfgloop.h (struct loop): Add simdlen member.
2032 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
2033 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
2034 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
2035 as new argument to autovectorize_vector_sizes target hook. If
2036 loop->simdlen, pick up vector size where the vectorization factor
2037 is equal to loop->simd, and if there is none, fall back to the first
2038 successful one.
2039 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
2040 caller.
2041 * omp-low.c (omp_clause_aligned_alignment): Likewise.
2042 * omp-general.c (omp_max_vf): Likewise.
2043 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
2044 * tree-vect-slp.c (vect_slp_bb): Likewise.
2045 * target.def (autovectorize_vector_sizes): Add ALL argument and
2046 document it.
2047 * doc/tm.texi: Adjust documentation.
2048 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
2049 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
2050 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
2051 bool argument.
2052 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
2053 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
2054 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
2055 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
2056 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
2057 preferred vector size is not 512-bit or 256-bit, just put those
2058 unpreferred ones last.
2059
2060 2019-05-20 Martin Liska <mliska@suse.cz>
2061
2062 * targhooks.c (default_libc_has_fast_function): New function.
2063 * targhooks.h (default_libc_has_fast_function): Likewise.
2064
2065 2019-05-20 Martin Liska <mliska@suse.cz>
2066
2067 PR middle-end/90263
2068 * builtins.c (expand_builtin_memory_copy_args): When having a
2069 target with fast mempcpy implementation do now use memcpy.
2070 * config/i386/i386.c (ix86_libc_has_fast_function): New.
2071 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
2072 * doc/tm.texi: Likewise.
2073 * doc/tm.texi.in: Likewise.
2074 * target.def:
2075 * expr.c (emit_block_move_hints): Add 2 new arguments.
2076 * expr.h (emit_block_move_hints): Bail out when libcall
2077 to memcpy would be used.
2078
2079 2019-05-20 Martin Liska <mliska@suse.cz>
2080
2081 * profile-count.c: Add vertical spacing in order
2082 to separate functions.
2083 * profile-count.h: Likewise.
2084
2085 2019-05-20 Martin Liska <mliska@suse.cz>
2086
2087 * profile-count.h: Do not use full qualified
2088 names if possible.
2089 * profile-count.c (profile_count::to_frequency): Likewise.
2090
2091 2019-05-20 Martin Liska <mliska@suse.cz>
2092
2093 * profile-count.h (enum profile_quality): Use capital letters
2094 for enum value names. Use the adjusted names.
2095 * profile-count.c: Use the adjusted names.
2096
2097 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2098
2099 * config/rs6000/constraints.md (define_register_constraint "wH"):
2100 Delete.
2101 (define_register_constraint "wI"): Delete.
2102 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2103 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
2104 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2105 (rs6000_init_hard_regno_mode_ok): Adjust.
2106 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
2107 resp. "d", or with "wa" as appropriate, all with "p8v".
2108 * config/rs6000/vsx.md: Ditto.
2109 * doc/md.texi (Machine Constraints): Adjust.
2110
2111 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2112
2113 * config/rs6000/constraints.md (define_register_constraint "wy"):
2114 Delete.
2115 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2116 RS6000_CONSTRAINT_wy.
2117 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2118 (rs6000_init_hard_regno_mode_ok): Adjust.
2119 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
2120 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
2121 (define_mode_attr Fisa): New.
2122 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
2123 * doc/md.texi (Machine Constraints): Adjust.
2124
2125 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2126
2127 * config/rs6000/constraints.md (define_register_constraint "wu"):
2128 Delete.
2129 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2130 RS6000_CONSTRAINT_wu.
2131 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2132 (rs6000_init_hard_regno_mode_ok): Adjust.
2133 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
2134 both with "p8v".
2135 (define_mode_attr Fa): Delete.
2136 * config/rs6000/vsx.md: Ditto.
2137 * doc/md.texi (Machine Constraints): Adjust.
2138
2139 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2140
2141 * config/rs6000/constraints.md (define_register_constraint "wJ"):
2142 Delete.
2143 (define_register_constraint "wK"): Delete.
2144 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2145 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
2146 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2147 (rs6000_init_hard_regno_mode_ok): Adjust.
2148 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
2149 Replace "wK" constraint by "wH" with "p9v".
2150 * config/rs6000/vsx.md: Ditto.
2151 * doc/md.texi (Machine Constraints): Adjust.
2152
2153 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2154
2155 * config/rs6000/constraints.md (define_register_constraint "wb"):
2156 Delete.
2157 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2158 RS6000_CONSTRAINT_wb.
2159 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2160 (rs6000_init_hard_regno_mode_ok): Adjust.
2161 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
2162 * config/rs6000/vsx.md: Ditto.
2163 * doc/md.texi (Machine Constraints): Adjust.
2164
2165 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
2166
2167 * config/rs6000/constraints.md (define_register_constraint "wo"):
2168 Delete.
2169 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
2170 RS6000_CONSTRAINT_wo.
2171 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
2172 (rs6000_init_hard_regno_mode_ok): Adjust.
2173 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
2174 * config/rs6000/altivec.md: Ditto.
2175 * doc/md.texi (Machine Constraints): Adjust.
2176
2177 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
2178
2179 * config/darwin-c.c (darwin_register_objc_includes): Do not
2180 prepend the sysroot when building gnu-runtime header search
2181 paths.
2182
2183 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
2184
2185 * config/darwin.c (darwin_file_end): Use switch_to_section ()
2186 instead of direct output of the asm.
2187
2188 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
2189
2190 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
2191 argument to be type bool (was int before).
2192 (rs6000_emit_epilogue): Simplify some code. Declare some variables
2193 at first use. Use type bool for some variables. Fix a theoretical
2194 eh_return bug for svr4.
2195
2196 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
2197
2198 * config/rs6000/rs6000.md (isa): New attribute.
2199 (enabled): New attribute.
2200
2201 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
2202
2203 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
2204 assemble_start_function and assemble_end_function.
2205
2206 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2207
2208 PR middle-end/89433
2209 * omp-general.c (oacc_verify_routine_clauses): Change formal
2210 parameters. Add checking if already marked with an OpenACC
2211 'routine' directive. Adjust all users.
2212
2213 PR middle-end/89433
2214 * omp-general.c (oacc_build_routine_dims): Move some of its
2215 processing into...
2216 (oacc_verify_routine_clauses): ... this new function.
2217 * omp-general.h (oacc_verify_routine_clauses): New prototype.
2218
2219 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
2220
2221 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
2222 formating of picbase labels to match other ports.
2223
2224 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
2225
2226 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
2227 in the generated code.
2228
2229 2019-05-16 Martin Sebor <msebor@redhat.com>
2230
2231 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
2232 identifiers, keywords, operators, and types in diagnostics. Correct
2233 quoting, spelling, and sentence capitalization issues.
2234 (expand_builtin_atomic_is_lock_free): Same.
2235 (fold_builtin_next_arg): Same.
2236 * cfgexpand.c (expand_one_var): Same.
2237 (tree_conflicts_with_clobbers_p): Same.
2238 (expand_asm_stmt): Same.
2239 (verify_loop_structure): Same.
2240 * cgraphunit.c (process_function_and_variable_attributes): Same.
2241 * collect-utils.c (collect_execute): Same.
2242 * collect2.c (maybe_run_lto_and_relink): Same.
2243 (is_lto_object_file): Same.
2244 (scan_prog_file): Same.
2245 * convert.c (convert_to_real_1): Same.
2246 * dwarf2out.c (dwarf2out_begin_prologue): Same.
2247 * except.c (verify_eh_tree): Same.
2248 * gcc.c (execute): Same.
2249 (eval_spec_function): Same.
2250 (run_attempt): Same.
2251 (driver::set_up_specs): Same.
2252 (compare_debug_auxbase_opt_spec_function): Same.
2253 * gcov-tool.c (unlink_gcda_file): Same.
2254 (do_merge): Same.
2255 (do_rewrite): Same.
2256 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
2257 * gimplify.c (gimplify_asm_expr): Same.
2258 (gimplify_adjust_omp_clauses): Same.
2259 * hsa-gen.c (gen_hsa_addr_insns): Same.
2260 (gen_hsa_insns_for_load): Same.
2261 (gen_hsa_cmp_insn_from_gimple): Same.
2262 (gen_hsa_insns_for_operation_assignment): Same.
2263 (gen_get_level): Same.
2264 (gen_hsa_alloca): Same.
2265 (omp_simple_builtin::generate): Same.
2266 (gen_hsa_atomic_for_builtin): Same.
2267 (gen_hsa_insns_for_call): Same.
2268 * input.c (dump_location_info): Same.
2269 * ipa-devirt.c (compare_virtual_tables): Same.
2270 * ira.c (ira_setup_eliminable_regset): Same.
2271 * lra-assigns.c (lra_assign): Same.
2272 * lra-constraints.c (lra_constraints): Same.
2273 * lto-streamer-in.c (lto_input_mode_table): Same.
2274 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
2275 (merge_and_complain): Same.
2276 (compile_offload_image): Same.
2277 (compile_images_for_offload_targets): Same.
2278 (debug_objcopy): Same.
2279 (run_gcc): Same.
2280 (main): Same.
2281 * opts.c (print_specific_help): Same.
2282 (parse_no_sanitize_attribute): Same.
2283 (print_help): Same.
2284 (handle_param): Same.
2285 * plugin.c (add_new_plugin): Same.
2286 (parse_plugin_arg_opt): Same.
2287 (try_init_one_plugin): Same.
2288 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
2289 operators, and types in diagnostics. Correct quoting and spelling
2290 issues.
2291 * read-rtl-function.c (parse_edge_flag_token): Same.
2292 (function_reader::parse_enum_value): Same.
2293 * reg-stack.c (check_asm_stack_operands): Same.
2294 * regcprop.c (validate_value_data): Same.
2295 * sched-rgn.c (make_pass_sched_fusion): Same.
2296 * stmt.c (check_unique_operand_names): Same.
2297 * targhooks.c (default_target_option_pragma_parse): Same.
2298 * tlink.c (recompile_files): Same.
2299 * toplev.c (process_options): Same.
2300 (do_compile): Same.
2301 * trans-mem.c (diagnose_tm_1): Same.
2302 (ipa_tm_scan_irr_block): Same.
2303 (ipa_tm_diagnose_transaction): Same.
2304 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
2305 format a tree code name in a diagnostic.
2306 (verify_types_in_gimple_min_lval): Same.
2307 (verify_types_in_gimple_reference): Same.
2308 (verify_gimple_call): Same.
2309 (verify_gimple_assign_unary): Same.
2310 (verify_gimple_assign_binary): Same.
2311 (verify_gimple_assign_ternary): Same.
2312 (verify_gimple_assign_single): Same.
2313 (verify_gimple_switch): Same.
2314 (verify_gimple_label): Same.
2315 (verify_gimple_phi): Same.
2316 (verify_gimple_in_seq): Same.
2317 (verify_eh_throw_stmt_node): Same.
2318 (collect_subblocks): Same.
2319 (gimple_verify_flow_info): Same.
2320 (do_warn_unused_result): Same.
2321 * tree-inline.c (expand_call_inline): Same.
2322 * tree-into-ssa.c (update_ssa): Same.
2323 * tree.c (tree_int_cst_elt_check_failed): Same.
2324 (tree_vec_elt_check_failed): Same.
2325 (omp_clause_operand_check_failed): Same.
2326 (verify_type_variant): Same.
2327 (verify_type): Same.
2328 * value-prof.c (verify_histograms): Same.
2329 * varasm.c (assemble_start_function): Same.
2330
2331 2019-05-16 Martin Sebor <msebor@redhat.com>
2332
2333 * config/i386/i386-expand.c (get_element_number): Quote keywords
2334 and other internal names in diagnostics. Adjust other diagnostic
2335 formatting issues noted by -Wformat-diag.
2336 * config/i386/i386-features.c
2337 (ix86_mangle_function_version_assembler_name): Same.
2338 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
2339 * config/i386/i386.c (ix86_function_type_abi): Same.
2340 (ix86_function_ms_hook_prologue): Same.
2341 (classify_argument): Same.
2342 (ix86_expand_prologue): Same.
2343 (ix86_md_asm_adjust): Same.
2344 (ix86_memmodel_check): Same.
2345
2346 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2347
2348 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
2349 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
2350 and fpxx modes.
2351
2352 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
2353
2354 PR target/90497
2355 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
2356 intrinsics without SSE/SSE2/SSSE3.
2357 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
2358 check.
2359 (*mmx_uavgv8qi3): Likewise.
2360
2361 2019-05-17 Richard Biener <rguenther@suse.de>
2362
2363 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
2364 VEC_PERM_EXPR as __VEC_PERM with -gimple.
2365
2366 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
2367
2368 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
2369 vec_sldw insn pattern.
2370
2371 2019-05-17 Richard Biener <rguenther@suse.de>
2372
2373 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
2374
2375 2019-05-17 Martin Liska <mliska@suse.cz>
2376
2377 PR driver/90496
2378 * toplev.c (output_stack_usage): With LTO and sanitizer it
2379 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
2380 has no file location.
2381
2382 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2383
2384 PR c++/90484
2385 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
2386 sz0 is equal to sz1, instead return false in that case.
2387
2388 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
2389 has non-constant expression, force sctx.lane and use two
2390 argument IFN_GOMP_SIMD_LANE instead of single argument.
2391 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
2392 two argument IFN_GOMP_SIMD_LANE without lhs.
2393 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
2394 member.
2395 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
2396 Define.
2397 (LOOP_REQUIRES_VERSIONING): Or in
2398 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
2399 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2400 simd_if_cond.
2401 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
2402 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
2403 from simd if clause if needed.
2404
2405 2019-05-16 Richard Biener <rguenther@suse.de>
2406
2407 * tree-affine.c (expr_to_aff_combination): New function split
2408 out from...
2409 (tree_to_aff_combination): ... here.
2410 (aff_combination_expand): Avoid building a GENERIC tree.
2411
2412 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
2413
2414 * cgraphunit.c (cgraph_node::expand_thunk): Remove
2415 assemble_start_function and assemble_end_function calls.
2416 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2417 assemble_start_function and assemble_end_function.
2418 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
2419 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
2420 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
2421 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
2422 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
2423 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
2424 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
2425 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
2426 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
2427 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2428 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2429 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
2430 Likewise.
2431 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2432 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
2433 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
2434 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
2435 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
2436 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
2437 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
2438 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
2439 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2440 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2441 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2442 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2443 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
2444 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
2445 Likewise.
2446 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
2447 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
2448 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
2449
2450 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
2451
2452 * tree-ssa-alias.c (alias_stats): Add
2453 aliasing_component_refs_p_may_alias and
2454 aliasing_component_refs_p_no_alias.
2455 (dump_alias_stats): Print aliasing_component_refs_p stats.
2456 (aliasing_component_refs_p): Update stats.
2457
2458 2019-05-16 Martin Liska <mliska@suse.cz>
2459
2460 PR lto/90500
2461 * multiple_target.c (expand_target_clones): Do not allow
2462 target_clones being used with a symbol that is an alias.
2463
2464 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
2465
2466 PR tree-optimization/90394
2467 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
2468 positives rather than ICE for cases where (code2 == NE_EXPR
2469 && code1 == BIT_AND_EXPR).
2470
2471 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2472
2473 PR fortran/90329
2474 * tree-core.h (struct tree_decl_common): Document
2475 decl_nonshareable_flag for PARM_DECLs.
2476 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
2477 * calls.c (expand_call): Don't try tail call if caller
2478 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
2479 passed on the stack and callee needs to pass any arguments on the
2480 stack.
2481 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2482 else if instead of series of mutually exclusive ifs. Handle
2483 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
2484 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2485
2486 * lto-streamer.h (LTO_major_version): Bump to 9.
2487
2488 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
2489
2490 PR tree-optimization/90106
2491 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
2492 new parameter as new internal function call, also move it to new
2493 basic block.
2494 (use_internal_fn): Pass internal function call to
2495 shrink_wrap_one_built_in_call_with_conds.
2496
2497 2019-05-15 Jakub Jelinek <jakub@redhat.com>
2498
2499 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
2500 max_vf to 1.
2501 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
2502 safelen_int and set loop->dont_vectorize.
2503
2504 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2505
2506 PR target/89021
2507 * config/i386/i386-builtin.def: Enable MMX intrinsics with
2508 SSE/SSE2/SSSE3.
2509 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
2510 Likewise.
2511 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
2512 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
2513 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
2514 is defined.
2515
2516 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2517
2518 PR target/89021
2519 * config/i386/mmx.md (*vec_dupv2sf): Changed to
2520 define_insn_and_split to support SSE emulation.
2521 (*vec_extractv2sf_0): Likewise.
2522 (*vec_extractv2sf_1): Likewise.
2523 (*vec_extractv2si_0): Likewise.
2524 (*vec_extractv2si_1): Likewise.
2525 (*vec_extractv2si_zext_mem): Likewise.
2526 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
2527 (vec_extractv2sf_1 splitter): Likewise.
2528 (vec_extractv2sfsf): Likewise.
2529 (vec_setv2si): Likewise.
2530 (vec_extractv2si_1 splitter): Likewise.
2531 (vec_extractv2sisi): Likewise.
2532 (vec_setv4hi): Likewise.
2533 (vec_extractv4hihi): Likewise.
2534 (vec_setv8qi): Likewise.
2535 (vec_extractv8qiqi): Likewise.
2536 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2537 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
2538 (vec_extractv2sisi): Likewise.
2539 (vec_extractv4hihi): Likewise.
2540 (vec_extractv8qiqi): Likewise.
2541 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2542 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
2543 (vec_initv2sisi): Likewise.
2544 (vec_initv4hihi): Likewise.
2545 (vec_initv8qiqi): Likewise.
2546 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
2547 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
2548 (vec_setv4hi): Likewise.
2549 (vec_setv8qi): Likewise.
2550
2551 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2552
2553 PR target/89021
2554 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
2555 TARGET_MMX_WITH_SSE.
2556 (MMXMODE:*mov<mode>_internal): Likewise.
2557 (MMXMODE:movmisalign<mode>): Likewise.
2558
2559 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
2560
2561 PR target/89021
2562 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
2563 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
2564 (sse2_cvtpd2pi): Ditto.
2565 (sse2_cvttpd2pi): Ditto.
2566 (*vec_concatv2sf_sse4_1): Ditto.
2567 (*vec_concatv2sf_sse): Ditto.
2568 (*vec_concatv2si_sse4_1): Ditto.
2569 (*vec_concatv2si): Ditto.
2570 (*vec_concatv4si_0): Ditto.
2571 (*vec_concatv2di_0): Ditto.
2572
2573 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2574
2575 PR target/89021
2576 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
2577
2578 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2579
2580 PR target/89021
2581 * config/i386/sse.md (ssse3_palignrdi): Changed to
2582 define_insn_and_split to support SSE emulation.
2583
2584 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2585
2586 PR target/89021
2587 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
2588
2589 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2590
2591 PR target/89021
2592 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
2593 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2594 SSE emulation.
2595
2596 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2597
2598 PR target/89021
2599 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
2600 or TARGET_MMX_WITH_SSE.
2601 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
2602
2603 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2604
2605 PR target/89021
2606 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
2607
2608 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2609
2610 PR target/89021
2611 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
2612 Changed to define_insn_and_split to support SSE emulation.
2613
2614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2615
2616 PR target/89021
2617 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
2618 Changed to define_insn_and_split to support 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_<emms>): Renamed to ...
2624 (*mmx_<emms>): This.
2625 (mmx_<emms>): New expander.
2626
2627 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2628
2629 PR target/89021
2630 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
2631 support.
2632 (*sse2_umulv1siv1di3): Add SSE2 emulation.
2633
2634 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2635
2636 PR target/89021
2637 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
2638
2639 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2640
2641 PR target/89021
2642 * config/i386/mmx.md (mmx_psadbw): 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_uavgv4hi3): Also check TARGET_MMX and
2648 TARGET_MMX_WITH_SSE.
2649 (*mmx_uavgv4hi3): Add SSE emulation.
2650
2651 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2652
2653 PR target/89021
2654 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
2655 and TARGET_MMX_WITH_SSE.
2656 (*mmx_uavgv8qi3): Add SSE emulation.
2657
2658 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2659
2660 PR target/89021
2661 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
2662 maskmovdqu for __MMX_WITH_SSE__.
2663
2664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2665
2666 PR target/89021
2667 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
2668 TARGET_MMX and TARGET_MMX_WITH_SSE.
2669 (*mmx_umulv4hi3_highpart): Add SSE emulation.
2670
2671 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2672
2673 PR target/89021
2674 * config/i386/mmx.md (mmx_pmovmskb): Changed to
2675 define_insn_and_split to support SSE emulation.
2676
2677 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2678
2679 PR target/89021
2680 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
2681 and TARGET_MMX_WITH_SSE.
2682 (mmx_<code>v8qi3): Likewise.
2683 (smaxmin:<code>v4hi3): New.
2684 (umaxmin:<code>v8qi3): Likewise.
2685 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
2686 (umaxmin:*mmx_<code>v8qi3): Likewise.
2687
2688 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2689
2690 PR target/89021
2691 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
2692 TARGET_MMX_WITH_SSE.
2693 (*mmx_pinsrw): Add SSE emulation.
2694
2695 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2696
2697 PR target/89021
2698 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
2699
2700 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2701
2702 PR target/89021
2703 * config/i386/sse.md (sse_cvtpi2ps): Changed to
2704 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2705 SSE emulation.
2706
2707 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2708
2709 PR target/89021
2710 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
2711 (sse_cvttps2pi): Likewise.
2712
2713 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2714
2715 PR target/89021
2716 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
2717 TARGET_MMX_WITH_SSE.
2718 (mmx_pshufw_1): Add SSE emulation.
2719 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
2720 TARGET_MMX_WITH_SSE to support SSE emulation.
2721
2722 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2723
2724 PR target/89021
2725 * config/i386/constraints.md (Yw): New constraint.
2726 * config/i386/mmx.md (*vec_dupv2si): Changed to
2727 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
2728 support SSE emulation.
2729
2730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2731
2732 PR target/89021
2733 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
2734 TARGET_MMX_WITH_SSE.
2735 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2736 support.
2737 (mmx_gt<mode>3): Likewise.
2738
2739 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2740
2741 PR target/89021
2742 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
2743 TARGET_MMX_WITH_SSE. Add SSE support.
2744
2745 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2746
2747 PR target/89021
2748 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
2749 TARGET_MMX_WITH_SSE.
2750 (any_logic:<code><mode>3): New.
2751 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
2752 Add SSE support.
2753
2754 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2755
2756 PR target/89021
2757 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
2758 TARGET_MMX_WITH_SSE. Add SSE emulation.
2759 (mmx_<shift_insn><mode>3): Likewise.
2760 (ashr<mode>3): New.
2761 (<shift_insn><mode>3): Likewise.
2762
2763 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2764
2765 PR target/89021
2766 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2767 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
2768
2769 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2770
2771 PR target/89021
2772 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2773 TARGET_MMX_WITH_SSE.
2774 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2775 SSE support.
2776
2777 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2778
2779 PR target/89021
2780 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2781 TARGET_MMX_WITH_SSE.
2782 (mulv4hi3): New.
2783 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2784 support.
2785
2786 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2787
2788 PR target/89021
2789 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2790 (plusminus:mmx_<plusminus_insn><mode>3): Check
2791 TARGET_MMX_WITH_SSE.
2792 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2793 (<plusminus_insn><mode>3): New.
2794 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2795 (*mmx_<plusminus_insn><mode>3): Likewise.
2796
2797 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2798
2799 PR target/89021
2800 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2801 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2802 prototype.
2803 * config/i386/mmx.m (mmx_punpckhbw): Changed to
2804 define_insn_and_split to support SSE emulation.
2805 (mmx_punpcklbw): Likewise.
2806 (mmx_punpckhwd): Likewise.
2807 (mmx_punpcklwd): Likewise.
2808 (mmx_punpckhdq): Likewise.
2809 (mmx_punpckldq): Likewise.
2810
2811 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2812 Uros Bizjak <ubizjak@gmail.com>
2813
2814 PR target/89021
2815 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2816 New function.
2817 (ix86_split_mmx_pack): Likewise.
2818 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2819 New prototype.
2820 (ix86_split_mmx_pack): Likewise.
2821 * config/i386/i386.md (mmx_isa): New.
2822 (enabled): Also check mmx_isa.
2823 * config/i386/mmx.md (any_s_truncate): New code iterator.
2824 (s_trunsuffix): New code attr.
2825 (mmx_packsswb): Removed.
2826 (mmx_packssdw): Likewise.
2827 (mmx_packuswb): Likewise.
2828 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2829 MMX packsswb/packuswb with SSE2.
2830 (mmx_packssdw): Likewise.
2831 * config/i386/predicates.md (register_mmxmem_operand): New.
2832
2833 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2834
2835 PR target/89021
2836 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2837 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2838 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2839 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2840 (ix86_vector_mode_supported_p): Likewise.
2841 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2842
2843 2019-05-15 Martin Liska <mliska@suse.cz>
2844
2845 PR middle-end/90478
2846 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2847 Check for overflow.
2848
2849 2019-05-15 Richard Biener <rguenther@suse.de>
2850
2851 * tree-into-ssa.c (pass_build_ssa::execute): Run
2852 update_address_taken before going into SSA.
2853
2854 2019-05-15 Richard Biener <rguenther@suse.de>
2855
2856 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2857 as __BIT_FIELD_REF with type with -gimple.
2858
2859 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
2860
2861 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2862 semantically equivalent branches (left over after prior refactorings).
2863
2864 2019-05-15 Richard Biener <rguenther@suse.de>
2865
2866 PR tree-optimization/88828
2867 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2868 bogus check.
2869
2870 2019-05-14 Richard Biener <rguenther@suse.de>
2871
2872 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2873 as __VIEW_CONVERT with -gimple.
2874
2875 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2876
2877 PR target/82920
2878 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2879 Darwin.
2880
2881 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2882
2883 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2884 define_split to become a define_insn_and_split.
2885
2886 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2887
2888 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2889 arguments.
2890 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2891 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2892 (sibcall_epilogue): Adjust.
2893 (epilogue): Adjust.
2894
2895 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2896
2897 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2898 to unsupported ones.
2899 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2900 * config.host: Likewise.
2901 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2902 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2903 __svr4__]: Remove "brand" fallback.
2904 [!KSTAT_DATA_STRING]: Remove.
2905 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2906 to *-*-solaris2*.
2907 (comdat_group): Likewise.
2908 (set_have_as_tls): Likewise.
2909 (gcc_cv_target_dl_iterate_phdr): Likewise.
2910 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2911 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2912 * configure: Regenerate.
2913 * doc/install.texi: Simplify Solaris target triplets.
2914 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2915 (Specific, *-*-solaris2*): Document Solaris 10 removal.
2916 Remove Solaris 10 references.
2917 Remove obsolete Solaris bug reference.
2918 (Specific, sparc-sun-solaris2.10): Remove.
2919
2920 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
2921
2922 * config/i386/i386.md (any_div): New code iterator.
2923 (paired_mod): New code attribute.
2924 (sgnprefix): Handle DIV and UDIV RTXes.
2925 (u): Ditto.
2926 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2927 and udivmod<mode>4 patterns using any_div code iterator.
2928 (divmod splitters): Macroize splitters using any_div code iterator.
2929 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2930 (*udivmodsi4_pow2_zext_2): Ditto.
2931 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2932 and *udivmod<mode>4_noext patterns using any_div code iterator.
2933 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2934 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2935 patterns using any_div code iterator.
2936 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2937 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2938 patterns using any_div code iterator.
2939 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2940 udivmodhiqi3 patterns using any_extend code iterator.
2941
2942 2019-05-14 Richard Biener <rguenther@suse.de>
2943 H.J. Lu <hongjiu.lu@intel.com>
2944
2945 PR tree-optimization/88828
2946 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2947 permuting in a single non-constant element not extracted
2948 from a vector.
2949
2950 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2951
2952 * internal-fn.def (SIGNBIT): New.
2953 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2954 defined.
2955 (signbitv4sf2): Likewise.
2956
2957 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
2958
2959 PR target/90357
2960 * config/mips/mips.c (mips_split_move): Skip forward SRC into
2961 next insn when the SRC reg is dead.
2962
2963 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
2964
2965 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2966 (alloc_cand_and_find_basis): Ditto.
2967 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2968 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2969 (create_add_imm_cand, slsr_process_cast): Ditto.
2970 (slsr_process_copy, replace_mult_candidate): Ditto.
2971 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2972 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2973 (pass_strength_reduction::execute): Init the first NULL element.
2974
2975 2019-05-13 Nathan Sidwell <nathan@acm.org>
2976
2977 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
2978 (run_attempt): Reformat line break.
2979
2980 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
2981
2982 PR target/90418
2983 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2984 data registers in sibcall epilogues.
2985 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2986
2987 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
2988
2989 PR target/89221
2990 * configure.ac (--enable-frame-pointer):
2991 Disable by default for cygwin and mingw.
2992 * configure: Regenerate.
2993
2994 2019-05-13 Nathan Sidwell <nathan@acm.org>
2995
2996 * dwarf2out.c (breakout_comdat_types): Move comment to correct
2997 piece of code.
2998 (const_ok_for_output_1): Balance parens around #if/#else/#endif
2999 (gen_member_die): Move abstract origin check earlier. Only VARs
3000 can be static_inline_p. Simplify splicing control flow.
3001
3002 2019-05-13 Richard Biener <rguenther@suse.de>
3003
3004 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
3005 VIEW_CONVERT_EXPR.
3006 (vect_build_slp_tree_1): Likewise.
3007
3008 2019-05-13 Richard Biener <rguenther@suse.de>
3009
3010 PR tree-optimization/90402
3011 * tree-if-conv.c (tree_if_conversion): Value number only
3012 the loop body by making the latch an exit of the region
3013 as well.
3014 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
3015 processing PHIs.
3016 (do_rpo_vn): Deal with multiple edges into the entry block
3017 that are not backedges inside the region by skipping PHIs
3018 of the entry block.
3019
3020 2019-05-13 Richard Biener <rguenther@suse.de>
3021
3022 PR tree-optimization/90316
3023 * tree-ssa-pre.c (insert_aux): Fold into ...
3024 (insert): ... this function. Use a RPO walk to reduce the
3025 number of required iterations.
3026
3027 2019-05-13 Martin Liska <mliska@suse.cz>
3028
3029 PR tree-optimization/90416
3030 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
3031 string instead of passing the second part as va_arg argument.
3032
3033 2019-05-13 Martin Liska <mliska@suse.cz>
3034
3035 PR gcov-profile/90380
3036 * gcov.c (handle_cycle): Do not support zero cycle count,
3037 it should not be possible.
3038 (path_contains_zero_cycle_arc): New function.
3039 (circuit): Ignore zero cycle arc counts.
3040
3041 2019-05-13 Martin Liska <mliska@suse.cz>
3042
3043 PR gcov-profile/90380
3044 * gcov.c (enum loop_type): Remove the enum and
3045 the operator.
3046 (handle_cycle): Assert that we should not reach
3047 a negative count.
3048 (circuit): Use loop_found instead of a tri-state loop_type.
3049 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
3050 happen.
3051
3052 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
3053
3054 PR target/82920
3055 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
3056 (ix86_output_indirect_branch_via_reg): Use output mechanism
3057 accounting for __USER_LABEL_PREFIX__.
3058 (ix86_output_indirect_branch_via_push): Likewise.
3059 (ix86_output_function_return): Likewise.
3060 (ix86_output_indirect_function_return): Likewise.
3061
3062 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
3063
3064 * doc/md.texi: Document use of code attributes in rtx patterns.
3065 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
3066 * read-rtl.c (find_code): Split out search loops into...
3067 (maybe_find_code): ...this new function.
3068 (check_code_iterator): Make the error message more informative.
3069 (check_code_attribute): New function.
3070 (rtx_reader::rtx_alloc_for_name): Likewise.
3071 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
3072 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
3073 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
3074 <max_opp> directly as an rtx code instead of via a match_operator.
3075 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
3076 (<su>abd<mode>_3): Update accordingly.
3077
3078 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
3079
3080 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
3081 is given, print the state of the EH "save world" computation for
3082 Darwin.
3083
3084 2019-05-11 Jakub Jelinek <jakub@redhat.com>
3085
3086 PR c++/59813
3087 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
3088 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
3089
3090 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
3091
3092 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
3093 Use pinsrd for TARGET_SSE4_1.
3094 * config/i386/sse.md (movdi_to_sse): Ditto.
3095
3096 2019-05-10 Richard Biener <rguenther@suse.de>
3097
3098 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
3099 (do_rpo_vn): Initialize next_value_id.
3100
3101 2019-05-10 Martin Liska <mliska@suse.cz>
3102
3103 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
3104 Fix plural form.
3105
3106 2019-05-10 Jakub Jelinek <jakub@redhat.com>
3107
3108 PR tree-optimization/90385
3109 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
3110 arguments of the exit phis.
3111
3112 PR c++/90383
3113 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
3114 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
3115 id->do_not_fold.
3116 (copy_tree_body_r): Likewise.
3117 (copy_fn): Set id.do_not_fold to true.
3118
3119 2019-05-10 Martin Liska <mliska@suse.cz>
3120
3121 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
3122 Reapply changes from r269790.
3123
3124 2019-05-10 Martin Liska <mliska@suse.cz>
3125
3126 PR middle-end/90340
3127 * doc/invoke.texi: New params.
3128 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
3129 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
3130 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
3131 Use it.
3132 * tree-switch-conversion.h (struct jump_table_cluster):
3133 Likewise.
3134
3135 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
3136
3137 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
3138
3139 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
3140
3141 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
3142
3143 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
3144
3145 PR rtl-optimization/88879
3146 * sel-sched.c (sel_target_adjust_priority): Remove assert.
3147
3148 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
3149
3150 PR target/90405
3151 * config/arm/arm.c (callee_saved_reg_p): Move before
3152 thumb_find_work_register.
3153 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
3154 thumb_find_work_register. Only call df_get_live_out once.
3155 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
3156 (thumb_find_work_register): Use
3157 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
3158 algorithms to locate a spare call clobbered reg.
3159
3160 2019-05-09 Martin Liska <mliska@suse.cz>
3161
3162 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
3163 and MAX_EXPR in GIMPLE FE format.
3164
3165 2019-05-09 Martin Liska <mliska@suse.cz>
3166
3167 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
3168 * gimple-pretty-print.c (dump_gimple_bb_header):
3169 Dump BB count.
3170 (pp_cfg_jump): Dump edge probability.
3171 * profile-count.c (profile_quality_as_string): Simplify
3172 with a static array.
3173 (parse_profile_quality): New function.
3174 (profile_count::dump): Simplify with a static array.
3175 (profile_count::from_gcov_type): Add new argument.
3176 * profile-count.h (parse_profile_quality): Likewise.
3177 * predict.h (set_hot_bb_threshold): New.
3178 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
3179 New param.
3180 * predict.c (get_hot_bb_threshold): Set from the new param.
3181 (set_hot_bb_threshold): New.
3182
3183 2019-05-09 Richard Biener <rguenther@suse.de>
3184
3185 PR tree-optimization/90395
3186 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
3187 rewrite vector stores that throw internally.
3188
3189 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
3190
3191 * cif-code.def (CHKP): Remove.
3192
3193 PR target/89221
3194 * configure.ac (--enable-frame-pointer): Disable by default for
3195 GNU systems.
3196 * configure: Regenerate.
3197
3198 2019-05-09 Alan Modra <amodra@gmail.com>
3199
3200 PR target/89271
3201 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
3202 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
3203 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
3204 cost for general <-> vsx when direct moves are available.
3205 Cost union classes at minimal cost for any reg in the class.
3206 Correct calculation for moves between vsx, float, and altivec.
3207 Don't return a low cost for moves between special regs. Don't
3208 use hard coded register numbers.
3209 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
3210 (rs6000_ira_change_pseudo_allocno_class): New function.
3211 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
3212 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
3213 alternatives.
3214 (movsi_internal1): Don't disparage vector alternatives.
3215 (mov<mode>_internal): Likewise, excepting alternative that
3216 will be split.
3217 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
3218 we <- b alternative.
3219
3220 2019-05-08 Jakub Jelinek <jakub@redhat.com>
3221
3222 PR c++/59813
3223 PR tree-optimization/89060
3224 * tree-ssa-live.h (live_vars_map): New typedef.
3225 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
3226 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
3227 (struct compute_live_vars_data): New type.
3228 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
3229 live_vars_at_stmt, destroy_live_vars): New functions.
3230 * tree-tailcall.c: Include tree-ssa-live.h.
3231 (live_vars, live_vars_vec): New global variables.
3232 (find_tail_calls): Perform variable life analysis before punting.
3233 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
3234 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
3235 member.
3236 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
3237 Perform variable life analysis to select variables that really need
3238 clobbers added.
3239 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
3240 instead set id->eh_landing_pad_dest and assert it is the same.
3241 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
3242
3243 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
3244 Richard Earnshaw <rearnsha@arm.com>
3245
3246 PR target/88167
3247 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
3248 function.
3249 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
3250 (thumb1_compute_save_core_reg_mask): Don't force a spare work
3251 register if both the epilogue and prologue can use call-clobbered
3252 regs.
3253 (thumb1_unexpanded_epilogue): Use
3254 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
3255 picking temporaries for restoring high regs to match that of the
3256 prologue where possible.
3257 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
3258 the list of work registers. Detect if the return address is still live
3259 at the end of the prologue and avoid using it for a work register if so.
3260 If the return address is not live, add LR to the list of pushable regs
3261 after the first pass.
3262
3263 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
3264
3265 PR tree-optimization/90078
3266 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
3267 (INFTY): Increase the value for infinite cost.
3268 (struct comp_cost): Promote type of members to int64_t.
3269 (infinite_cost): Don't set complexity in initialization.
3270 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
3271 overflows to infinite_cost.
3272 (adjust_setup_cost): Promote type of parameter and cost computation
3273 to int64_t.
3274 (struct ainc_cost_data, struct iv_ca): Promote type of member to
3275 int64_t.
3276 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
3277 cost computation to int64_t.
3278 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
3279 int64_t's format specifier in dump.
3280
3281 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
3282
3283 PR tree-optimization/90240
3284 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
3285 with respect to scaling factor pre-computed for each basic block.
3286 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
3287 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
3288 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
3289 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
3290 live range for array of loop's basic blocks. Cleanup aux field of
3291 loop's basic blocks.
3292
3293 2019-05-08 Jakub Jelinek <jakub@redhat.com>
3294
3295 PR tree-optimization/90356
3296 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
3297
3298 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
3299
3300 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
3301 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
3302 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
3303 (ix86_handle_option): Handle -mavx512bf16.
3304 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
3305 to extra_headers.
3306 * config/i386/avx512bf16vlintrin.h: New.
3307 * config/i386/avx512bf16intrin.h: New.
3308 * config/i386/cpuid.h (bit_AVX512BF16): New.
3309 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
3310 * config/i386/i386-builtin-types.def: Add new types.
3311 * config/i386/i386-builtin.def: Add new builtins.
3312 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3313 __AVX512BF16__.
3314 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
3315 (ix86_option_override_internal): Handle BF16.
3316 (ix86_valid_target_attribute_inner_p): Ditto.
3317 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
3318 * config/i386/i386-builtin.c (enum processor_features): Add
3319 F_AVX512BF16.
3320 (static const _isa_names_table isa_names_table): Ditto.
3321 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
3322 (PTA_AVX512BF16): Ditto.
3323 * config/i386/i386.opt: Add -mavx512bf16.
3324 * config/i386/immintrin.h: Include avx512bf16intrin.h
3325 and avx512bf16vlintrin.h.
3326 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
3327 avx512f_cvtneps2bf16_<mode><mask_name>,
3328 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
3329 * config/i386/subst.md (mask_half): Add new subst.
3330 * doc/invoke.texi: Document -mavx512bf16.
3331
3332 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
3333
3334 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
3335 Delete declaration.
3336 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
3337 (rs6000_debug_legitimize_reload_address): Delete.
3338 (rs6000_legitimize_reload_address_ptr): Delete.
3339 (rs6000_option_override_internal): Adjust.
3340 (mem_operand_gpr): Adjust comment.
3341 (legitimate_lo_sum_address_p): Ditto.
3342 (rs6000_legitimize_reload_address): Delete.
3343 (rs6000_debug_legitimize_reload_address): Delete.
3344 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
3345
3346 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
3347
3348 PR target/89765
3349 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3350 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
3351 to compute vector element selector for both constant and variable
3352 operands.
3353
3354 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3355
3356 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
3357 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
3358 ashrdi3_cvt using SWI48 mode iterator.
3359
3360 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3361
3362 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
3363 (aarch64_<su>abd<mode>_3): Likewise.
3364 (*aarch64_<su>abd<mode>_3): New define_insn.
3365 (<sur>sad<vsi2qi>): New define_expand.
3366 * config/aarch64/iterators.md: Added MAX_OPP attribute.
3367 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
3368 (build_vect_cond_expr): Likewise.
3369
3370 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3371
3372 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
3373 clobbers outside of accessible_reg_set.
3374 * config/i386/i386.c (ix86_conditional_register_usage):
3375 Disable register sets by clearing corresponding bits in
3376 accessible_reg_set. Do not set corresponding bits in fixed_regs,
3377 call_used_regs and don't clear corresponding reg_names array members.
3378
3379 2019-05-07 Richard Biener <rguenther@suse.de>
3380
3381 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
3382 not specified still compute a comp_vectype for invariant
3383 compares.
3384
3385 2019-05-07 Richard Biener <rguenther@suse.de>
3386
3387 PR tree-optimization/90316
3388 * tree-ssa-pre.c (translate_vuse_through_block): When
3389 same_valid is NULL do not bother to search for a virtual
3390 PHI continuation.
3391 (phi_translate_1): When operands changed we cannot keep
3392 the same value-number so do not bother to ask whether
3393 that's possible from translate_vuse_through_block.
3394
3395 2019-05-07 Martin Liska <mliska@suse.cz>
3396
3397 * bitmap.c (bitmap_register): Come up with
3398 alloc_descriptor_max_uid and assign it for
3399 a new bitmap.
3400 (register_overhead): Use get_descriptor as
3401 a descriptor.
3402 (release_overhead): New.
3403 (bitmap_elem_to_freelist): Call it.
3404 (bitmap_elt_clear_from): Likewise.
3405 (bitmap_obstack_free): Likewise.
3406 (bitmap_move): Sensitively release memory.
3407 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
3408 (bitmap_initialize): Initialize alloc_descriptor to zero.
3409 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
3410
3411 2019-05-07 Richard Biener <rguenther@suse.de>
3412
3413 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
3414 we build a SLP node. Remove max_size and limiting.
3415 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
3416
3417 2019-05-07 Richard Biener <rguenther@suse.de>
3418
3419 PR tree-optimization/90316
3420 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
3421 limit by reference.
3422 (walk_non_aliased_vuses): Take walking limit argument.
3423 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
3424 walking if it is reached instead of just counting.
3425 (get_continuation_for_phi): Likewise.
3426 (walk_non_aliased_vuses): Likewise, instead of leaving counter
3427 limiting to the callback.
3428 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
3429 (vn_reference_lookup_3): Likewise.
3430 (vn_reference_lookup_pieces): Likewise.
3431 (vn_reference_lookup): Likewise.
3432 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
3433 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
3434 (avail_exprs_stack::lookup_avail_expr): Likewise.
3435
3436 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
3437
3438 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
3439 for comparaible types in the second direction even if first one
3440 hits incomparable type.
3441
3442 2019-05-07 Richard Biener <rguenther@suse.de>
3443
3444 PR lto/90369
3445 * lto-wrapper.c (debug_objcopy): Use the original filename
3446 including archive offset for the filename used for -save-temps.
3447
3448 2019-05-07 Li Jia He <helijia@linux.ibm.com>
3449
3450 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
3451 detection.
3452
3453 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
3454 Hongtao Liu <hongtao.liu@intel.com>
3455
3456 PR target/89750
3457 PR target/86444
3458 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
3459 Modified, original implementation isn't correct.
3460
3461 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3462
3463 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
3464 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
3465 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
3466 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
3467 (FRAME_POINTER_REGNUM): Change numbering.
3468 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
3469 (alt_reg_names): Adjust.
3470 (rs6000_conditional_register_usage): Don't mark hard register 64 as
3471 fixed.
3472 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3473 (DWARF_FRAME_REGISTERS): Delete.
3474 (DWARF2_FRAME_REG_OUT): Fix whitespace.
3475 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3476 Adjust.
3477 (REG_ALLOC_ORDER): Adjust.
3478 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
3479 (REG_CLASS_CONTENTS): Adjust.
3480 (RETURN_ADDR_RTX): Change comment.
3481 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
3482 instead of 67.
3483 (REGISTER_NAMES): Adjust.
3484 (ADDITIONAL_REGISTER_NAMES): Adjust.
3485 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3486
3487 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3488
3489 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
3490 Delete.
3491 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3492 (DWARF_FRAME_REGISTERS): Adjust.
3493 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3494 Adjust.
3495 (REG_ALLOC_ORDER): Adjust.
3496 (enum reg_class): Delete SPR_REGS.
3497 (REG_CLASS_NAMES): Delete SPR_REGS.
3498 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
3499 (REGISTER_NAMES): Adjust.
3500 (ADDITIONAL_REGISTER_NAMES): Adjust.
3501 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3502 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
3503 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
3504 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
3505 (htm_spr_regno): Delete.
3506 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
3507 argument.
3508 (rs6000_dbx_register_number): Adjust.
3509
3510 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3511
3512 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
3513
3514 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3515
3516 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
3517 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
3518
3519 2019-05-06 Jakub Jelinek <jakub@redhat.com>
3520
3521 PR tree-optimization/88709
3522 PR tree-optimization/90271
3523 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
3524 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
3525 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
3526 variable.
3527 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
3528 of the store merging group is larger than
3529 PARAM_STORE_MERGING_MAX_SIZE parameter.
3530 (split_group): Add bzero_first argument. If set, always emit first
3531 the first store which must be = {} of the whole area and then for the
3532 rest of the stores consider all zero bytes as paddings.
3533 (imm_store_chain_info::output_merged_store): Check if first store
3534 is = {} of the whole area and if yes, determine which setting of
3535 bzero_first for split_group gives smaller number of stores. Adjust
3536 split_group callers.
3537 (lhs_valid_for_store_merging_p): Allow decls.
3538 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
3539 no elts.
3540 (pass_store_merging::process_store): Likewise.
3541
3542 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3543
3544 PR target/89424
3545 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3546 handling of V1TImode.
3547
3548 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
3549
3550 PR target/89221
3551 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
3552 and enable_frame_pointer ...
3553 * configure.ac: ... here. Update help strings for
3554 --enable-frame-pointer.
3555 * configure: Regenerate.
3556 * config/i386/i386-options.c (ix86_option_override_internal): Remove
3557 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
3558 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
3559 (USE_X86_64_FRAME_POINTER): Ditto.
3560
3561 2019-05-06 Martin Liska <mliska@suse.cz>
3562
3563 * config.gcc: Append to target_gtfiles and fix indentation.
3564
3565 2019-05-06 Richard Biener <rguenther@suse.de>
3566
3567 PR tree-optimization/90358
3568 * tree-vect-stmts.c (get_group_load_store_type): Properly
3569 detect unused upper half of load.
3570 (vectorizable_load): Likewise.
3571
3572 2019-05-06 Richard Biener <rguenther@suse.de>
3573
3574 PR tree-optimization/88828
3575 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
3576 (simplify_vector_constructor): ...here. Handle constants in
3577 the constructor.
3578
3579 2019-05-06 Richard Biener <rguenther@suse.de>
3580
3581 PR tree-optimization/90328
3582 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
3583 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
3584 is valid in the loop nest before using it.
3585 (initialize_data_dependence_relation): Adjust.
3586 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
3587 loop as loop-nest to dr_may_alias_p.
3588
3589 2019-05-06 Richard Biener <rguenther@suse.de>
3590
3591 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
3592
3593 2019-05-06 Richard Biener <rguenther@suse.de>
3594
3595 PR tree-optimization/90316
3596 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
3597 compute target on demand.
3598 (get_continuation_for_phi): Remove code walking stmts to
3599 get to a target virtual operand which could end up being
3600 quadratic.
3601
3602 2019-05-06 Martin Liska <mliska@suse.cz>
3603
3604 PR sanitizer/90312
3605 * config/i386/i386-options.c (ix86_option_override_internal): Error only
3606 when -mabi is selected to a non-default version.
3607
3608 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
3609 Martin Liska <mliska@suse.cz>
3610
3611 * Makefile.in: Add lto-dump.texi.
3612 * cgraph.h: Add new functions get_visibility_string and
3613 get_symtab_type_string.
3614 * doc/gcc.texi: Include lto-dump section.
3615 * doc/lto-dump.texi: New file.
3616 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
3617 (parse_dump_option): Factor out this function.
3618 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
3619 (parse_dump_option): Export the function.
3620 * symtab.c (symtab_node::get_visibility_string): New function.
3621 (symtab_node::get_symtab_type_string): Likewise.
3622
3623 2019-05-06 Martin Liska <mliska@suse.cz>
3624
3625 * config/i386/i386-builtins.c: New file.
3626 * config/i386/i386-builtins.h: New file.
3627 * config/i386/i386-expand.c: New file.
3628 * config/i386/i386-expand.h: New file.
3629 * config/i386/i386-features.c: New file.
3630 * config/i386/i386-features.h: New file.
3631 * config/i386/i386-options.c: New file.
3632 * config/i386/i386-options.h: New file.
3633 * config.gcc: Add new files into extra_objs and
3634 target_gtfiles.
3635 * config/i386/i386.c: Split content of the file
3636 into newly introduced files.
3637 * config/i386/i386.h: Declare common variables
3638 and macros.
3639 * config/i386/t-i386: Define dependencies for new files.
3640
3641 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
3642
3643 PR target/89400
3644 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
3645 Restrict 'all' variant to 32-bit configurations.
3646 (unaligned_loadhiu): Likewise.
3647 (unaligned_storehi): Likewise.
3648 (unaligned_storesi): Likewise.
3649 (unaligned_loadhis): Disable when compiling for thumb1.
3650
3651 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
3652
3653 PR tree-optimization/90269
3654 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
3655 Ignore clobbers.
3656
3657 2019-05-03 Martin Liska <mliska@suse.cz>
3658
3659 * hash-map.h: Add is_empty function.
3660 * hash-set.h: Likewise.
3661 * hash-table.h: Likewise.
3662 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
3663 elements () == 0 (and similar usages).
3664 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
3665 * gimplify.c (gimplify_bind_expr): Likewise.
3666 (gimplify_switch_expr): Likewise.
3667 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
3668 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
3669 * postreload-gcse.c (dump_hash_table): Likewise.
3670 (gcse_after_reload_main): Likewise.
3671 * predict.c (combine_predictions_for_bb): Likewise.
3672 * tree-parloops.c (reduction_phi): Likewise.
3673 (separate_decls_in_region): Likewise.
3674 (transform_to_exit_first_loop): Likewise.
3675 (gen_parallel_loop): Likewise.
3676 (gather_scalar_reductions): Likewise.
3677 (try_create_reduction_list): Likewise.
3678 * var-tracking.c (dump_vars): Likewise.
3679 (emit_notes_for_changes): Likewise.
3680 (vt_emit_notes): Likewise.
3681
3682 2019-05-03 Richard Biener <rguenther@suse.de>
3683
3684 PR tree-optimization/90316
3685 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
3686 before running VN.
3687
3688 2019-05-03 Richard Biener <rguenther@suse.de>
3689
3690 * tree-vect-stmts.c (get_group_load_store_type): Avoid
3691 peeling for gaps by loading only lower halves of vectors
3692 if possible.
3693 (vectorizable_load): Likewise.
3694
3695 2019-05-03 Richard Biener <rguenther@suse.de>
3696
3697 PR middle-end/89518
3698 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
3699
3700 2019-05-03 Richard Biener <rguenther@suse.de>
3701
3702 PR middle-end/87314
3703 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
3704 Handle STRING_CST vs DECL or STRING_CST.
3705
3706 2019-05-03 Richard Biener <rguenther@suse.de>
3707
3708 PR tree-optimization/88963
3709 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
3710 vector loads feeding only BIT_FIELD_REFs to component
3711 loads. Rewrite stores fed by CONSTRUCTORs to component
3712 stores.
3713
3714 2019-05-03 Jakub Jelinek <jakub@redhat.com>
3715
3716 * opts.h (finish_options): Remove lang_mask argument.
3717 (print_help, help_option_argument): Declare.
3718 * opts.c (print_help): Remove forward declaration, no longer static.
3719 (finish_options): Remove lang_mask argument, don't call print_help
3720 here.
3721 * opts-global.c (decode_options): Adjust finish_option caller, call
3722 print_help here.
3723
3724 PR tree-optimization/90303
3725 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
3726 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
3727
3728 2019-05-03 Richard Biener <rguenther@suse.de>
3729
3730 PR tree-optimization/89698
3731 * gimple-fold.c (canonicalize_constructor_val): Early out
3732 for constants, handle unfolded INTEGER_CSTs as they appear in
3733 C++ virtual table ctors.
3734
3735 2019-05-03 Richard Biener <rguenther@suse.de>
3736
3737 * passes.c (execute_function_todo): Remove dead code.
3738
3739 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3740
3741 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
3742 the internal register number, for any "real" register.
3743
3744 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3745
3746 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
3747 correct numbers for TFHAR, TFIAR, TEXASR.
3748
3749 2019-05-02 Richard Biener <rguenther@suse.de>
3750
3751 PR tree-optimization/89653
3752 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
3753 update-address-taken before the pass.
3754 * passes.def (pass_tree_loop_init): Put comment before it.
3755
3756 2019-05-02 Richard Biener <rguenther@suse.de>
3757
3758 PR tree-optimization/89509
3759 * tree-ssa-structalias.c (compute_dependence_clique): Look
3760 at the first subvar when determining whether it is restrict.
3761
3762 2019-05-02 Richard Biener <rguenther@suse.de>
3763
3764 PR tree-optimization/90273
3765 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3766 useless debug stmts.
3767
3768 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3769
3770 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3771 ACLE branch.
3772 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3773 SVE ACLE branch.
3774 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3775 VEC_COND_EXPR be inserted to emulate a conditional internal function.
3776 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3777 (vectorizable_reduction): Use the functions above to vectorize in a
3778 fully masked loop codes that don't have a conditional internal
3779 function.
3780
3781 2019-05-02 Martin Liska <mliska@suse.cz>
3782
3783 * cgraphclones.c: Call valid_attribute_p with 1 for
3784 target_clone.
3785 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3786 it's for target attribute.
3787 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3788 Add new boolean argument.
3789 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3790 Likewise.
3791 (ix86_valid_target_attribute_tree): Pass target_clone_attr
3792 to ix86_valid_target_attribute_inner_p.
3793 (ix86_valid_target_attribute_p): Pass flags argument to
3794 ix86_valid_target_attribute_inner_p.
3795 (get_builtin_code_for_version): Use 0 as it's target attribute.
3796
3797 2019-05-02 Martin Liska <mliska@suse.cz>
3798
3799 * gcc.c (process_command): Add dummy file only
3800 if n_infiles == 0.
3801 * opts-global.c (decode_options): Pass lang_mask.
3802 * opts.c (print_help): New function.
3803 (finish_options): Print --help if help_option_argument
3804 is set.
3805 (common_handle_option): Factor out content of OPT__help_
3806 into print_help.
3807 * opts.h (finish_options): Add new argument.
3808
3809 2019-05-02 Martin Liska <mliska@suse.cz>
3810
3811 PR target/88809
3812 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3813 With -minline-all-stringops use inline expansion using 4B loop.
3814 * doc/invoke.texi: Document the change of
3815 -minline-all-stringops.
3816
3817 2019-05-01 Jeff Law <law@redhat.com>
3818
3819 PR tree-optimization/88797
3820 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3821 PHI feeds a conditional on the RHS of an assignment.
3822
3823 2019-04-30 Andrew Waterman <andrew@sifive.com>
3824 Jim Wilson <jimw@sifive.com>
3825
3826 * config/riscv/constraints.md (L): New.
3827 * config/riscv/predicates.md (lui_operand): New.
3828 (sfb_alu_operand): New.
3829 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3830 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3831 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3832 * config/riscv/risc.md (type): Add sfb_alu.
3833 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
3834 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
3835 (branch_zero<mode>): Delete.
3836 (mov<mode>cc): New.
3837 (mov<GPR:mode><X:mode>cc): Likewise.
3838 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
3839
3840 2019-04-30 Nathan Sidwell <nathan@acm.org>
3841
3842 * tree.h (MARK_TS_EXP): New.
3843
3844 2019-04-30 Martin Liska <mliska@suse.cz>
3845
3846 * opts.c (enable_warning_as_error): Provide hints
3847 for unknown options.
3848
3849 2019-04-30 Martin Liska <mliska@suse.cz>
3850
3851 PR debug/90288
3852 * doc/invoke.texi: Add missing dash for gas-locview-support
3853 and gno-as-locview-support.
3854
3855 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3856
3857 PR target/89093
3858 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3859 whitespace at the start of target attribute string.
3860
3861 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3862
3863 PR target/86538
3864 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3865 Define __ARM_FEATURE_ATOMICS.
3866
3867 2019-04-30 Martin Liska <mliska@suse.cz>
3868
3869 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3870 into built_in_function enum. Remove code for endp == 2 and
3871 use BUILT_IN_* constants.
3872 (gimple_fold_builtin): Call the function with fcode.
3873
3874 2019-04-30 Martin Liska <mliska@suse.cz>
3875
3876 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3877 DECL_FUNCTION_CODE into ix86_builtins enum before
3878 the switch statement.
3879
3880 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3881
3882 PR tree-optimization/89475
3883 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3884 calls.
3885
3886 2019-04-30 Martin Liska <mliska@suse.cz>
3887
3888 PR translation/90274
3889 * opts.c (print_filtered_help): Wrap string in _(...).
3890
3891 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
3892
3893 PR tree-optimization/90240
3894 Revert:
3895 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3896
3897 PR tree-optimization/90078
3898 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3899 checks for infinite_cost overflow.
3900
3901 2019-04-29 Jeff Law <law@redhat.com>
3902
3903 * passes.def: Move -Wrestrict pass after copy propagation.
3904
3905 2019-04-29 Maya Rashish <coypu@sdf.org>
3906
3907 * config.gcc (default_gnu_indirect_function): Default to yes
3908 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3909 sparc*-*-netbsd*, x86_64-*-netbsd*.
3910
3911 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
3912
3913 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3914 where cond2 is NE_EXPR.
3915 (is_value_included_in): Update comment.
3916
3917 2019-04-29 Richard Biener <rguenther@suse.de>
3918
3919 PR tree-optimization/90278
3920 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3921 EH on comparison simplification.
3922
3923 2019-04-29 Jason Merrill <jason@redhat.com>
3924
3925 PR c++/82081 - tail call optimization breaks noexcept
3926 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3927 nothrow function to a might-throw function into a tail call.
3928
3929 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
3930
3931 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3932 (DDR_INNER_LOOP): Likewise.
3933 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3934 (initialize_data_dependence_relation): Likewise.
3935 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3936
3937 2019-04-29 Jakub Jelinek <jakub@redhat.com>
3938
3939 PR rtl-optimization/90257
3940 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3941 return value.
3942
3943 Revert the revert:
3944 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3945
3946 PR target/90178
3947 Revert:
3948 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3949
3950 Revert the revert:
3951 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3952
3953 Revert:
3954 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3955
3956 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3957
3958 2019-04-29 Richard Biener <rguenther@suse.de>
3959
3960 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3961 rhs issue a reset.
3962
3963 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
3964
3965 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
3966 varasm.h, and netbsd-protos.h.
3967
3968 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
3969
3970 PR target/89261
3971 * config/i386/i386-protos.h (ix86_data_alignment): Change
3972 the second argument type to unsigned int.
3973 * config/i386/i386.c (ix86_data_alignment): Change "align"
3974 argument type to unsigned int.
3975
3976 2019-04-27 Martin Liska <mliska@suse.cz>
3977
3978 PR middle-end/90258
3979 * opt-suggestions.c (option_proposer::build_option_suggestions):
3980 When get_valid_option_values returns empty values, add the
3981 misspelling candidate.
3982
3983 2019-04-26 Jim Wilson <jimw@sifive.com>
3984
3985 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3986 parameter.
3987 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3988 Pass orig_mode to riscv_build_integer.
3989 (riscv_split_integer): Pass mode to riscv_move_integer.
3990 (riscv_legitimize_const_move): Likewise.
3991 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3992 promoted_mode. Replace force_reg call with code to load constant into
3993 promoted reg and then subreg it for the store.
3994 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3995 riscv_move_integer.
3996
3997 2018-04-26 Eugene Sharygin <eush@ispras.ru>
3998
3999 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
4000 corrupt codes.
4001
4002 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
4003
4004 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
4005 commentary about the encoding of precision.
4006
4007 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
4008
4009 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
4010 * config/i386/t-freebsd64: New file.
4011 * config.gcc: Add the t-freebsd64 for multilib support.
4012
4013 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
4014
4015 * doc/extend.texi (vector_size): Add missing comma after @xref.
4016
4017 2019-04-25 Jakub Jelinek <jakub@redhat.com>
4018
4019 * BASE-VER: Set to 10.0.0.
4020
4021 2019-04-25 Richard Biener <rguenther@suse.de>
4022
4023 PR middle-end/89765
4024 * gimplify.c (gimplify_expr): Avoid turning a lvalue
4025 VIEW_CONVERT_EXPR into one operating on an rvalue.
4026
4027 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
4028
4029 PR target/89929
4030 * config/i386/i386.c (feature_priority): Moved to file scope.
4031 (processor_features): Likewise.
4032 (processor_model): Likewise.
4033 (_arch_names_table): Likewise.
4034 (arch_names_table): Likewise.
4035 (_feature_list): Removed.
4036 (feature_list): Likewise.
4037 (_isa_names_table): Moved to file scope. Add priority.
4038 (isa_names_table): Likewise.
4039 (get_builtin_code_for_version): Replace feature_list with
4040 isa_names_table. Update error message for P_ZERO priority.
4041
4042 2019-04-25 Richard Biener <rguenther@suse.de>
4043
4044 * tree-pass.h (make_pass_phi_only_cprop): Remove.
4045 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
4046
4047 2019-04-24 Jeff Law <law@redhat.com>
4048
4049 PR tree-optimization/90037
4050 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
4051 * passes.def: Replace all instance of phi-only cprop with the
4052 lattice propagator. Move propagation pass from after erroneous
4053 path isolation to before erroneous path isolation.
4054 * tree-ssa-phionlycprop.c: Remove.
4055
4056 2019-04-24 Richard Biener <rguenther@suse.de>
4057
4058 PR middle-end/90213
4059 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
4060 by size and BITS_PER_UNIT on poly-wide-ints.
4061
4062 2019-04-25 Richard Biener <rguenther@suse.de>
4063
4064 PR middle-end/90194
4065 * match.pd: Add pattern to simplify view-conversion of an
4066 empty constructor.
4067
4068 2019-04-24 Clement Chigot <clement.chigot@atos.net>
4069
4070 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
4071 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
4072 for Go on 32 bit AIX.
4073 * config/rs6000/aix72.h: Likewise.
4074
4075 2019-04-24 Jakub Jelinek <jakub@redhat.com>
4076
4077 PR target/90193
4078 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
4079 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
4080
4081 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
4082
4083 PR target/89952
4084 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
4085 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
4086 for restored hard frame pointer.
4087 (s390_sched_dependencies_evaluation): Implement new target hook.
4088 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
4089
4090 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
4091
4092 * config/arc/arc-options.def: Fix typos and spelling mistakes.
4093 * config/arc/arc.c (arc_init): Cleanup warning message.
4094 (arc_override_options): Likewise.
4095
4096 2019-04-24 Jakub Jelinek <jakub@redhat.com>
4097
4098 PR target/90187
4099 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
4100 a register if both if_true and if_false are MEMs.
4101
4102 PR tree-optimization/90208
4103 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
4104 after labels of new_bb, not before them.
4105
4106 PR tree-optimization/90211
4107 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
4108 which are not SSA_NAMEs.
4109
4110 2018-04-23 Sudakshina Das <sudi.das@arm.com>
4111
4112 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
4113 AArch64.
4114 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
4115
4116 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
4117
4118 PR rtl-optimization/87979
4119 * modulo-sched.c (sms_schedule): Start ii value "mii" should
4120 not equal zero.
4121
4122 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
4123
4124 PR rtl-optimization/84032
4125 * modulo-sched.c (ps_insn_find_column): Change condition so that
4126 branch will always be the last insn in a row inside partial
4127 schedule.
4128
4129 2019-04-23 Richard Biener <rguenther@suse.de>
4130
4131 PR debug/90131
4132 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
4133 dest_single_pred_p argument.
4134 (remove_forwarder_block): Adjust.
4135 (remove_forwarder_block_with_phi): Likewise.
4136
4137 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4138 Bernd Edlinger <bernd.edlinger@hotmail.de>
4139 Jakub Jelinek <jakub@redhat.com>
4140
4141 PR target/89093
4142 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
4143 if used with general-regs-only.
4144 (arm_conditional_register_usage): Don't add non-general regs if
4145 general-regs-only.
4146 (arm_valid_target_attribute_rec): Handle general-regs-only.
4147 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
4148 general-regs-only.
4149 (TARGET_HARD_FLOAT_SUB): Define.
4150 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
4151 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
4152 (TARGET_REALLY_IWMMXT2): Likewise.
4153 * config/arm/arm.opt: Add -mgeneral-regs-only.
4154 * doc/extend.texi: Document ARM general-regs-only target.
4155 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
4156
4157 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
4158
4159 PR tree-optimization/90078
4160 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
4161 checks for infinite_cost overflow.
4162
4163 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
4164
4165 PR tree-optimization/90021
4166 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
4167 and check univariate against it.
4168 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
4169 * tree-data-ref.c (add_other_self_distances): Pass new argument.
4170
4171 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
4172
4173 PR target/90178
4174 Revert:
4175 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
4176
4177 Revert the revert:
4178 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
4179
4180 Revert:
4181 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
4182
4183 * lra-spills.c (lra_final_code_change): Remove useless move insns.
4184
4185 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
4186
4187 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
4188 names using operand format, rather than hard-wired.
4189 (speculation_barrier): Likewise.
4190
4191 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
4192
4193 PR tree-optimization/88055
4194 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
4195 (gen_one_condition): Use it if !HONOR_NANS.
4196
4197 2019-04-19 Jakub Jelinek <jakub@redhat.com>
4198
4199 PR middle-end/90139
4200 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
4201 assign_temp instead of gen_reg_rtx.
4202
4203 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
4204
4205 PR translation/90118
4206 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4207 Add missing space before %<.
4208
4209 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
4210
4211 PR rtl-optimization/87871
4212 * ira-lives.c (make_object_dead): Don't add conflicts to
4213 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
4214
4215 2019-04-18 Martin Sebor <msebor@redhat.com>
4216
4217 PR middle-end/89797
4218 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
4219 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
4220 assuming type size fits in SHWI.
4221
4222 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
4223
4224 PR ipa/85051
4225 * ipa-inline.c (flatten_function): New parameter UPDATE.
4226 (ipa_inline, early_inliner): Use it.
4227
4228 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
4229
4230 * fold-const.c (int_const_binop): Return early on failure.
4231
4232 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
4233
4234 PR middle-end/85164
4235 * combine.c (force_int_to_mode): Cast the argument rather than
4236 the result of known_alignment.
4237 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
4238
4239 2019-04-18 Richard Biener <rguenther@suse.de>
4240
4241 PR debug/90131
4242 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
4243 out from ...
4244 (remove_forwarder_block): ... here.
4245 (remove_forwarder_block_with_phi): Also move debug stmts here.
4246
4247 2019-04-18 Jakub Jelinek <jakub@redhat.com>
4248
4249 PR translation/79183
4250 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
4251 inform where appropriate.
4252
4253 2019-04-18 Richard Biener <rguenther@suse.de>
4254
4255 * tree.c (get_qualified_type): Put found type variants at the
4256 head of the variant list.
4257
4258 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4259
4260 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
4261
4262 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
4263
4264 PR target/90125
4265 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
4266 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
4267 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
4268 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
4269 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
4270
4271 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
4272
4273 * ira-conflicts.c (print_allocno_conflicts): Always print something,
4274 even for allocno's with no conflicts.
4275 (print_conflicts): Print an extra newline.
4276
4277 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4278
4279 * auto-inc-dec.c (attempt_change): Set the alignment of the
4280 temporary memory to that of the original.
4281
4282 2019-04-17 Joao Moreira <jmoreira@suse.de>
4283
4284 * targhooks.c (default_print_patchable_function_entry): Emit
4285 __patchable_function_entries section with writable flags to allow
4286 relocation resolution.
4287
4288 2019-04-17 Jonny Grant <jg@jguk.org>
4289
4290 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
4291
4292 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4293
4294 PR middle-end/90095
4295 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
4296 on lowpart SUBREGs.
4297
4298 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
4299
4300 * config/arc/arc.c (arc_init): Format diagnostic string.
4301 (arc_override_options): Likewise.
4302 (check_if_valid_regno_const): Likewise.
4303 (arc_reorg): Likewise.
4304
4305 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4306
4307 PR target/17108
4308 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
4309 name.
4310 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
4311 name.
4312 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
4313 (*movdi_update1): Use Pmode.
4314 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
4315 (movdi_<mode>_update_stack): Rename to ...
4316 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
4317 use Pmode.
4318 (*movsi_update1): Use Pmode.
4319 (*movsi_update2): Use Pmode.
4320 (movsi_update): Rename to ...
4321 (movsi_<mode>_update): ... this. Use Pmode.
4322 (movsi_update_stack): Fix condition.
4323 (*movhi_update1): Use Pmode. Fix argument to
4324 avoiding_indexed_address_p.
4325 (*movhi_update2): Ditto.
4326 (*movhi_update3): Ditto.
4327 (*movhi_update4): Ditto.
4328 (*movqi_update1): Ditto.
4329 (*movqi_update2): Ditto.
4330 (*movqi_update3): Ditto.
4331 (*movsf_update1, *movdf_update1): Merge, rename to...
4332 (*mov<mode>_update1): This. Use Pmode. Fix argument to
4333 avoiding_indexed_address_p. Add "size" attribute.
4334 (*movsf_update2, *movdf_update2): Merge, rename to...
4335 (*mov<mode>_update2): This. Ditto.
4336 (*movsf_update3): Use Pmode. Fix argument to
4337 avoiding_indexed_address_p.
4338 (*movsf_update4): Ditto.
4339 (allocate_stack): Simplify condition. Adjust pattern names.
4340
4341 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4342
4343 PR target/89093
4344 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
4345 whitespace at the start of target attribute string.
4346
4347 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
4348
4349 PR target/84369
4350 * config/rs6000/power9.md: Add store forwarding bypass.
4351
4352 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
4353
4354 PR debug/89528
4355 * valtrack.c (dead_debug_insert_temp): Reset debug references
4356 to the return value of a call being removed.
4357
4358 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4359
4360 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
4361 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
4362 implement target hook.
4363 (arc_memory_move_cost): New function.
4364 (TARGET_REGISTER_MOVE_COST): Define.
4365 (TARGET_MEMORY_MOVE_COST): Likewise.
4366 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
4367 (MEMORY_MOVE_COST): Likewise.
4368
4369 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4370
4371 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
4372 (sibcall_value_insn): Likewise.
4373 * config/arc/constraints.md (Rs5): Remove.
4374
4375 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4376
4377 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
4378 for last two fake registers.
4379 (arc_conditional_register_usage): Make sure fake frame and arg
4380 pointer regs are in general regs class.
4381 (FRAME_POINTER_MASK): Remove.
4382 (RETURN_ADDR_MASK): Remove.
4383 (arc_must_save_register): Use hard frame regnum.
4384 (frame_restore_reg): Use hard_frame_pointer_rtx.
4385 (arc_save_callee_saves): Likewise.
4386 (arc_restore_callee_saves): Likewise.
4387 (arc_save_callee_enter): Likewise.
4388 (arc_restore_callee_leave): Likewise.
4389 (arc_save_callee_milli): Likewise.
4390 (arc_eh_return_address_location): Likewise.
4391 (arc_check_multi): Use hard frame regnum.
4392 (arc_can_eliminate): Likewise.
4393 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
4394 for register allocator.
4395 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
4396 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
4397 (FRAME_POINTER_REGNUM): Change it to a fake register.
4398 (HARD_FRAME_POINTER_REGNUM): Defined.
4399 (ARG_POINTER_REGNUM): Change it to a new fake register.
4400 (ELIMINABLE_REGS): Update.
4401 (REGISTER_NAMES): Update names.
4402 * config/arc/arc.md (LP_START): Remove.
4403 (LP_END): Likewise.
4404 (shift_si3_loop): Update pattern.
4405
4406 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4407
4408 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
4409 to avoid delay slot scheduling.
4410 (arc_must_save_register): Don't save SP.
4411 * config/arc/arc.md (stack_tie): Remove.
4412 (UNSPEC_ARC_STKTIE): Likewise.
4413
4414 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
4415 Shiva Chen <shiva0217@gmail.com>
4416
4417 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
4418 code gen with large shift amount.
4419
4420 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
4421
4422 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
4423 subreg.
4424
4425 2019-04-16 Jakub Jelinek <jakub@redhat.com>
4426
4427 PR target/90096
4428 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
4429 print -m64/-mx32/-m32 if it is true.
4430 (ix86_debug_options, ix86_function_specific_print): Pass true as
4431 ADD_ABI_P to ix86_target_string.
4432 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
4433 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
4434 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
4435
4436 PR rtl-optimization/90082
4437 * dce.c (can_delete_call): New function.
4438 (deletable_insn_p, mark_insn): Use it.
4439
4440 PR tree-optimization/90090
4441 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
4442 throw internally.
4443 (is_division_by_square): Likewise. Formatting fix.
4444
4445 2019-04-16 Richard Biener <rguenther@suse.de>
4446
4447 PR tree-optimization/56049
4448 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
4449 equality check if alias-set zero will prevail.
4450
4451 2019-04-15 Jeff Law <law@redhat.com>
4452
4453 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
4454 size and alignment as unsigned.
4455
4456 2019-04-15 Richard Biener <rguenther@suse.de>
4457
4458 PR debug/90074
4459 * tree-loop-distribution.c (destroy_loop): Preserve correct
4460 debug info.
4461
4462 2019-04-15 Richard Biener <rguenther@suse.de>
4463
4464 PR tree-optimization/90071
4465 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
4466 abnormal operands from def stmts.
4467
4468 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
4469
4470 PR rtl-optimization/89794
4471 * combine.c (count_auto_inc): New function.
4472 (try_combine): Count how many auto_inc expressions there were in the
4473 original instructions. Ensure we have the same number in the new
4474 instructions. Remove the code that tried to ensure auto_inc side
4475 effects on i1 and i0 are not lost.
4476
4477 2019-04-15 Richard Biener <rguenther@suse.de>
4478
4479 PR ipa/88936
4480 * tree.h (auto_var_p): Declare.
4481 * tree.c (auto_var_p): New function, split out from ...
4482 (auto_var_in_fn_p): ... here.
4483 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
4484 member.
4485 (new_var_info): Initialize it.
4486 (set_uids_in_ptset): Also set the shadow variable uid if required.
4487 (ipa_pta_execute): Postprocess points-to solutions assigning
4488 shadow variable uids for locals that may reach their containing
4489 function recursively.
4490 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
4491 assert but instead check whether the points-to solution is
4492 a singleton.
4493
4494 2019-04-15 Martin Jambor <mjambor@suse.cz>
4495
4496 PR ipa/pr89693
4497 * cgraph.c (clone_of_p): Loop over clone chain for each step in
4498 the thunk chain.
4499
4500 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4501
4502 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
4503
4504 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4505 Kito Cheng <kito.cheng@gmail.com>
4506 Shiva Chen <shiva0217@gmail.com>
4507
4508 * config/nds32/nds32-md-auxiliary.c
4509 (nds32_legitimize_pic_address): Use new PIC pattern.
4510 (nds32_legitimize_tls_address): Use new TLS pattern.
4511 (nds32_output_symrel): New.
4512 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
4513 (nds32_alloc_relax_group_id): Ditto.
4514 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
4515 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
4516 relax_group_id.
4517 (nds32_group_tls_insn): Ditto.
4518 (nds32_group_float_insns): Ditto.
4519 * config/nds32/nds32.md (tls_le): New.
4520 (sym_got): Ditto.
4521
4522 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
4523
4524 * configure: Add nds32 target for dwarf2 debug_line checking.
4525 * configure.ac: Regenerated.
4526
4527 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
4528
4529 PR lto/89358
4530 * ipa-devirt.c (skip_in_fields_list_p): New.
4531 (odr_types_equivalent_p): Use it.
4532
4533 2019-04-13 Jakub Jelinek <jakub@redhat.com>
4534
4535 PR target/89093
4536 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
4537 instead of strncmp when checking for thumb and arm. Formatting fixes.
4538
4539 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
4540
4541 * doc/install.texi: Document --with-target-system-zlib.
4542
4543 2019-04-12 Martin Sebor <msebor@redhat.com>
4544
4545 PR c/88383
4546 PR c/89288
4547 PR c/89798
4548 PR c/89797
4549 * targhooks.c (default_vector_alignment): Avoid assuming
4550 argument fits in SHWI.
4551 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
4552 a shift expression.
4553 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
4554
4555 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4556
4557 PR rtl-optimization/89965
4558 * dce.c: Include rtl-iter.h.
4559 (struct check_argument_load_data): New type.
4560 (check_argument_load): New function.
4561 (find_call_stack_args): Check for loads from stack slots still tracked
4562 in sp_bytes and punt if any is found.
4563
4564 * config/mips/loongson-mmiintrin.h: Fix up #error message.
4565
4566 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
4567
4568 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
4569 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
4570
4571 2019-04-12 Martin Liska <mliska@suse.cz>
4572
4573 PR middle-end/89970
4574 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
4575 in error message.
4576 (separate_attrs): Handle multiple 'default's.
4577 (expand_target_clones): Rework error handling code.
4578
4579 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
4580
4581 PR target/87532
4582 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
4583 mode of vector rather than mode of destination for move instruction.
4584 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
4585 Use QI inner mode with V16QI vector mode.
4586
4587 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4588
4589 PR target/52726
4590 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
4591 "invalid %%t operand" in output_operand_lossage message.
4592
4593 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
4594
4595 * config/s390/predicates.md (permute_pattern_operand): New
4596 predicate.
4597 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
4598 operand for the permute pattern.
4599 ("*vec_perm<mode>"): New insn definition.
4600 ("bswap<mode>"): Generate the permute pattern operand in the
4601 expander and perform the operand reloads for pre arch13 level
4602 already.
4603 ("*bswap<mode>_emu"): Rename to ...
4604 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
4605 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
4606 Add the USE operand for the permute pattern.
4607 ("*vec_set_bswap_vec<mode>"): Likewise.
4608
4609 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4610
4611 PR c/89946
4612 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
4613 and gcc_unreachable if it fails, just call tree_to_uhwi which
4614 verifies that too. Test TREE_CHAIN instead of list_length > 1.
4615 Start warning message with a lower-case letter. Formatting fixes.
4616
4617 PR rtl-optimization/90026
4618 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
4619 successors, look for BARRIERs inside of the whole BB_FOOTER chain
4620 rather than just at the start of it. If e->src BB_FOOTER is not NULL
4621 in cfglayout mode, use emit_barrier_after_bb.
4622
4623 2018-04-11 Steve Ellcey <sellcey@marvell.com>
4624
4625 PR rtl-optimization/87763
4626 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
4627 New Instruction.
4628
4629 2019-04-11 Tom de Vries <tdevries@suse.de>
4630
4631 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
4632 max macro using statement expression.
4633
4634 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
4635
4636 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
4637 * xcoffout.c (xcoff_private_rodata_section_name): Define.
4638 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
4639 read_only_private_data_section using xcoff_private_rodata_section_name.
4640 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
4641
4642 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
4643
4644 PR target/90016
4645 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
4646
4647 2019-04-11 Jakub Jelinek <jakub@redhat.com>
4648
4649 PR rtl-optimization/89965
4650 * dce.c (sp_based_mem_offset): New function.
4651 (find_call_stack_args): Use sp_based_mem_offset.
4652
4653 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
4654
4655 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
4656
4657 2019-04-11 Richard Biener <rguenther@suse.de>
4658
4659 PR tree-optimization/90020
4660 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
4661 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
4662 * tree-ssa-pre.c (compute_avail): Use it to not put
4663 possibly trapping references after a call that might not
4664 return into EXP_GEN.
4665 * gcse.c (compute_hash_table_work): Do not elide
4666 marking a block containing a call if the call might not
4667 return.
4668
4669 2019-04-11 Richard Biener <rguenther@suse.de>
4670
4671 PR tree-optimization/90018
4672 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
4673 Test both SLP and interleaving variants.
4674
4675 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
4676
4677 * config/s390/8561.md: New file.
4678 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4679 Add arch13 cpu model.
4680 * config/s390/s390-opts.h (enum processor_type): Likewise.
4681 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
4682 (s390_get_unit_mask): Likewise.
4683 (s390_is_fpd): Likewise.
4684 (s390_is_fxd): Likewise.
4685 * config/s390/s390.h (s390_tune_attr): Likewise.
4686 * config/s390/s390.md: Include arch13 pipeline description.
4687 * config/s390/s390.opt: Add arch13.
4688
4689 2018-04-10 Steve Ellcey <sellcey@marvell.com>
4690
4691 PR rtl-optimization/87763
4692 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
4693 New prototype.
4694 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
4695 New function.
4696 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
4697 New instruction.
4698 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
4699 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
4700 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
4701 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
4702
4703 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
4704
4705 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
4706 "Although" in -fipa-icf documentation.
4707
4708 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
4709 of using multiple -g options.
4710
4711 2019-04-10 Martin Liska <mliska@suse.cz>
4712
4713 PR gcov-profile/89959
4714 * doc/gcov.texi: Make documentation of -x option
4715 more precise.
4716
4717 2019-04-10 Richard Biener <rguenther@suse.de>
4718
4719 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
4720 member.
4721 (DR_GROUP_SAME_DR_STMT): Remove.
4722 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
4723 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
4724 replace with assert.
4725 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
4726 (vect_record_grouped_load_vectors): Remove unreachable code.
4727
4728 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
4729
4730 PR target/90016
4731 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
4732 obsolete reference to N.
4733
4734 2019-04-10 Jakub Jelinek <jakub@redhat.com>
4735
4736 PR middle-end/90025
4737 * expr.c (store_expr): Set properly size on the MEM passed to
4738 clear_storage.
4739
4740 PR c++/90010
4741 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
4742 with strlen in between hostsz-3 and hostsz-1 inclusive when no
4743 translation is needed, and when translation is needed, only append
4744 ... if the string length is hostsz or more bytes long. Avoid using
4745 strncpy or strcat.
4746
4747 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
4748
4749 PR target/90024
4750 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
4751 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
4752 into three.
4753 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
4754 differences directly.
4755 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
4756
4757 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4758
4759 PR translation/90011
4760 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4761 from diagnostics.
4762 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4763 diagnostics.
4764 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4765 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4766 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4767 trailing space from -gsplit-dwarf diagnostics.
4768
4769 PR tree-optimization/89998
4770 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4771 instead of integer_type_node if possible, don't add ranges if return
4772 type is not compatible with int.
4773 * gimple-fold.c (gimple_fold_builtin_sprintf,
4774 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4775 integer_type_node.
4776
4777 2019-04-09 Martin Liska <mliska@suse.cz>
4778
4779 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4780 * doc/install.texi: Document the new config.
4781
4782 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
4783
4784 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4785 use gimple_expr_type for load and store calls. Skip over the
4786 condition argument in a conditional internal function.
4787 Protect use of TREE_INT_CST_LOW.
4788
4789 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4790
4791 PR target/90015
4792 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4793 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
4794 trailing period from it too.
4795
4796 2019-04-08 wu yuan <wuyuan5@huawei.com>
4797
4798 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4799 * config/aarch64/aarch64.md : Add "tsv110.md"
4800 * config/aarch64/tsv110.md: New file.
4801
4802 2019-04-08 Richard Biener <rguenther@suse.de>
4803
4804 PR tree-optimization/90006
4805 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4806 calls like lrint.
4807
4808 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
4809
4810 PR target/83033
4811 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4812 construction.
4813 (fma_root_node): Likewise.
4814 (func_fma_steering): Likewise.
4815
4816 2019-04-08 Jakub Jelinek <jakub@redhat.com>
4817
4818 PR rtl-optimization/89865
4819 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4820
4821 PR rtl-optimization/89865
4822 * config/i386/i386.md
4823 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4824 numbers not to clash with the additional operands[4].
4825 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4826 with extra register copy in the middle.
4827
4828 2019-04-08 Martin Liska <mliska@suse.cz>
4829
4830 PR gcov-profile/89961
4831 * doc/gcov.texi: Document data_file.
4832 * gcov.c (generate_results): Add data_info into JSON output.
4833
4834 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4835
4836 PR tree-optimization/89725
4837 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
4838 loop's chrec as invariant symbol.
4839 * tree-chrec.h (chrec_contains_symbols): New parameter.
4840 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4841 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4842 function of loops not in DDR's loop_nest.
4843 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4844
4845 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
4846
4847 PR target/89623
4848 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4849 Mask.
4850
4851 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
4852
4853 PR target/89945
4854 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4855 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4856
4857 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
4858
4859 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4860 targetm.fixed_condition_code_regs.
4861
4862 2019-04-05 Richard Biener <rguenther@suse.de>
4863
4864 PR debug/89892
4865 PR debug/89905
4866 * tree-cfgcleanup.c (remove_forwarder_block): Always move
4867 debug bind stmts but reset them if they are not valid at the
4868 destination.
4869
4870 2019-04-05 Martin Liska <mliska@suse.cz>
4871
4872 PR translation/89936
4873 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4874 order to wrap keywords or arguments.
4875 * collect2.c (main): Likewise.
4876 (scan_prog_file): Likewise.
4877 (scan_libraries): Likewise.
4878 * common/config/riscv/riscv-common.c
4879 (riscv_subset_list::parsing_subset_version): Likewise.
4880 (riscv_subset_list::parse_std_ext): Likewise.
4881 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4882 Likewise.
4883 * config/arm/arm.c (arm_option_override): Likewise.
4884 * config/cris/cris.c (cris_print_operand): Likewise.
4885 * config/darwin-c.c (darwin_pragma_options): Likewise.
4886 (darwin_pragma_unused): Likewise.
4887 (darwin_pragma_ms_struct): Likewise.
4888 * config/ft32/ft32.c (ft32_print_operand): Likewise.
4889 * config/i386/i386.c (print_reg): Likewise.
4890 (ix86_print_operand): Likewise.
4891 * config/i386/xm-djgpp.h: Likewise.
4892 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4893 * config/m32c/m32c.c (m32c_option_override): Likewise.
4894 * config/msp430/msp430.c (msp430_option_override): Likewise.
4895 * config/nds32/nds32.c (nds32_option_override): Likewise.
4896 * config/nvptx/mkoffload.c (main): Likewise.
4897 * config/rx/rx.c (rx_print_operand): Likewise.
4898 (valid_psw_flag): Likewise.
4899 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4900 (vms_pragma_nomember_alignment): Likewise.
4901 (vms_pragma_extern_model): Likewise.
4902 * lto-wrapper.c (compile_offload_image): Likewise.
4903 * omp-offload.c (oacc_parse_default_dims): Likewise.
4904 * symtab.c (symtab_node::verify_base): Likewise.
4905 * tlink.c (recompile_files): Likewise.
4906 (start_tweaking): Likewise.
4907 * tree-profile.c (parse_profile_filter): Likewise.
4908
4909 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
4910
4911 PR tree-optimization/89956
4912 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4913 multiple negates of the same value.
4914
4915 2019-04-04 Martin Sebor <msebor@redhat.com>
4916
4917 PR middle-end/89957
4918 PR middle-end/89911
4919 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4920 have the same precision since the function crashes otherwise.
4921 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4922 has non-zero arguments.
4923
4924 2019-04-04 Martin Sebor <msebor@redhat.com>
4925
4926 PR middle-end/89934
4927 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4928 out if the number of arguments is less than expected.
4929
4930 2019-04-04 Jeff Law <law@redhat.com>
4931
4932 PR rtl-optimization/89399
4933 * ree.c (combine_set_extension): Use single_set rather than
4934 digging into PATTERN for items on the candidate list.
4935 (combine_reaching_defs): Likewise.
4936
4937 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
4938
4939 PR rtl-optimization/46590
4940 * loop-invariant.c (find_defs): Move df_remove_problem and
4941 df_process_deferred_rescans to move_invariants.
4942 Move df_live_add_problem and df_live_set_all_dirty calls
4943 to move_invariants.
4944 (move_invariants): Likewise.
4945 (move_loop_invariants): Likewise, making the df_live calls
4946 conditional on -O. Remove the problem again if we added it
4947 locally.
4948
4949 2019-04-03 qing zhao <qing.zhao@oracle.com>
4950
4951 PR tree-optimization/89730
4952 * ipa-inline.c (can_inline_edge_p): Delete the checking for
4953 -flive-patching=inline-only-static.
4954 (can_inline_edge_by_limits_p): Add the checking for
4955 -flive-patching=inline-only-static and grant always_inline
4956 even when -flive-patching=inline-only-static is specified.
4957
4958 2019-04-03 Jeff Law <law@redhat.com>
4959
4960 PR rtl-optimization/81025
4961 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4962
4963 2019-04-03 Richard Biener <rguenther@suse.de>
4964
4965 PR tree-optimization/84101
4966 * tree-vect-stmts.c: Include explow.h for hard_function_value,
4967 regs.h for hard_regno_nregs.
4968 (cfun_returns): New helper.
4969 (vect_model_store_cost): When vectorizing a store to a decl
4970 we return and the function ABI returns in a multi-reg location
4971 account for the possible spilling that will happen.
4972
4973 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
4974
4975 * config/s390/s390.c (s390_legitimate_address_p): Reject long
4976 displacement addresses for vector mode operands.
4977
4978 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
4979
4980 * config/arc/arc.c (GMASK_LEN): Define.
4981 (arc_restore_callee_saves): Restore first blink when
4982 !optimize_size.
4983
4984 2019-04-03 Sudakshina Das <sudi.das@arm.com>
4985
4986 * doc/extend.texi: Add deprecated comment on sign-return-address
4987 function attribute and add mbranch-protection.
4988 * doc/invoke.texi: Add bti to the options for mbranch-protection.
4989
4990 2019-04-03 Richard Biener <rguenther@suse.de>
4991
4992 PR lto/89896
4993 * lto-wrapper.c (run_gcc): Avoid implicit rules making
4994 the all target phony.
4995
4996 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
4997
4998 PR target/89902
4999 PR target/89903
5000 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
5001 Return false for variable DImode shifts.
5002 (dimode_scalar_chain::compute_convert_gain): Do not handle
5003 register count operand in variable DImode shifts.
5004 (dimode_scalar_chain::make_vector_copies): Remove support to copy
5005 count argument of a variable shift instruction to a vector register.
5006 (dimode_scalar_chain::convert_reg): Remove support to convert
5007 count argument of a variable shift instruction.
5008
5009 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
5010
5011 PR rtl-optimization/84206
5012 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
5013 iterating over loop headers.
5014
5015 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
5016
5017 PR rtl-optimization/85876
5018 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
5019 beyond the original fence.
5020
5021 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
5022
5023 * config.gcc: Mark spu* targets as deprecated/obsolete.
5024
5025 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5026
5027 * config/s390/s390-builtin-types.def: New builtin function type
5028 definitions. Remove unused types.
5029 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
5030 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
5031 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
5032 overloaded builtins.
5033 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
5034 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
5035 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
5036 (vec_double, vec_signed, vec_unsigned): Define to use the new
5037 overloaded builtins.
5038 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
5039 Remove expanders.
5040
5041 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5042
5043 * config/s390/s390-builtin-types.def: New builtin function type
5044 definitions.
5045 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
5046 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
5047 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
5048 (s390_vstrszh, s390_vstrszf): New low-level builtins.
5049 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
5050 constant definitions.
5051 * config/s390/vecintrin.h (vec_search_string_cc)
5052 (vec_search_string_until_zero_cc): New builtin name definitions.
5053 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
5054 expanders.
5055 ("vec_vstrs<mode>"): New insn definition.
5056
5057 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5058
5059 * config/s390/s390-builtin-types.def: Add new builtin function
5060 types.
5061 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
5062 New overloaded builtins.
5063 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
5064 s390_vsrd.
5065 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
5066 (UNSPEC_VEC_SLDBYTE): ... this.
5067 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
5068 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
5069 definitions.
5070 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
5071 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
5072 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
5073
5074 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5075
5076 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
5077 New insn definition.
5078 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
5079 * config/s390/vector.md (V_HW_HSD): ... here.
5080
5081 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5082
5083 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
5084 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
5085 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
5086 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
5087 New insn definitions.
5088
5089 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5090
5091 * config/s390/s390-builtin-types.def: Add new builtin function type.
5092 * config/s390/s390-builtins.def: Add overloaded builtin
5093 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
5094 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
5095 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
5096 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
5097 ("eltswap<mode>"): New expander.
5098 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
5099 insn definitions.
5100
5101 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5102
5103 * config/s390/s390-builtin-types.def: Add new builtin function types.
5104 * config/s390/s390-builtins.def: Add overloaded builtin
5105 s390_vec_revb. Add low-level builtins for vlbr and vstbr
5106 instructions.
5107 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
5108 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
5109 ("bswap<mode>"): New expander.
5110 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
5111
5112 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5113
5114 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
5115 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
5116 vector builtin version number in __VEC__.
5117
5118 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5119
5120 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
5121 iterators.
5122 (SFSI): New mode attribute.
5123 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
5124 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
5125 rename to ...
5126 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
5127 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
5128 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
5129 ("floatsi<mode>2"): Add wcefb instruction.
5130
5131 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5132
5133 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
5134 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
5135 mode iterators.
5136 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
5137 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
5138 support 32 bit fp-int conversions. Rename to ...
5139 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
5140 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
5141 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
5142 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
5143 ... to these.
5144
5145 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5146
5147 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
5148 if-then-else constructs if we can use the select instruction.
5149 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
5150
5151 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5152
5153 * config/s390/s390.md ("*popcountdi_arch13_cc")
5154 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
5155 definition.
5156 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
5157 Append _z196 to make it ...
5158 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
5159 ("popcounthi2_z196"): ... this.
5160 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
5161 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
5162
5163 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5164
5165 * config/s390/s390.c (s390_canonicalize_comparison): Convert
5166 certain compares for arch13 in order to make use of the condition
5167 code result produced by the new instructions.
5168 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
5169 nxrk, and nxgrk instruction patterns.
5170 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
5171 (inv_no): Add new code iterator together with some attributes.
5172 ("*andc_split_<mode>"): Disable splitter for arch13.
5173 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
5174 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
5175 ("*<ANDOR:bitops_name>c<GPR:mode>")
5176 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
5177 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
5178 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
5179 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
5180
5181 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
5182
5183 * common/config/s390/s390-common.c (processor_flags_table): New
5184 entry for arch13.
5185 * config.gcc: Support arch13 with the --with-arch= configure flag.
5186 * config/s390/driver-native.c (s390_host_detect_local_cpu):
5187 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
5188 * config/s390/s390.c (s390_get_sched_attrmask)
5189 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
5190 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
5191 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
5192 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
5193 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
5194 definitions.
5195 * config/s390/s390.opt: Support arch13 as processor type in
5196 command line options.
5197
5198 2019-04-02 Martin Liska <mliska@suse.cz>
5199
5200 PR translation/89912
5201 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
5202 Fix param description of graphite-max-arrays-per-scop.
5203
5204 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
5205
5206 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
5207 (ASAN_CC1_SPEC): Use it in 64-bit mode.
5208 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
5209
5210 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5211
5212 PR rtl-optimization/85412
5213 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
5214 sel_sched_region_1, not after.
5215
5216 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5217
5218 PR rtl-optimization/86928
5219 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
5220 compute_live if necessary.
5221 (sel_redirect_edge_and_branch): Likewise.
5222
5223 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
5224
5225 PR rtl-optimization/89865
5226 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
5227 register if it is a part of small class.
5228
5229 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5230
5231 PR rtl-optimization/87273
5232 * sel-sched-ir.c (merge_fences): Remove assert.
5233
5234 2019-04-01 Richard Biener <rguenther@suse.de>
5235
5236 PR tree-optimization/46590
5237 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
5238 (dom_walker::m_reachability): Add in place of...
5239 (dom_walker::m_skip_unreachable_blocks): ...this.
5240 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
5241 Move complex initialization ...
5242 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
5243 lazily and initialize edge flags on each invocation.
5244 (dom_walker::bb_reachable): Use m_reachability.
5245
5246 2019-04-01 Martin Liska <mliska@suse.cz>
5247
5248 PR driver/89861
5249 * opt-suggestions.c (option_proposer::build_option_suggestions):
5250 Add variant without any argument in order to provide better
5251 hints.
5252
5253 2019-04-01 Richard Biener <rguenther@suse.de>
5254
5255 PR c/71598
5256 * gimple.c: Include langhooks.h.
5257 (gimple_get_alias_set): Treat enumeral types as the underlying
5258 integer type.
5259
5260 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
5261 Eric Botcazou <ebotcazou@adacore.com>
5262
5263 PR rtl-optimization/89862
5264 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
5265 that operates on the full registers for WORD_REGISTER_OPERATIONS
5266 architectures.
5267
5268 2019-03-29 Jim Wilson <jimw@sifive.com>
5269
5270 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
5271 Clear MASK_RVC and then set if C subset supported.
5272
5273 2019-03-29 Jakub Jelinek <jakub@redhat.com>
5274
5275 PR c/89872
5276 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
5277 non-addressable complit into its initializer if it is volatile.
5278
5279 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
5280
5281 * opts-common.c (integral_argument): Set errno properly in one case.
5282
5283 2019-03-29 Martin Liska <mliska@suse.cz>
5284
5285 * doc/invoke.texi: Remove -Wchkp from documentation.
5286
5287 2019-03-29 Martin Liska <mliska@suse.cz>
5288
5289 * dbgcnt.c (print_limit_reach): New function.
5290 (dbg_cnt): Use it.
5291
5292 2019-03-29 Martin Liska <mliska@suse.cz>
5293
5294 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
5295 (dbg_cnt_process_opt): Parse first tokens aas
5296 dbg_cnt_process_single_pair is also using strtok.
5297
5298 2019-03-29 Jakub Jelinek <jakub@redhat.com>
5299
5300 PR rtl-optimization/87485
5301 * function.c (expand_function_end): Move stack_protect_epilogue
5302 before loading of return value into hard register(s).
5303
5304 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5305
5306 PR middle-end/89621
5307 * tree-inline.h (struct copy_body_data): Add
5308 dont_remap_vla_if_no_change flag.
5309 * tree-inline.c (remap_type_3, remap_type_2): New functions.
5310 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
5311 and remap_type_2 returns false.
5312 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
5313 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
5314 only from where it is copied to nested contexts.
5315
5316 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5317
5318 PR target/89865
5319 * config/i386/i386.md (RMW operation with LEA peephole):
5320 Use LEAMODE mode attribute instead of SWI mode iterator for
5321 LEA pattern.
5322
5323 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5324
5325 PR target/89848
5326 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
5327 Also process XEXP (src, 0) of a shift insn.
5328
5329 2019-03-28 David Malcolm <dmalcolm@redhat.com>
5330
5331 PR middle-end/89725
5332 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
5333 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
5334
5335 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5336
5337 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
5338 test.
5339 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
5340 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
5341 immediately after first one with df_analyze in between, but rather
5342 process all bbs, queueing ones that need second pass in a worklist,
5343 df_analyze, process queued debug insn changes and if second pass is
5344 needed, process bbs from worklist, df_analyze, process queued debug
5345 insns again.
5346
5347 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
5348 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
5349 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
5350
5351 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
5352
5353 PR c/79022
5354 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
5355 definition.
5356
5357 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
5358
5359 PR target/85667
5360 * config/i386/i386.c (ix86_function_value_1): Call the newly added
5361 function for 32-bit MS_ABI.
5362 (function_value_ms_32): New function.
5363
5364 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
5365
5366 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
5367 (movdi): Call gen_movdi_symbol_save_scc.
5368 (gen_movdi_symbol_save_scc): New insn and split.
5369
5370 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
5371
5372 PR rtl-optimization/89313
5373 * function.c (matching_constraint_num): New static function.
5374 (match_asm_constraints_1): Use it. Fixup white space and comment.
5375 Don't replace inputs with non-matching constraints which conflict
5376 with early clobber outputs.
5377
5378 2019-03-27 Jeff Law <law@redhat.com>
5379
5380
5381 PR rtl-optimization/87761
5382 PR rtl-optimization/89826
5383 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
5384 slightly later.
5385 (pass_cprop_hardreg::execute): Call df_analyze after adding the
5386 note problem to get REG_DEAD/REG_UNUSED notes updated.
5387
5388 2019-03-27 Richard Biener <rguenther@suse.de>
5389
5390 PR tree-optimization/89463
5391 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
5392 queue edges to remove.
5393 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
5394 dead stmts. Delay edge removal until PHIs are removed to
5395 make debug-stmt creation not confused by seemingly degenerate
5396 PHIs.
5397
5398 2019-03-27 Alan Modra <amodra@gmail.com>
5399
5400 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
5401 throughout file.
5402 * config/rs6000/darwin.h: Likewise.
5403 * config/rs6000/rs6000.c: Likewise.
5404
5405 2019-03-27 Alan Modra <amodra@gmail.com>
5406
5407 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
5408 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
5409
5410 2019-03-26 Andrew Waterman <andrew@sifive.com>
5411 Jim Wilson <jimw@sifive.com>
5412
5413 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
5414 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
5415 (generic_idivdi, generic_fmul_single, generic_fmul_double)
5416 (generic_fdiv, generic_fsqrt): Add check for generic tune.
5417 (generic_alu): Add auipc to type list.
5418 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
5419 (riscv_microarchitecture): Declare.
5420 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
5421 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
5422 field.
5423 (riscv_microarchitecture): New.
5424 (sifive_7_tune_info): New.
5425 (riscv_cpu_info_table): Add microarchitecture value for rocket and
5426 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
5427 entries.
5428 (riscv_store_data_bypass_p): New.
5429 (riscv_option_override): Set riscv_microarchitecture from
5430 cpu->microarchitecture.
5431 * config/riscv/riscv.md: Include sifive-7.md.
5432 (type): Add auipc.
5433 (tune): New.
5434 (auipc<mode>): Change type to auipc.
5435 (restore_stack_nonlocal): New.
5436 * config/riscv/sifive-7.md: New.
5437 * doc/invoke.texi (RISC-V Options): Update mtune docs.
5438
5439 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
5440
5441 PR target/89827
5442 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
5443 Also process XEXP (src, 0) of a shift insn.
5444
5445 2019-03-26 Richard Biener <rguenther@suse.de>
5446
5447 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
5448 (copy_debug_stmt): Likewise.
5449 (expand_call_inline): Likewise.
5450 (copy_bb): Avoid redundant lookup & set of gimple_block.
5451 * gimple-low.c (lower_gimple_return): Likewise.
5452 (lower_builtin_setjmp): Likewise.
5453
5454 2019-03-26 Jakub Jelinek <jakub@redhat.com>
5455
5456 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
5457 is constant 0, turn into static const data member initialized to false.
5458 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
5459 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
5460
5461 2019-03-26 Jason Merrill <jason@redhat.com>
5462 Jakub Jelinek <jakub@redhat.com>
5463
5464 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
5465 method.
5466 (mem_alloc_description::release_object_overhead): Fix comment typos.
5467 * hash-table.h (hash_table::~hash_table): Call
5468 release_instance_overhead only if m_entries is non-NULL, otherwise
5469 call unregister_descriptor.
5470
5471 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
5472
5473 PR tree-optimization/81740
5474 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5475 In case of outer loop vectorization, check for backward dependence
5476 at the inner loop if outer loop dependence is reversed.
5477
5478 2019-03-26 Alan Modra <amodra@gmail.com>
5479
5480 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
5481 rs6000_vector_mem init. Correct wI and wJ comment.
5482
5483 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
5484
5485 PR rtl-optimization/88347
5486 PR rtl-optimization/88423
5487 * sched-deps.c (sched_analyze_insn): Take into account that for
5488 tablejumps the barrier appears after a label and a jump_table_data.
5489
5490 2019-03-25 Martin Sebor <msebor@redhat.com>
5491
5492 PR c/89812
5493 * c-common.c (check_user_alignment): Rename local. Correct maximum
5494 alignment in diagnostic. Avoid assuming argument fits in SHWI,
5495 convert it to UHWI when it fits.
5496
5497 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
5498
5499 PR debug/86964
5500 * dwarf2out.c (premark_used_variables): New function.
5501 (prune_unused_types_walk): Do not mark not premarked external
5502 variables.
5503 (prune_unused_types): Call premark_used_variables.
5504
5505 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
5506
5507 PR rtl-optimization/89676
5508 * lra-constraints.c (curr_insn_transform): Do match reload for
5509 early clobbers when the match was successful only for different
5510 registers.
5511
5512 2019-03-25 Martin Sebor <msebor@redhat.com>
5513
5514 * doc/extend.texi (Common Type Attributes): Document vector_size.
5515 (Common Variable Attributes): Mention size constraint. Correct
5516 quoting and typos.
5517 (Vector Extensions): Use @dfn when defining bas type. Clarify
5518 base type and size constraints.
5519
5520 2019-03-25 Richard Biener <rguenther@suse.de>
5521
5522 PR tree-optimization/89789
5523 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
5524 changes from non-undefined back to undefined.
5525
5526 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
5527
5528 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
5529 heap string and a gc string, but since this variable is unknown to
5530 ggc the gc string might get reused and corrupted. Fixed by always
5531 using a heap string.
5532
5533 2019-03-25 Richard Biener <rguenther@suse.de>
5534
5535 PR tree-optimization/89779
5536 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
5537 to remove IV defs, delay actual removal.
5538 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
5539 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
5540 very end, properly also reset loop control IV information.
5541
5542 2019-03-25 Richard Biener <rguenther@suse.de>
5543
5544 PR tree-optimization/89802
5545 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
5546 move EH data to folded stmt.
5547
5548 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5549
5550 * config/s390/s390-builtin-types.def: Remove few unused types and
5551 fix sort order for others.
5552
5553 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5554
5555 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
5556 expected and found types with -mdebug during builtin matching.
5557
5558 2019-03-25 Richard Biener <rguenther@suse.de>
5559
5560 PR middle-end/89790
5561 * fold-const.c (operand_equal_p): Revert last change with
5562 updated comment.
5563
5564 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
5565
5566 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
5567 notes for the result of the __tls_get_addr calls.
5568 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
5569
5570 2019-03-24 Jeff Law <law@redhat.com>
5571
5572 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
5573
5574 PR rtl-optimization/87761
5575 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
5576 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
5577 as needed.
5578 (pass_cprop_hardreg::execute): Add df note problem and defer insn
5579 rescans. Reprocess blocks as needed, calling df_analyze before
5580 reprocessing. Always call df_analyze before fixing up debug bind
5581 insns.
5582
5583 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
5584
5585 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
5586 big endian.
5587
5588 2019-03-22 Andrew Pinski <apinski@marvell.com>
5589
5590 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
5591 attrribute for uxtw.
5592
5593 2019-03-26 Jeff Law <law@redhat.com>
5594
5595 PR rtl-optimization/87761
5596 * config/mips/mips-protos.h (mips_split_move): Add new argument.
5597 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
5598 (mips_split_move): Accept new INSN argument. Try to forward SRC
5599 into the next instruction.
5600 (mips_split_move_insn): Pass INSN through to mips_split_move.
5601
5602 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
5603
5604 PR rtl-optimization/89676
5605 * lra-constraints.c (curr_insn_transform): Do match reload for
5606 early clobbers even if the match was successful.
5607
5608 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5609
5610 PR c++/87481
5611 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
5612
5613 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
5614
5615 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
5616
5617 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5618
5619 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
5620 <avx512>_fmsub_<mode>_mask3<round_name>,
5621 <avx512>_fnmadd_<mode>_mask3<round_name>,
5622 <avx512>_fnmsub_<mode>_mask3<round_name>,
5623 avx512f_vmfmadd_<mode>_mask3<round_name>,
5624 avx512f_vmfmsub_<mode>_mask3<round_name>,
5625 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
5626 instead of register_operand and %v instead of v for match_operand 1.
5627 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
5628 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
5629 <round_nimm_predicate> instead of register_operand and %v instead of v
5630 for match_operand 1.
5631
5632 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
5633 <avx512>_fmadd_<mode>_mask3<round_name>,
5634 <avx512>_fmsub_<mode>_mask<round_name>,
5635 <avx512>_fmsub_<mode>_mask3<round_name>,
5636 <avx512>_fnmadd_<mode>_mask<round_name>,
5637 <avx512>_fnmadd_<mode>_mask3<round_name>,
5638 <avx512>_fnmsub_<mode>_mask<round_name>,
5639 <avx512>_fnmsub_<mode>_mask3<round_name>,
5640 <avx512>_fmaddsub_<mode>_mask<round_name>,
5641 <avx512>_fmaddsub_<mode>_mask3<round_name>,
5642 <avx512>_fmsubadd_<mode>_mask<round_name>,
5643 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
5644 <round_nimm_predicate> instead of nonimmediate_operand.
5645 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5646 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
5647 Use register_operand instead of <round_nimm_predicate> for the
5648 operand that needs to match output.
5649 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5650 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
5651 Likewise. Formatting fixes.
5652
5653 PR target/89784
5654 * config/i386/i386.c (enum ix86_builtins): Remove
5655 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
5656 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
5657 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
5658 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
5659 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
5660 __builtin_ia32_vfmsubss3_mask3): New builtins.
5661 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
5662 avx512f_vmfmadd_<mode>_mask3<round_name>,
5663 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5664 *avx512f_vmfmsub_<mode>_mask<round_name>,
5665 avx512f_vmfmsub_<mode>_mask3<round_name>,
5666 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
5667 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5668 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5669 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5670 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5671 avx512f_vmfnmsub_<mode>_mask3<round_name>,
5672 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
5673 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
5674 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
5675 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
5676 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
5677 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
5678 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
5679 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
5680 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
5681 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
5682 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
5683 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
5684 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
5685 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
5686 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
5687 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
5688 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
5689 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
5690 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
5691 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
5692 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
5693 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
5694
5695 2019-03-21 Martin Sebor <msebor@redhat.com>
5696
5697 PR tree-optimization/89350
5698 * builtins.c (compute_objsize): Also ignore offsets whose upper
5699 bound is negative.
5700 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
5701 (builtin_memref::builtin_memref): Initialize new member.
5702 Allow EXPR to be null.
5703 (builtin_memref::extend_offset_range): Replace local with a member.
5704 Avoid assuming pointer offsets are unsigned.
5705 (builtin_memref::set_base_and_offset): Determine base object
5706 before computing offset range.
5707 (builtin_access::builtin_access): Handle memset.
5708 (builtin_access::generic_overlap): Replace local with a member.
5709 (builtin_access::strcat_overlap): Same.
5710 (builtin_access::overlap): Same.
5711 (maybe_diag_overlap): Same.
5712 (maybe_diag_access_bounds): Same.
5713 (wrestrict_dom_walker::check_call): Handle memset.
5714 (check_bounds_or_overlap): Same.
5715
5716 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
5717 Jakub Jelinek <jakub@redhat.com>
5718
5719 PR lto/89692
5720 * tree.c (fld_type_variant, fld_incomplete_type_of,
5721 fld_process_array_type): Call fld->pset.add and don't call
5722 add_tree_to_fld_list if it returns true.
5723 (free_lang_data_in_type): Similarly with self-recursive call. Purge
5724 non-marked types from TYPE_NEXT_VARIANT list.
5725 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
5726
5727 2019-03-21 Jakub Jelinek <jakub@redhat.com>
5728
5729 * hash-table.h (hash_table): Add Lazy template parameter defaulted
5730 to false, if true, don't alloc_entries during construction, but defer
5731 it to the first method that needs m_entries allocated.
5732 (hash_table::hash_table, hash_table::~hash_table,
5733 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
5734 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
5735 hash_table::clear_slot, hash_table::traverse_noresize,
5736 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
5737 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
5738 false.
5739 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
5740 NO_INSERT instead of find_with_hash.
5741 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
5742 hash_set::m_table): Add Lazy to template params of hash_table.
5743 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
5744 * attribs.c (test_attribute_exclusions): Likewise.
5745 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
5746 hash_set. Add tests for hash_set with Lazy = true.
5747
5748 2019-03-21 Richard Biener <rguenther@suse.de>
5749
5750 PR tree-optimization/89779
5751 * tree.c (tree_nop_conversion): Consolidate and fix defensive
5752 checks with respect to released SSA names now having error_mark_node
5753 type.
5754 * fold-const.c (operand_equal_p): Likewise.
5755
5756 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
5757
5758 PR target/89775
5759 * config/s390/s390.c (global_not_special_regno_p): Move to make it
5760 available to ...
5761 (s390_optimize_register_info): Use global_not_special_regno_p to
5762 check for global regs.
5763
5764 2019-03-20 Jakub Jelinek <jakub@redhat.com>
5765
5766 PR target/89752
5767 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5768 update this_alternative nor this_alternative_set.
5769
5770 2019-03-19 Jim Wilson <jimw@sifive.com>
5771
5772 PR target/89411
5773 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
5774 align, size, offset. Use them to handle a BLKmode reference. Update
5775 comment.
5776 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5777
5778 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5779
5780 PR rtl-optimization/89768
5781 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5782 instead of GEN_INT.
5783 (unroll_loop_runtime_iterations): Likewise.
5784
5785 2019-03-19 Martin Sebor <msebor@redhat.com>
5786
5787 PR tree-optimization/89644
5788 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5789 rather than endptr as an indicator of nul-termination.
5790
5791 PR tree-optimization/89644
5792 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5793 arrays in determining sequence sizes in strncpy and stpncpy.
5794
5795 2019-03-19 Martin Liska <mliska@suse.cz>
5796
5797 PR middle-end/89737
5798 * predict.c (combine_predictions_for_bb): Empty likely_edges and
5799 unlikely_edges if there's an edge that belongs to both these sets.
5800
5801 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
5802
5803 PR target/89746
5804 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5805 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5806 go via a stack temporary.
5807
5808 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5809
5810 PR target/89378
5811 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5812 instead of gen_rtx_SUBREG.
5813 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5814
5815 2019-03-19 Richard Biener <rguenther@suse.de>
5816
5817 PR debug/88389
5818 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5819
5820 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
5821
5822 PR lto/87809
5823 PR lto/89335
5824 * tree.c (free_lang_data_in_decl): Do not free context of C++
5825 destrutors.
5826
5827 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5828
5829 PR target/89506
5830 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5831 subs for the first alternative except when operands[3] is 1.
5832
5833 PR target/89752
5834 * gimplify.c (gimplify_asm_expr): For output argument with
5835 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5836 diagnose error.
5837
5838 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
5839
5840 PR rtl-optimization/89753
5841 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5842 explicit unrolling factor even more robust.
5843
5844 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5845
5846 PR target/89726
5847 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5848 compensation use x2 += 1 instead of x2 -= -1 and when honoring
5849 signed zeros, do another copysign after the compensation.
5850
5851 2019-03-18 Martin Sebor <msebor@redhat.com>
5852
5853 PR tree-optimization/89720
5854 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5855 more conservatively, the same as anti-range.
5856
5857 2019-03-18 Richard Biener <rguenther@suse.de>
5858
5859 PR middle-end/88945
5860 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5861 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5862 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
5863 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5864
5865 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
5866
5867 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5868 Extend queue to 1024 entries.
5869 Add "consumed" field.
5870 (gomp_print_output): Remove print_index parameter.
5871 Add final parameter.
5872 Change limit to unsigned.
5873 Use consumed field to implement circular buffer.
5874 Detect interrupted print in final pass.
5875 Flush output at the end.
5876 (run): Update gomp_print_output usage.
5877 (main): Initialize kernargs->output_data.consumed.
5878
5879 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
5880
5881 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5882 calculation of the minimum number of scalar iterations for
5883 fully-predicated loops.
5884
5885 2019-03-18 Martin Jambor <mjambor@suse.cz>
5886
5887 PR tree-optimization/89546
5888 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5889 any propagation to its children took place.
5890
5891 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
5892
5893 PR target/89627
5894 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5895 parameter, and make use of it.
5896 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5897
5898 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5899
5900 * config/arc/arc.opt (mcode-density-frame): Get the inital value
5901 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5902 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5903 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5904 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5905 match what the ops is doing.
5906 (push_multi_fp_blink): Likewise.
5907 * config/arc/arc.c (arc_override_options): Enable enter/leave when
5908 compiling for size and elf target.
5909 (arc_save_callee_enter): Adjust note to match what enter/leave
5910 operation does.
5911
5912 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5913
5914 * config/arc/arc.md (tst_movb): Fix constraint.
5915
5916 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5917
5918 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5919
5920 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5921
5922 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5923 * config/arc/arc.c (arc_conditional_register_usage): Remove all
5924 reg_alloc_order references.
5925 (size_alloc_order): Define.
5926 (arc_adjust_reg_alloc_order): New function.
5927 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5928 order.
5929 (ADJUST_REG_ALLOC_ORDER): Define.
5930 (HONOR_REG_ALLOC_ORDER): Likewise.
5931
5932 2019-03-18 Richard Biener <rguenther@suse.de>
5933
5934 PR target/87561
5935 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5936 loads and stores a bit more.
5937
5938 2019-03-18 Richard Biener <rguenther@suse.de>
5939
5940 PR target/87561
5941 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5942 load pessimization to stores as well.
5943
5944 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
5945
5946 PR middle-end/86979
5947 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5948 successor, use NULL as its av set.
5949
5950 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5951
5952 PR rtl-optimization/89721
5953 * lra-constraints (invariant_p): Return false if side_effects_p holds.
5954
5955 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
5956
5957 PR target/87532
5958 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5959 When handling vec_extract, use modular arithmetic to allow
5960 constant selectors greater than vector length.
5961 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5962 V1TImode vectors to have constant selector values greater than 0.
5963 Use modular arithmetic to compute vector index.
5964 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5965 index for in-memory vectors. Correct code generation for
5966 in-register vectors.
5967 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5968 compute index.
5969
5970 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
5971
5972 PR c++/88534
5973 PR c++/88537
5974 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5975 VAR_DECL args.
5976
5977 2019-03-15 Jakub Jelinek <jakub@redhat.com>
5978
5979 PR c++/89709
5980 * tree.c (inchash::add_expr): Strip any location wrappers.
5981 * fold-const.c (operand_equal_p): Move stripping of location wrapper
5982 after hash verification.
5983
5984 PR debug/89704
5985 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5986 SIGN_EXTEND and ZERO_EXTEND.
5987
5988 2019-03-14 Jason Merrill <jason@redhat.com>
5989 Jakub Jelinek <jakub@redhat.com>
5990
5991 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5992 than if is_empty (*slot).
5993 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5994 existing elt and for elt removal.
5995 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5996 of already removed elt.
5997
5998 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
5999
6000 PR target/89650
6001 * config/i386/i386.c (remove_partial_avx_dependency): Handle
6002 REG_EH_REGION note.
6003
6004 2019-03-14 Martin Liska <mliska@suse.cz>
6005
6006 PR other/89712
6007 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
6008
6009 2019-03-14 Richard Biener <rguenther@suse.de>
6010
6011 PR target/89711
6012 * config/i386/i386.c (make_resolver_func): Properly set
6013 DECL_CONTEXT on the RESULT_DECL.
6014 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
6015
6016 2019-03-14 Richard Biener <rguenther@suse.de>
6017
6018 * gimple-pretty-print.c: Include cfgloop.h.
6019 (dump_gimple_phi): Adjust.
6020 (dump_gimple_bb_header): Dump loop header for GIMPLE.
6021 (pp_cfg_jump): Adjust.
6022 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
6023 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
6024 (lower_phi_internal_fn): Remove.
6025 (verify_gimple_call): Remove IFN_PHI special-casing.
6026 (dump_function_to_file): Dump IL state.
6027 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
6028 done to deal with PHI nodes being present in non-SSA state.
6029
6030 2019-03-14 Jakub Jelinek <jakub@redhat.com>
6031
6032 PR ipa/89684
6033 * multiple_target.c (create_dispatcher_calls): Change
6034 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
6035 In the node->iterate_referring loop, push *ref rather than ref, call
6036 ref->remove_reference () and always pass 0 to iterate_referring.
6037
6038 PR rtl-optimization/89679
6039 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
6040 would contain a paradoxical SUBREG.
6041
6042 2019-03-14 Richard Biener <rguenther@suse.de>
6043
6044 PR tree-optimization/89710
6045 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
6046 safe_dyn_cast.
6047
6048 2019-03-14 Martin Liska <mliska@suse.cz>
6049
6050 * coverage.c (coverage_begin_function): Stream also
6051 end_column.
6052 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
6053 documentation about function declaration location.
6054 * gcov-dump.c (tag_function): Print whole range
6055 of function declaration.
6056 * gcov.c (struct function_info): Add end_column field.
6057 (function_info::function_info): Initialize it.
6058 (output_json_intermediate_file): Output {start,end}_column
6059 fields.
6060 (read_graph_file): Read end_column.
6061
6062 2019-03-14 Richard Biener <rguenther@suse.de>
6063
6064 PR middle-end/89698
6065 * fold-const.c (operand_equal_p): For INDIRECT_REF check
6066 that the access types are similar.
6067
6068 2019-03-14 Jakub Jelinek <jakub@redhat.com>
6069
6070 PR tree-optimization/89703
6071 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
6072 aren't compatible also with builtin_decl_explicit. Check pure
6073 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
6074 and BUILT_IN_STPNCPY{,_CHK}.
6075
6076 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
6077
6078 PR target/89523
6079 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
6080 addr32 prefix to VSIB address for X32.
6081 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
6082 "%M2" to opcode.
6083 (*avx512pf_gatherpf<mode>df_mask): Likewise.
6084 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
6085 (*avx512pf_scatterpf<mode>df_mask): Likewise.
6086 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
6087 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
6088 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
6089 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
6090 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
6091 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
6092 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
6093 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
6094 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
6095 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
6096 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
6097 (*avx512f_scatterdi<mode>): Likewise.
6098
6099 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
6100
6101 PR target/85860
6102 * lra-constraints.c (inherit_in_ebb): Update
6103 potential_reload_hard_regs along with live_hard_regs.
6104
6105 2019-03-13 Jakub Jelinek <jakub@redhat.com>
6106
6107 PR debug/89498
6108 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
6109 DWARF_OFFSET_SIZE.
6110 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
6111
6112 2019-03-13 Martin Sebor <msebor@redhat.com>
6113
6114 PR tree-optimization/89662
6115 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
6116 has a size.
6117
6118 2019-03-13 Richard Biener <rguenther@suse.de>
6119
6120 PR middle-end/89677
6121 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
6122 throw FP expressions at tree-affine.
6123
6124 2019-03-14 Richard Biener <rguenther@suse.de>
6125
6126 * tree-pretty-print.c (dump_generic_node): For -gimple properly
6127 dump negative integer constants using _Literal (type) -num.
6128
6129 2019-03-13 Jakub Jelinek <jakub@redhat.com>
6130
6131 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
6132 nonlocal_value member.
6133
6134 PR middle-end/88588
6135 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
6136 (ipa_simd_modify_function_body): Handle PHIs.
6137
6138 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
6139
6140 * config/s390/s390.c (s390_option_override_internal): Use more
6141 aggressive inlining parameters.
6142
6143 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
6144
6145 * config/s390/3906.md: New file.
6146 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
6147 (LONGRUNNING_THRESHOLD): Remove.
6148 (MAX_SCHED_MIX_SCORE): Decrease.
6149 (MAX_SCHED_MIX_DISTANCE): Decrease.
6150 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
6151 (struct s390_sched_state): New struct to hold scheduling state.
6152 (S390_SCHED_STATE_NORMAL): Remove.
6153 (S390_SCHED_STATE_CRACKED): Remove.
6154 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
6155 (s390_get_sched_attrmask): Use new attribute.
6156 (s390_get_unit_mask): Use new units.
6157 (s390_is_fpd): New function.
6158 (s390_is_fxd): New function.
6159 (s390_is_longrunning): New function.
6160 (s390_sched_score): Use new functions.
6161 (s390_sched_reorder): Likewise.
6162 (s390_sched_variable_issue): Rework and use new functions.
6163 (s390_sched_init): Use new functions.
6164 * config/s390/s390.h (s390_tune_attr): Add z14.
6165 * config/s390/s390.md: Add z14.
6166
6167 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
6168
6169 * config/s390/2964.md: Update pipeline description.
6170 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
6171 (LONGRUNNING_THRESHOLD): Remove.
6172 (LATENCY_FACTOR): Remove.
6173 (s390_get_unit_mask): Add unit.
6174 (s390_sched_score): Use fxd/fpd.
6175 (s390_sched_variable_issue): Use fxd/fpd.
6176
6177 2019-03-12 Martin Liska <mliska@suse.cz>
6178
6179 * config/i386/i386.c: Reword an error message.
6180
6181 2019-03-12 Martin Jambor <mjambor@suse.cz>
6182
6183 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
6184 terminate with newline.
6185
6186 2019-03-12 Jakub Jelinek <jakub@redhat.com>
6187
6188 PR target/52726
6189 * config/s390/s390.md (tabort): Use %wd instead of
6190 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
6191 letters and periods.
6192 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
6193 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
6194 's with %< and %>.
6195
6196 PR middle-end/89663
6197 * builtins.c (expand_builtin_int_roundingfn,
6198 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
6199 gcc_unreachable if validate_arglist fails.
6200
6201 2019-03-12 Richard Biener <rguenther@suse.de>
6202
6203 PR tree-optimization/89664
6204 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
6205 free the occurance tree after the early out.
6206
6207 2019-03-11 Jakub Jelinek <jakub@redhat.com>
6208
6209 PR middle-end/89655
6210 PR bootstrap/89656
6211 * vr-values.c (vr_values::update_value_range): If
6212 old_vr->varying_p (), don't update it, make new_vr also VARYING
6213 and return false.
6214
6215 2019-03-11 Martin Liska <mliska@suse.cz>
6216
6217 * config/aarch64/aarch64.c (aarch64_override_options_internal):
6218 Fix double string quoting.
6219
6220 2019-03-11 Martin Liska <mliska@suse.cz>
6221
6222 * collect-utils.c (collect_wait): Wrap apostrophes
6223 in gcc internal format with %'.
6224 * collect2.c (main): Likewise.
6225 (scan_prog_file): Likewise.
6226 (scan_libraries): Likewise.
6227 * config/i386/i386.c (ix86_expand_call): Likewise.
6228 (ix86_handle_interrupt_attribute): Likewise.
6229 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6230 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
6231 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
6232 * lto-wrapper.c (find_crtoffloadtable): Likewise.
6233 * symtab.c (symtab_node::verify_base): Likewise.
6234 * tree-cfg.c (verify_gimple_label): Likewise.
6235 * tree.c (verify_type_variant): Likewise.
6236
6237 2019-03-11 Martin Liska <mliska@suse.cz>
6238
6239 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
6240 in a string format message and fix GNU coding style.
6241 (expand_builtin_set_thread_pointer): Likewise.
6242 * common/config/aarch64/aarch64-common.c
6243 (aarch64_rewrite_selected_cpu): Likewise.
6244 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
6245 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
6246 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
6247 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
6248 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
6249 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
6250 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
6251 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
6252 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
6253 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
6254 Likewise.
6255 * common/config/riscv/riscv-common.c
6256 (riscv_subset_list::parsing_subset_version): Likewise.
6257 (riscv_subset_list::parse_std_ext): Likewise.
6258 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6259 (riscv_subset_list::parse): Likewise.
6260 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
6261 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
6262 (aarch64_override_options_internal): Likewise.
6263 (aarch64_validate_mcpu): Likewise.
6264 (aarch64_validate_march): Likewise.
6265 (aarch64_validate_mtune): Likewise.
6266 (aarch64_override_options): Likewise.
6267 * config/alpha/alpha.c (alpha_option_override): Likewise.
6268 * config/arc/arc.c (arc_init): Likewise.
6269 (parse_mrgf_banked_regs_option): Likewise.
6270 (arc_override_options): Likewise.
6271 (arc_expand_builtin_aligned): Likewise.
6272 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
6273 (arm_expand_builtin): Likewise.
6274 * config/arm/arm.c (arm_option_check_internal): Likewise.
6275 (arm_configure_build_target): Likewise.
6276 (arm_option_override): Likewise.
6277 (arm_options_perform_arch_sanity_checks): Likewise.
6278 (arm_handle_cmse_nonsecure_entry): Likewise.
6279 (arm_handle_cmse_nonsecure_call): Likewise.
6280 (arm_tls_referenced_p): Likewise.
6281 (thumb1_expand_prologue): Likewise.
6282 * config/avr/avr.c (avr_option_override): Likewise.
6283 * config/bfin/bfin.c (bfin_option_override): Likewise.
6284 * config/c6x/c6x.c (c6x_option_override): Likewise.
6285 * config/cr16/cr16.c (cr16_override_options): Likewise.
6286 * config/cris/cris.c (cris_option_override): Likewise.
6287 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
6288 * config/darwin-c.c (macosx_version_as_macro): Likewise.
6289 * config/darwin.c (darwin_override_options): Likewise.
6290 * config/frv/frv.c (frv_expand_builtin): Likewise.
6291 * config/h8300/h8300.c (h8300_option_override): Likewise.
6292 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
6293 (ix86_option_override_internal): Likewise.
6294 (warn_once_call_ms2sysv_xlogues): Likewise.
6295 (ix86_expand_prologue): Likewise.
6296 (split_stack_prologue_scratch_regno): Likewise.
6297 (ix86_warn_parameter_passing_abi): Likewise.
6298 * config/ia64/ia64.c (fix_range): Likewise.
6299 * config/m68k/m68k.c (m68k_option_override): Likewise.
6300 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
6301 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
6302 (mips_set_compression_mode): Likewise.
6303 * config/mmix/mmix.c (mmix_option_override): Likewise.
6304 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
6305 * config/msp430/msp430.c (msp430_option_override): Likewise.
6306 * config/nds32/nds32.c (nds32_option_override): Likewise.
6307 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
6308 (nios2_option_override): Likewise.
6309 (nios2_expand_custom_builtin): Likewise.
6310 * config/nvptx/mkoffload.c (main): Likewise.
6311 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
6312 * config/pa/pa.c (fix_range): Likewise.
6313 (pa_option_override): Likewise.
6314 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
6315 (riscv_option_override): Likewise.
6316 * config/rl78/rl78.c (rl78_option_override): Likewise.
6317 * config/rs6000/aix61.h: Likewise.
6318 * config/rs6000/aix71.h: Likewise.
6319 * config/rs6000/aix72.h: Likewise.
6320 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
6321 * config/rs6000/freebsd64.h: Likewise.
6322 * config/rs6000/linux64.h: Likewise.
6323 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
6324 (rs6000_expand_zeroop_builtin): Likewise.
6325 (rs6000_expand_mtfsb_builtin): Likewise.
6326 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
6327 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
6328 (rs6000_invalid_builtin): Likewise.
6329 (rs6000_expand_split_stack_prologue): Likewise.
6330 * config/rs6000/rtems.h: Likewise.
6331 * config/rx/rx.c (valid_psw_flag): Likewise.
6332 (rx_expand_builtin): Likewise.
6333 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6334 * config/s390/s390.c (s390_expand_builtin): Likewise.
6335 (s390_function_profiler): Likewise.
6336 (s390_option_override_internal): Likewise.
6337 (s390_option_override): Likewise.
6338 * config/sh/sh.c (sh_option_override): Likewise.
6339 (sh_builtin_saveregs): Likewise.
6340 (sh_fix_range): Likewise.
6341 * config/sh/vxworks.h: Likewise.
6342 * config/sparc/sparc.c (sparc_option_override): Likewise.
6343 * config/spu/spu.c (spu_option_override): Likewise.
6344 (fix_range): Likewise.
6345 * config/visium/visium.c (visium_option_override): Likewise.
6346 (visium_handle_interrupt_attr): Likewise.
6347 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
6348 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
6349 (dbg_cnt_process_opt): Likewise.
6350 * dwarf2out.c (output_dwarf_version): Likewise.
6351 * except.c (expand_eh_return): Likewise.
6352 * gcc.c (defined): Likewise.
6353 (driver_handle_option): Likewise.
6354 (process_command): Likewise.
6355 (compare_files): Likewise.
6356 (driver::prepare_infiles): Likewise.
6357 (driver::do_spec_on_infiles): Likewise.
6358 (driver::maybe_run_linker): Likewise.
6359 * omp-offload.c (oacc_parse_default_dims): Likewise.
6360 * opts-global.c (handle_common_deferred_options): Likewise.
6361 * opts.c (parse_sanitizer_options): Likewise.
6362 (common_handle_option): Likewise.
6363 (enable_warning_as_error): Likewise.
6364 * passes.c (enable_disable_pass): Likewise.
6365 * plugin.c (parse_plugin_arg_opt): Likewise.
6366 (default_plugin_dir_name): Likewise.
6367 * targhooks.c (default_expand_builtin_saveregs): Likewise.
6368 (default_pch_valid_p): Likewise.
6369 * toplev.c (init_asm_output): Likewise.
6370 (process_options): Likewise.
6371 (toplev::run_self_tests): Likewise.
6372 * tree-cfg.c (verify_gimple_call): Likewise.
6373 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
6374 (tree_inlinable_function_p): Likewise.
6375 * var-tracking.c (vt_find_locations): Likewise.
6376
6377 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
6378
6379 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
6380 only on the else branch.
6381
6382 2019-03-11 Martin Liska <mliska@suse.cz>
6383
6384 * gcov.c (output_intermediate_json_line): Print function
6385 name of each line.
6386 (output_json_intermediate_file): Add new argument.
6387 * doc/gcov.texi: Document the change.
6388
6389 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
6390
6391 PR rtl-optimization/89588
6392 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
6393 explicit unrolling factor more robust.
6394
6395 2019-03-11 Richard Biener <rguenther@suse.de>
6396
6397 PR tree-optimization/89649
6398 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6399 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
6400 on the prolog and epilog loops.
6401 (vect_loop_versioning): Return copy of loop.
6402 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
6403 on the non-vectorized version of the loop.
6404
6405 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
6406
6407 PR target/68924
6408 * config/i386/sse.md (*vec_extractv2di_0_sse):
6409 Add (=r,x) alternative and corresponding splitter.
6410
6411 2019-03-10 Martin Jambor <mjambor@suse.cz>
6412
6413 PR tree-optimization/85762
6414 PR tree-optimization/87008
6415 PR tree-optimization/85459
6416 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
6417 it points to if there is a type changing MEM_REF. Adjust all callers.
6418 (build_accesses_from_assign): Disable total scalarization if
6419 contains_vce_or_bfcref_p returns true through the new parameter, for
6420 both rhs and lhs.
6421
6422 2019-03-09 Jakub Jelinek <jakub@redhat.com>
6423
6424 PR c/88568
6425 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
6426 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
6427
6428 PR target/79645
6429 * common.opt (fdiagnostics-show-labels,
6430 fdiagnostics-show-line-numbers, fdiagnostics-format=,
6431 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
6432 gas-locview-support, ginline-points, ginternal-reset-location-views):
6433 Terminate description text with a dot.
6434 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
6435 * config/mcore/mcore.opt (m210, m340): Likewise.
6436 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
6437 mnops=): Start description text with a capital letter.
6438 * config/arc/arc.opt (msize-level=): Likewise.
6439 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
6440 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
6441 mnewlib): Likewise.
6442 * config/ft32/ft32.opt (msim): Likewise.
6443 (mft32b, mcompress): Likewise. Terminate description text with a dot.
6444 (mnodiv, mnopm): Terminate description text with a dot.
6445 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
6446 a colon.
6447 * config/i386/i386.opt (prefer_vector_width, instrument_return):
6448 Likewise.
6449 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
6450 text.
6451
6452 PR rtl-optimization/89634
6453 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
6454 are modified in BB_END (e->src) instruction.
6455
6456 2019-03-08 David Malcolm <dmalcolm@redhat.com>
6457
6458 PR target/79926
6459 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
6460 messages more amenable to translation, and improve wording.
6461
6462 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
6463
6464 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
6465 ud- and du-chains between phases.
6466
6467 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
6468
6469 PR debug/89631
6470 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
6471 instead of POLY_INT_CST.
6472
6473 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
6474
6475 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
6476 requirement.
6477
6478 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
6479
6480 PR target/68924
6481 PR target/78782
6482 PR target/87558
6483 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
6484 (_mm_storeu_si64): Ditto.
6485
6486 2019-03-08 Martin Liska <mliska@suse.cz>
6487
6488 PR target/86952
6489 * config/i386/i386.c (ix86_option_override_internal): Disable
6490 jump tables when retpolines are used.
6491
6492 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
6493
6494 PR go/63560
6495 * ipa-split.c (execute_split_functions): Do not split
6496 'noinline' or 'section' function.
6497
6498 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6499
6500 PR target/79846
6501 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
6502 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
6503 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
6504
6505 PR ipa/80000
6506 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6507 from diagnostics. Formatting fixes.
6508
6509 PR target/85665
6510 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
6511 warn_odr diagnostics.
6512
6513 PR other/80058
6514 * lra-constraints.c (process_alt_operands): Avoid one space before
6515 " at the end of line and another after " on another line in a string
6516 literal.
6517 * attribs.c (handle_dll_attribute): Likewise.
6518 * config/avr/avr-devices.c (avr_texinfo): Likewise.
6519
6520 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
6521 warning_at or inform messages in G_() if there is no ?:.
6522
6523 PR tree-optimization/89550
6524 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
6525 returned true. Formatting fixes.
6526 (expand_builtin_strnlen): Formatting fixes.
6527 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
6528 if warning_at returned true.
6529 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
6530
6531 2019-03-08 Richard Biener <rguenther@suse.de>
6532
6533 PR middle-end/89578
6534 * cfgloop.h (struct loop): Add owned_clique field.
6535 * cfgloopmanip.c (copy_loop_info): Copy it.
6536 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
6537 cliques.
6538 * tree-inline.c (copy_loops): Remap owned_clique.
6539 * lto-streamer-in.c (input_cfg): Stream owned_clique.
6540 * lto-streamer-out.c (output_cfg): Likewise.
6541
6542 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6543
6544 PR target/80190
6545 * config/darwin.c: Include intl.h.
6546 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
6547 composing the message out of two separate parts.
6548
6549 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6550
6551 PR target/80003
6552 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
6553 doesn't start with a capital letter and doesn't end with a dot.
6554 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
6555 with a capital letter.
6556 (ix86_mangle_function_version_assembler_name): Likewise.
6557 (ix86_generate_version_dispatcher_body): Likewise.
6558 (fold_builtin_cpu): Likewise.
6559 (get_builtin_code_for_version): Likewise. Remove extraneous space.
6560 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
6561 translators, wrap full type name in %qs.
6562
6563 PR translation/79999
6564 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
6565 depend clause with source (or sink) modifier.
6566 * omp-expand.c (expand_omp_ordered_sink): Likewise.
6567
6568 PR target/89602
6569 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
6570 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
6571 (avx512f_load<mode>_mask): New define_expand.
6572 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
6573 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
6574 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
6575 __builtin_ia32_movess_mask): New builtins.
6576 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
6577 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
6578 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
6579 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
6580
6581 2019-03-07 Martin Jambor <mjambor@suse.cz>
6582
6583 PR lto/87525
6584 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
6585 for extern inline functions.
6586
6587 2019-03-07 Martin Jambor <mjambor@suse.cz>
6588
6589 PR ipa/88235
6590 * cgraph.h (cgraph_node): New inline method former_thunk_p.
6591 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
6592 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
6593 have multiple callees. At the end check if declarations match as
6594 opposed to cgraph_nodes.
6595
6596 2019-03-07 Martin Liska <mliska@suse.cz>
6597
6598 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
6599 which is equivalent to searching for this in clones chain.
6600 * symtab.c (symtab_node::verify_base): Similarly compare ASM
6601 names with a neighbour and special case first node in a chain.
6602
6603 2019-01-25 Jason Merrill <jason@redhat.com>
6604
6605 PR c++/80916 - spurious "static but not defined" warning.
6606 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
6607 for an internal symbol with DECL_EXTERNAL.
6608
6609 2019-04-07 Richard Biener <rguenther@suse.de>
6610
6611 PR middle-end/89618
6612 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
6613 * tree-inline.c (copy_loops): Simplify.
6614
6615 2019-03-07 Martin Liska <mliska@suse.cz>
6616
6617 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
6618
6619 2019-03-07 Richard Biener <rguenther@suse.de>
6620
6621 PR tree-optimization/89595
6622 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
6623 stmt iterator as reference, take boolean output parameter to
6624 indicate whether the stmt was removed and thus the iterator
6625 already advanced.
6626 (dom_opt_dom_walker::before_dom_children): Re-iterate over
6627 stmts created by folding.
6628
6629 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6630
6631 PR c++/89585
6632 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
6633 at toplevel.
6634
6635 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
6636
6637 PR rtl-optimization/88845
6638 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
6639 LRA.
6640 * lra.c (remove_scratches_1): New function.
6641 (remove_scratches): Use it.
6642 (lra_emit_move): Likewise.
6643
6644 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
6645
6646 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
6647 unaligned_access variable.
6648 * config/arc/arc.c (arc_override_options): Set unaligned access
6649 default on for HS CPUs.
6650 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
6651
6652 2019-03-06 Martin Liska <mliska@suse.cz>
6653
6654 PR gcov-profile/89577
6655 * doc/gcov.texi: Prefer to use --coverage.
6656 * doc/sourcebuild.texi: Likewise.
6657
6658 2019-03-02 Jason Merrill <jason@redhat.com>
6659
6660 PR c++/86485 - -Wmaybe-unused with empty class ?:
6661 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
6662
6663 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6664
6665 PR target/89587
6666 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
6667 if_multiarch.
6668
6669 PR middle-end/89590
6670 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
6671 exactly one argument.
6672
6673 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6674 Richard Sandiford <richard.sandiford@arm.com>
6675
6676 PR tree-optimization/89570
6677 * match.pd (vec_cond into cond_op simplification): Don't use
6678 get_conditional_internal_fn, use as_internal_fn (cond_op).
6679
6680 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
6681
6682 PR target/89222
6683 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
6684 to decide when to split off a non-zero offset from a symbol.
6685 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
6686 in function symbols.
6687
6688 2019-03-05 Richard Biener <rguenther@suse.de>
6689
6690 PR tree-optimization/89594
6691 * tree-if-conv.c (pass_if_conversion::execute): Handle
6692 case where .LOOP_VECTORIZED_FUNCTION was removed.
6693
6694 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6695
6696 PR bootstrap/89560
6697 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
6698 instead alloca it only when needed with the needed size.
6699
6700 PR tree-optimization/89570
6701 * match.pd (vec_cond into cond_op simplification): Guard with
6702 vectorized_internal_fn_supported_p test and #if GIMPLE.
6703
6704 PR tree-optimization/89566
6705 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
6706 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
6707 Punt if get_user_idx_format succeeds, but idx_format argument is
6708 not provided or doesn't have pointer type, or if idx_args is above
6709 number of provided arguments.
6710
6711 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
6712
6713 PR tree-optimization/89437
6714 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
6715
6716 2019-03-04 Richard Biener <rguenther@suse.de>
6717
6718 PR middle-end/89572
6719 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
6720 safe_dyn_cast.
6721
6722 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
6723
6724 PR tree-optimization/89487
6725 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
6726 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
6727 (distribute_loop): Don't do runtime alias check if there is non-
6728 addressable data reference.
6729 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
6730 is a register variable.
6731
6732 2019-03-02 Jakub Jelinek <jakub@redhat.com>
6733
6734 PR target/89506
6735 * config/arm/arm.md (cmpsi2_addneg): Use
6736 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
6737 If operands[2] is 0 or INT_MIN, force use of subs.
6738 (*compare_scc splitter): Use gen_int_mode.
6739 (*negscc): Likewise.
6740 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
6741
6742 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
6743 Monk Chiang <sh.chiang04@gmail.com>
6744
6745 * common/config/riscv/riscv-common.c: Include sstream.
6746 (riscv_subset_list::to_string): New.
6747 (riscv_arch_str): Likewise.
6748 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
6749 * config.in: Regen.
6750 * config/riscv/riscv-protos.h (riscv_arch_str): New.
6751 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
6752 (riscv_emit_attribute): New.
6753 (riscv_file_start): Emit attribute if needed.
6754 (riscv_option_override): Init riscv_emit_attribute_p.
6755 * config/riscv/riscv.opt (mriscv-attribute): New option.
6756 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
6757 * configure: Regen.
6758 * doc/install.texi: Document --with-riscv-attribute.
6759 * doc/invoke.texi: Document -mriscv-attribute.
6760
6761 * common/config/riscv/riscv-common.c:
6762 Include config/riscv/riscv-protos.h.
6763 (INCLUDE_STRING): Defined.
6764 (RISCV_DONT_CARE_VERSION): Defined.
6765 (riscv_subset_t): Declare.
6766 (riscv_subset_t::riscv_subset_t): New.
6767 (riscv_subset_list): Declare.
6768 (riscv_subset_list::riscv_subset_list): New.
6769 (riscv_subset_list::~riscv_subset_list): Likewise.
6770 (riscv_subset_list::parsing_subset_version): Likewise.
6771 (riscv_subset_list::parse_std_ext): Likewise.
6772 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6773 (riscv_subset_list::add): Likewise.
6774 (riscv_subset_list::lookup): Likewise.
6775 (riscv_subset_list::xlen): Likewise.
6776 (riscv_subset_list::parse): Likewise.
6777 (riscv_supported_std_ext): Likewise.
6778 (current_subset_list): Likewise.
6779 (riscv_parse_arch_string): Using riscv_subset_list::parse to
6780 parse.
6781
6782 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
6783
6784 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6785 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6786 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6787
6788 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
6789
6790 PR rtl-optimization/85899
6791 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6792 fallthru edges leading to the exit block.
6793
6794 2019-03-01 Tamar Christina <tamar.christina@arm.com>
6795
6796 PR target/89517
6797 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6798 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6799
6800 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
6801
6802 PR tree-optimization/89535
6803 * tree-vect-stmts.c (vectorizable_call): Record the vector types
6804 for each operand. Calculate the fallback choice for mask operands
6805 and pass it to vect_get_vec_def_for_operand.
6806
6807 2019-03-01 Richard Biener <rguenther@suse.de>
6808
6809 PR middle-end/89541
6810 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6811 get virtual operands.
6812 (get_expr_operands): Handle CONST_DECL like other decls.
6813
6814 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6815
6816 PR middle-end/89503
6817 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6818 on DECL_P and EXPR_P.
6819
6820 2019-03-01 Richard Biener <rguenther@suse.de>
6821
6822 PR middle-end/89497
6823 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6824 argument, defaulted to zero.
6825 * passes.c (execute_function_todo): Pass down SSA update flags
6826 to cleanup_tree_cfg.
6827 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6828 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6829 form if requested.
6830 (cleanup_tree_cfg): Get and pass down SSA update flags.
6831
6832 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6833
6834 PR bootstrap/89539
6835 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6836 early_lto_debug argument.
6837
6838 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
6839
6840 PR tree-optimization/89536
6841 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6842 only whether bit #0 of the value is 0 instead of the entire value.
6843
6844 2019-02-28 Marek Polacek <polacek@redhat.com>
6845
6846 PR c++/87068 - missing diagnostic with fallthrough statement.
6847 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6848 at the end of a seq, save its location to walk_stmt_info.
6849 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6850 a switch.
6851
6852 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
6853
6854 PR lto/88585
6855 * tree.c (find_atomic_core_type): Move ahead in file.
6856 (check_base_type): Correctly compare alignments of atomic types.
6857
6858 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
6859
6860 PR target/89455
6861 * config/i386/i386.c (get_builtin_code_for_version): Identify
6862 Westmere from PCLMUL, instead of AES.
6863
6864 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6865
6866 PR target/89434
6867 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6868 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6869 -UINTVAL (...).
6870
6871 2019-02-28 Tamar Christina <tamar.christina@arm.com>
6872
6873 PR target/88530
6874 * config/aarch64/aarch64-option-extensions.def: Document it.
6875 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6876 if empty hwcaps.
6877
6878 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6879
6880 PR c/89520
6881 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6882 builtins if they don't have a single scalar floating point argument.
6883 Formatting fixes.
6884
6885 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6886
6887 PR rtl-optimization/89490
6888 * varasm.c (get_block_for_section): Bail out for mergeable sections.
6889 (default_use_anchors_for_symbol_p, output_object_block): Assert the
6890 block section is not mergeable.
6891
6892 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6893
6894 PR target/70341
6895 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
6896 old define_insn to ...
6897 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
6898 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6899 Rename old define_insn to ...
6900 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
6901 (thumb2_casesi_internal_pic): New define_expand. Rename old
6902 define_insn to ...
6903 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
6904 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6905 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6906
6907 2019-02-27 Richard Biener <rguenther@suse.de>
6908
6909 PR debug/88878
6910 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6911
6912 2019-02-27 Richard Biener <rguenther@suse.de>
6913
6914 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6915 building.
6916
6917 2019-02-27 Richard Biener <rguenther@suse.de>
6918
6919 PR debug/88878
6920 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6921 parameter, prefix section name with .gnu.debuglto_ if true.
6922 (dwarf2out_finish): Pass false to output_comdat_type_unit.
6923 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6924
6925 2019-02-27 Richard Biener <rguenther@suse.de>
6926
6927 PR debug/89514
6928 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6929 rather than on use_debug_types, doing what output_die does.
6930 (value_format): Likewise.
6931
6932 2019-02-27 Martin Jambor <mjambor@suse.cz>
6933 Martin Sebor <msebor@redhat.com>
6934
6935 * doc/invoke.texi (Warning Options): Reword description of
6936 -Wno-absolute-value.
6937
6938 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6939
6940 PR tree-optimization/89280
6941 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6942 builtin_setjmp_setup_bb): New functions.
6943 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6944 When visiting __builtin_setjmp_setup block, queue in special
6945 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6946 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
6947 from visited after the loop if they don't have any visited successor
6948 blocks.
6949
6950 2018-02-26 Steve Ellcey <sellcey@marvell.com>
6951
6952 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6953 New function.
6954 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6955
6956 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6957
6958 PR c++/89507
6959 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6960 with types other than sizetype/ssizetype.
6961
6962 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6963
6964 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6965 (enum sparc_processor_type): ...this.
6966 (enum sparc_code_model_type): New enumeration type.
6967 (enum sparc_memory_model_type): Tweak comments.
6968 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6969 (mtune): Likewise.
6970 (mcmodel): Use sparc_code_model enumeration and variable.
6971 (sparc_code_model): New enumeration.
6972 (mdebug): Add Undocumented marker.
6973 * config/sparc/sparc.h (enum cmodel): Delete.
6974 (sparc_cmodel): Likewise.
6975 (TARGET_CM_MEDLOW): Adjust to above renaming.
6976 (TARGET_CM_MEDMID): Likewise.
6977 (TARGET_CM_MEDANY): Likewise.
6978 (TARGET_CM_EMBMEDANY): Likewise.
6979 * config/sparc/sparc.c (sparc_cmodel): Delete.
6980 (sparc_option_override): Remove string/value mapping support for the
6981 code model. Move code and memory model support to after the handling
6982 of target flags. Do private machine setup last.
6983 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6984 (sparc_legitimize_reload_address): Likewise.
6985 (sparc_output_mi_thunk): Likewise.
6986 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6987
6988 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6989
6990 PR tree-optimization/89500
6991 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6992 (handle_builtin_strlen): Remove noncst_bound variable. Always
6993 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
6994 cst if the first cst bytes starting at x are known to be non-zero,
6995 even if the string is not zero terminated. Don't try to modify
6996 *si for strnlen. Update strlen_to_stridx only for strlen or if
6997 we can prove strnlen returns the same value as strlen would.
6998
6999 2019-02-26 Martin Liska <mliska@suse.cz>
7000
7001 * alloc-pool.h (struct pool_usage): Remove extra
7002 print_dash_line.
7003 * bitmap.h (struct bitmap_usage): Likewise.
7004 * ggc-common.c (struct ggc_usage): Likewise.
7005 * mem-stats.h (struct mem_usage): Likewise.
7006 (mem_alloc_description::dump): Print dash lines
7007 here and repeat header at the end of a table report.
7008 It's then more readable.
7009 * tree-phinodes.c (phinodes_print_statistics): Make
7010 horizontal alignment.
7011 * tree-ssanames.c (ssanames_print_statistics): Likewise.
7012 * vec.c (struct vec_usage): Remove extra print_dash_line.
7013 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
7014
7015 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
7016
7017 * doc/extend.texi (__builtin_object_size):
7018 Use @pxref instead of @xref inside parenthesis.
7019 (__builtin_has_attribute): Add missing comma after @xref.
7020 (__builtin_object_size): Ditto.
7021 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
7022 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
7023 in the list.
7024
7025 2019-02-26 Jeff Law <law@redhat.com>
7026
7027 PR rtl-optimization/87761
7028 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
7029 detect obviously dead insns and delete them.
7030
7031 2019-02-26 Richard Biener <rguenther@suse.de>
7032
7033 PR tree-optimization/89505
7034 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
7035 to handle restrict pointed-to vars with multiple subvars
7036 correctly.
7037
7038 2019-02-26 Richard Biener <rguenther@suse.de>
7039
7040 PR tree-optimization/89489
7041 * tree-parloops.c (create_loop_fn): Copy over last_clique.
7042
7043 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
7044
7045 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
7046 and move around comment.
7047 <BIT_AND_EXPR>: Likewise.
7048 <BIT_NOT_EXPR>: Add specific handling for boolean types.
7049
7050 2019-02-26 Jakub Jelinek <jakub@redhat.com>
7051
7052 PR target/89474
7053 * config/i386/i386.c (remove_partial_avx_dependency): Call
7054 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
7055 after changing possibly many instructions to use that pseudo. Fix up
7056 insertion of v4sf_const0 setter at the start of bb.
7057
7058 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
7059
7060 PR c/80409
7061 * doc/extend.texi (Variadic Pointer Args): New section.
7062
7063 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
7064 Martin Sebor <msebor@gmail.com>
7065
7066 * common.opt (Wattribute-alias): Likewise.
7067 * doc/invoke.texi (Option Summary): List general form of
7068 -Wattribute-alias=. List positive form of -Wmissing-attributes.
7069 (-Wmissing-attributes): Invert entry, rewrite and correct default.
7070 Add cross-references.
7071 (-Wattribute-alias): Rewrite and correct default. Mention
7072 considered attributes (same as for -Wmissing-attributes).
7073
7074 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
7075
7076 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
7077 (_mm_cvtpd_ps): Likewise.
7078 (_mm_cvttpd_epi32): Likewise.
7079
7080 PR target/89338
7081 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
7082 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
7083
7084 PR target/89339
7085 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
7086
7087 2019-02-25 Tamar Christina <tamar.christina@arm.com>
7088
7089 PR target/88530
7090 * common/config/aarch64/aarch64-common.c
7091 (struct aarch64_option_extension): Add is_synthetic.
7092 (all_extensions): Use it.
7093 (TARGET_OPTION_INIT_STRUCT): Define hook.
7094 (struct gcc_targetm_common): Moved to end.
7095 (all_extensions_by_on): New.
7096 (opt_ext_cmp, typedef opt_ext): New.
7097 (aarch64_option_init_struct): New.
7098 (aarch64_contains_opt): New.
7099 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
7100 * config/aarch64/aarch64-option-extensions.def
7101 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
7102 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
7103 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
7104 Set is_synthetic to false.
7105 (crypto): Set is_synthetic to true.
7106 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
7107 SYNTHETIC.
7108
7109 2019-02-25 Tamar Christina <tamar.christina@arm.com>
7110
7111 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
7112 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
7113 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
7114 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
7115 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
7116 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
7117 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
7118 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
7119 Rename ...
7120 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
7121 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
7122 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
7123 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
7124 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
7125 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
7126 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
7127 vfmlsl_laneq_high_f16): ... To this.
7128 * config/arm/neon.md: Update comments.
7129
7130 2019-02-25 Tamar Christina <tamar.christina@arm.com>
7131
7132 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
7133 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
7134 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
7135 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
7136 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
7137 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
7138 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
7139 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
7140 Rename ...
7141 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
7142 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
7143 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
7144 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
7145 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
7146 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
7147 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
7148 vfmlslq_laneq_high_f16): ... To this.
7149
7150 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
7151
7152 PR rtl-optimization/86096
7153 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
7154 comparing mw_order values.
7155
7156 2019-02-25 Jakub Jelinek <jakub@redhat.com>
7157
7158 PR target/89434
7159 * config/arm/arm.md (*subsi3_carryin_const): Use
7160 arm_neg_immediate_operand predicate instead of
7161 arm_not_immediate_operand, "L" constraint instead of "K" and
7162 print it using %n2 instead of %B2.
7163 (*subsi3_carryin_const0): New define_insn.
7164 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
7165 instead of arm_not_operand and "I" constraint instead of "K" and
7166 print it using %n3 instead of %B2. Instead of using match_dup 2 add
7167 another match_operand and in the condition check that it is negation
7168 of operands[2].
7169 (*subsi3_carryin_compare_const0): New define_ins.
7170 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
7171 *subsi3_carryin_const.
7172 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
7173 split into *subsi3_carryin_compare_const0 if the highpart is zero.
7174
7175 PR target/89438
7176 * config/arm.vfp.md (*negdf2_vfp): Use
7177 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
7178 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
7179
7180 2019-02-24 Jakub Jelinek <jakub@redhat.com>
7181
7182 PR rtl-optimization/89445
7183 * simplify-rtx.c (simplify_ternary_operation): Don't use
7184 simplify_merge_mask on operands that may trap.
7185 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
7186 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
7187 second operand is CONST_VECTOR, check if any element could be zero.
7188 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
7189 their operands can trap.
7190
7191 2019-02-23 Martin Sebor <msebor@redhat.com>
7192
7193 * gimple-ssa-sprintf.c (target_strtol): Rename...
7194 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
7195 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
7196 check for range error.
7197
7198 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
7199
7200 PR driver/69471
7201 * opts-common.c (prune_options): Also prune joined switches
7202 with Negative and RejectNegative.
7203 * config/i386/i386.opt (march=): Add Negative(march=).
7204 (mtune=): Add Negative(mtune=).
7205 * doc/options.texi: Document Negative used together with Joined
7206 and RejectNegative.
7207
7208 2019-02-22 Martin Sebor <msebor@redhat.com>
7209
7210 * doc/extend.texi (Other Builtins): Add
7211 __builtin_is_constant_evaluated.
7212
7213 2019-02-22 Richard Biener <rguenther@suse.de>
7214
7215 PR tree-optimization/87609
7216 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
7217
7218 2019-02-22 Jeff Law <law@redhat.com>
7219
7220 PR rtl-optimization/87761
7221 * config/mips/mips.md: Add new combiner pattern to recognize
7222 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
7223
7224 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
7225
7226 PR target/89324
7227 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
7228 destination register in peepholes generating patterns for ADDS/SUBS.
7229 (add<mode>3_compare0,
7230 *addsi3_compare0_uxtw, add<mode>3_compareC,
7231 add<mode>3_compareV_imm, add<mode>3_compareV,
7232 *adds_<optab><ALLX:mode>_<GPI:mode>,
7233 *subs_<optab><ALLX:mode>_<GPI:mode>,
7234 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
7235 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
7236 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
7237 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
7238 sub<mode>3_compare1): Allow stack pointer for source register.
7239 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
7240
7241 2019-02-22 Martin Sebor <msebor@redhat.com>
7242
7243 PR tree-optimization/88993
7244 PR tree-optimization/88853
7245 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
7246 New helper.
7247 (sprintf_dom_walker::call_info::is_string_func): New helper.
7248 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
7249 for formatted string functions.
7250 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
7251
7252 2019-02-22 Martin Sebor <msebor@redhat.com>
7253
7254 PR c/89425
7255 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
7256 unreachable subexpressions.
7257
7258 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
7259 Hongtao Liu <hongtao.liu@intel.com>
7260 Sunil K Pandey <sunil.k.pandey@intel.com>
7261
7262 PR target/87007
7263 * config/i386/i386-passes.def: Add
7264 pass_remove_partial_avx_dependency.
7265 * config/i386/i386-protos.h
7266 (make_pass_remove_partial_avx_dependency): New.
7267 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
7268 New function.
7269 (pass_data_remove_partial_avx_dependency): New.
7270 (pass_remove_partial_avx_dependency): Likewise.
7271 (make_pass_remove_partial_avx_dependency): Likewise.
7272 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
7273 (*extendsfdf2): Add avx_partial_xmm_update.
7274 (truncdfsf2): Likewise.
7275 (*float<SWI48:mode><MODEF:mode>2): Likewise.
7276 (SF/DF conversion splitters): Disabled for TARGET_AVX.
7277
7278 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
7279
7280 PR middle-end/85598
7281 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
7282 analysis for pass.
7283
7284 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
7285
7286 PR target/89444
7287 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
7288 (PTA_SKYLAKE): Add PTA_AES.
7289 (PTA_GOLDMONT): Likewise.
7290
7291 2019-02-22 Sudakshina Das <sudi.das@arm.com>
7292
7293 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
7294 instruction if enabled.
7295 (aarch64_override_options): Remove reference to return address key.
7296
7297 2019-02-22 Richard Biener <rguenther@suse.de>
7298
7299 PR tree-optimization/89440
7300 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
7301 not necessary assert.
7302
7303 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
7304
7305 PR fortran/72741
7306 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
7307 (oacc_replace_fn_attrib_attr): ... this new function.
7308 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
7309 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
7310
7311 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7312
7313 * config/arm/arm-cpus.in (ares): Rename to...
7314 (neoverse-n1): ... This. Add ares as alias.
7315 * config/arm/arm-tables.opt: Regenerate.
7316 * config/arm/arm-tune.md: Likewise.
7317 * doc/invoke.txt (ARM Options): Document neoverse-n1.
7318
7319 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7320
7321 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
7322 * config/aarch64/aarch64-tune.md: Regenerate.
7323 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
7324
7325 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7326
7327 * config/aarch64/aarch64.c (ares_tunings): Rename to...
7328 (neoversen1_tunings): ... This.
7329 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
7330 (neoverse-n1): New CPU.
7331 * config/aarch64/aarch64-tune.md: Regenerate.
7332 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
7333
7334 2019-02-22 Richard Biener <rguenther@suse.de>
7335
7336 PR middle-end/87609
7337 * cfghooks.h (dependence_hash): New typedef.
7338 (struct copy_bb_data): New type.
7339 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
7340 (duplicate_block): Likewise.
7341 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
7342 (copy_bbs): Create and pass down copy_bb_data.
7343 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
7344 (rtl_duplicate_bb): Likewise.
7345 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
7346 remap dependence info.
7347
7348 2019-02-22 Richard Biener <rguenther@suse.de>
7349
7350 PR tree-optimization/87609
7351 * tree-core.h (tree_base): Document special clique values.
7352 * tree-inline.c (remap_dependence_clique): Do not use the
7353 special clique value of one.
7354 (maybe_set_dependence_info): Use clique one.
7355 (clear_dependence_clique): New callback.
7356 (compute_dependence_clique): Clear clique one from all refs
7357 before assigning it (again).
7358
7359 2019-02-21 Martin Sebor <msebor@redhat.com>
7360
7361 * doc/extend.texi (__clear_cache): Correct signature.
7362
7363 2019-02-21 Ian Lance Taylor <iant@golang.org>
7364
7365 PR go/89170
7366 * varasm.c (decode_addr_const): Call lookup_constant_def rather
7367 than output_constant_def.
7368 (add_constant_to_table): New static function.
7369 (output_constant_def): Call add_constant_to_table.
7370 (tree_output_constant_def): Likewise.
7371
7372 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7373
7374 PR c++/89285
7375 * builtins.c (fold_builtin_arith_overflow): If first two args are
7376 INTEGER_CSTs, set intres and ovfres to constants rather than calls
7377 to ifn.
7378
7379 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
7380
7381 PR target/87412
7382 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
7383 error for -mindirect-branch/-mfunction-return with incompatible
7384 -fcf-protection.
7385
7386 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7387
7388 PR bootstrap/88714
7389 * constraints.md (q): Remove.
7390 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
7391 instead of q.
7392
7393 2019-02-21 Martin Jambor <mjambor@suse.cz>
7394
7395 PR hsa/89302
7396 * omp-general.c (omp_extract_for_data): Removed a duplicate call
7397 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
7398 (omp_adjust_for_condition): ...here. Added necessary parameters.
7399 * omp-general.h (omp_adjust_for_condition): Updated declaration.
7400 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
7401 proper values to new parameters of omp_adjust_for_condition.
7402
7403 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7404
7405 PR middle-end/89412
7406 * expr.c (expand_assignment): If result is a MEM, use change_address
7407 instead of simplify_gen_subreg.
7408
7409 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7410 David Malcolm <dmalcolm@redhat.com>
7411
7412 PR middle-end/89091
7413 * fold-const.c (decode_field_reference): Return NULL_TREE if
7414 lang_hooks.types.type_for_size returns NULL. Check it before
7415 overwriting *exp_. Use return NULL_TREE instead of return 0.
7416
7417 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7418
7419 PR middle-end/88074
7420 PR middle-end/89415
7421 * toplev.c (do_compile): Double the emin/emax exponents to workaround
7422 buggy mpc_norm.
7423
7424 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
7425
7426 PR target/89397
7427 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
7428 TARGET_SSE in addition to TARGET_SSE_MATH.
7429
7430 (ix86_excess_precision): Ditto.
7431 (ix86_float_exceptions_rounding_supported_p): Ditto.
7432 (use_rsqrt_p): Ditto.
7433 * config/i386/sse.md (rsqrt<mode>2): Ditto.
7434
7435 2019-02-20 David Malcolm <dmalcolm@redhat.com>
7436
7437 PR c/89410
7438 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
7439 linenum_arith_t when determining if two adjacent line spans are
7440 close enough to merge.
7441 (diagnostic_show_locus): Use linenum_arith_t when iterating over
7442 lines within each line_span.
7443
7444 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
7445
7446 PR target/86487
7447 * lra-constraints.c(uses_hard_regs_p): Fix handling of
7448 paradoxical SUBREGS.
7449
7450 2019-02-20 Li Jia He <helijia@linux.ibm.com>
7451
7452 PR target/88100
7453 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
7454 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
7455 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
7456 range checking it.
7457
7458 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
7459
7460 * config/gcn/gcn.c (print_operand): Fix typo.
7461
7462 2019-02-19 Richard Biener <rguenther@suse.de>
7463
7464 PR middle-end/88074
7465 * toplev.c (do_compile): Initialize mpfr's exponent range
7466 based on available float modes.
7467
7468 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
7469
7470 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
7471 as long as the epilogue isn't completed.
7472
7473 2019-02-18 Martin Sebor <msebor@redhat.com>
7474
7475 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
7476 __has_cpp_attribute, and __has_include.
7477
7478 2019-02-18 Martin Sebor <msebor@redhat.com>
7479
7480 * doc/invoke.texi (-Wreturn-type): Correct and expand.
7481
7482 2019-02-18 Martin Sebor <msebor@redhat.com>
7483
7484 PR middle-end/89294
7485 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
7486 expression.
7487 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
7488
7489 2019-02-18 Richard Biener <rguenther@suse.de>
7490
7491 PR tree-optimization/89296
7492 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
7493 of no-warning flag to cases that might emit the bogus warning.
7494
7495 2019-02-18 Jakub Jelinek <jakub@redhat.com>
7496
7497 PR bootstrap/88714
7498 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
7499 "q" constraint.
7500 * config/arm/vfp.md (*movdi_vfp): Likewise.
7501 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
7502 "q" constraint for operands[0].
7503
7504 PR target/89369
7505 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
7506 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
7507 pattern in a temporary buffer.
7508 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
7509 than 64-operands[2].
7510
7511 PR target/89361
7512 * config/s390/s390.c (s390_indirect_branch_attrvalue,
7513 s390_indirect_branch_settings): Define unconditionally.
7514 (s390_set_current_function): Likewise, but guard the whole body except
7515 the s390_indirect_branch_settings call with
7516 #if S390_USE_TARGET_ATTRIBUTE.
7517 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
7518
7519 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
7520 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
7521 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
7522 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
7523 HOST_WIDE_INT_1U instead of 1ULL.
7524 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
7525 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
7526 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
7527 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
7528 instead of 1UL.
7529 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
7530 instead of 1ul.
7531
7532 2019-02-18 Martin Jambor <mjambor@suse.cz>
7533
7534 PR tree-optimization/89209
7535 * tree-sra.c (create_access_replacement): New optional parameter
7536 reg_tree. Use it as a type if non-NULL and access type is not of
7537 a register type.
7538 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
7539 to create_access_replacement.
7540 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
7541 Check lacc is non-NULL before attempting to re-create it on the RHS.
7542
7543 2019-02-18 Martin Liska <mliska@suse.cz>
7544
7545 PR ipa/89306
7546 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
7547 by default.
7548 (symbol_table::free_edge): Recycle m_summary_id.
7549 * cgraph.h (get_summary_id): New.
7550 (symbol_table::release_symbol): Set m_summary_id to -1
7551 by default.
7552 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
7553 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
7554 function_summary to fast_function_summary.
7555 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
7556 * ipa-pure-const.c (class funct_state_summary_t):
7557 Switch from function_summary to fast_function_summary.
7558 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
7559 (class ipa_ref_opt_summary_t): Switch from function_summary
7560 to fast_function_summary.
7561 * symbol-summary.h (class function_summary_base): New class
7562 that is created from base of former function_summary.
7563 (function_summary_base::unregister_hooks): New.
7564 (class function_summary): Inherit from function_summary_base.
7565 (class call_summary_base): New class
7566 that is created from base of former call_summary.
7567 (class call_summary): Inherit from call_summary_base.
7568 (struct is_same): New.
7569 (class fast_function_summary): New summary class.
7570 (class fast_call_summary): New summary class.
7571 * vec.h (vec_safe_grow_cleared): New function.
7572
7573 2019-02-18 Martin Liska <mliska@suse.cz>
7574
7575 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
7576 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
7577 * doc/tm.texi: Document new target hook.
7578 * doc/tm.texi.in: Likewise.
7579 * target.def: Add new target macro.
7580 * gcc.c (find_fortran_preinclude_file): Do not search multilib
7581 suffixes.
7582
7583 2019-02-17 Alan Modra <amodra@gmail.com>
7584
7585 PR target/89271
7586 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
7587 output reg on add insn.
7588 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
7589
7590 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7591
7592 PR target/89372
7593 * config/i386/sse.md (ssedoublemode): Remove V4HI.
7594 (PMULHRSW): Likewise.
7595 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
7596 TARGET_AVX2.
7597 (ssse3_pmulhrswv4hi3): New expander.
7598
7599 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7600
7601 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
7602 MMX. Add isa attribute.
7603
7604 2019-02-16 Jakub Jelinek <jakub@redhat.com>
7605
7606 PR rtl-optimization/66152
7607 * builtins.h (c_readstr): Declare.
7608 * builtins.c (c_readstr): Remove forward declaration. Add
7609 null_terminated_p argument, if false, read all bytes from the
7610 string instead of stopping after '\0'.
7611 * expr.c (string_cst_read_str): New function.
7612 (store_expr): Use string_cst_read_str instead of
7613 builtin_strncpy_read_str. Try to store by pieces the whole
7614 exp_len first, and only if that fails, split it up into
7615 store by pieces followed by clear_storage. Formatting fix.
7616
7617 * config/i386/i386.md (*movqi_internal): Remove static from
7618 buf variable. Use output_asm_insn (buf, operands); return "";
7619 instead of return buf;.
7620 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
7621 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
7622 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
7623
7624 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7625
7626 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
7627 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
7628 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
7629 (CC1_SPEC): Likewise.
7630 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
7631
7632 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7633
7634 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
7635 the base address on 64-bit strict-alignment platforms.
7636
7637 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
7638
7639 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
7640
7641 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7642
7643 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
7644
7645 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
7646
7647 PR rtl-optimization/88308
7648 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
7649 on copied instruction.
7650
7651 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7652
7653 * final.c (insn_current_reference_address): Replace test on JUMP_P
7654 with test on jump_to_label_p.
7655 * config/visium/visium-passes.def: New file.
7656 * config/visium/t-visium (PASSES_EXTRA): Define.
7657 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
7658 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
7659 (TRAMPOLINE_ALIGNMENT): Define.
7660 * config/visium/visium.c (visium_option_override): Do not register
7661 the machine-specific reorg pass here.
7662 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
7663 for the GR6.
7664 (output_branch): Adjust threshold for long branch instruction.
7665 * config/visium/visium.md (cpu): Move around.
7666 (length): Adjust for the GR6.
7667
7668 2019-02-15 Richard Biener <rguenther@suse.de>
7669 Jakub Jelinek <jakub@redhat.com>
7670
7671 PR tree-optimization/89278
7672 * tree-loop-distribution.c: Include tree-eh.h.
7673 (generate_memset_builtin, generate_memcpy_builtin): Call
7674 rewrite_to_non_trapping_overflow on builtin->size before passing it
7675 to force_gimple_operand_gsi.
7676
7677 2019-02-15 Jakub Jelinek <jakub@redhat.com>
7678
7679 PR other/89342
7680 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
7681 optimize_debug.
7682 * opth-gen.awk: Likewise.
7683
7684 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7685
7686 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
7687 Enable MMX, SSE and SSE2 by default.
7688 * config/i386/i386.c (ix86_option_override_internal): Do not
7689 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
7690
7691 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7692
7693 PR rtl-optimization/89354
7694 * combine.c (make_extraction): Punt if extraction_mode is narrower
7695 than len bits.
7696
7697 2019-02-14 Maya Rashish <coypu@sdf.org>
7698
7699 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
7700 * config/netbsd-d.c: New file.
7701 * config/t-netbsd: Add netbsd-d.o
7702
7703 2018-02-14 Steve Ellcey <sellcey@marvell.com>
7704
7705 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
7706 affects_type_identity to true for aarch64_vector_pcs.
7707 (aarch64_comp_type_attributes): New function.
7708 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
7709
7710 2019-02-14 Tamar Christina <tamar.christina@arm.com>
7711
7712 PR target/88850
7713 * config/arm/iterators.md (ANY64): Add V4HF.
7714
7715 2019-02-14 Martin Liska <mliska@suse.cz>
7716
7717 PR rtl-optimization/89242
7718 * dce.c (delete_unmarked_insns): Call free_dominance_info we
7719 process a transformation.
7720
7721 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7722
7723 PR tree-optimization/89314
7724 * fold-const.c (fold_binary_loc): Cast strlen argument to
7725 const char * before dereferencing it. Formatting fixes.
7726
7727 PR middle-end/89284
7728 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
7729
7730 2019-02-13 Ian Lance Taylor <iant@golang.org>
7731
7732 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
7733 and set current index for other optimizations.
7734
7735 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
7736
7737 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
7738 nonimmediate_operand as operand 2 predicate.
7739 (vec_set<VF2_512_256:mode>_0): Ditto.
7740 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
7741 (*vec_concatv2si): Remove alternative 2.
7742 (*vec_concatv4si_0): Use vm constraint for alternative 0.
7743 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
7744 (vec_concatv2di): Split alternatives 4,5,6 to ...
7745 (*vec_concatv2di_0) ... new pattern.
7746
7747 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
7748
7749 PR target/89190
7750 * config/arm/arm.c (ldm_stm_operation_p) Set
7751 addr_reg_in_reglist correctly for first register.
7752 (load_multiple_sequence): Remove dead base check.
7753 (gen_ldm_seq): Correctly set write_back for Thumb-1.
7754
7755 2019-02-13 Tamar Christina <tamar.christina@arm.com>
7756
7757 PR target/88847
7758 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
7759 Expose as @aarch64_pred_mov.
7760 * config/aarch64/aarch64.c (aarch64_classify_address):
7761 Use expand_insn which legitimizes operands.
7762
7763 2019-02-13 Martin Liska <mliska@suse.cz>
7764
7765 * builtins.h (expand_builtin_with_bounds): Remove declaration.
7766 * calls.c (struct arg_data): Remove special_slot, pointer_arg
7767 and pointer_offset fields.
7768 (initialize_argument_information): Remove usage of dead
7769 fields.
7770 * cgraph.h (struct cgraph_thunk_info): Remove
7771 add_pointer_bounds_args.
7772 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7773 fields.
7774 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7775 fields.
7776 * config/i386/i386.c (ix86_function_arg_advance): Remove
7777 unrelated comment.
7778 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7779 (def_builtin): Remove usage of dead
7780 fields.
7781 (ix86_add_new_builtins): Likewise.
7782 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7783 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7784 (sem_function::init): Likewise.
7785 (sem_variable::merge): Likewise.
7786 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7787 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7788 * lto-cgraph.c (lto_output_node): Likewise.
7789 (lto_output_varpool_node): Likewise.
7790 (input_node): Likewise.
7791 (input_varpool_node): Likewise.
7792 * lto-streamer-out.c (lto_output): Likewise.
7793 * tree-inline.c (expand_call_inline): Remove usage of
7794 assign_stmts.
7795 * tree-inline.h (struct copy_body_data): Likewise.
7796 * varpool.c (varpool_node::dump): Likewise.
7797
7798 2019-02-13 Jakub Jelinek <jakub@redhat.com>
7799
7800 PR middle-end/89303
7801 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7802 into pt->vars_contains_escaped_heap instead of setting
7803 pt->vars_contains_escaped_heap to it.
7804
7805 PR middle-end/89281
7806 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7807 INTVAL (size), compare it to GET_MODE_MASK instead of
7808 1 << GET_MODE_BITSIZE.
7809
7810 PR target/89290
7811 * config/i386/predicates.md (x86_64_immediate_operand): Allow
7812 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7813 -mcmodel=large.
7814
7815 2019-02-13 Martin Liska <mliska@suse.cz>
7816
7817 PR lto/88858
7818 * cfgrtl.c (remove_barriers_from_footer): New function.
7819 (try_redirect_by_replacing_jump): Use it.
7820 (cfg_layout_redirect_edge_and_branch): Likewise.
7821
7822 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7823
7824 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7825 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7826 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7827 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7828 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7829 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7830 New BU_CRYPTO_2.
7831 * config/rs6000/rs6000.c (builtin_function_type)
7832 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7833 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7834 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7835 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7836 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7837
7838 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
7839
7840 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7841 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7842
7843 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
7844
7845 PR target/89229
7846 * config/i386/i386.md (*movoi_internal_avx): Revert revision
7847 268678 and revision 268657.
7848 (*movti_internal): Likewise.
7849
7850 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
7851
7852 PR target/89233
7853 * config/s390/s390.c (s390_decompose_address): Update comment.
7854 (s390_check_qrst_address): Reject invalid address forms after
7855 LRA.
7856
7857 2019-02-12 Martin Liska <mliska@suse.cz>
7858
7859 PR lto/88876
7860 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7861 we need default values of funct_state for a function that
7862 is not optimized.
7863
7864 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
7865
7866 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7867 the object to pick the size of stores on strict-alignment platforms.
7868
7869 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7870 (*movdi_insn_sp32): Likewise.
7871 (*movdi_insn_sp64): Likewise.
7872
7873 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
7874
7875 PR lto/88677
7876 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7877 types that needs constructiong.
7878 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7879
7880 2019-02-12 Richard Biener <rguenther@suse.de>
7881
7882 PR tree-optimization/89253
7883 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7884 duplicate the loop.
7885
7886 2019-02-11 David Malcolm <dmalcolm@redhat.com>
7887
7888 PR lto/88147
7889 * input.c (selftest::test_line_offset_overflow): New selftest.
7890 (selftest::input_c_tests): Call it.
7891
7892 2019-02-11 Martin Sebor <msebor@redhat.com>
7893
7894 PR tree-optimization/88771
7895 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7896 when -Wstringop-overflow is set.
7897 (builtin_memref::builtin_memref): Adjust excessive upper bound
7898 only when lower bound is not excessive.
7899 (maybe_diag_overlap): Detect and diagnose excessive bounds via
7900 -Wstringop-ovefflow.
7901 (maybe_diag_offset_bounds): Rename...
7902 (maybe_diag_access_bounds): ...to this.
7903 (check_bounds_or_overlap): Adjust for name change above.
7904
7905 2019-02-11 Martin Sebor <msebor@redhat.com>
7906
7907 PR c++/87996
7908 * builtins.c (max_object_size): Move from here...
7909 * builtins.h (max_object_size): ...and here...
7910 * tree.c (max_object_size): ...to here...
7911 * tree.h (max_object_size): ...and here.
7912
7913 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
7914
7915 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7916 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7917 for correct semantics.
7918
7919 2019-02-11 Alan Modra <amodra@gmail.com>
7920
7921 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7922 -mlongcall and -mpltseq.
7923 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7924 (RS/6000 and PowerPC Options <-mpltseq>): Document.
7925 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7926 * config/rs6000/sysv4.opt (mpltseq): New option.
7927 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7928 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7929 support is lacking. Don't allow -mpltseq with -mbss-plt.
7930 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7931 -mpltseq given for ELFv1.
7932 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7933 Only use UNSPEC_PLTSEQ for inline PLT calls.
7934 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
7935 use UNSPEC_PLTSEQ for inline PLT calls.
7936 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7937 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7938 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7939 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7940 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7941 (pltseq_mtctr_<mode>): Likewise.
7942
7943 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7944
7945 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7946 Solaris ld.
7947 * configure: Regenerate.
7948
7949 2019-02-11 Jakub Jelinek <jakub@redhat.com>
7950
7951 PR bootstrap/88714
7952 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7953 instead of r.
7954
7955 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7956
7957 * function.c (assign_parm_setup_block): Use the stored
7958 size, not the passed size, when allocating stack-space,
7959 also for a parameter with alignment larger than
7960 MAX_SUPPORTED_STACK_ALIGNMENT.
7961
7962 2019-02-11 Martin Liska <mliska@suse.cz>
7963
7964 PR ipa/89009
7965 * ipa-cp.c (build_toporder_info): Remove usage of a param.
7966 * ipa-inline.c (inline_small_functions): Likewise.
7967 * ipa-pure-const.c (propagate_pure_const): Likewise.
7968 (propagate_nothrow): Likewise.
7969 * ipa-reference.c (propagate): Likewise.
7970 * ipa-utils.c (struct searchc_env): Remove unused field.
7971 (searchc): Always search across AVAIL_INTERPOSABLE.
7972 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7973 the only called IPA pure const can properly not propagate
7974 across interposable boundary.
7975 * ipa-utils.h (ipa_reduced_postorder): Remove param.
7976
7977 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
7978
7979 * config/nds32/nds32.md (call_internal, call_value_internal,
7980 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7981
7982 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7983
7984 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7985 typo.
7986
7987 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
7988
7989 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7990 in comments
7991
7992 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7993
7994 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7995
7996 2019-02-10 Jakub Jelinek <jakub@redhat.com>
7997
7998 PR tree-optimization/89268
7999 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
8000 if preds is non-NULL.
8001
8002 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
8003
8004 PR lto/89272
8005 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
8006 polymorphic types.
8007
8008 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
8009
8010 * config/nds32/nds32.md (trap): New pattern.
8011
8012 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
8013
8014 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
8015 dwarf span.
8016
8017 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
8018
8019 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
8020 to split POST_INC.
8021
8022 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
8023
8024 * ipa-visibility.c (localize_node): Also do not localize
8025 LDPR_PREVAILING_DEF_IRONLY_EXP.
8026
8027 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
8028
8029 PR lto/87957
8030 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
8031 instead of type_with_linkage.
8032
8033 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
8034
8035 PR ipa/88755
8036 * params.def (uninlined-function-insns, uninlined-function-time,
8037 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
8038 bound so we don't get overflows.
8039
8040 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
8041
8042 * config/rs6000/rs6000-string.c (expand_compare_loop,
8043 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
8044 memcmp/strncmp.
8045
8046 2019-02-09 Jakub Jelinek <jakub@redhat.com>
8047
8048 PR middle-end/89246
8049 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8050 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
8051 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
8052
8053 2019-02-09 Alan Modra <amodra@gmail.com>
8054
8055 PR target/88343
8056 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
8057 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
8058 setup.
8059
8060 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
8061
8062 PR middle-end/88560
8063 * lra-constraints.c (process_alt_operands): Don't increase reject
8064 for memory when offset memory is required.
8065
8066 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
8067
8068 * config/s390/vector.md: Implement vector copysign.
8069
8070 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
8071
8072 * expr.c (expand_constructor): Correct indentations.
8073
8074 2019-02-08 Richard Biener <rguenther@suse.de>
8075
8076 PR tree-optimization/89247
8077 * tree-if-conv.c: Include tree-cfgcleanup.h.
8078 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
8079 (tree_if_conversion): Pass through predicate vector.
8080 (pass_if_conversion::execute): Do CFG cleanup and SSA update
8081 inline, see if any if-converted loops we refrece in
8082 LOOP_VECTORIZED calls vanished and fixup.
8083 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
8084
8085 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
8086
8087 * config/s390/constraints.md (jdd): New constraint.
8088
8089 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
8090
8091 PR target/89229
8092 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
8093 upper 16 vector registers without TARGET_AVX512VL.
8094 (*movti_internal): Likewise.
8095
8096 2019-02-08 Jakub Jelinek <jakub@redhat.com>
8097
8098 PR rtl-optimization/89234
8099 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
8100 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
8101 (copy_reg_eh_region_note_backward): Likewise.
8102
8103 2019-02-08 Richard Biener <rguenther@suse.de>
8104
8105 PR middle-end/89223
8106 * tree-data-ref.c (initialize_matrix_A): Fail if constant
8107 doesn't fit in HWI.
8108 (analyze_subscript_affine_affine): Handle failure from
8109 initialize_matrix_A.
8110
8111 2019-02-08 Jakub Jelinek <jakub@redhat.com>
8112
8113 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
8114 cfun everywhere.
8115
8116 2019-02-07 David Malcolm <dmalcolm@redhat.com>
8117
8118 PR tree-optimization/86637
8119 PR tree-optimization/89235
8120 * tree-vect-loop.c (optimize_mask_stores): Add an
8121 auto_purge_vect_location sentinel to ensure that vect_location is
8122 purged on exit.
8123 * tree-vectorizer.c
8124 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
8125 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
8126 to ensure that vect_location is purged on exit.
8127 (pass_slp_vectorize::execute): Likewise, replacing the manual
8128 reset.
8129 * tree-vectorizer.h (class auto_purge_vect_location): New class.
8130
8131 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8132
8133 * config/aarch64/iterators.md (max_opp): New code_attr.
8134 (USMAX): New code iterator.
8135 * config/aarch64/predicates.md (aarch64_smin): New predicate.
8136 (aarch64_smax): Likewise.
8137 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
8138 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
8139 MINUS (MAX MIN).
8140
8141 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
8142
8143 PR target/89229
8144 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
8145 for TARGET_AVX512VL.
8146 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
8147
8148 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
8149
8150 * config/s390/s390-builtin-types.def: Add new types.
8151 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
8152 (s390_vec_xlw4): Make the memory operand into a const pointer.
8153 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
8154 float.
8155 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
8156 a new vector type with the alignment of the scalar memory operand.
8157
8158 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
8159 Jakub Jelinek <jakub@redhat.com>
8160
8161 PR bootstrap/88714
8162 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
8163 arm_count_ldrdstrd_insns): New declarations.
8164 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
8165 MINUS.
8166 (valid_operands_ldrd_strd): New function.
8167 (arm_count_ldrdstrd_insns): New function.
8168 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
8169 sets instead of single DImode set and define new insns to match this.
8170
8171 2019-02-07 Tamar Christina <tamar.christina@arm.com>
8172
8173 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
8174 Make it a C initializer.
8175
8176 2019-02-07 Tamar Christina <tamar.christina@arm.com>
8177
8178 PR/target 88850
8179 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
8180
8181 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8182
8183 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
8184 Use neon_dot<q> for type.
8185 (neon_<sup>dot_lane<vsi2qi>): Likewise.
8186
8187 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8188
8189 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
8190 Use neon_dot<q> for type.
8191 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
8192 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
8193
8194 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
8195
8196 PR rtl-optimization/89225
8197 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
8198 sizes check.
8199
8200 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
8201
8202 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
8203 after restoring registers saved to allocate the frame on Windows.
8204
8205 2019-02-06 Richard Biener <rguenther@suse.de>
8206
8207 PR tree-optimization/89182
8208 * graphite.h (cached_scalar_evolution_in_region): Declare.
8209 * graphite.c (struct seir_cache_key): New.
8210 (struct sese_scev_hash): Likewise.
8211 (seir_cache): New global.
8212 (cached_scalar_evolution_in_region): New function.
8213 (graphite_transform_loops): Allocate and release seir_cache.
8214 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
8215 cached_scalar_evolution_in_region.
8216 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8217 Simplify.
8218 (scop_detection::graphite_can_represent_expr: Use
8219 cached_scalar_evolution_in_region.
8220 (scop_detection::stmt_simple_for_scop_p): Likewise.
8221 (find_params_in_bb): Likewise.
8222 (gather_bbs::before_dom_children): Likewise.
8223 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
8224 (add_loop_constraints): Likewise.
8225
8226 2019-02-06 Jakub Jelinek <jakub@redhat.com>
8227
8228 PR middle-end/89210
8229 * fold-const-call.c (fold_const_vec_convert): Pass true as last
8230 operand to new_unary_operation only if both element types are integral
8231 and it isn't a widening conversion. Return NULL_TREE if
8232 new_unary_operation failed.
8233
8234 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
8235
8236 PR target/88856
8237 * config/s390/s390.md: Remove load and test FP splitter.
8238
8239 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
8240
8241 PR target/89112
8242 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
8243 expand_compare_loop, expand_block_compare_gpr,
8244 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
8245 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
8246 #include "profile-count.h" and "predict.h" for types and functions
8247 needed to work with REG_BR_PROB notes.
8248
8249 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
8250
8251 PR target/89112
8252 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
8253 for the long branch case.
8254
8255 2019-02-05 Jakub Jelinek <jakub@redhat.com>
8256
8257 PR target/89188
8258 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
8259 can throw, non-call exceptions are enabled and we can't delete
8260 dead exceptions or alter cfg. Set must_clean if
8261 delete_insn_and_edges returns true, don't set it blindly for calls.
8262 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
8263
8264 PR rtl-optimization/89195
8265 * combine.c (make_extraction): For MEMs, don't extract bytes outside
8266 of the original MEM.
8267
8268 2019-02-05 Martin Liska <mliska@suse.cz>
8269
8270 PR gcov-profile/89000
8271 * gcov.c (function_summary): Remove argument.
8272 (file_summary): New function.
8273 (print_usage): Replace tabs with spaces.
8274 (generate_results): Use new function file_summary.
8275
8276 2019-02-05 Jakub Jelinek <jakub@redhat.com>
8277
8278 PR target/89186
8279 * optabs.c (prepare_cmp_insn): Pass x and y to
8280 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
8281
8282 2019-02-05 Richard Biener <rguenther@suse.de>
8283
8284 PR middle-end/89150
8285 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
8286 (struct bitmap_element): Drop chain_prev so we properly recurse on
8287 the prev member, supporting tree views.
8288 (struct bitmap_head): GTY skip the obstack member.
8289
8290 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
8291
8292 PR c/88698
8293 * doc/extend.texi (Vector Extensions): Add an example of using vector
8294 types together with x86 intrinsics.
8295
8296 2019-02-04 Alan Modra <amodra@gmail.com>
8297
8298 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
8299 str[] size to 160, and comment.
8300
8301 2019-02-04 Alan Modra <amodra@gmail.com>
8302
8303 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
8304 (rs6000_pltseq_template): Guard output of TLS markers with
8305 TARGET_TLS_MARKERS.
8306 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
8307 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
8308 to use inline PLT sequences.
8309 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
8310 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
8311 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
8312
8313 2019-02-04 Martin Liska <mliska@suse.cz>
8314
8315 PR ipa/88985
8316 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
8317 out when ipa_fn_summaries does not contain entry for callee.
8318
8319 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
8320
8321 * config/sparc/sparc.h: Remove superfluous blank lines.
8322 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
8323 (got_register_rtx): ...this.
8324 (sparc_got): Adjust to above renaming.
8325 (sparc_tls_got): Likewise.
8326 (sparc_delegitimize_address): Likewise.
8327 (sparc_output_mi_thunk): Likewise.
8328 (sparc_init_pic_reg): Likewise.
8329 (save_local_or_in_reg_p): Fix test on the GOT register.
8330 (USE_HIDDEN_LINKONCE): Move around.
8331 (get_pc_thunk_name): Likewise.
8332 (gen_load_pcrel_sym): Likewise.
8333 (load_got_register): Likewise.
8334
8335 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
8336
8337 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
8338 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
8339
8340 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8341
8342 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
8343 into consideration.
8344
8345 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8346
8347 * config.gcc (with_nds32_lib, glibc):
8348 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
8349 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
8350 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
8351
8352 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
8353
8354 PR target/89071
8355 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
8356 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
8357 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
8358 (*rcpsf2_sse): Ditto.
8359 (*rsqrtsf2_sse): Ditto.
8360 (sse4_1_round<mode<2): Ditto.
8361
8362 2019-02-03 Richard Biener <rguenther@suse.de>
8363
8364 PR debug/87295
8365 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
8366 orig.
8367
8368 2019-02-02 Jakub Jelinek <jakub@redhat.com>
8369
8370 PR middle-end/87887
8371 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8372 Punt with warning on aggregate return or argument types. Ignore
8373 type/mode checking for uniform arguments.
8374
8375 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
8376
8377 * combine.c (try_combine): Do not print "Can't combine" messages unless
8378 printing failed combination attempts.
8379
8380 2019-02-01 Martin Jambor <mjambor@suse.cz>
8381
8382 PR hsa/87863
8383 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
8384 segment and global segment variables before making them static.
8385
8386 2019-02-01 Martin Jambor <mjambor@suse.cz>
8387
8388 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
8389 missed optimization dump with dump_enabled_p.
8390
8391 2019-02-01 Richard Biener <rguenther@suse.de>
8392
8393 PR middle-end/88597
8394 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
8395 the instantiate cache.
8396 (instantiate_scev_binary): Elide second operand procesing
8397 if equal to the first.
8398 * tree-chrec.c (chrec_contains_symbols): Add visited set.
8399 (chrec_contains_undetermined): Likewise.
8400 (tree_contains_chrecs): Likewise.
8401
8402 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
8403
8404 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
8405
8406 2019-02-01 Jakub Jelinek <jakub@redhat.com>
8407
8408 PR tree-optimization/89143
8409 * wide-int-range.h (wide_int_range_absu): Declare.
8410 * wide-int-range.cc (wide_int_range_absu): New function.
8411 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
8412
8413 PR tree-optimization/88107
8414 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
8415 instead of assertion that eh_region_outermost is non-NULL, if it
8416 is NULL, set *ALL to true and return NULL.
8417 (move_sese_region_to_fn): Adjust caller, if all is set, call
8418 duplicate_eh_regions with NULL region.
8419
8420 2019-02-01 Richard Biener <rguenth@suse.de>
8421
8422 PR rtl-optimization/88593
8423 * mode-switching.c (optimize_mode_switching): Free dominators before
8424 calling cleanup_cfg.
8425
8426 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
8427
8428 PR tree-optimization/88932
8429 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
8430
8431 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8432
8433 PR middle-end/89137
8434 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
8435 bogus clang warning.
8436
8437 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
8438
8439 PR target/89071
8440 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
8441 alternative to avoid partial SSE register stall for TARGET_AVX.
8442 (truncdfsf2): Ditto.
8443 (sse4_1_round<mode>2): Ditto.
8444
8445 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
8446
8447 PR tree-optimization/89008
8448 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
8449 process anything of the form X * 0.
8450
8451 2019-01-31 Richard Biener <rguenther@suse.de>
8452
8453 PR tree-optimization/89135
8454 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
8455 with abnormal preds.
8456
8457 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8458
8459 PR sanitizer/89124
8460 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
8461 always_inline callees into no_sanitize_address callers.
8462
8463 2019-01-31 Richard Biener <rguenther@suse.de>
8464
8465 PR rtl-optimization/89115
8466 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
8467
8468 2019-01-30 Martin Sebor <msebor@redhat.com>
8469
8470 PR other/89106
8471 * doc/extend.texi (cast to a union): Correct and expand.
8472
8473 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
8474
8475 PR rtl-optimization/87246
8476 * lra-constraints.c (simplify_operand_subreg): Reload memory
8477 in subreg if the address became invalid.
8478
8479 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
8480
8481 PR target/87064
8482 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
8483 Disable for little-endian.
8484
8485 2019-01-30 Richard Biener <rguenther@suse.de>
8486
8487 PR rtl-optimization/89115
8488 * opts.c (default_options_optimization): Reduce
8489 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
8490 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
8491 to the default.
8492
8493 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
8494
8495 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
8496 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
8497 type of vector element when vec_extract is implemented by direct
8498 move.
8499
8500 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
8501
8502 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
8503
8504 2019-01-30 Richard Biener <rguenther@suse.de>
8505
8506 PR tree-optimization/89111
8507 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
8508 canonicalization to appropriately sized access types.
8509
8510 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8511
8512 PR c++/89105
8513 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
8514 for arguments to functions that are TU-local and shouldn't be
8515 referenced by assembly.
8516
8517 2019-01-30 Ulrich Drepper <drepper@redhat.com>
8518
8519 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
8520 after '='.
8521
8522 2019-01-29 Martin Sebor <msebor@redhat.com>
8523
8524 PR c/88956
8525 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
8526
8527 2019-01-29 Jakub Jelinek <jakub@redhat.com>
8528
8529 PR c++/66676
8530 PR ipa/89104
8531 * omp-simd-clone.c (simd_clone_clauses_extract)
8532 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
8533 OMP_CLAUSE_ALIGNED_ALIGNMENT.
8534
8535 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
8536
8537 * config.gcc: Force .init_array for ARC.
8538
8539 2019-01-29 Richard Biener <rguenther@suse.de>
8540
8541 PR debug/87295
8542 * dwarf2out.c (collect_skeleton_dies): New helper.
8543 (copy_decls_for_unworthy_types): Call it.
8544 (build_abbrev_table): Assert we do not try to replace
8545 DW_AT_signature refs with local refs.
8546
8547 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8548
8549 PR middle-end/89002
8550 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
8551 for lastprivate/linear IV, push gimplify context around gimplify_assign
8552 and, if it needed any temporaries, pop it into a gimple bind around the
8553 sequence.
8554
8555 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8556
8557 * common.opt (-Wattribute-alias): Remove "no-" from name.
8558 Make -Wattribute-alias command line option and
8559 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
8560
8561 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8562
8563 PR target/89073
8564 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
8565 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
8566 x86 ISA options.
8567 (bmi2): Add missing @opindex.
8568 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
8569 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
8570 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
8571 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
8572 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
8573 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
8574 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
8575 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
8576 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
8577 xsavec, xsaveopt and xsaves options.
8578
8579 2019-01-28 Richard Biener <rguenther@suse.de>
8580
8581 PR debug/89076
8582 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
8583 support removal.
8584
8585 2019-01-28 Richard Biener <rguenther@suse.de>
8586
8587 PR tree-optimization/88739
8588 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8589 BIT_FIELD_REFs only are applied to mode-precision operands
8590 when they are integral.
8591 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
8592 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
8593 BIT_FIELD_REFs of non-mode-precision integral operands.
8594
8595 2019-01-27 Jakub Jelinek <jakub@redhat.com>
8596
8597 PR target/87214
8598 * config/i386/sse.md
8599 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
8600 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
8601 first constants in pairs are multiples of 2. Formatting fixes.
8602 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
8603 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
8604 first constants in each quadruple are multiples of 4. Formatting fixes.
8605
8606 2019-01-26 Martin Jambor <mjambor@suse.cz>
8607
8608 PR ipa/88933
8609 * tree-inline.c: Include tree-cfgcleanup.h.
8610 (delete_unreachable_blocks_update_callgraph): Move...
8611 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
8612 ...here, make externally visible, make second argument bool, adjust
8613 all callers.
8614 * tree-cfgcleanup.c: Include cgraph.h.
8615 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
8616 Declare.
8617 * ipa-prop.c: Include tree-cfgcleanup.h.
8618 (ipcp_transform_function): Call
8619 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
8620
8621 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
8622
8623 PR rtl-optimization/88846
8624 * ira.c (process_set_for_memref_referenced_p): New.
8625 (memref_referenced_p): Add new param. Use
8626 process_set_for_memref_referenced_p. Add new switch cases.
8627 (memref_used_between_p): Pass new arg to memref_referenced_p.
8628
8629 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
8630
8631 PR target/88469
8632 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
8633 argument ABI_BREAK. Set to true if the calculated alignment has
8634 changed in gcc-9. Check bit-fields for their base type alignment.
8635 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
8636 (aarch64_function_arg_boundary): Likewise.
8637 (aarch64_gimplify_va_arg_expr): Likewise.
8638
8639 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8640
8641 PR middle-end/89037
8642 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
8643 instead of accessing TREE_INT_CST_ELT directly.
8644
8645 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
8646
8647 * doc/sourcebuild.texi (Environment attributes): Add fenv and
8648 fenv_exceptions description.
8649
8650 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
8651
8652 PR rtl-optimization/87763
8653 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
8654 Allow SUBREG when matching CC_NZmode compare.
8655
8656 2019-01-25 Richard Biener <rguenther@suse.de>
8657
8658 PR tree-optimization/89049
8659 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8660 Look at the pattern stmt to determine if the stmt is vectorized.
8661
8662 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8663
8664 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
8665 (pred_mov<mode>): Handle all-register forms using both a new
8666 alternative and a split.
8667
8668 2019-01-25 Richard Biener <rguenther@suse.de>
8669
8670 PR tree-optimization/86865
8671 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8672 Reject non-do-while loops.
8673
8674 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
8675
8676 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
8677 * config/rs6000/constraints.md (Q constraint): Use REG_P.
8678 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
8679 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8680 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
8681 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8682 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
8683 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
8684 vlogical_operand, gpc_reg_operand, int_reg_operand,
8685 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
8686 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
8687 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
8688 (save_world_operation, restore_world_operation, lmw_operation,
8689 stmw_operation): Use MEM_P and REG_P.
8690 (tie_operand): Use MEM_P.
8691 (vrsave_operation, crsave_operation): Use REG_P.
8692 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
8693 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
8694 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
8695 (call_operand): Use HARD_REGISTER_P.
8696 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
8697 Use CONST_INT_P.
8698 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
8699 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
8700 quad_aligned_load_p, replace_swapped_aligned_store,
8701 recombine_lvx_pattern, replace_swapped_aligned_load,
8702 recombine_stvx_pattern): Use MEM_P.
8703 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
8704 Use MEM_P and SYMBOL_REF_P.
8705 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
8706 (insn_is_swappable_p): Use REG_P and MEM_P.
8707 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
8708 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
8709 Use CONST_INT_P.
8710 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
8711 Use CONST_DOUBLE_P.
8712 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
8713 CONST_WIDE_INT_P.
8714 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
8715 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
8716 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
8717 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
8718 reg_or_subregno:
8719 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8720 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
8721 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
8722 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
8723 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
8724 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
8725 rs6000_split_logical_di): Use CONST_INT_P.
8726 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
8727 REG_P and SYMBOL_REF_P.
8728 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
8729 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
8730 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
8731 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
8732 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
8733 (small_data_operand, print_operand_address): Use CONST_INT_P and
8734 SYMBOL_REF_P.
8735 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
8736 (rs6000_init_hard_regno_mode_ok, direct_move_p):
8737 Use HARD_REGISTER_NUM_P.
8738 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
8739 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
8740 SUBREG_P and SYMBOL_REF_P.
8741 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
8742 and HARD_REGISTER_NUM_P.
8743 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
8744 reg_or_subregno.
8745 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
8746 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
8747 MEM_P and REG_P.
8748 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
8749 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
8750 find_addr_reg): Use REG_P.
8751 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
8752 (rs6000_emit_le_vsx_move): Use SUBREG_P.
8753 (offsettable_ok_by_alignment, constant_pool_expr_p,
8754 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
8755 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
8756 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
8757 rs6000_assemble_integer, create_TOC_reference,
8758 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
8759 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
8760 (rs6000_split_vec_extract_var): Use reg_or_subregno.
8761 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8762 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8763 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8764 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8765 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8766 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8767 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8768 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8769 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8770 and cbranch<mode>4): Use CONST_INT_P.
8771 (multiple define_splits): Use REG_P and SUBREG_P.
8772 (define_expands call, call_value): Use MEM_P.
8773 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
8774 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8775 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8776 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8777 and HARD_REGISTER_NUM_P.
8778 (multiple define_splits): Use HARD_REGISTER_NUM_P.
8779
8780 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
8781
8782 PR rtl-optimization/88948
8783 * rtl.h (prepare_copy_insn): New prototype.
8784 * gcse.c (prepare_copy_insn): New function, split out from
8785 process_insert_insn.
8786 (process_insert_insn): Use prepare_copy_insn.
8787 * store-motion.c (replace_store_insn): Use prepare_copy_insn
8788 instead of gen_move_insn.
8789
8790 2019-01-24 Jakub Jelinek <jakub@redhat.com>
8791
8792 PR debug/89006
8793 * config/i386/i386.c (ix86_pic_register_p): Return true for
8794 UNSPEC_SET_GOT too.
8795
8796 PR tree-optimization/88964
8797 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8798 punt if HONOR_SNANS (chrec).
8799
8800 PR middle-end/89015
8801 * tree-nested.c (convert_nonlocal_reference_stmt,
8802 convert_local_reference_stmt, convert_tramp_reference_stmt,
8803 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8804 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8805 or GIMPLE_OMP_TASK.
8806
8807 PR tree-optimization/89027
8808 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8809 for "omp simd array" variables.
8810
8811 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
8812
8813 PR target/88469
8814 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8815 force the alignment of m_val.
8816
8817 2019-01-24 Richard Biener <rguenther@suse.de>
8818
8819 PR lto/87187
8820 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8821 When in "legacy" debug mode make sure to reset self-origins.
8822
8823 2019-01-24 Martin Liska <mliska@suse.cz>
8824
8825 PR gcov-profile/88994
8826 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8827 result will be always smaller or equal to the original.
8828 * gcov.c (mangle_name): Fix else branch where we should
8829 also copy to PTR and shift the pointer.
8830
8831 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
8832
8833 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8834 * vr-values.c (find_case_label_ranges): Fix a comment typo.
8835
8836 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
8837
8838 * common/config/i386/i386-common.c
8839 (OPTION_MASK_ISA_ENQCMD_SET,
8840 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8841 (ix86_handle_option): Handle -menqcmd.
8842 * config.gcc (enqcmdintrin.h): New header file.
8843 * config/i386/cpuid.h (bit_ENQCMD): New bit.
8844 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8845 -menqcmd.
8846 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8847 function type.
8848 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8849 __builtin_ia32_enqcmds): New builtins.
8850 * config/i386/i386-c.c (__ENQCMD__): New macro.
8851 * config/i386/i386-option.c (ix86_target_string): Add
8852 -menqcmd.
8853 (ix86_valid_target_attribute_inner_p): Likewise.
8854 * config/i386/i386-expand.c
8855 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8856 IX86_BUILTIN_ENQCMDS.
8857 * config/i386/i386.h (TARGET_ENQCMD): New.
8858 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8859 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8860 (movdir64b_<mode>): Parameterize to enable share expansion code
8861 with ENQCMD in function ix86_expand_builtin.
8862 * config/i386/i386.opt: Add -menqcmd.
8863 * config/i386/immintrin.h: Include enqcmdintrin.h.
8864 * config/i386/enqcmdintrin.h: New intrinsic file.
8865 * doc/invoke.texi: Add -menqcmd.
8866
8867 2019-01-23 Bin Cheng <bin.cheng@arm.com>
8868 Steve Ellcey <sellcey@marvell.com>
8869
8870 PR target/85711
8871 * recog.c (address_operand): Return false on wrong mode for address.
8872 (constrain_operands): Check for mode with 'p' constraint.
8873
8874 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
8875
8876 PR target/88998
8877 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8878 Disparage MMX alternative.
8879 (sse2_cvtpd2pi): Ditto.
8880 (sse2_cvttpd2pi): Ditto.
8881
8882 2019-01-23 David Malcolm <dmalcolm@redhat.com>
8883
8884 PR driver/89014
8885 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8886 use-after-free of the result of
8887 aarch64_get_extension_string_for_isa_flags.
8888
8889 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8890
8891 PR c/44715
8892 * doc/extend.texi: Document break and continue behavior in
8893 statement expressions.
8894
8895 2019-01-23 Richard Biener <rguenther@suse.de>
8896
8897 PR tree-optimization/89008
8898 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8899 not leave another stray operand.
8900
8901 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8902
8903 * BASE-VER: Bump to 9.0.1.
8904
8905 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
8906
8907 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8908 thunk that returns by reference, use the type of the return object
8909 of the thunk instead of that of the alias to build the dereference.
8910
8911 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
8912
8913 * config/arc/atomic.md: Add operand to DMB instruction.
8914
8915 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8916
8917 PR tree-optimization/88964
8918 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8919 build_zero_cst instead of build_int_cst. Return false for loop
8920 invariants which honor signed zeros.
8921
8922 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
8923
8924 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8925
8926 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8927
8928 PR target/88965
8929 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8930 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8931 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8932
8933 PR middle-end/88968
8934 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8935 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8936
8937 PR target/87064
8938 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8939 Disable for little endian.
8940
8941 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8942
8943 PR target/88469
8944 * config/arm/arm.c (arm_needs_double_word_align): Check
8945 DECL_BIT_FIELD_TYPE.
8946
8947 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
8948 H.J. Lu <hongjiu.lu@intel.com>
8949
8950 PR target/88909
8951 * config/i386/i386-builtin.def: Add mask2 to all builtin
8952 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8953 SPECIAL_ARGS.
8954 * config/i386/i386.c (BDESC): Add mask2 to the definition.
8955 (BDESC_FIRST): Likewise.
8956 (define_builtin): Add an argument for mask2. Updated to handle
8957 both ix86_isa_flags and ix86_isa_flags2.
8958 (define_builtin_const): Likewise.
8959 (define_builtin_pure): Likewise.
8960 (define_builtin2): Deleted.
8961 (define_builtin_const2): Likewise.
8962 (builtin_description): Add a member, mask2.
8963 (bdesc_*): Add mask2 to builtin initializations.
8964 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8965 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
8966 support.
8967 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8968
8969 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
8970
8971 PR target/88954
8972 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8973 noplt attribute.
8974
8975 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8976
8977 PR target/88469
8978 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8979 alignment is dominated by a bitfield with 64-bit aligned base type.
8980 (arm_function_arg): Emit a warning if the alignment has changed since
8981 earlier GCC releases.
8982 (arm_function_arg_boundary): Likewise.
8983 (arm_setup_incoming_varargs): Likewise.
8984
8985 2019-01-22 Richard Biener <rguenther@suse.de>
8986
8987 PR tree-optimization/88862
8988 * graphite-scop-detection.c
8989 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8990
8991 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
8992
8993 * doc/extend.tex (AMD GCN Function Attributes): New section.
8994 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8995 * doc/invoke.texi (AMD GCN Options): New section.
8996 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8997
8998 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
8999
9000 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
9001 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
9002
9003 2019-01-22 Jakub Jelinek <jakub@redhat.com>
9004
9005 PR tree-optimization/88044
9006 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
9007 is false in the first iteration, but !every_iteration, return false
9008 instead of true with niter->niter zero.
9009
9010 PR rtl-optimization/88904
9011 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
9012 any nonequal registers before processing BB_END (b).
9013
9014 PR target/88905
9015 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
9016 GET_MODE (op0).
9017 (expand_binop_directly, expand_doubleword_clz,
9018 expand_doubleword_popcount, expand_ctz, expand_ffs,
9019 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
9020
9021 PR rtl-optimization/49429
9022 PR target/49454
9023 PR rtl-optimization/86334
9024 PR target/88906
9025 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
9026 addressable from here...
9027 (emit_block_op_via_libcall): ... to here.
9028
9029 2019-01-22 Richard Biener <rguenther@suse.de>
9030
9031 * tree-vect-loop.c (vect_analyze_loop_operations): Use
9032 auto_vec for cost vector to fix memleak.
9033 (vectorize_fold_left_reduction): Properly gather SLP defs.
9034 (vectorizable_comparison): Do not swap operands to properly
9035 gather SLP defs.
9036
9037 2019-01-22 Alan Modra <amodra@gmail.com>
9038
9039 PR target/88614
9040 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
9041 stays a reg. Allow a const_int.
9042 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
9043 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
9044 (IS_NOMARK_TLSGETADDR): Define.
9045 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
9046 (rs6000_output_tlsargs): New function.
9047 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
9048 __tls_get_addr call takes an arg.
9049 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
9050 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
9051 delete split..
9052 (call_value_nonlocal_sysv): ..or here, delete split.
9053 (tls_gdld_nomark): Delete.
9054 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
9055 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
9056 (call_value_nonlocal_sysv): Likewise.
9057 (call_value_nonlocal_sysv_secure): Likewise.
9058 (call_value_nonlocal_aix): Likewise.
9059 (call_value_indirect_aix): Likewise.
9060 (call_value_indirect_elfv2): Likewise.
9061 (call_value_local32, call_value_local64): Disable for no-mark tls.
9062 (call_value_local_aix): Likewise.
9063
9064 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
9065
9066 PR target/88938
9067 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
9068 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
9069
9070 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
9071
9072 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
9073 string contents as hash_map keys.
9074
9075 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
9076
9077 PR c/88928
9078 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
9079 for rvalue context. Handle rvalues correctly. Use min_align_of_type
9080 instead of TYPE_ALIGN.
9081 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
9082 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
9083 pointer from TYPE_STUB_DECL.
9084
9085 2019-01-21 Richard Biener <rguenther@suse.de>
9086
9087 PR tree-optimization/88934
9088 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
9089 at the possibly non-constant operand.
9090 (vect_get_constant_vectors): Adjust.
9091
9092 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
9093
9094 PR target/71659
9095 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
9096 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
9097 instead of _X86INTRIN_H_INCLUDED.
9098 * onfig/i386/clwbintrin.h: Likewise.
9099 * config/i386/pkuintrin.h: Likewise.
9100 * config/i386/prfchwintrin.h: Likewise.
9101 * config/i386/rdseedintrin.h: Likewise.
9102 * config/i386/wbnoinvdintrin.h: Likewise.
9103 * config/i386/xsavecintrin.h: Likewise.
9104 * config/i386/xsavesintrin.h: Likewise.
9105 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
9106 * config/i386/xsaveintrin.h: Likewise.
9107 * config/i386/xsaveoptintrin.h: Likewise.
9108 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
9109 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
9110 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
9111 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
9112 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
9113 * config/i386/immintrin.h: Here.
9114
9115 2019-01-20 Martin Jambor <mjambor@suse.cz>
9116
9117 PR ipa/87615
9118 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
9119 with aa_walk_budget.
9120 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
9121 aa_walk_budget_p parameter.
9122 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
9123 walk. Updated all callers.
9124 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
9125 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
9126 unmodified_parm.
9127 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
9128 parameter info. Extract info from fbi. Pass fbi to recursive calls
9129 and to unmodified_parm.
9130 (phi_result_unknown_predicate): New parameter fbi, removed parameter
9131 info, updated call to will_be_nonconstant_expr_predicate.
9132 (param_change_prob): New parameter fbi, limit AA walking.
9133 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
9134 calls to various above functions.
9135 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
9136 parameter. Use it to limit AA walking.
9137 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
9138 fbi, limit AA walk.
9139 (detect_type_change): New parameter fbi, pass it on to
9140 detect_type_change_from_memory_writes.
9141 (detect_type_change_ssa): Likewise.
9142 (aa_overwalked): Removed.
9143 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
9144 accordingly, adjust to the neew AA limiting scheme.
9145 (parm_ref_data_preserved_p): Likewise.
9146 (ipa_compute_jump_functions_for_edge): Adjust call to
9147 get_dynamic_type.
9148 (ipa_analyze_call_uses): Likewise.
9149 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
9150 (ipa_analyze_node): Initialize aa_walk_budget.
9151 (ipcp_transform_function): Likewise.
9152 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
9153 to get_dynamic_type.
9154
9155 2019-01-19 Jakub Jelinek <jakub@redhat.com>
9156
9157 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
9158 outside of #if CHECKING_P code.
9159
9160 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
9161
9162 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
9163 New function, split out from...
9164 (loop_versioning::analyze_stride): ...here.
9165 (loop_versioning::find_per_loop_multiplication): Use gassign.
9166 (loop_versioning::analyze_term_using_scevs): Return a success code.
9167 (loop_versioning::analyze_arbitrary_term): New function.
9168 (loop_versioning::analyze_address_fragment): Use
9169 analyze_arbitrary_term if all else fails.
9170
9171 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
9172
9173 PR target/88892
9174 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
9175 operands.
9176
9177 2019-01-18 Richard Biener <rguenther@suse.de>
9178
9179 PR tree-optimization/88903
9180 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
9181 scalar stmts a SLP shift amount is composed of when detecting
9182 shifts by scalars.
9183
9184 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
9185
9186 PR target/88799
9187 * config/arm/arm-cpus.in (mp): New feature.
9188 (sec): New feature.
9189 (fgroup ARMv7ve): Add mp and sec features.
9190 (arch armv7-a): Add options to allow mp and sec extensions.
9191 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
9192 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
9193 extenstions to the base architecture.
9194 (cpu cortex-a8): Add sec extension to the base architecture.
9195 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
9196 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
9197 variants down to the base v7-a varaint.
9198 * config/arm/t-multilib (v7_a_arch_variants): New variable.
9199 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
9200 of permitted extensions for -march=armv7-a and for
9201 -mcpu=generic-armv7-a.
9202
9203 2019-01-18 Martin Liska <mliska@suse.cz>
9204
9205 * params.def: Fix comment.
9206 * tree-profile.c (gimple_init_gcov_profiler): Bump function
9207 name.
9208 (gimple_gen_ic_func_profiler): Likewise.
9209
9210 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9211
9212 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
9213 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
9214 and put in error checks for stack protector guard options.
9215 (aarch64_stack_protect_guard): New.
9216 (TARGET_STACK_PROTECT_GUARD): Define.
9217 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
9218 (reg_stack_protect_address<mode>): New.
9219 (stack_protect_set): Adjust for SSP_GLOBAL.
9220 (stack_protect_test): Likewise.
9221 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
9222 (-mstack-protector-guard): Likewise.
9223 (-mstack-protector-guard-offset): Likewise.
9224
9225 2019-01-18 Jakub Jelinek <jakub@redhat.com>
9226
9227 PR tree-optimization/86214
9228 * tree-inline.h (struct copy_body_data): Add
9229 add_clobbers_to_eh_landing_pads member.
9230 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
9231 (copy_edges_for_bb): Call it if EH edge destination is <
9232 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
9233 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
9234 if flag_stack_reuse != SR_NONE and clear it afterwards.
9235
9236 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
9237
9238 PR target/85596
9239 * doc/install.texi (with-multilib-list): Document for aarch64.
9240
9241 2019-01-18 Jakub Jelinek <jakub@redhat.com>
9242
9243 PR target/88734
9244 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
9245 (("..."))) with ("...").
9246
9247 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
9248
9249 * doc/extend.texi (Built-in Functions for Memory Model Aware
9250 Atomic Operations): Document atomic fetch and nand.
9251
9252 2019-01-18 Martin Liska <mliska@suse.cz>
9253 Richard Biener <rguenther@suse.de>
9254
9255 PR middle-end/88587
9256 * cgraph.h (create_version_clone_with_body): Add new argument
9257 with attributes.
9258 * cgraphclones.c (cgraph_node::create_version_clone): Add
9259 DECL_ATTRIBUTES to a newly created decl. And call
9260 valid_attribute_p so that proper cl_target_optimization_node
9261 is set for the newly created declaration.
9262 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
9263 for declaration.
9264 (expand_target_clones): Do not call valid_attribute_p, it must
9265 be already done.
9266 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
9267 vector types.
9268
9269 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9270
9271 PR target/88734
9272 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
9273 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
9274 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
9275
9276 2019-01-17 Martin Sebor <msebor@redhat.com>
9277
9278 PR middle-end/88273
9279 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
9280 Handle anti-ranges the same as no range at all.
9281
9282 2018-01-17 Steve Ellcey <sellcey@cavium.com>
9283
9284 * config/aarch64/aarch64.c (cgraph.h): New include.
9285 (intl.h): New include.
9286 (supported_simd_type): New function.
9287 (currently_supported_simd_type): Ditto.
9288 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
9289 (aarch64_simd_clone_adjust): Ditto.
9290 (aarch64_simd_clone_usable): Ditto.
9291 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
9292 (TARGET_SIMD_CLONE_ADJUST): Ditto.
9293 (TARGET_SIMD_CLONE_USABLE): Ditto.
9294 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
9295 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
9296 call.
9297
9298 2019-01-17 Martin Sebor <msebor@redhat.com>
9299
9300 PR tree-optimization/88800
9301 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
9302 NO_WARNING bit here. Avoid folding out-of-bounds calls.
9303 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
9304 redundant argument. Add new argument and issue diagnostics under
9305 its control. Detect out-of-bounds access even with warnings
9306 disabled.
9307 (check_bounds_or_overlap): Change return type. Add argument.
9308 (wrestrict_dom_walker::check_call): Adjust.
9309 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
9310 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
9311 check_bounds_or_overlap's return value.
9312 (handle_builtin_stxncpy): Same.
9313 (handle_builtin_strcat): Same.
9314
9315 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9316 Kwok Cheung Yeung <kcy@codesourcery.com>
9317 Julian Brown <julian@codesourcery.com>
9318 Tom de Vries <tom@codesourcery.com>
9319
9320 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
9321
9322 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9323
9324 * doc/sourcebuild.texi: Document dg-require-effective-target
9325 llvm_binutils and offload_gcn.
9326
9327 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9328 Kwok Cheung Yeung <kcy@codesourcery.com>
9329 Julian Brown <julian@codesourcery.com>
9330 Tom de Vries <tom@codesourcery.com>
9331
9332 * doc/sourcebuild.texi: Document dg-required-effective-target
9333 exceptions.
9334
9335 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9336 Kwok Cheung Yeung <kcy@codesourcery.com>
9337 Julian Brown <julian@codesourcery.com>
9338 Tom de Vries <tom@codesourcery.com>
9339 Jan Hubicka <hubicka@ucw.cz>
9340 Martin Jambor <mjambor@suse.cz>
9341
9342 * config.gcc: Add amdgcn*-*-amdhsa configuration.
9343 * configure.ac: Check for dlopen.
9344 * configure: Regenerate.
9345
9346 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9347 Kwok Cheung Yeung <kcy@codesourcery.com>
9348 Julian Brown <julian@codesourcery.com>
9349 Tom de Vries <tom@codesourcery.com>
9350 Jan Hubicka <hubicka@ucw.cz>
9351 Martin Jambor <mjambor@suse.cz>
9352
9353 * common/config/gcn/gcn-common.c: New file.
9354 * config/gcn/driver-gcn.c: New file.
9355 * config/gcn/gcn-builtins.def: New file.
9356 * config/gcn/gcn-hsa.h: New file.
9357 * config/gcn/gcn-modes.def: New file.
9358 * config/gcn/gcn-opts.h: New file.
9359 * config/gcn/gcn-passes.def: New file.
9360 * config/gcn/gcn-protos.h: New file.
9361 * config/gcn/gcn-run.c: New file.
9362 * config/gcn/gcn-tree.c: New file.
9363 * config/gcn/gcn.c: New file.
9364 * config/gcn/gcn.h: New file.
9365 * config/gcn/gcn.opt: New file.
9366 * config/gcn/t-gcn-hsa: New file.
9367
9368 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9369 Kwok Cheung Yeung <kcy@codesourcery.com>
9370 Julian Brown <julian@codesourcery.com>
9371 Tom de Vries <tom@codesourcery.com>
9372 Jan Hubicka <hubicka@ucw.cz>
9373 Martin Jambor <mjambor@suse.cz>
9374
9375 * config/gcn/constraints.md: New file.
9376 * config/gcn/gcn-valu.md: New file.
9377 * config/gcn/gcn.md: New file.
9378 * config/gcn/predicates.md: New file.
9379
9380 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
9381
9382 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
9383 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
9384 (stmt_uses_0_or_null_in_undefined_way): Likewise.
9385 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
9386
9387 2019-01-17 Tamar Christina <tamar.christina@arm.com>
9388
9389 PR target/88851
9390 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
9391 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
9392 it and document registers.
9393
9394 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9395
9396 * config/aarch64/aarch64.c (ares_tunings): Define.
9397 * config/aarch64/aarch64-cores.def (ares): Use the above.
9398
9399 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9400
9401 PR target/88794
9402 Revert:
9403 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
9404
9405 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
9406 (_mm512_fixupimm_round_pd): Update parameters and builtin.
9407 (_mm512_maskz_fixupimm_round_pd): Ditto.
9408 (_mm512_fixupimm_round_ps): Ditto.
9409 (_mm512_maskz_fixupimm_round_ps): Ditto.
9410 (_mm_fixupimm_round_sd): Ditto.
9411 (_mm_maskz_fixupimm_round_sd): Ditto.
9412 (_mm_fixupimm_round_ss): Ditto.
9413 (_mm_maskz_fixupimm_round_ss): Ditto.
9414 (_mm512_fixupimm_pd): Ditto.
9415 (_mm512_maskz_fixupimm_pd): Ditto.
9416 (_mm512_fixupimm_ps): Ditto.
9417 (_mm512_maskz_fixupimm_ps): Ditto.
9418 (_mm_fixupimm_sd): Ditto.
9419 (_mm_maskz_fixupimm_sd): Ditto.
9420 (_mm_fixupimm_ss): Ditto.
9421 (_mm_maskz_fixupimm_ss): Ditto.
9422 (_mm512_mask_fixupimm_round_pd): Update builtin.
9423 (_mm512_mask_fixupimm_round_ps): Ditto.
9424 (_mm_mask_fixupimm_round_sd): Ditto.
9425 (_mm_mask_fixupimm_round_ss): Ditto.
9426 (_mm512_mask_fixupimm_pd): Ditto.
9427 (_mm512_mask_fixupimm_ps): Ditto.
9428 (_mm_mask_fixupimm_sd): Ditto.
9429 (_mm_mask_fixupimm_ss): Ditto.
9430 * config/i386/avx512vlintrin.h:
9431 (_mm256_fixupimm_pd): Update parameters and builtin.
9432 (_mm256_maskz_fixupimm_pd): Ditto.
9433 (_mm256_fixupimm_ps): Ditto.
9434 (_mm256_maskz_fixupimm_ps): Ditto.
9435 (_mm_fixupimm_pd): Ditto.
9436 (_mm_maskz_fixupimm_pd): Ditto.
9437 (_mm_fixupimm_ps): Ditto.
9438 (_mm_maskz_fixupimm_ps): Ditto.
9439 (_mm256_mask_fixupimm_pd): Update builtin.
9440 (_mm256_mask_fixupimm_ps): Ditto.
9441 (_mm_mask_fixupimm_pd): Ditto.
9442 (_mm_mask_fixupimm_ps): Ditto.
9443 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
9444 * config/i386/i386-builtin.def: Update builtin definitions.
9445 * config/i386/i386.c: Handle new builtin types and remove useless ones.
9446 * config/i386/sse.md: Update VFIXUPIMM* patterns.
9447 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9448 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9449 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
9450 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9451 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9452 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
9453 * config/i386/subst.md:
9454 (round_saeonly_sd_mask_operand4): Add new subst_attr.
9455 (round_saeonly_sd_mask_op4): Ditto.
9456 (round_saeonly_expand_operand5): Ditto.
9457 (round_saeonly_expand): Update.
9458
9459 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9460
9461 PR target/88794
9462 Revert:
9463 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
9464
9465 * config/i386/sse.md: Combine VFIXUPIMM* patterns
9466 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9467 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9468 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
9469 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9470 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9471 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
9472
9473 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9474
9475 PR target/88794
9476 Revert:
9477 2018-12-15 Jakub Jelinek <jakub@redhat.com>
9478
9479 PR target/88489
9480 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
9481 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
9482 instead of UNSPEC_FIXUPIMM.
9483
9484 2019-01-17 Richard Biener <rguenther@suse.de>
9485
9486 PR lto/86736
9487 * dwarf2out.c (want_pubnames): Never generate pubnames sections
9488 and friends for the LTO part of debug info.
9489
9490 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9491
9492 PR tree-optimization/86214
9493 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
9494 if x == y.
9495
9496 PR rtl-optimization/88870
9497 * dce.c (deletable_insn_p): Never delete const/pure calls that can
9498 throw if we can't alter the cfg or delete dead exceptions.
9499 (mark_insn): Don't call find_call_stack_args for such calls.
9500
9501 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
9502
9503 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
9504 prototypes for vec_st.
9505 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
9506 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
9507 mainly on signed/unsigned long long and double.
9508
9509 2019-01-16 David Malcolm <dmalcolm@redhat.com>
9510
9511 PR target/88861
9512 * combine.c (delete_noop_moves): Convert to "bool" return,
9513 returning true if any edges are eliminated.
9514 (combine_instructions): Also return true if delete_noop_moves
9515 returns true.
9516
9517 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9518
9519 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
9520 correct max nunits for endian swap.
9521 (aarch64_expand_fcmla_builtin): Correct subreg code.
9522 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9523 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
9524 lane endianness.
9525
9526 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
9527
9528 * config/alpha/alpha.c (alpha_gimplify_va_arg):
9529 Handle split indirect COMPLEX_TYPE arguments.
9530
9531 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
9532
9533 PR target/86891
9534 * config/aarch64/aarch64-modes.def: Add comment about how the carry
9535 bit is set by add and compare.
9536 (CC_ADC): New CC_MODE.
9537 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
9538 to cache the code and mode of X. Adjust the shape of a CC_Cmode
9539 comparison. Add detection for CC_ADCmode.
9540 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
9541 CC_ADCmode.
9542 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
9543 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
9544 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
9545 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
9546 to eliminate the need for zero-extending the operands.
9547 (add<mode>3_compareC_imm): Delete. Merge into ...
9548 (add<mode>3_compareC): ... this. Restructure the comparison to
9549 eliminate the need for zero-extending the operands.
9550 (add<mode>3_carryin): Use LTU for the overflow detection.
9551 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
9552 Reexpress comparison for overflow.
9553 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
9554 (add<mode>3_carryinC): Likewise.
9555 (add<mode>3_carryinV): Use LTU for carry between partials.
9556 * config/aarch64/predicates.md (aarch64_carry_operation): Update
9557 handling of CC_Cmode and add CC_ADCmode.
9558 (aarch64_borrow_operation): Likewise.
9559
9560 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9561
9562 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
9563 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
9564 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
9565 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
9566
9567 2019-01-16 Martin Liska <mliska@suse.cz>
9568
9569 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
9570 for GCC driver.
9571 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
9572 a new argument.
9573 * gcc.c (add_sysrooted_hdrs_prefix): New function.
9574 (path_prefix_reset): Move up in the source file.
9575 (find_fortran_preinclude_file): Make complex search for the
9576 fortran header files.
9577
9578 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
9579
9580 * godump.c (go_output_typedef): When outputting a typedef, refer
9581 to the underlying type by its name and not its structure.
9582
9583 2019-01-15 David Malcolm <dmalcolm@redhat.com>
9584
9585 PR c++/88795
9586 * tree.c (build_function_type): Assert that arg_types is not
9587 error_mark_node.
9588
9589 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
9590
9591 PR inline-asm/52813
9592 * doc/extend.texi: Document that listing the stack pointer in the
9593 clobber list of an asm is a deprecated feature.
9594 * common.opt (Wdeprecated): Moved from c-family/c.opt.
9595 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
9596 warning instead of an error for clobbers of the stack pointer.
9597 Add a note explaining why.
9598
9599 2019-01-15 Richard Biener <rguenther@suse.de>
9600
9601 PR debug/88046
9602 * dwarf2out.c (gen_member_die): Do not generate inheritance
9603 DIEs late.
9604
9605 2019-01-15 Richard Biener <rguenther@suse.de>
9606
9607 PR tree-optimization/88855
9608 * tree-if-conv.c (combine_blocks): Collect
9609 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
9610
9611 2019-01-15 Tom de Vries <tdevries@suse.de>
9612
9613 PR target/80547
9614 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
9615 lhs == NULL_TREE for gang-level reduction.
9616
9617 2019-01-15 Richard Biener <rguenther@suse.de>
9618 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9619
9620 PR ipa/88788
9621 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
9622 return true if SSA_NAME is already marked in visited bitmap.
9623 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
9624
9625 2019-01-15 Jakub Jelinek <jakub@redhat.com>
9626
9627 PR tree-optimization/88775
9628 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
9629 equal == 0 equality pointer comparisons some more if compared in
9630 integral types and either one points to an automatic var and the
9631 other to a global, or we can prove at least one points to the middle
9632 or both point to start or both point to end.
9633
9634 2019-01-14 Andi Kleen <ak@linux.intel.com>
9635
9636 * Makefile.in: Lower autofdo sampling rate by 10x.
9637 * Makefile.tpl: Dito.
9638
9639 2019-01-14 Tom Honermann <tom@honermann.net>
9640
9641 * defaults.h: Define CHAR8_TYPE.
9642
9643 2019-01-14 Martin Sebor <msebor@redhat.com>
9644
9645 PR target/88638
9646 * doc/extend.texi (Darwin Format Checks): Clarify.
9647
9648 2019-01-14 Richard Biener <rguenther@suse.de>
9649
9650 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
9651 whether we are in (simplify ...) or (match ...) context.
9652
9653 2019-01-14 Jakub Jelinek <jakub@redhat.com>
9654
9655 PR rtl-optimization/88796
9656 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
9657 * cfgexpand.c (stack_protect_prologue): Initialize
9658 crtl->stack_protect_guard_decl.
9659 * function.c (stack_protect_epilogue): Use it instead of calling
9660 targetm.stack_protect_guard again.
9661 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
9662 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
9663 crtl->stack_protect_guard_decl.
9664 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
9665 on the returned MEM_EXPR.
9666
9667 2019-01-12 Tom de Vries <tdevries@suse.de>
9668
9669 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
9670 vector length using -fopenacc-dim.
9671
9672 2019-01-12 Tom de Vries <tdevries@suse.de>
9673
9674 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
9675 lengths into account.
9676
9677 2019-01-12 Svante Signell <svante.signell@gmail.com>
9678
9679 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
9680 (TARGET_CAN_SPLIT_STACK): Define.
9681 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9682
9683 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9684
9685 * params.def (inline-unit-growth): Set to 40.
9686
9687 2019-01-12 Jakub Jelinek <jakub@redhat.com>
9688
9689 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
9690
9691 2019-01-12 Tom de Vries <tdevries@suse.de>
9692
9693 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
9694 region calling vector-partitionable routine, set default_vector_length
9695 to WARP_SIZE.
9696
9697 2019-01-12 Tom de Vries <tdevries@suse.de>
9698
9699 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
9700 variable default_vector_length.
9701
9702 2019-01-12 Tom de Vries <tdevries@suse.de>
9703
9704 PR middle-end/88703
9705 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
9706 from oacc_default_dims, as oacc_validate_dims would do it, and apply
9707 dimensions limits.
9708
9709 2019-01-12 Tom de Vries <tdevries@suse.de>
9710
9711 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
9712 (nvptx_goacc_validate_dims): Add used parameter.
9713 * doc/tm.texi: Regenerate.
9714 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
9715 argument to call to targetm.goacc.validate_dims.
9716 (default_goacc_validate_dims): Add used
9717 parameter.
9718 * target.def (validate_dims): Add used parameter in DEFHOOK.
9719 * targhooks.h (default_goacc_validate_dims): Add used parameter.
9720
9721 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9722
9723 PR middle-end/85956
9724 PR lto/88733
9725 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
9726 field.
9727 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
9728 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
9729 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
9730 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
9731
9732 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
9733
9734 PR rtl-optimization/87305
9735 * lra-assigns.c
9736 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
9737 for little endian pseudos used as paradoxical subreg.
9738
9739 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9740
9741 PR tree-optimization/88693
9742 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
9743 for STRING_CSTs that don't contain any NUL characters in the first
9744 TREE_STRING_LENGTH bytes.
9745
9746 2019-01-11 Alan Modra <amodra@gmail.com>
9747
9748 PR 88777
9749 PR 88614
9750 * genattrtab.c (min_fn): Don't translate values.
9751 (min_attr_value): Return INT_MAX when the value can't be calculated.
9752 Return minimum among any values that can be calculated.
9753 (max_attr_value): Adjust.
9754
9755 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9756
9757 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
9758
9759 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9760
9761 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9762 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
9763 (aarch64_return_call_with_max_clobbers): New function.
9764 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9765 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9766 argument.
9767 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9768 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9769 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9770 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9771 * cselib.c (cselib_process_insn): Add argument to
9772 targetm.hard_regno_call_part_clobbered call.
9773 * ira-conflicts.c (ira_build_conflicts): Ditto.
9774 * ira-costs.c (ira_tune_allocno_costs): Ditto.
9775 * lra-constraints.c (inherit_reload_reg): Ditto.
9776 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9777 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9778 argument. Call targetm.return_call_with_max_clobbers.
9779 Add argument to targetm.hard_regno_call_part_clobbered call.
9780 (calls_have_same_clobbers_p): New function.
9781 (process_bb_lives): Add call_insn and last_call_insn variables.
9782 Pass call_insn to check_pseudos_live_through_calls.
9783 Modify if stmt to check targetm.return_call_with_max_clobbers.
9784 Update setting of flush variable.
9785 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9786 to false.
9787 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9788 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9789 targetm.hard_regno_call_part_clobbered call.
9790 * reginfo.c (choose_hard_reg_mode): Ditto.
9791 * regrename.c (check_new_reg_p): Ditto.
9792 * reload.c (find_equiv_reg): Ditto.
9793 * reload1.c (emit_reload_insns): Ditto.
9794 * sched-deps.c (deps_analyze_insn): Ditto.
9795 * sel-sched.c (init_regs_for_mode): Ditto.
9796 (mark_unavailable_hard_regs): Ditto.
9797 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9798 * target.def (hard_regno_call_part_clobbered): Add insn argument.
9799 (return_call_with_max_clobbers): New target function.
9800 * doc/tm.texi: Regenerate.
9801 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9802 * hooks.c (hook_bool_uint_mode_false): Change to
9803 hook_bool_insn_uint_mode_false.
9804 * hooks.h (hook_bool_uint_mode_false): Ditto.
9805
9806 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9807
9808 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9809 (aarch64_remove_extra_call_preserved_regs): New function.
9810 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9811 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9812 * doc/tm.texi: Regenerate.
9813 * final.c (get_call_reg_set_usage): Call new hook.
9814 * target.def (remove_extra_call_preserved_regs): New hook.
9815 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9816 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9817
9818 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9819
9820 PR bootstrap/88714
9821 * passes.c (finish_optimization_passes): Call print_combine_total_stats
9822 inside of pass_combine_1 dump rather than pass_profile_1.
9823
9824 2019-01-11 Tom de Vries <tdevries@suse.de>
9825
9826 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9827 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9828 (PTX_NUM_PER_WORKER_BARRIERS): Define.
9829 (nvptx_apply_dim_limits): Prevent vector_length 64 and
9830 num_workers 16.
9831
9832 2019-01-11 Tom de Vries <tdevries@suse.de>
9833
9834 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9835
9836 2019-01-11 Jan Beulich <jbeulich@suse.com>
9837
9838 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9839 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9840 sse2_cvtsi2sd): Add {l}.
9841 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9842 syntax.
9843
9844 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9845
9846 PR target/88785
9847 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9848 define_expand.
9849 (*float<floatunssuffix>v2div2sf2): New define_insn.
9850 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9851 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9852 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9853 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9854 match_operands with "const0_operand" "C".
9855
9856 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9857
9858 * config/aarch64/aarch64-builtins.c
9859 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9860 (aarch64_init_simd_builtins): ...Here
9861
9862 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
9863
9864 PR rtl-optimization/87305
9865 * lra-assigns.c
9866 (setup_live_pseudos_and_spill_after_risky_transforms): Check
9867 allocation for big endian pseudos used as paradoxical subregs and
9868 spill them if it is wrong.
9869 * lra-constraints.c (lra_constraints): Add a comment.
9870
9871 2019-01-10 Richard Biener <rguenther@suse.de>
9872
9873 PR tree-optimization/88792
9874 * tree-ssa-pre.c (get_representative_for): Do not return a
9875 value-number here.
9876
9877 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9878
9879 PR middle-end/84877
9880 PR bootstrap/88450
9881 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9882 (assign_parm_setup_block): Do the argument slot realignment here
9883 instead.
9884
9885 2019-01-10 Stefan Agner <stefan@agner.ch>
9886
9887 PR target/88648
9888 * config/arm/arm.c (arm_option_override_internal): Force
9889 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9890
9891 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9892
9893 PR c/88568
9894 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9895 DECL_EXTERNAL.
9896
9897 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9898
9899 * config/arm/arm-builtins.c
9900 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9901 (MAC_LANE_PAIR_QUALIFIERS): New.
9902 (arm_expand_builtin_args): Use it.
9903 (arm_expand_builtin_1): Likewise.
9904 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9905 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9906 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9907 * config/arm/arm_neon.h:
9908 (vcadd_rot90_f16): New.
9909 (vcaddq_rot90_f16): New.
9910 (vcadd_rot270_f16): New.
9911 (vcaddq_rot270_f16): New.
9912 (vcmla_f16): New.
9913 (vcmlaq_f16): New.
9914 (vcmla_lane_f16): New.
9915 (vcmla_laneq_f16): New.
9916 (vcmlaq_lane_f16): New.
9917 (vcmlaq_laneq_f16): New.
9918 (vcmla_rot90_f16): New.
9919 (vcmlaq_rot90_f16): New.
9920 (vcmla_rot90_lane_f16): New.
9921 (vcmla_rot90_laneq_f16): New.
9922 (vcmlaq_rot90_lane_f16): New.
9923 (vcmlaq_rot90_laneq_f16): New.
9924 (vcmla_rot180_f16): New.
9925 (vcmlaq_rot180_f16): New.
9926 (vcmla_rot180_lane_f16): New.
9927 (vcmla_rot180_laneq_f16): New.
9928 (vcmlaq_rot180_lane_f16): New.
9929 (vcmlaq_rot180_laneq_f16): New.
9930 (vcmla_rot270_f16): New.
9931 (vcmlaq_rot270_f16): New.
9932 (vcmla_rot270_lane_f16): New.
9933 (vcmla_rot270_laneq_f16): New.
9934 (vcmlaq_rot270_lane_f16): New.
9935 (vcmlaq_rot270_laneq_f16): New.
9936 (vcadd_rot90_f32): New.
9937 (vcaddq_rot90_f32): New.
9938 (vcadd_rot270_f32): New.
9939 (vcaddq_rot270_f32): New.
9940 (vcmla_f32): New.
9941 (vcmlaq_f32): New.
9942 (vcmla_lane_f32): New.
9943 (vcmla_laneq_f32): New.
9944 (vcmlaq_lane_f32): New.
9945 (vcmlaq_laneq_f32): New.
9946 (vcmla_rot90_f32): New.
9947 (vcmlaq_rot90_f32): New.
9948 (vcmla_rot90_lane_f32): New.
9949 (vcmla_rot90_laneq_f32): New.
9950 (vcmlaq_rot90_lane_f32): New.
9951 (vcmlaq_rot90_laneq_f32): New.
9952 (vcmla_rot180_f32): New.
9953 (vcmlaq_rot180_f32): New.
9954 (vcmla_rot180_lane_f32): New.
9955 (vcmla_rot180_laneq_f32): New.
9956 (vcmlaq_rot180_lane_f32): New.
9957 (vcmlaq_rot180_laneq_f32): New.
9958 (vcmla_rot270_f32): New.
9959 (vcmlaq_rot270_f32): New.
9960 (vcmla_rot270_lane_f32): New.
9961 (vcmla_rot270_laneq_f32): New.
9962 (vcmlaq_rot270_lane_f32): New.
9963 (vcmlaq_rot270_laneq_f32): New.
9964 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9965 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9966 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9967 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9968 vcmlaq_lane270): New.
9969 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9970 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9971 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9972 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9973 (arm_option_reconfigure_globals): Use them.
9974 * config/arm/iterators.md (VDF, VQ_HSF): New.
9975 (VCADD, VCMLA): New.
9976 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9977 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9978 New.
9979 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9980 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9981
9982 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9983
9984 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9985 Add qualifier_lane_pair_index.
9986 (emit-rtl.h): Include.
9987 (TYPES_QUADOP_LANE_PAIR): New.
9988 (aarch64_simd_expand_args): Use it.
9989 (aarch64_simd_expand_builtin): Likewise.
9990 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9991 New.
9992 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9993 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9994 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9995 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9996 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9997 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9998 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9999 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
10000 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
10001 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
10002 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
10003 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
10004 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
10005 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
10006 Add __ARM_FEATURE_COMPLEX.
10007 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
10008 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
10009 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
10010 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
10011 fcmlaq_lane270): New.
10012 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
10013 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
10014 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
10015 * config/aarch64/arm_neon.h:
10016 (vcadd_rot90_f16): New.
10017 (vcaddq_rot90_f16): New.
10018 (vcadd_rot270_f16): New.
10019 (vcaddq_rot270_f16): New.
10020 (vcmla_f16): New.
10021 (vcmlaq_f16): New.
10022 (vcmla_lane_f16): New.
10023 (vcmla_laneq_f16): New.
10024 (vcmlaq_lane_f16): New.
10025 (vcmlaq_rot90_lane_f16): New.
10026 (vcmla_rot90_laneq_f16): New.
10027 (vcmla_rot90_lane_f16): New.
10028 (vcmlaq_rot90_f16): New.
10029 (vcmla_rot90_f16): New.
10030 (vcmlaq_laneq_f16): New.
10031 (vcmla_rot180_laneq_f16): New.
10032 (vcmla_rot180_lane_f16): New.
10033 (vcmlaq_rot180_f16): New.
10034 (vcmla_rot180_f16): New.
10035 (vcmlaq_rot90_laneq_f16): New.
10036 (vcmlaq_rot270_laneq_f16): New.
10037 (vcmlaq_rot270_lane_f16): New.
10038 (vcmla_rot270_laneq_f16): New.
10039 (vcmlaq_rot270_f16): New.
10040 (vcmla_rot270_f16): New.
10041 (vcmlaq_rot180_laneq_f16): New.
10042 (vcmlaq_rot180_lane_f16): New.
10043 (vcmla_rot270_lane_f16): New.
10044 (vcadd_rot90_f32): New.
10045 (vcaddq_rot90_f32): New.
10046 (vcaddq_rot90_f64): New.
10047 (vcadd_rot270_f32): New.
10048 (vcaddq_rot270_f32): New.
10049 (vcaddq_rot270_f64): New.
10050 (vcmla_f32): New.
10051 (vcmlaq_f32): New.
10052 (vcmlaq_f64): New.
10053 (vcmla_lane_f32): New.
10054 (vcmla_laneq_f32): New.
10055 (vcmlaq_lane_f32): New.
10056 (vcmlaq_laneq_f32): New.
10057 (vcmla_rot90_f32): New.
10058 (vcmlaq_rot90_f32): New.
10059 (vcmlaq_rot90_f64): New.
10060 (vcmla_rot90_lane_f32): New.
10061 (vcmla_rot90_laneq_f32): New.
10062 (vcmlaq_rot90_lane_f32): New.
10063 (vcmlaq_rot90_laneq_f32): New.
10064 (vcmla_rot180_f32): New.
10065 (vcmlaq_rot180_f32): New.
10066 (vcmlaq_rot180_f64): New.
10067 (vcmla_rot180_lane_f32): New.
10068 (vcmla_rot180_laneq_f32): New.
10069 (vcmlaq_rot180_lane_f32): New.
10070 (vcmlaq_rot180_laneq_f32): New.
10071 (vcmla_rot270_f32): New.
10072 (vcmlaq_rot270_f32): New.
10073 (vcmlaq_rot270_f64): New.
10074 (vcmla_rot270_lane_f32): New.
10075 (vcmla_rot270_laneq_f32): New.
10076 (vcmlaq_rot270_lane_f32): New.
10077 (vcmlaq_rot270_laneq_f32): New.
10078 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
10079 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
10080 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
10081 (FCADD, FCMLA): New.
10082 (rot): New.
10083 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
10084
10085 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
10086
10087 PR other/16615
10088
10089 * config/pa/pa.c: Change "can not" to "cannot".
10090 * gimple-ssa-evrp-analyze.c: Likewise.
10091 * ipa-icf.c: Likewise.
10092 * ipa-polymorphic-call.c: Likewise.
10093 * ipa-pure-const.c: Likewise.
10094 * lra-constraints.c: Likewise.
10095 * lra-remat.c: Likewise.
10096 * reload1.c: Likewise.
10097 * reorg.c: Likewise.
10098 * tree-ssa-uninit.c: Likewise.
10099
10100 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
10101
10102 PR other/16615
10103
10104 * Makefile.in: Mechanically replace "can not" with "cannot".
10105 * alias.c: Likewise.
10106 * builtins.c: Likewise.
10107 * calls.c: Likewise.
10108 * cgraph.c: Likewise.
10109 * cgraph.h: Likewise.
10110 * cgraphclones.c: Likewise.
10111 * cgraphunit.c: Likewise.
10112 * combine-stack-adj.c: Likewise.
10113 * combine.c: Likewise.
10114 * common/config/i386/i386-common.c: Likewise.
10115 * config/aarch64/aarch64.c: Likewise.
10116 * config/alpha/sync.md: Likewise.
10117 * config/arc/arc.c: Likewise.
10118 * config/arc/predicates.md: Likewise.
10119 * config/arm/arm-c.c: Likewise.
10120 * config/arm/arm.c: Likewise.
10121 * config/arm/arm.h: Likewise.
10122 * config/arm/arm.md: Likewise.
10123 * config/arm/cortex-r4f.md: Likewise.
10124 * config/csky/csky.c: Likewise.
10125 * config/csky/csky.h: Likewise.
10126 * config/darwin-f.c: Likewise.
10127 * config/epiphany/epiphany.md: Likewise.
10128 * config/i386/i386.c: Likewise.
10129 * config/i386/sol2.h: Likewise.
10130 * config/m68k/m68k.c: Likewise.
10131 * config/mcore/mcore.h: Likewise.
10132 * config/microblaze/microblaze.md: Likewise.
10133 * config/mips/20kc.md: Likewise.
10134 * config/mips/sb1.md: Likewise.
10135 * config/nds32/nds32.c: Likewise.
10136 * config/nds32/predicates.md: Likewise.
10137 * config/pa/pa.c: Likewise.
10138 * config/rs6000/e300c2c3.md: Likewise.
10139 * config/rs6000/rs6000.c: Likewise.
10140 * config/s390/s390.h: Likewise.
10141 * config/sh/sh.c: Likewise.
10142 * config/sh/sh.md: Likewise.
10143 * config/spu/vmx2spu.h: Likewise.
10144 * cprop.c: Likewise.
10145 * dbxout.c: Likewise.
10146 * df-scan.c: Likewise.
10147 * doc/cfg.texi: Likewise.
10148 * doc/extend.texi: Likewise.
10149 * doc/fragments.texi: Likewise.
10150 * doc/gty.texi: Likewise.
10151 * doc/invoke.texi: Likewise.
10152 * doc/lto.texi: Likewise.
10153 * doc/md.texi: Likewise.
10154 * doc/objc.texi: Likewise.
10155 * doc/rtl.texi: Likewise.
10156 * doc/tm.texi: Likewise.
10157 * dse.c: Likewise.
10158 * emit-rtl.c: Likewise.
10159 * emit-rtl.h: Likewise.
10160 * except.c: Likewise.
10161 * expmed.c: Likewise.
10162 * expr.c: Likewise.
10163 * fold-const.c: Likewise.
10164 * genautomata.c: Likewise.
10165 * gimple-fold.c: Likewise.
10166 * hard-reg-set.h: Likewise.
10167 * ifcvt.c: Likewise.
10168 * ipa-comdats.c: Likewise.
10169 * ipa-cp.c: Likewise.
10170 * ipa-devirt.c: Likewise.
10171 * ipa-fnsummary.c: Likewise.
10172 * ipa-icf.c: Likewise.
10173 * ipa-inline-transform.c: Likewise.
10174 * ipa-inline.c: Likewise.
10175 * ipa-polymorphic-call.c: Likewise.
10176 * ipa-profile.c: Likewise.
10177 * ipa-prop.c: Likewise.
10178 * ipa-pure-const.c: Likewise.
10179 * ipa-reference.c: Likewise.
10180 * ipa-split.c: Likewise.
10181 * ipa-visibility.c: Likewise.
10182 * ipa.c: Likewise.
10183 * ira-build.c: Likewise.
10184 * ira-color.c: Likewise.
10185 * ira-conflicts.c: Likewise.
10186 * ira-costs.c: Likewise.
10187 * ira-int.h: Likewise.
10188 * ira-lives.c: Likewise.
10189 * ira.c: Likewise.
10190 * ira.h: Likewise.
10191 * loop-invariant.c: Likewise.
10192 * loop-unroll.c: Likewise.
10193 * lower-subreg.c: Likewise.
10194 * lra-assigns.c: Likewise.
10195 * lra-constraints.c: Likewise.
10196 * lra-eliminations.c: Likewise.
10197 * lra-lives.c: Likewise.
10198 * lra-remat.c: Likewise.
10199 * lra-spills.c: Likewise.
10200 * lra.c: Likewise.
10201 * lto-cgraph.c: Likewise.
10202 * lto-streamer-out.c: Likewise.
10203 * postreload-gcse.c: Likewise.
10204 * predict.c: Likewise.
10205 * profile-count.h: Likewise.
10206 * profile.c: Likewise.
10207 * recog.c: Likewise.
10208 * ree.c: Likewise.
10209 * reload.c: Likewise.
10210 * reload1.c: Likewise.
10211 * reorg.c: Likewise.
10212 * resource.c: Likewise.
10213 * rtl.def: Likewise.
10214 * rtl.h: Likewise.
10215 * rtlanal.c: Likewise.
10216 * sched-deps.c: Likewise.
10217 * sched-ebb.c: Likewise.
10218 * sched-rgn.c: Likewise.
10219 * sel-sched-ir.c: Likewise.
10220 * sel-sched.c: Likewise.
10221 * shrink-wrap.c: Likewise.
10222 * simplify-rtx.c: Likewise.
10223 * symtab.c: Likewise.
10224 * target.def: Likewise.
10225 * toplev.c: Likewise.
10226 * tree-call-cdce.c: Likewise.
10227 * tree-cfg.c: Likewise.
10228 * tree-complex.c: Likewise.
10229 * tree-core.h: Likewise.
10230 * tree-eh.c: Likewise.
10231 * tree-inline.c: Likewise.
10232 * tree-loop-distribution.c: Likewise.
10233 * tree-nrv.c: Likewise.
10234 * tree-profile.c: Likewise.
10235 * tree-sra.c: Likewise.
10236 * tree-ssa-alias.c: Likewise.
10237 * tree-ssa-dce.c: Likewise.
10238 * tree-ssa-dom.c: Likewise.
10239 * tree-ssa-forwprop.c: Likewise.
10240 * tree-ssa-loop-im.c: Likewise.
10241 * tree-ssa-loop-ivcanon.c: Likewise.
10242 * tree-ssa-loop-ivopts.c: Likewise.
10243 * tree-ssa-loop-niter.c: Likewise.
10244 * tree-ssa-phionlycprop.c: Likewise.
10245 * tree-ssa-phiopt.c: Likewise.
10246 * tree-ssa-propagate.c: Likewise.
10247 * tree-ssa-threadedge.c: Likewise.
10248 * tree-ssa-threadupdate.c: Likewise.
10249 * tree-ssa-uninit.c: Likewise.
10250 * tree-ssanames.c: Likewise.
10251 * tree-streamer-out.c: Likewise.
10252 * tree.c: Likewise.
10253 * tree.h: Likewise.
10254 * vr-values.c: Likewise.
10255
10256 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
10257
10258 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
10259 (ix86_split_xorsign): Ditto.
10260 * config/i386/i386.c (ix86_expand_xorsign): New function.
10261 (ix86_split_xorsign): Ditto.
10262 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
10263 (xorsign<mode>3): New expander.
10264 (xorsign<mode>3_1): New insn_and_split pattern.
10265 * config/i386/sse.md (xorsign<mode>3): New expander.
10266
10267 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10268
10269 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
10270 (*tablejump_sp64): Likewise.
10271 (*tablejump<P:mode>): ...this.
10272 (*call_address_sp32): Merge into...
10273 (*call_address_sp64): Likewise.
10274 (*call_address<P:mode>): ...this.
10275 (*call_symbolic_sp32): Merge into...
10276 (*call_symbolic_sp64): Likewise.
10277 (*call_symbolic<P:mode>): ...this.
10278 (call_value): Remove constraint and add predicate.
10279 (*call_value_address_sp32): Merge into...
10280 (*call_value_address_sp64): Likewise.
10281 (*call_value_address<P:mode>): ...this.
10282 (*call_value_symbolic_sp32): Merge into...
10283 (*call_value_symbolic_sp64): Likewise.
10284 (*call_value_symbolic<P:mode>): ...this.
10285 (*sibcall_symbolic_sp32): Merge into...
10286 (*sibcall_symbolic_sp64): Likewise.
10287 (*sibcall_symbolic<P:mode>): ...this.
10288 (sibcall_value): Remove constraint and add predicate.
10289 (*sibcall_value_symbolic_sp32): Merge into...
10290 (*sibcall_value_symbolic_sp64): Likewise.
10291 (*sibcall_value_symbolic<P:mode>): ...this.
10292 (window_save): Minor tweak.
10293 (*branch_sp32): Merge into...
10294 (*branch_sp64): Likewise.
10295 (*branch<P:mode>): ...this.
10296
10297 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10298 James Clarke <jrtc27@jrtc27.com>
10299
10300 PR target/84010
10301 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
10302 consistently in TLS address generation and adjust code to the renaming
10303 of patterns. Mark calls to __tls_get_addr as const.
10304 * config/sparc/sparc.md (tgd_hi22): Turn into...
10305 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
10306 (tgd_lo10): Turn into...
10307 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
10308 (tgd_add32): Merge into...
10309 (tgd_add64): Likewise.
10310 (tgd_add<P:mode>): ...this and use Pmode throughout.
10311 (tldm_hi22): Turn into...
10312 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
10313 (tldm_lo10): Turn into...
10314 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
10315 (tldm_add32): Merge into...
10316 (tldm_add64): Likewise.
10317 (tldm_add<P:mode>): ...this and use Pmode throughout.
10318 (tldm_call32): Merge into...
10319 (tldm_call64): Likewise.
10320 (tldm_call<P:mode>): ...this and use Pmode throughout.
10321 (tldo_hix22): Turn into...
10322 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
10323 (tldo_lox10): Turn into...
10324 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
10325 (tldo_add32): Merge into...
10326 (tldo_add64): Likewise.
10327 (tldo_add<P:mode>): ...this and use Pmode throughout.
10328 (tie_hi22): Turn into...
10329 (tie_hi22<P:mode>): ...this and use Pmode throughout.
10330 (tie_lo10): Turn into...
10331 (tie_lo10<P:mode>): ...this and use Pmode throughout.
10332 (tie_ld64): Use DImode throughout.
10333 (tie_add32): Merge into...
10334 (tie_add64): Likewise.
10335 (tie_add<P:mode>): ...this and use Pmode throughout.
10336 (tle_hix22_sp32): Merge into...
10337 (tle_hix22_sp64): Likewise.
10338 (tle_hix22<P:mode>): ...this and use Pmode throughout.
10339 (tle_lox22_sp32): Merge into...
10340 (tle_lox22_sp64): Likewise.
10341 (tle_lox22<P:mode>): ...this and use Pmode throughout.
10342 (*tldo_ldub_sp32): Merge into...
10343 (*tldo_ldub_sp64): Likewise.
10344 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
10345 (*tldo_ldub1_sp32): Merge into...
10346 (*tldo_ldub1_sp64): Likewise.
10347 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
10348 (*tldo_ldub2_sp32): Merge into...
10349 (*tldo_ldub2_sp64): Likewise.
10350 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
10351 (*tldo_ldsb1_sp32): Merge into...
10352 (*tldo_ldsb1_sp64): Likewise.
10353 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
10354 (*tldo_ldsb2_sp32): Merge into...
10355 (*tldo_ldsb2_sp64): Likewise.
10356 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
10357 (*tldo_ldub3_sp64): Use DImode throughout.
10358 (*tldo_ldsb3_sp64): Likewise.
10359 (*tldo_lduh_sp32): Merge into...
10360 (*tldo_lduh_sp64): Likewise.
10361 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
10362 (*tldo_lduh1_sp32): Merge into...
10363 (*tldo_lduh1_sp64): Likewise.
10364 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
10365 (*tldo_ldsh1_sp32): Merge into...
10366 (*tldo_ldsh1_sp64): Likewise.
10367 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
10368 (*tldo_lduh2_sp64): Use DImode throughout.
10369 (*tldo_ldsh2_sp64): Likewise.
10370 (*tldo_lduw_sp32): Merge into...
10371 (*tldo_lduw_sp64): Likewise.
10372 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
10373 (*tldo_lduw1_sp64): Use DImode throughout.
10374 (*tldo_ldsw1_sp64): Likewise.
10375 (*tldo_ldx_sp64): Likewise.
10376 (*tldo_stb_sp32): Merge into...
10377 (*tldo_stb_sp64): Likewise.
10378 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
10379 (*tldo_sth_sp32): Merge into...
10380 (*tldo_sth_sp64): Likewise.
10381 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
10382 (*tldo_stw_sp32): Merge into...
10383 (*tldo_stw_sp64): Likewise.
10384 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
10385 (*tldo_stx_sp64): Use DImode throughout.
10386
10387 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10388
10389 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
10390 check configure option to set BTI and Return Address Signing.
10391 * configure.ac: Add --enable-standard-branch-protection and
10392 --disable-standard-branch-protection.
10393 * configure: Regenerated.
10394 * doc/install.texi: Document the same.
10395
10396 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10397 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10398
10399 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
10400 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
10401 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
10402 if bti is enabled.
10403 * config/aarch64/aarch64-bti-insert.c: New file.
10404 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
10405 pass.
10406 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
10407 new bti pass.
10408 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
10409 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
10410 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
10411 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
10412
10413 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10414
10415 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
10416 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
10417 Disable bti for -mbranch-protection=none.
10418 (aarch64_handle_standard_branch_protection): Enable bti for
10419 -mbranch-protection=standard.
10420 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
10421 -mbranch-protection.
10422 (aarch64_bti_enabled): Check if bti is enabled.
10423 * config/aarch64/aarch64.opt: Declare target variable.
10424 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
10425
10426 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10427
10428 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
10429 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
10430 (aarch64_expand_epilogue): Likewise.
10431 (aarch64_output_mi_thunk): Likewise
10432 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
10433 TAILCALL_ADDR_REGS to x16 and x17.
10434 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
10435
10436 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10437
10438 * config/aarch64/aarch64-option-extensions.def: Define
10439 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
10440 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
10441 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
10442 (AARCH64_FL_PREDRES): New.
10443 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
10444 AARCH64_FL_PREDRES by default.
10445 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
10446
10447 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10448
10449 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
10450 ARMv8.5-A.
10451 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
10452 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
10453 * doc/invoke.texi: Document ARMv8.5-A.
10454
10455 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10456
10457 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
10458 (xorsign<mode>3): Likewise.
10459
10460 2019-01-09 Jelinek <jakub@redhat.com>
10461
10462 PR middle-end/88758
10463 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
10464 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
10465
10466 PR rtl-optimization/88331
10467 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
10468 not currently_expanding_to_rtl.
10469
10470 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10471
10472 * doc/invoke.texi (-Os): Remove trailing spaces.
10473 (-finline-functions): Remove reference to -O2.
10474
10475 2019-01-08 Jakub Jelinek <jakub@redhat.com>
10476
10477 PR rtl-optimization/79593
10478 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
10479
10480 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
10481 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
10482
10483 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
10484
10485 PR bootstrap/88721
10486 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
10487 to -1 on entry.
10488
10489 PR debug/88723
10490 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
10491 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
10492
10493 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
10494
10495 PR target/88717
10496 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
10497 ix86_avx_u128_mode_entry.
10498
10499 2019-01-08 Martin Liska <mliska@suse.cz>
10500
10501 PR tree-optimization/88753
10502 * tree-switch-conversion.c (switch_conversion::build_one_array):
10503 Come up with local variable constructor. Convert first to
10504 type of constructor values.
10505
10506 2019-01-08 Richard Biener <rguenther@suse.de>
10507
10508 PR tree-optimization/86554
10509 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
10510 rpo_avail): Move earlier.
10511 (visit_nary_op): When value-numbering to expressions
10512 with different overflow behavior make sure there's an
10513 available expression on the path.
10514
10515 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
10516
10517 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
10518 aarch64_parse_branch_protection,
10519 struct aarch64_branch_protect_type,
10520 aarch64_handle_no_branch_protection,
10521 aarch64_handle_standard_branch_protection,
10522 aarch64_validate_mbranch_protection,
10523 aarch64_handle_pac_ret_protection,
10524 aarch64_handle_attr_branch_protection,
10525 accepted_branch_protection_string,
10526 aarch64_pac_ret_subtypes,
10527 aarch64_branch_protect_types,
10528 aarch64_handle_pac_ret_leaf): Define.
10529 (aarch64_override_options_after_change_1, aarch64_override_options):
10530 Add check for accepted_branch_protection_string.
10531 (aarch64_option_save): Save accepted_branch_protection_string.
10532 (aarch64_option_restore): Save accepted_branch_protection_string.
10533 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
10534 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
10535 msign-return-address.
10536 * doc/invoke.texi: Add mbranch-protection.
10537
10538 2019-01-08 Alan Modra <amodra@gmail.com>
10539
10540 PR target/88614
10541 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
10542 Delete "unknownp" parameter. Adjust callers. Handle
10543 CONST_INT, PLUS, MINUS, and MULT.
10544 (attr_value_aligned): Renamed from or_attr_value.
10545 (min_attr_value): Return INT_MIN for unhandled rtl case..
10546 (min_fn): ..and translate to INT_MAX here.
10547 (write_length_unit_log): Modify to cope without "unknown".
10548 (write_attr_value): Handle IF_THEN_ELSE.
10549
10550 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10551
10552 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
10553 optimization for masked stores.
10554
10555 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10556
10557 PR middle-end/88567
10558 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
10559 output vector directly to duplicate_and_interleave instead of
10560 going through a temporary. Postpone insertion of ctor_seq to
10561 the end of the loop.
10562
10563 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
10564
10565 PR target/86891
10566 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
10567 unsigned_p. Handle signed and unsigned overflow correction as
10568 required.
10569 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
10570 prototype.
10571 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
10572 for operand 2.
10573 (add<mode>3_compareV_imm): Make this callable for expanding.
10574 (subv<GPI:mode>4): Use register_operand for operand 1. Use
10575 aarch64_plus_operand for operand 2.
10576 (subv<GPI:mode>_insn): New insn pattern.
10577 (subv<GPI:mode>_imm): Likewise.
10578 (negv<GPI:mode>3): New expand pattern.
10579 (negv<GPI:mode>_insn): New insn pattern.
10580 (negv<GPI:mode>_cmp_only): Likewise.
10581 (cmpv<GPI:mode>_insn): Likewise.
10582 (subvti4): Use register_operand for operand 1. Update call to
10583 aarch64_expand_subvti.
10584 (usubvti4): Likewise.
10585 (negvti3): New expand pattern.
10586 (negdi_carryout): New insn pattern.
10587 (negvdi_carryinV): New insn pattern.
10588 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
10589 version the named version.
10590 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
10591 operands.
10592 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
10593 patterns.
10594 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
10595 patterns.
10596 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
10597 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
10598 (sub<mode>3_carryinCV): Delete.
10599 (sub<GPI:mode>3_carryinV): New expand pattern.
10600 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
10601
10602 2019-01-07 Richard Biener <rguenther@suse.de>
10603
10604 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
10605 of tree_operand_hash.
10606
10607 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10608
10609 PR tree-optimization/88598
10610 * tree.h (single_nonzero_element): Declare.
10611 * tree.c (single_nonzero_element): New function.
10612 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
10613 if I is the only nonzero element of CST.
10614
10615 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10616
10617 PR tree-optimization/88598
10618 * tree.h (initializer_each_zero_or_onep): Declare.
10619 * tree.c (initializer_each_zero_or_onep): New function.
10620 (signed_or_unsigned_type_for): Handle float types too.
10621 (unsigned_type_for, signed_type_for): Update comments accordingly.
10622 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
10623 x & { 0 or -1, 0 or -1, ... }.
10624
10625 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
10626
10627 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
10628 with x86_64-pc-linux-gnu.
10629
10630 2019-01-07 Tom de Vries <tdevries@suse.de>
10631
10632 PR target/85486
10633 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
10634 function.
10635 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
10636 routines.
10637
10638 2019-01-07 Jakub Jelinek <jakub@redhat.com>
10639
10640 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
10641 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
10642 TARGET_AVX512F as condition.
10643
10644 PR debug/88723
10645 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
10646 const_not_ok_for_debug_p target hook.
10647 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
10648 on UNSPEC and subexpressions thereof if all subexpressions of the
10649 UNSPEC are CONSTANT_P.
10650
10651 PR tree-optimization/88676
10652 * tree-ssa-phiopt.c (two_value_replacement): New function.
10653 (tree_ssa_phiopt_worker): Call it.
10654
10655 PR sanitizer/88619
10656 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
10657 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
10658
10659 PR c++/85052
10660 * tree-vect-generic.c: Include insn-config.h and recog.h.
10661 (expand_vector_piecewise): Add defaulted ret_type argument,
10662 if non-NULL, use that in preference to type for the result type.
10663 (expand_vector_parallel): Formatting fix.
10664 (do_vec_conversion, do_vec_narrowing_conversion,
10665 expand_vector_conversion): New functions.
10666 (expand_vector_operations_1): Call expand_vector_conversion
10667 for VEC_CONVERT ifn calls.
10668 * internal-fn.def (VEC_CONVERT): New internal function.
10669 * internal-fn.c (expand_VEC_CONVERT): New function.
10670 * fold-const-call.c (fold_const_vec_convert): New function.
10671 (fold_const_call): Use it for CFN_VEC_CONVERT.
10672 * doc/extend.texi (__builtin_convertvector): Document.
10673
10674 2019-01-07 Tom de Vries <tdevries@suse.de>
10675
10676 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
10677 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
10678 vector_red_partition, vector_red_sym): New global variables.
10679 (nvptx_option_override): Initialize vector_red_sym.
10680 (nvptx_declare_function_name): Restore red_partition register.
10681 (nvptx_file_end): Emit code to declare the vector reduction variables.
10682 (nvptx_output_red_partition): New function.
10683 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
10684 large vector reductions.
10685 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
10686 (nvptx_init_builtins): Add VECTOR_ADDR.
10687 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
10688 Handle nvptx_expand_shared_addr.
10689 (nvptx_get_shared_red_addr): Add vector argument and handle large
10690 vectors.
10691 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
10692 large vectors.
10693 (nvptx_goacc_reduction_init): Likewise.
10694 (nvptx_goacc_reduction_fini): Likewise.
10695 (nvptx_goacc_reduction_teardown): Likewise.
10696 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
10697 init,fini,teardown}.
10698 (nvptx_init_axis_predicate): Initialize vector_red_partition.
10699 (nvptx_set_current_function): Init vector_red_partition.
10700 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
10701 (nvptx_red_partition): New insn.
10702 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
10703
10704 2019-01-07 Tom de Vries <tdevries@suse.de>
10705
10706 PR target/85381
10707 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
10708 empty loops.
10709
10710 2019-01-07 Tom de Vries <tdevries@suse.de>
10711
10712 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
10713 (nvptx_option_override): Init oacc_bcast_partition.
10714 (nvptx_init_oacc_workers): New function.
10715 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
10716 (nvptx_needs_shared_bcast): New function.
10717 (nvptx_find_par): Generalize to enable vectors to use shared-memory
10718 to propagate state.
10719 (nvptx_shared_propagate): Initialize vector bcast partition and
10720 synchronization state.
10721 (nvptx_single): Generalize to enable vectors to use shared-memory
10722 to propagate state.
10723 (nvptx_process_pars): Likewise.
10724 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
10725 * config/nvptx/nvptx.h (struct machine_function): Add
10726 bcast_partition and sync_bar members.
10727
10728 2019-01-07 Tom de Vries <tdevries@suse.de>
10729
10730 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
10731 (nvptx_apply_dim_limits): New function.
10732 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
10733 PTX_WARP_SIZE.
10734
10735 2019-01-07 Tom de Vries <tdevries@suse.de>
10736
10737 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
10738 as late as possible.
10739
10740 2019-01-07 Tom de Vries <tdevries@suse.de>
10741
10742 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
10743 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
10744 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
10745 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
10746 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
10747
10748 2019-01-07 Tom de Vries <tdevries@suse.de>
10749
10750 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
10751
10752 2019-01-07 Tom de Vries <tdevries@suse.de>
10753
10754 * omp-offload.c (oacc_get_min_dim): New function.
10755 * omp-offload.h (oacc_get_min_dim): Declare.
10756
10757 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
10758
10759 PR target/88521
10760 * config/i386/i386.c (function_value_ms_64): Return small sturct in
10761 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
10762
10763 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10764
10765 PR tree-opt/86020
10766 Revert:
10767 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10768
10769 * ipa-inline.c (edge_badness): Use inlined_time instead of
10770 inline_summaries->get.
10771
10772 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10773
10774 * opts.c (enable_fdo_optimizations): Enable
10775 version-loops-for-strides, loop-interchange, unrol-and-jam
10776 and tree-loop-distribution.
10777 * invoke.texi: Document newly enabled options.
10778
10779 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10780
10781 * doc/invoke.texi (max-inline-insns-small): New parameters.
10782 * ipa-inline.c (want_early_inline_function_p): simplify.
10783 (want_inline_small_function_p): Fix pasto from previous patch;
10784 use max-inline-insns-small bound.
10785 * params.def (max-inline-insns-small): New param.
10786 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10787 variables correctly.
10788
10789 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10790
10791 * doc/invoke.texi: Document max-inline-insns-size,
10792 uninlined-function-insns, uninlined-function-time,
10793 uninlined-thunk-insns and uninlined-thunk-time.
10794 * params.def: Add max-inline-insns-size,
10795 uninlined-function-insns, uninlined-function-time,
10796 uninlined-thunk-insns and uninlined-thunk-time.
10797 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10798 new parameters.
10799 * ipa-inline.c (can_inline_edge_by_limits_p,
10800 want_inline_small_function_p): Use new parameters.
10801
10802 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10803
10804 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10805
10806 2019-01-05 Jakub Jelinek <jakub@redhat.com>
10807
10808 PR middle-end/82564
10809 PR target/88620
10810 * expr.c (expand_assignment): For calls returning VLA structures
10811 if to_rtx is not a MEM, force it into a stack temporary.
10812
10813 PR debug/88635
10814 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10815 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10816 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10817 subexpressions of both operands.
10818 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10819 subrtxes are CONSTANT_P.
10820 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10821 2018-11-09 changes.
10822
10823 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
10824
10825 * params.def (hot-bb-count-ws-permille): Set to 990.
10826
10827 2019-01-04 Martin Sebor <msebor@redhat.com>
10828
10829 PR c/88546
10830 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10831 leaf.
10832
10833 2019-01-04 Martin Sebor <msebor@redhat.com>
10834
10835 PR c/88363
10836 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10837
10838 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10839
10840 * gdbinit.in: Turn off pagination for the skip commands, restore
10841 it to previous state afterwards.
10842
10843 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10844
10845 PR target/88594
10846 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10847 of GET_MODE (opN) as modes of the libcall arguments.
10848
10849 2019-01-04 Jan Beulich <jbeulich@suse.com>
10850
10851 * config/i386/sse.md
10852 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10853 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10854 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10855 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10856 avx512f_vmcmp<mode>3<round_saeonly_name>,
10857 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10858 avx512f_maskcmp<mode>3,
10859 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10860 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10861 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10862 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10863 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10864 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10865 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10866 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10867 <avx512>_testm<mode>3<mask_scalar_merge_name>,
10868 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10869 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10870 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10871 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10872 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10873 avx512cd_maskb_vec_dup<mode>,
10874 avx512cd_maskw_vec_dup<mode>,
10875 avx512dq_fpclass<mode><mask_scalar_merge_name>,
10876 avx512dq_vmfpclass<mode>,
10877 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10878 instead of =Yk.
10879
10880 2019-01-03 Martin Sebor <msebor@redhat.com>
10881
10882 PR tree-optimization/88659
10883 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10884
10885 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10886
10887 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10888 unaligned vsx and avoid lxvd2x/stxvd2x.
10889 (gen_lvx_v4si_move): New function.
10890
10891 2019-01-03 Tom de Vries <tdevries@suse.de>
10892
10893 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10894 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10895 function.
10896 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10897
10898 2019-01-03 Tom de Vries <tdevries@suse.de>
10899
10900 * config/nvptx/nvptx.c (struct offload_attrs): New.
10901 (populate_offload_attrs): New function. Factor mask extraction out of
10902 nvptx_reorg. Add extraction of dimensions.
10903 (nvptx_reorg): Use populate_offload_attrs.
10904
10905 2019-01-03 Tom de Vries <tdevries@suse.de>
10906
10907 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10908 cases for oacc_min_dims_p and routine_p. Add asserts for
10909 oacc_default_dims_p and offload_region_p.
10910
10911 2019-01-03 Tom de Vries <tdevries@suse.de>
10912
10913 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10914 factored out of ...
10915 (nvptx_goacc_validate_dims): ... here.
10916
10917 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10918
10919 PR tree-optimization/85574
10920 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10921 structure.
10922 (struct ssa_equip_hash_traits): Declare.
10923 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10924
10925 2019-01-03 Jakub Jelinek <jakub@redhat.com>
10926
10927 PR debug/88644
10928 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10929 change it to qualified_type.
10930
10931 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10932
10933 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10934 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10935
10936 2019-01-02 Martin Sebor <msebor@redhat.com>
10937 Jeff Law <law@redhat.com>
10938
10939 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10940 (get_range_strlen_tree): Update appropriately.
10941 (get_range_strlen)
10942 * gimple-fold.h (get_range_strlen): Drop unused last argument.
10943
10944 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10945 rather than set_range_info.
10946 * tree-ssa-strlen.c (set_strlen_range): Extracted from
10947 maybe_set_strlen_range. Handle potentially boundary crossing
10948 cases more conservatively.
10949 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10950 Call set_strlen_range.
10951 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10952
10953 PR middle-end/88663
10954 * gimple-fold.c (get_range_strlen): Update prototype to no longer
10955 need the flexp argument.
10956 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
10957 from calls to get_range_strlen. Update comments. Just update
10958 VAL for an unterminated const char array and let the reset of the
10959 code handle it normally. No longer try to set *flexp. Adjust
10960 return value.
10961 (get_range_strlen): Update for the new get_range_strlen API.
10962 (get_maxval_strlen): Similarly.
10963 (gimple_fold_builtin_strlen): Handle update meaning of return value
10964 from get_range_strlen.
10965 * gimple-ssa-sprintf.c (get_string_length): Update for the new
10966 get_range_strlen API.
10967
10968 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
10969
10970 PR lto/88130
10971 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10972 false at WPA time when body was removed.
10973
10974 2019-01-02 Martin Liska <mliska@suse.cz>
10975
10976 PR tree-optimization/88650
10977 * predict.c (set_even_probabilities): Calculate probability
10978 remainer only when really used.
10979
10980 2019-01-02 Richard Biener <rguenther@suse.de>
10981
10982 PR middle-end/88651
10983 * tree-data-ref.c (analyze_subscript_affine_affine): Use
10984 widest_ints when mangling max_stmt_execution results.
10985
10986 2019-01-02 Richard Biener <rguenther@suse.de>
10987
10988 PR tree-optimization/88621
10989 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10990 bitfields when canoncalizing.
10991
10992 2019-01-02 Richard Biener <rguenther@suse.de>
10993
10994 PR target/87545
10995 * config/i386/x86-tune-costs.h (intel_cost): Adjust
10996 cost of cheap SSE instruction.
10997
10998 2019-01-02 Richard Biener <rguenther@suse.de>
10999
11000 PR ipa/85574
11001 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
11002 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
11003 function.
11004 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
11005 set after UIDs before splitting them.
11006
11007 2019-01-01 Martin Sebor <msebor@redhat.com>
11008 Jeff Law <law@redhat.com>
11009
11010 * gimple-fold.c (get_range_strlen_tree): Record if the computed
11011 length is optimistic. If it is, then arrange to compute the
11012 conservative length as well.
11013
11014 * gimple-fold.h (get_range_strlen): Update prototype.
11015 * builtins.c (check_access): Update call to get_range_strlen to use
11016 c_strlen_data pointer. Change various variable accesses to instead
11017 pull data from the c_strlen_data structure.
11018 (check_strncat_sizes, expand_builtin_strncat): Likewise.
11019 * calls.c (maybe_warn_nonstring_arg): Likewise.
11020 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
11021 minimum length if maximum lengh is unknown.
11022 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
11023 that used c_strlen, it's no longer needed. Restructure slightly.
11024 (format_string): Set unlikely range appropriately.
11025 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
11026 formatting issues.
11027 (get_range_strlen): Accept c_strlen_data pointer for external
11028 call sites as well. Pass through to call to internal get_range_strlen.
11029 Adjust minlen, maxlen and maxbound as needed.
11030 (get_maxval_strlen): Update comments.
11031 (gimple_fold_builtin_strlen): Update call to get_range_strlen
11032 to use c_strlen_data pointer. Change variable accesses to instead
11033 use c_strlen_data data members.
11034
11035 * gimple-fold.c (get_range_strlen): Update prototype.
11036 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
11037 local variables. Use pdata to return information to caller.
11038 Update calls to get_range_strlen. Update pdata->maxbound.
11039 (get_range_strlen -- static version): Similarly.
11040 (get_range_strlen -- extern version): Update for internal
11041 get_range_strlen API change. Convert to external data format.
11042 (get_maxval_strlen): Similarly.
11043
11044 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
11045
11046 * coverage.c (get_coverage_counts): Use current_function_decl.
11047 * profile.c (read_thunk_profile): New function.
11048 (branch_prob): Add THUNK parameter.
11049 * tree-profile.c (tree_profiling): Handle thunks.
11050 * value-prof.c (init_node_map): Handle thunks.
11051 * value-prof.h (branch_prob): Upate prototype.
11052 (read_thunk_profile): Declare.
11053
11054 2019-01-01 Jakub Jelinek <jakub@redhat.com>
11055
11056 Update copyright years.
11057
11058 * gcc.c (process_command): Update copyright notice dates.
11059 * gcov-dump.c (print_version): Ditto.
11060 * gcov.c (print_version): Ditto.
11061 * gcov-tool.c (print_version): Ditto.
11062 * gengtype.c (create_file): Ditto.
11063 * doc/cpp.texi: Bump @copying's copyright year.
11064 * doc/cppinternals.texi: Ditto.
11065 * doc/gcc.texi: Ditto.
11066 * doc/gccint.texi: Ditto.
11067 * doc/gcov.texi: Ditto.
11068 * doc/install.texi: Ditto.
11069 * doc/invoke.texi: Ditto.
11070 \f
11071 Copyright (C) 2019 Free Software Foundation, Inc.
11072
11073 Copying and distribution of this file, with or without modification,
11074 are permitted in any medium without royalty provided the copyright
11075 notice and this notice are preserved.